buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
using System;
public class Hello {
public static void Main() {
int K = int.Parse(Console.ReadLine());
char X;
int count = 0;
int abc = 0;
for (int i = 0; i < K; i++) {
X = (char)Console.Read();
if (abc == 0 && X == ('A')) {
abc++;
} else if (abc == 1 && X == ('B')) {
... | using System;
public class Hello {
public static void Main() {
int K = int.Parse(Console.ReadLine());
char X;
int count = 0;
int abc = 0;
for (int i = 0; i < K; i++) {
X = (char)Console.Read();
if (X == ('A')) {
abc = 1;
} else if (abc == 1 && X == ('B')) {
abc =... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["-... | 8 | 147 |
using System;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
int ans = 0;
for (int i = 0; i < n - 3; i++) {
if (s.Substring(i, 3) == "ABC") {
ans++;
}
}
Console.WriteLine(ans);
}
} | using System;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
int ans = 0;
for (int i = 0; i < n - 2; i++) {
if (s.Substring(i, 3) == "ABC") {
ans++;
}
}
Console.WriteLine(ans);
Console.ReadKey();... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], [... | 8 | 91 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
public static void Main() {
var sw ... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
public static void Main() {
var sw ... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 8, ... | 8 | 209 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
public static void Main() {
var sw ... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
public static void Main() {
var sw ... | [["+", 64, 196, 0, 57, 64, 196, 0, 57, 0, 95], ["+", 64, 196, 0, 57, 75, 1, 0, 223, 0, 22], ["+", 64, 196, 0, 57, 75, 1, 0, 223, 0, 68], ["+", 0, 57, 64, 196, 0, 57, 75, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 95]] | 8 | 209 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
// get a integer
var S = Console.ReadLine();
var N = int.Parse(Console.ReadLine());
var count = 0;
for (int i = 0; i < N; i++) {
if (i > 0 && i < N - 1 && S[i - 1] == 'A' && S[i] == 'B' &&
S[i + 1] =... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
// get a integer
var N = int.Parse(Console.ReadLine());
var S = Console.ReadLine();
var count = 0;
for (int i = 0; i < N; i++) {
if (i > 0 && i < (N - 1) && S[i - 1] == 'A' && S[i] == 'B' &&
S[i + 1]... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3,... | 8 | 123 |
using System;
namespace ABC20191027 {
class Program {
static void Main(string[] args) {
string st1 = Console.ReadLine();
string st2 = Console.ReadLine();
int n = int.Parse(st1);
int count = 0;
for (int i = 0; i < n - 3; i++) {
if (st2[i] == 'A') {
if (st2[i + 1] == 'B') {
... | using System;
namespace ABC20191027 {
class Program {
static void Main(string[] args) {
string st1 = Console.ReadLine();
string st2 = Console.ReadLine();
int n = int.Parse(st1);
int count = 0;
for (int i = 0; i < n - 2; i++) {
if (st2[i] == 'A') {
if (st2[i + 1] == 'B') {
... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 64, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 64, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["-", 64, 196, 0, 57, 64, 196, 0, 116, 0, 35], ["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["-", 8, 196, 0, 57, 64, 196, 0, 116, 0,... | 8 | 132 |
using System;
namespace q2 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
int sum = 0;
int cnt = 0;
for (int i = 0; i < N; i++) {
if (cnt == 0 && S[i] == 'A') {
cnt++;
} else if (cnt == 1 && S[i] == 'B'... | using System;
namespace q2 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
int sum = 0;
int cnt = 0;
for (int i = 0; i < N; i++) {
if (S[i] == 'A') {
cnt = 1;
} else if (cnt == 1 && S[i] == 'B') {
... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["-... | 8 | 151 |
using System;
namespace ABC150 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
string word = "ABC";
int counter = 0;
int index = s.IndexOf(word);
int next;
if (index >= 0) {
while (true) {
next = ind... | using System;
namespace ABC150 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
string word = "ABC";
int counter = 0;
int index = s.IndexOf(word);
int next;
if (index >= 0) {
counter++;
while (true) {
... | [["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 19], ["+", 0, ... | 8 | 138 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
var cin = new ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
var cin = new ... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 8, 19... | 8 | 1,411 |
using System;
using System.Collections.Generic;
namespace CSharp {
class Program {
static void Main() {
var N = int.Parse(Console.ReadLine());
var P = Console.ReadLine().Replace(" ", "");
var Q = Console.ReadLine().Replace(" ", "");
var s = string.Empty;
for (int i = 1; i < N + 1; i++) {
s... | using System;
using System.Collections.Generic;
namespace CSharp {
class Program {
static void Main() {
var N = int.Parse(Console.ReadLine());
var P = Console.ReadLine().Replace(" ", "");
var Q = Console.ReadLine().Replace(" ", "");
var s = string.Empty;
for (int i = 1; i < N + 1; i++) {
s... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["-", 75, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+"... | 8 | 288 |
using System;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
using static System.Math;
using System.Numerics;
static class Program {
const int mod = (int)1e9 + 7;
static void Main() {
... | using System;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
using static System.Math;
using System.Numerics;
static class Program {
const int mod = (int)1e9 + 7;
static void Main() {
... | [["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], [... | 8 | 1,467 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 0, 198, 0, 200, 0, 212... | 8 | 450 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
List<string> input = Console.ReadLine().Split(' ').ToList();
StringBuilder s = new StringBuilder();
s.Append(input[0]);
s.Append(input[1]);
Console.WriteLine(s)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
StringBuilder s = new StringBuilder();
s.Append(input[1]);
s.Append(input[0]);
Console.WriteLine(s);
}
}
| [["-", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 47], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 2... | 8 | 93 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
List<string> input = Console.ReadLine().Split(' ').ToList();
StringBuilder s = new StringBuilder();
s.Append(input[0]);
s.Append(input[1]);
Console.WriteLine(s)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
List<string> input = Console.ReadLine().Split(' ').ToList();
StringBuilder s = new StringBuilder();
s.Append(input[1]);
s.Append(input[0]);
Console.WriteLine(s)... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 93 |
using System;
namespace Otoshidama {
class Program {
static void Main(string[] args) {
// var exStdIn = new System.IO.StreamReader("stdin.txt");
// System.Console.SetIn(exStdIn);
var input = Console.ReadLine();
var S = int.Parse(input.Split(' ')[0]);
var T = int.Parse(input.Split(' ')[1]);
... | using System;
namespace Otoshidama {
class Program {
static void Main(string[] args) {
// var exStdIn = new System.IO.StreamReader("stdin.txt");
// System.Console.SetIn(exStdIn);
var input = Console.ReadLine();
var S = input.Split(' ')[0];
var T = input.Split(' ')[1];
Console.WriteLine(T + ... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25]] | 8 | 97 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC149 {
class Program {
static void Main(string[] args) { a(); }
public static void a() {
string[] st = Console.ReadLine().Split(' ');
string ans = "";
ans += st[0];
ans +... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC149 {
class Program {
static void Main(string[] args) { a(); }
public static void a() {
string[] st = Console.ReadLine().Split(' ');
string ans = "";
ans += st[1];
ans +... | [["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, ... | 8 | 289 |
using System;
namespace Kyopuro {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int H = int.Parse(str[0]);
int W = int.Parse(str[1]);
string[] map = new string[H];
bool[][] isRoad = new bool [H + 2][]; //あるマスは道か
int[][] count = new int [H +... | using System;
namespace Kyopuro {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int H = int.Parse(str[0]);
int W = int.Parse(str[1]);
string[] map = new string[H];
bool[][] isRoad = new bool [H + 2][]; //あるマスは道か
int[][] count = new int [H +... | [["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 8, 196, 0, 1, 0, 11, 12, 211, 0, 146], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 15, 22], ["-", 8, 196, 0,... | 8 | 732 |
using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
private static long mod = 1000000007;
static void Main(string[] args) {
var com = new ModCombination();
var r1 = ReadSplit();... | using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
private static long mod = 1000000007;
static void Main(string[] args) {
var com = new ModCombination();
var r1 = ReadSplit();... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0,... | 8 | 829 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int k = int.Parse(input[1]);
List<int> A =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int k = int.Parse(input[1]);
List<int> A =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 64, 93, 0, 94], ["-", 0, 7, 8,... | 8 | 587 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC150 {
class Program {
static void Main(string[] args) {
int K, N;
var word = Console.ReadLine().Split(' ');
K = int.Parse(word[0]);
N = int.Parse(word[1]);
if (500 * K ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC150 {
class Program {
static void Main(string[] args) {
int K, N;
var word = Console.ReadLine().Split(' ');
K = int.Parse(word[0]);
N = int.Parse(word[1]);
if (500 * K ... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 57, 75, 1, 0, 213, 3, 4, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 75, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], [... | 8 | 118 |
using System;
namespace vscode {
class Program {
static void Main(string[] args) {
int length = int.Parse(Console.ReadLine());
string testee = Console.ReadLine();
int cntAbc = matchWords(testee.ToCharArray(), "ABC".ToCharArray(), length);
Console.WriteLine(cntAbc);
}
static int matchWords(char... | using System;
namespace vscode {
class Program {
static void Main(string[] args) {
int length = int.Parse(Console.ReadLine());
string testee = Console.ReadLine();
int cntAbc = matchWords(testee.ToCharArray(), "ABC".ToCharArray(), length);
Console.WriteLine(cntAbc);
}
static int matchWords(char... | [["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 75, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 75, 196, 0, 57, 15, 16... | 8 | 176 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace atcoder {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var str = Console.ReadLine();
var cnt = 0;
for (var i = 0; i < n; i++) {
if (i + 2 < n && str[i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace atcoder {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var str = Console.ReadLine();
var cnt = 0;
for (var i = 0; i < n - 2; i++) {
if (str[i] == 'A' ... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 72], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 1... | 8 | 138 |
using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var num = int.Parse(Console.ReadLine());
var text = Console.ReadLine();
var ans = 0;
for (var i = 0; num > i; i++) {
if ((num - i) > 3) {
if ((text[i] == 'A') && (text[i + 1] == 'B') && (text[i + 2] ... | using System;
using System.Collections.Generic;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var num = int.Parse(Console.ReadLine());
var text = Console.ReadLine();
var ans = 0;
for (var i = 0; num > i; i++) {
if ((num - i) > 2) {
if ((text[i] == 'A') && (te... | [["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, ... | 8 | 127 |
using System;
using System.IO;
class Solve {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var robos = new(int right, int left)[N];
for (int i = 0; i < N; i++) {
var arr = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
robos[i] = (arr[0] + arr[1], arr[0] -... | using System;
using System.IO;
class Solve {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var robos = new(int right, int left)[N];
for (int i = 0; i < N; i++) {
var arr = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
robos[i] = (arr[0] + arr[1], arr[0] -... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 200, 0, 212, 0, 214, 205, 204, 205, 22], ["-", 0, 212, 0, 214, 205, 204, 206, 207, 0, 70], ["-", 0, 214, 205, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 212, 0, 214, 205, 204, 206, 207, 0, 73], ["+", 0, 198, 0, 200, 0, 2... | 8 | 222 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using static System.Math;
using System.Linq;
using static System.Array;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
// var NKMR = Console.ReadLine... | using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using static System.Math;
using System.Linq;
using static System.Array;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
// var NKMR = Console.ReadLine... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 15, 16, 31, 16, 31, 214, 205, 204, 205, 22], ["+", 31, 16, 31, 214, 205, 204, 206, 2... | 8 | 240 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class QuestionD {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Co... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class QuestionD {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Co... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["... | 8 | 305 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace AtCoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return long.P... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace AtCoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return long.P... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 57, 64, 196, 0, 1, 0, 241, 0, 68], ["-", 0, 57, 64, 196, 0, 1, 0, 241, 0, 2... | 8 | 403 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public class Robot {
public long Pos { get; set; }
public long Arm { get; set; }
}
public static void Main(string[] args) {
var n = Console.ReadLine(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public class Robot {
public long Pos { get; set; }
public long Arm { get; set; }
}
public static void Main(string[] args) {
var n = Console.ReadLine(... | [["+", 51, 23, 0, 16, 31, 16, 31, 16, 17, 72], ["+", 0, 16, 31, 16, 31, 16, 12, 214, 205, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 214, 0, 131], ["+", 0, 16, 31, 16, 31, 16, 12, 214, 141, 22], ["+", 0, 218, 8, 74, 51, 23, 0, 16, 17, 33], ["+", 8, 74, 51, 23, 0, 16, 12, 214, 205, 22], ["+", 8, 74, 51, 23, 0, 16, 12, 214, 0... | 8 | 482 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using static System.Console;
using static System.Math;
using static MyIO;
using static MyUtil;
public class B {
public static void Main() => (new Solver()).Solve();
}
public class Solver {
p... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using static System.Console;
using static System.Math;
using static MyIO;
using static MyUtil;
public class B {
public static void Main() => (new Solver()).Solve();
}
public class Solver {
p... | [["-", 0, 218, 8, 41, 15, 16, 31, 214, 205, 22], ["+", 0, 218, 8, 41, 15, 16, 31, 214, 205, 22], ["-", 0, 218, 8, 41, 15, 16, 12, 214, 205, 22], ["+", 0, 218, 8, 41, 15, 16, 12, 214, 205, 22], ["-", 8, 41, 64, 213, 63, 214, 205, 214, 205, 22], ["+", 8, 41, 64, 213, 63, 214, 205, 214, 205, 22], ["-", 64, 213, 3, 4, 0, 2... | 8 | 776 |
using System;
namespace abc151A {
class MainClass {
public static void Main(string[] args) {
string A = Console.ReadLine();
switch (A) {
case "a":
Console.WriteLine("b");
break;
case "b":
Console.WriteLine("c");
break;
case "c":
Console.WriteLine("d");
break;
... | using System;
namespace abc151A {
class MainClass {
public static void Main(string[] args) {
string A = Console.ReadLine();
switch (A) {
case "a":
Console.WriteLine("b");
break;
case "b":
Console.WriteLine("c");
break;
case "c":
Console.WriteLine("d");
break;
... | [["+", 8, 254, 0, 239, 0, 264, 0, 5, 0, 222], ["+", 8, 254, 0, 239, 0, 264, 0, 5, 0, 62], ["+", 0, 99, 8, 254, 0, 239, 0, 264, 0, 102], ["+", 0, 239, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 0, 239, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 0, 239, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 239, 0, 1, 0, 213, 3, 4, 0, 24], ["... | 8 | 422 |
using System;
namespace ConsoleApp6 {
class Program {
static void Main(string[] args) {
string n;
n = Console.ReadLine();
if (n == "a")
Console.WriteLine("b");
if (n == "b")
Console.WriteLine("c");
if (n == "c")
Console.WriteLine("d");
if (n == "d")
Console.WriteLine("... | using System;
namespace ConsoleApp6 {
class Program {
static void Main(string[] args) {
string n;
n = Console.ReadLine();
if (n == "a")
Console.WriteLine("b");
if (n == "b")
Console.WriteLine("c");
if (n == "c")
Console.WriteLine("d");
if (n == "d")
Console.WriteLine("... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 458 |
/*********************************************
* c# template
*20.06.13 AtCoder Beginner Contest 151. C, D (c#)
*********************************************/
namespace TempName {
using System;
using System.Linq;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using static System.Consol... | /*********************************************
* c# template
*20.06.13 AtCoder Beginner Contest 151. C, D (c#)
*********************************************/
namespace TempName {
using System;
using System.Linq;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using static System.Consol... | [["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], ["+", 0, 57, 75, 57, 64, 196, 0, 1, 0, 35],... | 8 | 882 |
using System;
using System.Collections.Generic;
public class AchieveTheGoal {
public static void Main() {
string[] line = Console.ReadLine().Split(' ');
int N = int.Parse(line[0]);
int M = int.Parse(line[1]);
int correctNum = 0;
int totalPenalty = 0;
Dictionary<int, bool> isCorrect = new Dict... | using System;
using System.Collections.Generic;
public class AchieveTheGoal {
public static void Main() {
string[] line = Console.ReadLine().Split(' ');
int N = int.Parse(line[0]);
int M = int.Parse(line[1]);
int correctNum = 0;
int totalPenalty = 0;
Dictionary<int, bool> isCorrect = new Dict... | [["+", 0, 57, 75, 57, 64, 196, 0, 57, 0, 121], ["+", 0, 57, 75, 57, 64, 196, 0, 57, 0, 24], ["+", 64, 196, 0, 57, 15, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 57, 15, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 57, 15, 213, 3, 4, 0, 24], ["+", 0, 57, 15, 213, 3, 4, 0, 28,... | 8 | 250 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
partial class Program {
static long mod = 1000000007;
static void Swap<T>(ref T a, ref T b) {
T temp = a;
a = b;
b = temp;
}
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
partial class Program {
static long mod = 1000000007;
static void Swap<T>(ref T a, ref T b) {
T temp = a;
a = b;
b = temp;
}
... | [["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, ... | 8 | 1,547 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
public class Hello {
static public int mod = 1000000007;
public static void Main() {
long[] read = longa();
long num = read[0];
long a = read[1];
long ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
public class Hello {
static public int mod = 1000000007;
public static void Main() {
long[] read = longa();
long num = read[0];
long a = read[1];
long ... | [["-", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, ... | 8 | 909 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Algorithm {
class Program {
static void Main(string[] args) {
var l = Console.ReadLine().Split().Select(long.Parse).ToArray();
long N = l[0], A = l[1], B = l[2];
var left = B - 1;
var right = N - A;
var add = 0L;
i... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Algorithm {
class Program {
static void Main(string[] args) {
var l = Console.ReadLine().Split().Select(long.Parse).ToArray();
long N = l[0], A = l[1], B = l[2];
var add = 0L;
if ((B - A) % 2 == 1) {
if (A - 1 <= N - ... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0... | 8 | 186 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using System.Runtime.CompilerServices;
using ll = System.Int64;
using static MyIO;
public class Contest {
static void Swap1<T>(ref T a, ref T b) {
T t = a;
a = b;
b = t;
}
static void Swap... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using System.Runtime.CompilerServices;
using ll = System.Int64;
using static MyIO;
public class Contest {
static void Swap1<T>(ref T a, ref T b) {
T t = a;
a = b;
b = t;
}
static void Swap... | [["-", 12, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 0, 11, 12, 16, 31, 213, 3, 4, 0, 25], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 11, 12, 16, 12, 16, 31, 23, 0, 24], ["+", 12,... | 8 | 2,532 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AC {
class Program {
static void Main(string[] args) {
var input = ReadArrayLong();
var N = input[0];
var A = input[1];
var B = input[2];
var dif = B - A;
var ans = 0L;
if (dif % 2 == 0)
ans = dif / 2;
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AC {
class Program {
static void Main(string[] args) {
var input = ReadArrayLong();
var N = input[0];
var A = input[1];
var B = input[2];
var dif = B - A;
var ans = 0L;
if (dif % 2 == 0)
ans = dif / 2;
... | [["-", 0, 57, 75, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 31, 22], ["-", 0... | 8 | 278 |
using System;
class A {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int N = int.Parse(s[0]);
int A = int.Parse(s[1]);
int B = int.Parse(s[2]);
int a = A - 1;
int b = N - B;
int c = ((a - b) > 0) ? b : a;
if ((B - A) % 2 == 0) {
Console.WriteLin... | using System;
class A {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
long N = long.Parse(s[0]);
long A = long.Parse(s[1]);
long B = long.Parse(s[2]);
long a = A - 1;
long b = N - B;
long c = ((a - b) > 0) ? b : a;
if ((B - A) % 2 == 0) {
Console... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]] | 8 | 166 |
using System;
using System.Linq;
namespace AGC041 {
class A {
static void Main(string[] args) {
long[] input = Console.ReadLine().Split().Select(long.Parse).ToArray();
long N = input[0];
long A = input[1];
long B = input[2];
if ((B - A) % 2 == 0) {
Console.WriteLine((B - A) / 2);
ret... | using System;
using System.Linq;
namespace AGC041 {
class A {
static void Main(string[] args) {
long[] input = Console.ReadLine().Split().Select(long.Parse).ToArray();
long N = input[0];
long A = input[1];
long B = input[2];
if ((B - A) % 2 == 0) {
Console.WriteLine((B - A) / 2);
ret... | [["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 0, 16, 12, 23, 0, 16, 12, 23, 0, 24], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 17, 33], ["+", 0, 16, 12, 23, 0, 16, 12, 23, 0, 25], ["+", 0, 11, 12, 16, 12, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 17, 85], ["+", 0... | 8 | 196 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp5 {
class Program {
static void Main(string[] args) {
String S = Console.ReadLine();
String[] line = S.Split(' ');
long N = long.Parse(line[0]);
long A = long.Parse... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp5 {
class Program {
static void Main(string[] args) {
String S = Console.ReadLine();
String[] line = S.Split(' ');
long N = long.Parse(line[0]);
long A = long.Parse... | [["+", 75, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 12, 22], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 2... | 8 | 169 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
checked {
var N = sc.ReadLong();
var A = sc.ReadLong();
var B = sc.ReadLong();
var d = B - A;
if (d % 2 == 0) {
Console.WriteLine(d / 2);
} else {
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
checked {
var N = sc.ReadLong();
var A = sc.ReadLong();
var B = sc.ReadLong();
var d = B - A;
if (d % 2 == 0) {
Console.WriteLine(d / 2);
} else {
... | [["+", 75, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 31... | 8 | 1,182 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
string[] a = Console.ReadLine().Split(' ');
long N = long.Parse(a[0]);
long A = long.Parse(a[1]);
long B = long.Parse(a[2]);
long min = long.MaxValue;
if (Math.Abs(A - B) % 2 == 0) {
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
string[] a = Console.ReadLine().Split(' ');
long N = long.Parse(a[0]);
long A = long.Parse(a[1]);
long B = long.Parse(a[2]);
long min = long.MaxValue;
if (Math.Abs(A - B) % 2 == 0) {
... | [["-", 75, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 75, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["-", 15, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 75, 196, 0, 57, 15, 16, ... | 8 | 269 |
using System;
using System.Collections.Generic;
using System.Linq;
// namespaceの値をコンテスト名にして運用
namespace AGC041A {
class Input {
/// <summary>
/// 1行の入力を取得する
/// </summary>
/// <returns>文字列</returns>
public string String() { return Console.ReadLine(); }
/// <summary>
/// 複数行の入力を取得
/// </summary>
/// ... | using System;
using System.Collections.Generic;
using System.Linq;
// namespaceの値をコンテスト名にして運用
namespace AGC041A {
class Input {
/// <summary>
/// 1行の入力を取得する
/// </summary>
/// <returns>文字列</returns>
public string String() { return Console.ReadLine(); }
/// <summary>
/// 複数行の入力を取得
/// </summary>
/// ... | [["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 31, 203], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 17, 33], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+",... | 8 | 859 |
// ReSharper disable ArrangeTypeMemberModifiers
// ReSharper disable ConvertIfStatementToSwitchStatement
// ReSharper disable FunctionRecursiveOnAllPaths
// ReSharper disable InconsistentNaming
// ReSharper disable InlineOutVariableDeclaration
// ReSharper disable InvertIf
// ReSharper disable JoinDeclarationAndInitial... | // ReSharper disable ArrangeTypeMemberModifiers
// ReSharper disable ConvertIfStatementToSwitchStatement
// ReSharper disable FunctionRecursiveOnAllPaths
// ReSharper disable InconsistentNaming
// ReSharper disable InlineOutVariableDeclaration
// ReSharper disable InvertIf
// ReSharper disable JoinDeclarationAndInitial... | [["-", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 75, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 0, 11, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["+... | 8 | 3,994 |
using System;
using System.Linq;
using System.Numerics;
using System.Collections.Generic;
using System.IO;
using System.Text;
using N = System.Int64;
public class Solver {
public void Solve() {
N n = rl;
N a = rl;
N b = rl;
if ((a - b) % 2 == 0) {
Write(Math.Abs(a - b) / 2);
} else {
... | using System;
using System.Linq;
using System.Numerics;
using System.Collections.Generic;
using System.IO;
using System.Text;
using N = System.Int64;
public class Solver {
public void Solve() {
N n = rl;
N a = rl;
N b = rl;
if ((a - b) % 2 == 0) {
Write(Math.Abs(a - b) / 2);
} else {
... | [["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 31, 203], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 48], ["+", ... | 8 | 694 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static System.Math;
using System.Text;
using System.Threading;
using System.Globalization;
using System.Runtime.CompilerServices;
using Library;
namespace Program {
public static class AGC041A {
static public int numberOfRandom... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static System.Math;
using System.Text;
using System.Threading;
using System.Globalization;
using System.Runtime.CompilerServices;
using Library;
namespace Program {
public static class AGC041A {
static public int numberOfRandom... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 15, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["-", 15, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 12, 22], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 31, ... | 8 | 760 |
using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace AGC041B {
class Program {
static void Main(string[] args) {
var N = RInt;
var M = RInt;
var V = RInt;
var P = RInt;
var A = RInts.OrderByDescen... | using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace AGC041B {
class Program {
static void Main(string[] args) {
var N = RInt;
var M = RLong;
var V = RInt;
var P = RInt;
var A = RLongs.OrderByDesc... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 1... | 8 | 1,301 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using System.Runtime.CompilerServices;
using ll = System.Int64;
using static MyIO;
public class Contest {
static void Swap1<T>(ref T a, ref T b) {
T t = a;
a = b;
b = t;
}
static void Swap... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using System.Runtime.CompilerServices;
using ll = System.Int64;
using static MyIO;
public class Contest {
static void Swap1<T>(ref T a, ref T b) {
T t = a;
a = b;
b = t;
}
static void Swap... | [["-", 8, 196, 0, 57, 64, 37, 0, 214, 205, 199], ["+", 8, 196, 0, 57, 64, 37, 0, 214, 205, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["+", 0, 212, 0, 218, 8, 196, 0, 57, 0, ... | 8 | 2,602 |
using System;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
using static System.Math;
using System.Numerics;
static class Program {
const int mod = (int)1e9 + 7;
static void Main() {
... | using System;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
using static System.Math;
using System.Numerics;
static class Program {
const int mod = (int)1e9 + 7;
static void Main() {
... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 1... | 8 | 1,244 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace AtCoder {
class Program {
public static void Main() {
#if TextInput
using (var reader = new StreamReader(Debug.SampleTextPath)) {
Console.SetIn(reader);
#endif
var intArray = IO.ReadIntArray();
int A =... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace AtCoder {
class Program {
public static void Main() {
#if TextInput
using (var reader = new StreamReader(Debug.SampleTextPath)) {
Console.SetIn(reader);
#endif
var A = IO.ReadInt();
var B = IO.ReadInt(... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 311, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0... | 8 | 1,229 |
using System;
namespace abca148 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
if (a == 1 && b == 2)
Console.WriteLine("3");
if (a == 1 && b == 3)
Console.WriteLine("2");
if (a... | using System;
namespace abca148 {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
if (a == 1 && b == 2)
Console.WriteLine("3");
if (a == 1 && b == 3)
Console.WriteLine("2");
if (a == 2 && b == 1)
Co... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 0, 213, 63, 214, 205... | 8 | 186 |
using System;
using AtCorder;
namespace AtCorder {
class Program {
static void Main(string[] args) { new Program().Solve(); }
public void Solve() {
var input1 = int.Parse(Console.ReadLine());
var input2 = int.Parse(Console.ReadLine());
}
}
}
| using System;
using AtCorder;
namespace AtCorder {
class Program {
static void Main(string[] args) { new Program().Solve(); }
public void Solve() {
var input1 = int.Parse(Console.ReadLine());
var input2 = int.Parse(Console.ReadLine());
Console.WriteLine(6 - input1 - input2);
}
}
}
| [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 31, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 0... | 8 | 69 |
using System;
class abc148_a {
public static void Main() {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
if (a == 1) {
if (b == 2) {
Console.WriteLine(3);
} else {
Console.WriteLine(2);
}
}
if (a == 2) {
if (b == 1) {
... | using System;
class abc148_a {
public static void Main() {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
if (a == 1) {
if (b == 2) {
Console.WriteLine(3);
} else if (b == 3) {
Console.WriteLine(2);
}
}
if (a == 2) {
if (b == 1... | [["+", 0, 57, 64, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 57, 64, 196, 0, 57, 75, 57, 0, 24], ["+", 64, 196, 0, 57, 75, 57, 15, 16, 31, 22], ["+", 64, 196, 0, 57, 75, 57, 15, 16, 17, 60], ["+", 64, 196, 0, 57, 75, 57, 15, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 57, 75, 57, 0, 25], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203],... | 8 | 142 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace StringsLength {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
var st = Console.ReadLine().Split();
char[] S = st[0].ToCharArray();
char[] T = st[1].ToCharArray();
string output ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace StringsLength {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
var st = Console.ReadLine().Split();
char[] S = st[0].ToCharArray();
char[] T = st[1].ToCharArray();
var output = "... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 11, 12, 16, 12, 213, 63, 214,... | 8 | 130 |
using System;
using System.Collections;
using System.Collections.Generic;
using static Exter;
using System.Linq;
using System.Numerics;
#if DEBUG
#else
using console = System.Console;
#endif
public class App {
public static void Main(string[] args) {
int n = (int)readarr[0];
string[] s = console.ReadLine().S... | using System;
using System.Collections;
using System.Collections.Generic;
using static Exter;
using System.Linq;
using System.Numerics;
#if DEBUG
#else
using console = System.Console;
#endif
public class App {
public static void Main(string[] args) {
int n = (int)readarr[0];
string[] s = console.ReadLine().S... | [["+", 0, 28, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 12, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 74, 39, 199], ["+", 3, 4, 0... | 8 | 1,654 |
using System;
using System.Text;
namespace abc148_b {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string[] ss = Console.ReadLine().Split(' ');
string S = ss[0];
string T = ss[1];
StringBuilder sb = new StringBuilder();
for (int i = 0; i < S.Length... | using System;
using System.Text;
namespace abc148_b {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string[] ss = Console.ReadLine().Split(' ');
string S = ss[0];
string T = ss[1];
StringBuilder sb = new StringBuilder();
for (int i = 0; i < S.Length... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["-... | 8 | 141 |
using System;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace 自作プログラムテスト {
class Program {
static void Main(string[] args) {
int N = int.Parse(ReadLine());
string[] reader_I = ReadLine().Split(' ');
string S = re... | using System;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace 自作プログラムテスト {
class Program {
static void Main(string[] args) {
int N = int.Parse(ReadLine());
string[] reader_I = ReadLine().Split(' ');
string S = re... | [["-", 0, 11, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 16, 31, 213, 3, 4, 0, 24], ["-", 0, 11, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 11, 12, 16, 31, 213, 3, 4, 0, 21], ["+", 12, 16, 31, 213, 3, 4, 0, 28, 0,... | 8 | 136 |
using System;
using System.Linq;
namespace CSharp {
class Program {
static void Main() {
var N = int.Parse(Console.ReadLine());
var input = Console.ReadLine().Split(' ').ToArray();
var S = input[0];
var T = input[1];
var result = string.Empty;
for (int i = 0; i < N; i++) {
result += S[... | using System;
using System.Linq;
namespace CSharp {
class Program {
static void Main() {
var N = int.Parse(Console.ReadLine());
var input = Console.ReadLine().Split(' ').ToArray();
var S = input[0];
var T = input[1];
var result = string.Empty;
for (int i = 0; i < N; i++) {
result += S[... | [["+", 0, 11, 12, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 11, 12, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 11, 12, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 16, 12, 213, 3, 4, 0... | 8 | 115 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC149B {
class Program {
static void Main(string[] args) {
string[] ABK = Console.ReadLine().Split(' ');
long A = long.Parse(ABK[0]);
long B = long.Parse(ABK[1]);
long K = lo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC149B {
class Program {
static void Main(string[] args) {
string[] ABK = Console.ReadLine().Split(' ');
long A = long.Parse(ABK[0]);
long B = long.Parse(ABK[1]);
long K = lo... | [["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 72], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 20], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 22]... | 8 | 175 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
long[] read = longa();
if (read[2] > read[0]) {
read[0] = 0;
read[2] -= read[0];
} else {
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
long[] read = longa();
if (read[2] > read[0]) {
read[2] -= read[0];
read[0] = 0;
} else {
... | [["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203... | 8 | 679 |
using System;
namespace ConsoleApp11 {
class MainClass {
public static void Main() {
string[] S = Console.ReadLine().Split();
long A = long.Parse(S[0]);
long B = long.Parse(S[1]);
long K = long.Parse(S[2]);
for (long l = 0; l < K; l++) {
if (A > K)
A -= K;
else if (B > K - A)... | using System;
namespace ConsoleApp11 {
class MainClass {
public static void Main() {
string[] S = Console.ReadLine().Split();
long A = long.Parse(S[0]);
long B = long.Parse(S[1]);
long K = long.Parse(S[2]);
if (A > K)
A -= K;
else if (B > K - A) {
K -= A;
A = 0;
B -= ... | [["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["... | 8 | 148 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace cswork {
class Program {
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Leng... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace cswork {
class Program {
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Leng... | [["+", 0, 28, 0, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 21], ["+", 12, 213, 3, 4, 0, 28, 0, 23, 0, 24], ["+", 12, 213, 3, 4, 0, 28, 0, 23, 0, 25]] | 8 | 575 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC149B {
class Program {
static void Main(string[] args) {
var ABK = ReadLong();
long A = ABK[0];
long B = ABK[1];
long K = ABK[2];
long a, b;
if (K <= A) {
a = A - K;
b = B;
} else {
a = 0;
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC149B {
class Program {
static void Main(string[] args) {
var ABK = ReadLong();
long A = ABK[0];
long B = ABK[1];
long K = ABK[2];
long a, b;
if (K <= A) {
a = A - K;
b = B;
} else {
a = 0;
... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ... | 8 | 198 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
class GreedyTakahashi {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var takahashi = long.Parse(input[0]);
var aoki = long.Parse(input[1]);
var times = long.Parse(input[2]);
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
class GreedyTakahashi {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var takahashi = long.Parse(input[0]);
var aoki = long.Parse(input[1]);
var times = long.Parse(input[2]);
... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 135 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static void Main(string[] args) {
try {
Solve.Answer();
} catch (Exception ex) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static void Main(string[] args) {
try {
Solve.Answer();
} catch (Exception ex) {
... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 64, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 64, 196, 0, 57, 15, 1... | 8 | 1,092 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace B {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace B {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 23, 0, 24], ["+", 0, 11, 12, 23, 0, 41, 15, 16, 31, 22], ["+", 0, 11, 12, 23, 0, 41, 15, 16, 17, 18], ["+", 0, 11, 12, 23, 0, 41, 15, 16, 12, 203], ["+", 0, 1, 0, 11, 12, 23, 0, 41, 0, 101], ["+", 0, 1... | 8 | 178 |
using System;
class ABC149 {
static void Main() {
string input = Console.ReadLine();
string[] inputA = input.Split(' ');
long A = (long)int.Parse(inputA[0]);
long B = (long)int.Parse(inputA[1]);
long K = (long)int.Parse(inputA[2]);
if (A == 0 && B == 0) {
Console.WriteLine(A + " " + B)... | using System;
class ABC149 {
static void Main() {
string input = Console.ReadLine();
string[] inputA = input.Split(' ');
long A = long.Parse(inputA[0]);
long B = long.Parse(inputA[1]);
long K = long.Parse(inputA[2]);
if (A == 0 && B == 0) {
Console.WriteLine(A + " " + B);
return;... | [["-", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["-", 0, 212, 0, 74, 51, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24... | 8 | 196 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderCs {
class Program {
static void Main() {
var Arg =
Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
if (Arg[0] < Arg[2]) {
Arg[2] -= Arg[0];
Arg[0] = 0;
if (Arg[1] < Arg[2]) {... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderCs {
class Program {
static void Main() {
var Arg =
Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
if (Arg[0] < Arg[2]) {
Arg[2] -= Arg[0];
Arg[0] = 0;
if (Arg[1] < Arg[2]) {... | [["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 157 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Cookies {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split();
long takahashiCookies = long.Parse(input[0]);
long aokiCookies = long.Parse(input[1]);
long requiredActions = long.Parse(in... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Cookies {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split();
long takahashiCookies = long.Parse(input[0]);
long aokiCookies = long.Parse(input[1]);
long requiredActions = long.Parse(in... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 123 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split();
var A = long.Parse(input[0]);
var B = long.Parse(input[1]);
var K = long.Parse(input[2]);
if (K <= A) {
Console.WriteLine(A - K + " "... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split();
var A = long.Parse(input[0]);
var B = long.Parse(input[1]);
var K = long.Parse(input[2]);
if (K <= A) {
Console.WriteLine(A - K + " "... | [["+", 0, 28, 0, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 21], ["+", 12, 213, 3, 4, 0, 28, 0, 23, 0, 24], ["+", 0, 28, 0, 23, 0, 16, 12, 23, 0, 25]] | 8 | 127 |
using System;
using System.Collections.Generic;
using System.Linq;
// namespaceの値をコンテスト名にして運用
namespace ABC149B {
class Input {
/// <summary>
/// 1行の入力を取得する
/// </summary>
/// <returns>文字列</returns>
public string String() { return Console.ReadLine(); }
/// <summary>
/// 複数行の入力を取得
/// </summary>
/// ... | using System;
using System.Collections.Generic;
using System.Linq;
// namespaceの値をコンテスト名にして運用
namespace ABC149B {
class Input {
/// <summary>
/// 1行の入力を取得する
/// </summary>
/// <returns>文字列</returns>
public string String() { return Console.ReadLine(); }
/// <summary>
/// 複数行の入力を取得
/// </summary>
/// ... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 3... | 8 | 879 |
using System;
namespace abcb149 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
double a = double.Parse(str[0]);
double b = double.Parse(str[1]);
double k = double.Parse(str[2]);
double u = b - (k - a);
if (u < 0)
b = 0;
if (k > a)
... | using System;
namespace abcb149 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
double a = double.Parse(str[0]);
double b = double.Parse(str[1]);
double k = double.Parse(str[2]);
double u = b - (k - a);
if (a + b < k)
Console.WriteLine("... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 205, 22... | 8 | 147 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
class Program {
static void Main(string[] args) {
var wrong_answer = new wrong_answer();
wrong_answer.Solve();
}
}
public class wrong_answer {
const int INF = 1 << 3... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
class Program {
static void Main(string[] args) {
var wrong_answer = new wrong_answer();
wrong_answer.Solve();
}
}
public class wrong_answer {
const int INF = 1 << 3... | [["+", 12, 23, 0, 16, 12, 213, 63, 214, 205, 22], ["+", 12, 23, 0, 16, 12, 213, 63, 214, 0, 131], ["+", 12, 23, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 12, 23, 0, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 12, 23, 0, 16, 12, 213, 3, 4, 0, 21], ["+", 12, 23, 0, 16, 12, 213, 3, 4, 0, 25]... | 8 | 909 |
using System;
public class AtCoderB {
static void Main() {
long a;
long b;
long k;
{
var line = Console.ReadLine();
var words = line.Split(' ');
a = long.Parse(words[0]);
b = long.Parse(words[1]);
k = long.Parse(words[2]);
}
if (a >= k) {
a = a - k;
} ... | using System;
public class AtCoderB {
static void Main() {
long a;
long b;
long k;
{
var line = Console.ReadLine();
var words = line.Split(' ');
a = long.Parse(words[0]);
b = long.Parse(words[1]);
k = long.Parse(words[2]);
}
if (a >= k) {
a = a - k;
} ... | [["-", 75, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 75, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["-", 0, 57, 75, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 57, 75, 57, 64, 196, 0, 1, 0, 35], ["+", 75, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 7... | 8 | 145 |
using System;
namespace MyProgram {
class AtCoder {
public static void Main(string[] args) {
long[] input = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
long A = input[0];
long B = input[1];
long K = input[2];
if (A >= K) {
A -= K;
} else {
B -= K - A;
A = 0;... | using System;
namespace MyProgram {
class AtCoder {
public static void Main(string[] args) {
long[] input = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
long A = input[0];
long B = input[1];
long K = input[2];
if (A >= K) {
A -= K;
} else {
B -= K - A;
if (B ... | [["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 25], ["+", 0, 57, 75, 196, 0, 57, 64, 196, 0, 45]... | 8 | 112 |
using System.Linq;
using System;
using System.IO;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main(string[] args) => new Program().solve();
private void solve() {
var pram = ReadLine().Split(' ').Select(long.Parse).ToArray();
var a = pram[0];
var b = pram... | using System.Linq;
using System;
using System.IO;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main(string[] args) => new Program().solve();
private void solve() {
var pram = ReadLine().Split(' ').Select(long.Parse).ToArray();
var a = pram[0];
var b = pram... | [["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3... | 8 | 166 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
public class MainClass {
public static void Main() {
string line = System.Console.ReadLine();
string[] strs = line.Split(' ');
long A = long.Parse(strs[0]);
long B = long.Parse(strs[1]);
long K = long.Parse(strs[... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
public class MainClass {
public static void Main() {
string line = System.Console.ReadLine();
string[] strs = line.Split(' ');
long A = long.Parse(strs[0]);
long B = long.Parse(strs[1]);
long K = long.Parse(strs[... | [["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 25], ["+", 0, 57, 75, 196, 0, 57, 64, 196, 0, 45]... | 8 | 138 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public sealed class Begineer149 {
public static void Main() {
long[] ABK = Console.ReadLine()
.Split(new char[] { ' ' })
.Select(x => Convert.ToInt64(x))
.ToArray()... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public sealed class Begineer149 {
public static void Main() {
long[] ABK = Console.ReadLine()
.Split(new char[] { ' ' })
.Select(x => Convert.ToInt64(x))
.ToArray()... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0... | 8 | 146 |
using System;
class ProgramB {
static void Main(string[] args) {
//入力
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
int k = int.Parse(input[2]);
if (a >= k) {
Console.Write(a - k);
Console.Write(' ');
Console.Write... | using System;
using System;
class ProgramB {
static void Main(string[] args) {
//入力
string[] input = Console.ReadLine().Split(' ');
long a = long.Parse(input[0]);
long b = long.Parse(input[1]);
long k = long.Parse(input[2]);
if (a >= k) {
Console.Write(a - k);
Console.Write(' ');... | [["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63... | 8 | 161 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace atcorder {
class Program {
static void Main(string[] args) {
string[] strArray = Console.ReadLine().Split(' ');
double A = Int64.Parse(strArray[0]);
double B = Int64.Parse(strArr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace atcorder {
class Program {
static void Main(string[] args) {
string[] strArray = Console.ReadLine().Split(' ');
double A = Int64.Parse(strArray[0]);
double B = Int64.Parse(strArr... | [["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 197, ... | 8 | 186 |
using System;
namespace GreedyTakahashi {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
var A = long.Parse(input.Split(' ')[0]);
var B = long.Parse(input.Split(' ')[1]);
var K = long.Parse(input.Split(' ')[2]);
if (A == 0 && B == 0) {
Console.WriteLine(... | using System;
namespace GreedyTakahashi {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
var A = long.Parse(input.Split(' ')[0]);
var B = long.Parse(input.Split(' ')[1]);
var K = long.Parse(input.Split(' ')[2]);
if (A == 0 && B == 0) {
Console.WriteLine(... | [["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 25], ["+", 75, 196, 0, 57, 64, 1, 0, 11, 31, 22],... | 8 | 163 |
using System;
namespace AtCoder_Begginer_Contest1 {
class Program {
static void Main(string[] args) {
string[] ABK = Console.ReadLine().Split();
long A = long.Parse(ABK[0]);
long B = long.Parse(ABK[1]);
long K = long.Parse(ABK[2]);
if (A >= K)
A = A - K;
else if (B + A > K) {
A = ... | using System;
using System.Linq;
namespace AtCoder_Begginer_Contest1 {
class Program {
static void Main(string[] args) {
string[] ABK = Console.ReadLine().Split();
long A = long.Parse(ABK[0]);
long B = long.Parse(ABK[1]);
long K = long.Parse(ABK[2]);
if (A >= K) {
A = A - K;
} else if (B... | [["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 57, 64... | 8 | 138 |
using System;
class B {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
long A = long.Parse(s[0]);
long B = long.Parse(s[1]);
long K = long.Parse(s[2]);
long a = ((A - K) >= 0) ? (A - K) : 0;
long b = (a == 0) ? ((A + B) - K) : B;
Console.WriteLine(a + " " +... | using System;
class B {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
long A = long.Parse(s[0]);
long B = long.Parse(s[1]);
long K = long.Parse(s[2]);
long a = ((A - K) >= 0) ? (A - K) : 0;
long b = (a == 0) ? ((A + B) - K) : B;
if (b < 0) {
b = 0;
... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 130 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var ABK = Io.ReadList<long>();
var A = ABK[0];
var B = ABK[1];
var K = ABK[2];
var a = Math.Max(A - K, 0);
var b = B - Math.Max(K - A, 0);
var output =... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var ABK = Io.ReadList<long>();
var A = ABK[0];
var B = ABK[1];
var K = ABK[2];
var a = Math.Max(A - K, 0);
var b = Math.Max(B - Math.Max(K - A, 0), 0);
... | [["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 21], ["+", 0, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 25]] | 8 | 454 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var abk = ReadLongs();
//高橋
var takahashi = abk[0];
//青木
var ao... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var abk = ReadLongs();
//高橋
var takahashi = abk[0];
//青木
var ao... | [["+", 0, 28, 0, 16, 31, 16, 31, 213, 63, 22], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 21], ["+", 31, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 25], ["+", 3, 4, 0, 28, 0, 16, 12, 213, 63, 22], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 24], ["+", 0, ... | 8 | 303 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
static void Main(string[] args) {
// var n = long.Parse(Console.ReadLine());
var ABK = Console.ReadLine().Split().Select(long.Parse).ToArray();
var A = ABK[0];
var B... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
static void Main(string[] args) {
// var n = long.Parse(Console.ReadLine());
var ABK = Console.ReadLine().Split().Select(long.Parse).ToArray();
var A = ABK[0];
var B... | [["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 18], ["+", 75, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 0, 57, 15, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 57, 15, 16, 12, 23, 0, 16, 12, 22], [... | 8 | 133 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ClassLibrary1 {
public class ListNode {
public int val;
public ListNode next;
public ListNode(int x) { val = x; }
}
public class Class1 {
static Dictionary<Tuple<long, long>, long> dic... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ClassLibrary1 {
public class ListNode {
public int val;
public ListNode next;
public ListNode(int x) { val = x; }
}
public class Class1 {
static Dictionary<Tuple<long, long>, long> dic... | [["-", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 5... | 8 | 471 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
long A = long.Parse(str[0]);
long B = long.Parse(str[1]);
long K = long.Parse(str[2]);
long a1 = Math.Min(A, K);
long a2 = K - a1;
A -= a1;
B -= ... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
long A = long.Parse(str[0]);
long B = long.Parse(str[1]);
long K = long.Parse(str[2]);
long a1 = Math.Min(A, K);
long a2 = Math.Min(B, K - a1);
A -= ... | [["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25]... | 8 | 119 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
public static readonly int[] Coefs = { 4, 2, 4, 2, 4, 6, 2, 6 };
private static void Main() {
var x = int.Parse(Console.ReadLine());
var primes = Sieve(10 * 10 * 10 * 10 * 10);
var answer = primes.First... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
public static readonly int[] Coefs = { 4, 2, 4, 2, 4, 6, 2, 6 };
private static void Main() {
var x = int.Parse(Console.ReadLine());
var primes = Sieve(100003);
var answer = primes.First(prime => prime ... | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 31, 203], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 48], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 28, 0, 16, 31, 16, 31, 16, 17, 48], ["-", 0, 28, 0, 16, 31, 16, 31, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 203], [... | 8 | 510 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderCs {
class Program {
static void Main() {
var Num = int.Parse(Console.ReadLine());
var End = (int)Math.Sqrt(Num) + 2;
var Continue = true;
if (Num == 2)
Console.WriteLine(2);
else if (Num % 2 == 0)
N... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderCs {
class Program {
static void Main() {
var Num = int.Parse(Console.ReadLine());
var End = (int)Math.Sqrt(Num) + 2;
var Continue = true;
if (Num == 2)
Console.WriteLine(2);
else if (Num % 2 == 0)
N... | [["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 15, 22], ["-", 8, 196, 0, 7, 26, 11, 0, 202, 0, 107], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 8, 196, 0, 57, 64, 196, 0, 52, 0, 89], ["+"... | 8 | 166 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace AtCoder {
static class Program {
static void Main() {
//ここから
var X = IO.ReadLineToInt();
int[] num = new int[X - 2];
int ans = 0;
for (int i = 0; i ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace AtCoder {
static class Program {
static void Main() {
//ここから
var X = IO.ReadLineToInt();
List<int> num = new List<int>();
int ans = 0;
for (int i = ... | [["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 47], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 212, 0, 230, 39,... | 8 | 776 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static List<int> list = new List<int>();
static void Main(string[] args) {
int x;
Input(out x);
list.Add(2);
int i = 3;
while (true) {
if (IsPrime(i)) {
if (i > x) {
Console.WriteLine(i);
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static List<int> list = new List<int>();
static void Main(string[] args) {
int x;
Input(out x);
list.Add(2);
if (x < 3) {
Console.WriteLine(2);
return;
}
int i = 3;
while (true) {
if (Is... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 832 |
using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
static void Main(string[] args) {
var r1 = ReadSplit();
var n = r1[0].ToInt();
var k = r1[1].ToInt();
var r2 = ReadSplit... | using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
static void Main(string[] args) {
var r1 = ReadSplit();
var n = r1[0].ToInt();
var k = r1[1].ToInt();
var r2 = ReadSplit... | [["-", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 0, 11, 12, 213, 63, 214, 205, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ... | 8 | 765 |
using System;
public class AtCoderD {
static void Main() {
int n;
int k;
{
var line = Console.ReadLine();
var words = line.Split(' ');
n = int.Parse(words[0]);
k = int.Parse(words[1]);
}
int r;
int s;
int p;
{
var line = Console.ReadLine();
var wor... | using System;
public class AtCoderD {
static void Main() {
int n;
int k;
{
var line = Console.ReadLine();
var words = line.Split(' ');
n = int.Parse(words[0]);
k = int.Parse(words[1]);
}
int r;
int s;
int p;
{
var line = Console.ReadLine();
var wor... | [["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["+", 0, 200, 0, 212, 0, 227, 3... | 8 | 305 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
struct mint : IEquatable<mint> {
// static uint mod = 998244353;
static uint mod = 1000000007;
uint _v;
public mint(long v) : this((uint)(v % mod + mod)) {}
private mint(uint v) { _v = v < mod ?... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
struct mint : IEquatable<mint> {
// static uint mod = 998244353;
static uint mod = 1000000007;
uint _v;
public mint(long v) : this((uint)(v % mod + mod)) {}
private mint(uint v) { _v = v < mod ?... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 6... | 8 | 3,578 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
class Program {
static void Main(string[] args) {
var wrong_answer = new wrong_answer();
wrong_answer.Solve();
}
}
public class wrong_answer {
const int INF = 1 << 3... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
class Program {
static void Main(string[] args) {
var wrong_answer = new wrong_answer();
wrong_answer.Solve();
}
}
public class wrong_answer {
const int INF = 1 << 3... | [["+", 75, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 75, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12... | 8 | 1,357 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Solution {
public static void Main() {
var vals = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var N = vals[0];
var K = vals[1];
vals = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var R = ... | using System;
using System.Collections.Generic;
using System.Linq;
public class Solution {
public static void Main() {
var vals = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var N = vals[0];
var K = vals[1];
vals = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var R = ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 252, 0, 104], ["-", 0, 198, 0, 200, 0, 212, 0, 252, 0, 253], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 3... | 8 | 259 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using static System.Console;
using static System.Math;
using static MyIO;
using static MyUtil;
public class E {
public static void Main() => (new Solver()).Solve();
}
public class Solver {
p... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using static System.Console;
using static System.Math;
using static MyIO;
using static MyUtil;
public class E {
public static void Main() => (new Solver()).Solve();
}
public class Solver {
p... | [["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 201... | 8 | 904 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Linq;
using E = System.Linq.Enumerable;
internal partial class Solver {
struct Data {
public int Index;
public int Sum;
public bool Same;
}
public v... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Linq;
using E = System.Linq.Enumerable;
internal partial class Solver {
struct Data {
public int Index;
public int Sum;
public bool Same;
}
public v... | [["+", 0, 212, 0, 16, 31, 16, 31, 204, 205, 22], ["+", 0, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 48], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, ... | 8 | 1,495 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.