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 | change_count int64 0 100 |
|---|---|---|---|---|---|
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace atPra98A {
class Class1 {
static void Main() {
var N = int.Parse(Console.ReadLine());
if (N < 999)
Console.WriteLine("ABC");
... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace atPra98A {
class Class1 {
static void Main() {
var N = int.Parse(Console.ReadLine());
if (N <= 999)
Console.WriteLine("ABC");
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 91 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int a;
string answer;
a = int.Parse(Console.ReadLine());
if (a < 1000) {
answer = "ABC";
} el... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int a;
string answer;
a = int.Parse(Console.ReadLine());
if (a < 1000) {
answer = "ABC";
} el... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 95 | 2 |
using System;
namespace ert89er8uer8 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
if (N <= 1000) {
Console.WriteLine("ABC");
} else {
Console.WriteLine("ABD");
}
}
}
}
| using System;
namespace ert89er8uer8 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
if (N <= 999) {
Console.WriteLine("ABC");
} else {
Console.WriteLine("ABD");
}
}
}
}
| [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 65 | 2 |
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
class Program {
static void Main(string[] args) {
string str1;
str1 = Console.ReadLine(); //標準入力
int count = int.Parse(str1);
if (count < 1000) {
Console.WriteLine("abc");
} else {
Console.WriteLine... | using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
class Program {
static void Main(string[] args) {
string str1;
str1 = Console.ReadLine(); //標準入力
int count = int.Parse(str1);
if (count < 1000) {
Console.WriteLine("ABC");
} else {
Console.WriteLine... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 83 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class Program {
static void Main() {
var N = int.Parse(ReadLine());
if (N < 1000)
WriteLine($"ABC{N:000}");
else
WriteLine($"ABD{N-999:000}");
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class Program {
static void Main() {
var N = int.Parse(ReadLine());
if (N < 1000)
WriteLine($"ABC");
else
WriteLine($"ABD");
}
}
| [["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 45], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 22], ["-", 0, 28, 0, 283, 0, 284, 0, 298, 0, 102], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 46], ["-", 0, 28, 0, 283, 0, 284, 0, 16, 31, 22], ["-", 0, 28, 0, 283, 0, 284, 0, 16, 17, 33], ["-", 0, 28, 0, 283, 0, 284, 0, 16, 12, 203]] | 8 | 77 | 12 |
using System;
class ABD {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
if (n > 1000) {
Console.WriteLine("ABD");
} else {
Console.WriteLine("ABC");
}
}
} | using System;
class ABD {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
if (n > 999) {
Console.WriteLine("ABD");
} else {
Console.WriteLine("ABC");
}
}
} | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 61 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace B {
class Program {
static void Main(string[] args) {
var ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
var dist = ab[1] - ab[0];
var list = new List<int>();
list.Add(1);
for (int i = 1; i < 1000; i++)
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace B {
class Program {
static void Main(string[] args) {
var ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
var dist = ab[1] - ab[0];
var list = new List<int>();
list.Add(1);
for (int i = 2; i < 1000; i++)
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 136 | 4 |
using System;
public class Hello {
public static void Main() {
var array = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int A = array[0];
int B = array[1];
int X = A - B;
int ans = X * (X + 1) / 2 - B;
Console.WriteLine(ans);
}
}
| using System;
public class Hello {
public static void Main() {
var array = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int A = array[0];
int B = array[1];
int X = B - A;
int ans = X * (X + 1) / 2 - B;
Console.WriteLine(ans);
}
} | [["-", 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, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]] | 8 | 86 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var list = new List<int>();
for (int i = 1; i <= Math.Log(N, 6); i++) {
list.Add((int)Math.Pow(6, i));
}
for (int i = 1; i <= Math.Log(N, 9); i++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var list = new List<int>();
for (int i = 1; i < Math.Log(N, 6) + 1; i++) {
list.Add((int)Math.Pow(6, i));
}
for (int i = 1; i < Math.Log(N, 9) + 1; i++)... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 1,282 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var list = new List<int>();
for (int i = 1; i <= Math.Log(100000, 9); i++) {
list.Add((int)Math.Pow(100000, i));
}
for (int i = 1; i <= Math.Log(N, 6); ... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var list = new List<int>();
for (int i = 1; i <= Math.Log(100000, 9); i++) {
list.Add((int)Math.Pow(9, i));
}
for (int i = 1; i <= Math.Log(100000, 6); ... | [["-", 0, 74, 51, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 74, 51, 213, 3, 4, 0, 28, 0, 203], ["-", 15, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 15, 16, 12, 213, 3, 4, 0, 28, 0, 203]] | 8 | 1,260 | 4 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
// var s = Console.ReadLine();
var n = long.Parse(Console.ReadLine());
// long[] n = Console.ReadLine().Split().Select(long.Parse).To... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
// var s = Console.ReadLine();
var n = long.Parse(Console.ReadLine());
// long[] n = Console.ReadLine().Split().Select(long.Parse).To... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 149 | 2 |
using System;
namespace ABC099C {
internal class Program {
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int res = n;
for (int i = 0; i < n; i++) {
int count = 0;
int t = i;
while (t > 0) {
count += t % 6;
t /= 6;
}
t = n - i... | using System;
namespace ABC099C {
internal class Program {
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int res = n;
for (int i = 0; i <= n; i++) {
int count = 0;
int t = i;
while (t > 0) {
count += t % 6;
t /= 6;
}
t = n - ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 128 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public static void Main(string[] args) {
int n = Console.ReadLine().ToInt();
int max6 = (int)Math.Log(n, 6) + 1;
int max9 = (int)Math.Log(n, 9) + 1;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public static void Main(string[] args) {
int n = Console.ReadLine().ToInt();
int max6 = (int)Math.Log(n, 6) + 2;
int max9 = (int)Math.Log(n, 9) + 2;
... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 549 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace CSharpSample01 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int ans = N;
for (int i = 1; i <= N; i++) {
int t = i;
int cc = 0;
while (t > 0) {
cc += t ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace CSharpSample01 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int ans = N;
for (int i = 0; i <= N; i++) {
int t = i;
int cc = 0;
while (t > 0) {
cc += t %... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 142 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
using Pair = System.Tuple<int, int>;
using Edge = System.Tuple<int, int, long>;
// using static System.Globalization.CultureInfo;
class Program {
static void Main(str... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
using Pair = System.Tuple<int, int>;
using Edge = System.Tuple<int, int, long>;
// using static System.Globalization.CultureInfo;
class Program {
static void Main(str... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 412 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var num = ToInt32(ReadLine());
var res = num;
for (var i = 0; i < num; i++) {
var cc = 0;
va... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var num = ToInt32(ReadLine());
var res = num;
for (var i = 0; i <= num; i++) {
var cc = 0;
v... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 161 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var sc = new Scanner();
int n = sc.NextInt();
int ans = n;
for (int i = 0; i < n; i++) {
int c = 0;
int r = i;
// iま... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var sc = new Scanner();
int n = sc.NextInt();
int ans = n;
for (int i = 0; i <= n; i++) {
int c = 0;
int r = i;
// i... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 299 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.Virtual {
class ABC099_C {
static void Main(string[] args) {
Method(args);
ReadLine();
}
static void Method(string[] args) {
int... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.Virtual {
class ABC099_C {
static void Main(string[] args) {
Method(args);
ReadLine();
}
static void Method(string[] args) {
int... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 450 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
// using static System.Linq.Enumerable;
using static System.Console;
using static AtCoder.Util;
using static AtCoder.Cin;
using static System.Math;
using static AtCoder.MyMath;
using stati... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
// using static System.Linq.Enumerable;
using static System.Console;
using static AtCoder.Util;
using static AtCoder.Cin;
using static System.Math;
using static AtCoder.MyMath;
using stati... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25]] | 8 | 6,558 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
static List<int[]> list = new List<int[]>();
static int[] yMove = new int[] { -1, 1, 0, 0 };
static int[] xMove = new int[] { 0, 0, -1, 1 };
static bool[,] mi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
static List<int[]> list = new List<int[]>();
static int[] yMove = new int[] { -1, 1, 0, 0 };
static int[] xMove = new int[] { 0, 0, -1, 1 };
static bool[,] mi... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 1,804 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
/* string[] input = ReadLine().Split(' ');
int n = int.Parse(input[0]);
int m = int.Parse(input[1]);*/
// ... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
/* string[] input = ReadLine().Split(' ');
int n = int.Parse(input[0]);
int m = int.Parse(input[1]);*/
// ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 142 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class Program {
static void Main(string[] args) {
var N = long.Parse(ReadLine());
long res = N;
for (long i = 0; i <= N; i++) {
long tmp = 0;
long t = 1;
while (t > 0) {
tmp += t % 6;... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class Program {
static void Main(string[] args) {
var N = long.Parse(ReadLine());
long res = N;
for (long i = 0; i <= N; i++) {
long tmp = 0;
long t = i;
while (t > 0) {
tmp += t % 6;... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22]] | 8 | 138 | 2 |
//
using System;
public class Hello {
public static void Main() {
var N = int.Parse(Console.ReadLine());
int res = N;
for (var i = 0; i < N; i++) {
int cc = 0;
int t = i;
while (t > 0) {
cc += t % 6;
t /= 6;
}
t = N - i;
while (t > 0) {
cc += t ... | //
using System;
public class Hello {
public static void Main() {
var N = int.Parse(Console.ReadLine());
int res = N;
for (var i = 0; i <= N; i++) {
int cc = 0;
int t = i;
while (t > 0) {
cc += t % 6;
t /= 6;
}
t = N - i;
while (t > 0) {
cc += t... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 122 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AtCoder.ABC {
class Program {
static void Main() {
Console.WriteLine(Solve(int.Parse(Console.ReadLine())... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AtCoder.ABC099.C {
class Program {
static void Main() {
Console.WriteLine(Solve(int.Parse(Console.ReadLi... | [["-", 36, 36, 0, 208, 0, 209, 141, 232, 141, 22], ["+", 0, 208, 0, 209, 141, 232, 234, 232, 141, 22], ["+", 36, 36, 0, 208, 0, 209, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 209, 141, 232, 141, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 245 | 6 |
using System;
namespace atcorder {
class MainClass {
public static void Main(string[] args) { atcorder.Strange_Bank.Run(); }
}
public class Strange_Bank {
public Strange_Bank() {}
public static void Run() {
int N = int.Parse(Console.ReadLine());
//動的に考えよう
int[] list = new int[100000];
int[] pow9 ... | using System;
namespace atcorder {
class MainClass {
public static void Main(string[] args) { atcorder.Strange_Bank.Run(); }
}
public class Strange_Bank {
public Strange_Bank() {}
public static void Run() {
int N = int.Parse(Console.ReadLine());
//動的に考えよう
int[] list = new int[100001];
int[] pow9 ... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203]] | 8 | 335 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
namespace AtCodeeeer {
class AtCOOOOOOOOOOOder {
static void Main(string[] args) {
int N = int.Parse(ReadLine());
int ans = int.MaxValue;
for (int A = 1; A < N - 1; ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
namespace AtCodeeeer {
class AtCOOOOOOOOOOOder {
static void Main(string[] args) {
int N = int.Parse(ReadLine());
int ans = int.MaxValue;
for (int A = 1; A < N; A++)... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 142 | 2 |
using System;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
int kazu = int.Parse(ReadLine());
int a = 1;
int b = 0;
while (a < kazu) {
a *= 10;
}
a /= 10;
b = kazu - a;
int count = 0;
while (a > 0 && b > 0) {
c... | using System;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
int kazu = int.Parse(ReadLine());
int a = 1;
int b = 0;
while (a < kazu) {
a *= 10;
}
a /= 10;
b = kazu - a;
int count = 0;
while (a > 0 || b > 0) {
... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 98], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 106]] | 8 | 112 | 2 |
using System;
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var min = 99999;
for (int i = 1; i < N - 1; i++) {
var A = i;
var B = N - i;
A = CalcDigitSum(A);
B = CalcDigitSum(B);
if (A + B < min) {
min = A + B;
}
}
... | using System;
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var min = 99999;
for (int i = 1; i < N; i++) {
var A = i;
var B = N - i;
A = CalcDigitSum(A);
B = CalcDigitSum(B);
if (A + B < min) {
min = A + B;
}
}
... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 152 | 2 |
using System;
namespace agc025_a {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
long ret = long.MaxValue;
for (int i = 0; i < n; i++) {
int a = i;
int b = n - i;
if (Math.Min(a, b) < 0)
continue;
string c = a.ToString();
st... | using System;
namespace agc025_a {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
long ret = long.MaxValue;
for (int i = 0; i < n; i++) {
int a = i;
int b = n - i;
if (Math.Min(a, b) <= 0)
continue;
string c = a.ToString();
s... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 191 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
static class Program {
const int mod = 998244353;
static long[] s, r;
static long ans = 0;
static void Main() {
Sc sc = new Sc();
s = sc.La;
r = new long[s[0] + 1];
r[0] = 1;
for (int i = 1... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
static class Program {
const int mod = 998244353;
static long[] s, r;
static long ans = 0;
static void Main() {
Sc sc = new Sc();
s = sc.La;
r = new long[s[0] + 1];
r[0] = 1;
for (int i = 1... | [["-", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 671 | 2 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static string[] input = Console.ReadLine().Split(' ');
static long n = long.Parse(input[0]);
static long a = long.Parse(input[1]);
static long b = long.Parse(input[2]);
static long k = long.Parse(input[3]);
static lo... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static string[] input = Console.ReadLine().Split(' ');
static long n = long.Parse(input[0]);
static long a = long.Parse(input[1]);
static long b = long.Parse(input[2]);
static long k = long.Parse(input[3]);
static lo... | [["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 47], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18]] | 8 | 575 | 4 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Solve {
public Solve() {}
StringBuilder sb;
ReadData re;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
re = new ReadData();
Calc();
Console.W... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Solve {
public Solve() {}
StringBuilder sb;
ReadData re;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
re = new ReadData();
Calc();
Console.W... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 2,202 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using Debug = System.Diagnostics.Trace;
using SB = System.Text.StringBuilder;
using System.Numerics;
using static System.Math;
using Number = System.Int64;
namespace Program {
public class Solver {
Random rnd = new Random();
... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using Debug = System.Diagnostics.Trace;
using SB = System.Text.StringBuilder;
using System.Numerics;
using static System.Math;
using Number = System.Int64;
namespace Program {
public class Solver {
Random rnd = new Random();
... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95]] | 8 | 1,039 | 1 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Competitive {
internal class Solution {
// Not Solved ======================================--
public int N;
public List<Data> D;
public int[] OrderLRight, OrderRLeft;
public void Run() {
N = Input.ReadInt();... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Competitive {
internal class Solution {
// Not Solved ======================================--
public int N;
public List<Data> D;
public int[] OrderLRight, OrderRLeft;
public void Run() {
N = Input.ReadInt();... | [["-", 12, 213, 3, 4, 0, 28, 0, 214, 141, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 214, 141, 22]] | 8 | 795 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC____098 {
class Program {
static void Main(string[] args) {
int A, B, max;
var word = Console.ReadLine().Split(' ');
A = int.Parse(word[0]);
B = int.Parse(word[1]);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC____098 {
class Program {
static void Main(string[] args) {
int A, B, max;
var word = Console.ReadLine().Split(' ');
A = int.Parse(word[0]);
B = int.Parse(word[1]);
... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]] | 8 | 141 | 1 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC098A {
class Program {
static void Main(string[] args) {
int a, b, c;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
c = a ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC098A {
class Program {
static void Main(string[] args) {
int a, b, c;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
c = a ... | [["+", 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, 17, 47], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 22]] | 8 | 138 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC098A {
class Program {
static void Main(string[] args) {
int a, b, max;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
max ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC098A {
class Program {
static void Main(string[] args) {
int a, b, max;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
max ... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]] | 8 | 141 | 1 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder {
class Program {
static void Main(string[] args) { MainStream(); }
static void MainStream() {
Scan sc = new Scan();
write wr = new write();
int[] arr = sc.intarr;
int a = arr[0];
int b = arr[1];
int ans ... | using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder {
class Program {
static void Main(string[] args) { MainStream(); }
static void MainStream() {
Scan sc = new Scan();
write wr = new write();
int[] arr = sc.intarr;
int a = arr[0];
int b = arr[1];
int ans ... | [["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32]] | 8 | 273 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC098A {
class Program {
static void Main(string[] args) {
int A, B, max;
var word = Console.ReadLine().Split(' ');
A = int.Parse(word[1]);
B = int.Parse(word[2]);
if (... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC098A {
class Program {
static void Main(string[] args) {
int A, B, max;
var word = Console.ReadLine().Split(' ');
A = int.Parse(word[0]);
B = int.Parse(word[1]);
if (... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 8, 196, 0, 57, 75, 57, 64, 196, 0, 45], ["-", 8, 196, 0, 57, 75, 57, 64, 196, 0, 46]] | 8 | 166 | 8 |
using System;
namespace AtCoder.ABC098 {
public class A {
public static void Solve() {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
var max = 0;
max = Math.Max(max, (a + b));
max = Math.Max(max, (a - b));
max ... | using System;
namespace AtCoder.ABC098 {
public class A {
public static void Solve() {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
var max = -100000000;
max = Math.Max(max, (a + b));
max = Math.Max(max, (a - b));
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203]] | 8 | 150 | 3 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Runtime.CompilerServices;
using static System.Math;
using static Reader;
class P {
s... | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Runtime.CompilerServices;
using static System.Math;
using static Reader;
class P {
s... | [["-", 0, 1, 0, 213, 63, 214, 205, 213, 63, 22], ["+", 0, 1, 0, 213, 63, 214, 205, 213, 63, 22], ["-", 205, 213, 3, 4, 0, 28, 0, 213, 63, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 213, 63, 22]] | 8 | 922 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace add {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int c = (a + b);
i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace add {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int c = (a + b);
i... | [["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 15, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 17, 20]] | 8 | 212 | 12 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp21 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
int ans = 0;
List<char> list = new List<... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp21 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
int ans = 0;
List<char> list = new List<... | [["+", 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, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 245 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace C {
class Program {
static void Main(string[] args) {
var N = Console.ReadLine().ToInt();
var S = Console.ReadLine();
var w = new int[N];
var e = new int[N];
for (var i = 1; i < N; i++) {
w[i] = (S[i - 1] == 'W' ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace C {
class Program {
static void Main(string[] args) {
var N = Console.ReadLine().ToInt();
var S = Console.ReadLine();
var w = new int[N];
var e = new int[N];
for (var i = 1; i < N; i++) {
w[i] = (S[i - 1] == 'W' ... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 333 | 2 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.IO;
namespace SolutionCS {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
int[] wt = new int[N + 2];
int[] et = new int[N + ... | using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.IO;
namespace SolutionCS {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
int[] wt = new int[N + 2];
int[] et = new int[N + ... | [["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 240 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
public class C {
public static void Main() {
int N = Int32.Parse(Console.ReadLine());
string S = Console.ReadLine();
int[] csumEast = new int[N + 2];
int[] csumWest = new int[N + 2];
for (int i = 1; i <=... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
public class C {
public static void Main() {
int N = Int32.Parse(Console.ReadLine());
string S = Console.ReadLine();
int[] csumEast = new int[N + 2];
int[] csumWest = new int[N + 2];
for (int i = 1; i <=... | [["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 245 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static AtCoderTemplate.MyExtensions;
using static AtCoderTemplate.MyInputOutputs;
using static AtCoderTemplate.MyNumericFunctions;
namespace AtCoderTemplate {
public class Program {
public static void Main(string[] arg... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static AtCoderTemplate.MyExtensions;
using static AtCoderTemplate.MyInputOutputs;
using static AtCoderTemplate.MyNumericFunctions;
namespace AtCoderTemplate {
public class Program {
public static void Main(string[] arg... | [["-", 205, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 205, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 1,898 | 2 |
using System;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。
string input =
Console.ReadLine(); // Splitで区切り文字を指定して複数個受け取る。
int minCount = 0;
int count = 0;
for (int i = 1; i < input.Length; i++) {
if (input[i] == 'E')
co... | using System;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。
string input =
Console.ReadLine(); // Splitで区切り文字を指定して複数個受け取る。
int minCount = 0;
int count = 0;
for (int i = 1; i < input.Length; i++) {
if (input[i] == 'E')
co... | [["-", 8, 196, 0, 57, 64, 1, 0, 223, 0, 68], ["+", 8, 196, 0, 57, 64, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 57, 64, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 57, 64, 1, 0, 223, 0, 68]] | 8 | 172 | 4 |
using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine();
var W = new int[n + 1];
var E = new int[n + 1];
var ans = n;
W[0] = 0;
E[0] = 0;
for (var i = 1; i < n + 1; i++) {
if (s[i - 1] == 'W') {
W[i... | using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine();
var W = new int[n + 1];
var E = new int[n + 1];
var ans = n;
W[0] = 0;
E[0] = 0;
for (var i = 1; i < n + 1; i++) {
if (s[i - 1] == 'W') {
W[i... | [["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 219 | 4 |
using System;
class Program {
static void Main(string[] args) {
string t = Console.ReadLine();
int N = int.Parse(t);
string S = Console.ReadLine();
string A = "EW";
int[] B = new int[2];
int[] C = new int[2];
for (var i = 0; i < S.Length; i++) {
B[A.IndexOf(S.Substring(i, 1))] += 1;
... | using System;
class Program {
static void Main(string[] args) {
string t = Console.ReadLine();
int N = int.Parse(t);
string S = Console.ReadLine();
string A = "EW";
int[] B = new int[2];
int[] C = new int[2];
for (var i = 0; i < S.Length; i++) {
B[A.IndexOf(S.Substring(i, 1))] += 1;
... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 216 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class Program {
static void Main() {
var N = int.Parse(ReadLine());
var S = ReadLine();
var w = new int[N + 1];
for (int i = 0; i < N; i++) {
w[i + 1] = w[i] + (S[i] == 'W' ? 0 : 1);
}
var an... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class Program {
static void Main() {
var N = int.Parse(ReadLine());
var S = ReadLine();
var w = new int[N + 1];
for (int i = 0; i < N; i++) {
w[i + 1] = w[i] + (S[i] == 'W' ? 0 : 1);
}
var an... | [["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 171 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.IO.Compression;
using System.Linq;
using System.Numerics;
using System.Text;
using Console = System.Console;
namespace Atcoder {
class Program {
private const long C... | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.IO.Compression;
using System.Linq;
using System.Numerics;
using System.Text;
using Console = System.Console;
namespace Atcoder {
class Program {
private const long C... | [["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131]] | 8 | 203 | 5 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
public static class P {
public static void Ma... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
public static class P {
public static void Ma... | [["-", 12, 23, 0, 41, 15, 16, 12, 252, 0, 253], ["+", 12, 23, 0, 41, 15, 16, 12, 252, 0, 253]] | 8 | 238 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
//入力
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
//計算
//[0, i)のWの個数を計算する
int[] vw = new int[N + 1];
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
//入力
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
//計算
//[0, i)のWの個数を計算する
int[] vw = new int[N + 1];
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18]] | 8 | 257 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplAttribute = System.Runtime.Compi... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplAttribute = System.Runtime.Compi... | [["-", 8, 196, 0, 52, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 52, 15, 16, 31, 16, 17, 72], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 1,086 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class Program {
static void Main() {
var s = ReadLine();
var K = int.Parse(ReadLine());
var h = new List<string>();
for (int i = 0; i < s.Length; i++) {
for (int j = 1; j <= K; j++) {
if (i ... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class Program {
static void Main() {
var s = ReadLine();
var K = int.Parse(ReadLine());
var h = new HashSet<string>();
for (int i = 0; i < s.Length; i++) {
for (int j = 1; j <= K; j++) {
if ... | [["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22]] | 8 | 150 | 2 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush();
}
static void Solve() {
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush();
}
static void Solve() {
... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 1,167 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int a = sc.NextInt();
int b = sc.NextInt();
int answer = a < b ? a - 1 : a;
Console.WriteLine(answer);
}
class Scanner {
private s... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int a = sc.NextInt();
int b = sc.NextInt();
int answer = a > b ? a - 1 : a;
Console.WriteLine(answer);
}
class Scanner {
private s... | [["-", 0, 200, 0, 212, 0, 41, 15, 16, 17, 18], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 47]] | 8 | 372 | 2 |
using System;
using static System.Console;
using System.Linq;
namespace Main {
class Program {
static void Main(string[] args) {
int[] tmp = ReadLine().Split(' ').Select(int.Parse).ToArray();
WriteLine(tmp[0] <= tmp[1] ? tmp[1] : tmp[1] - 1);
}
}
} | using System;
using static System.Console;
using System.Linq;
namespace Main {
class Program {
static void Main(string[] args) {
int[] tmp = ReadLine().Split(' ').Select(int.Parse).ToArray();
WriteLine(tmp[0] <= tmp[1] ? tmp[0] : tmp[0] - 1);
}
}
} | [["-", 0, 41, 64, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 41, 64, 204, 206, 207, 0, 28, 0, 203], ["-", 75, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 75, 16, 31, 204, 206, 207, 0, 28, 0, 203]] | 8 | 85 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text.RegularExpressions;
using Console = System.Console;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var r = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
if (r[0] < r[1]) ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text.RegularExpressions;
using Console = System.Console;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var r = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
if (r[0] <= r[1])... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 119 | 2 |
using System;
class p {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
Console.WriteLine(a <= b ? a - 1 : a);
}
} | using System;
class p {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
Console.WriteLine(a <= b ? a : a - 1);
}
}
| [["-", 3, 4, 0, 28, 0, 41, 64, 16, 17, 33], ["-", 3, 4, 0, 28, 0, 41, 64, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 12, 203]] | 8 | 73 | 4 |
using System;
using System.Linq;
namespace A {
class Program {
static void Main(string[] args) {
// Console.WriteLine("Hello World!");
var ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
Console.WriteLine(ab[1] >= ab[0] ? ab[0] - 1 : ab[0] - 2);
}
}
}
| using System;
using System.Linq;
namespace A {
class Program {
static void Main(string[] args) {
// Console.WriteLine("Hello World!");
var ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
Console.WriteLine(ab[1] >= ab[0] ? ab[0] : ab[0] - 1);
}
}
}
| [["-", 3, 4, 0, 28, 0, 41, 64, 16, 17, 33], ["-", 3, 4, 0, 28, 0, 41, 64, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 41, 75, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 12, 203]] | 8 | 81 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder {
class Program {
static void Main(string[] args) { MainStream(); }
static void MainStream() {
Scan sc = new Scan();
write wr = new write();
int[] array = sc.intarr;
int a = array[0];
int b = array[1];
if... | using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder {
class Program {
static void Main(string[] args) { MainStream(); }
static void MainStream() {
Scan sc = new Scan();
write wr = new write();
int[] array = sc.intarr;
int a = array[0];
int b = array[1];
if... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 275 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Collections;
static class Extensions {
public static int ToInt(this string s) => int.Parse(s);
public static long ToLong(this string s) => long.Parse... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Collections;
static class Extensions {
public static int ToInt(this string s) => int.Parse(s);
public static long ToLong(this string s) => long.Parse... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 353 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int a = int.Parse(s[0]);
int b = int.Parse(s[1]);
Console.WriteLine(a + (a > b ? -b : 0));
}
}
| using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int a = int.Parse(s[0]);
int b = int.Parse(s[1]);
Console.WriteLine(a + (a > b ? -1 : 0));
}
}
| [["-", 0, 16, 12, 23, 0, 41, 64, 241, 0, 22], ["+", 0, 16, 12, 23, 0, 41, 64, 241, 0, 203]] | 8 | 92 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
public class A {
public static void Main() {
string[] args = Console.ReadLine().Split(' ');
int a = Int32.Parse(args[0]);
int b = Int32.Parse(args[1]);
Console.WriteLine((b >= a) ? a : b);
}
}
| using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
public class A {
public static void Main() {
string[] args = Console.ReadLine().Split(' ');
int a = Int32.Parse(args[0]);
int b = Int32.Parse(args[1]);
Console.WriteLine((b >= a) ? a : a - 1);
}
}
| [["-", 0, 213, 3, 4, 0, 28, 0, 41, 75, 22], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 12, 203]] | 8 | 92 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) { ABC096_A(); }
static void ABC096_A() {
var ab = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
Console.WriteLine(ab[0] < ab[1] ? ab[0] : ab[0] - 1);
}
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) { ABC096_A(); }
static void ABC096_A() {
var ab = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
Console.WriteLine(ab[0] <= ab[1] ? ab[0] : ab[0] - 1);
}... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19]] | 8 | 99 | 2 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
//入力
// int n = 100;
/*
long n = long.Parse(Console.ReadLine());
long[] input = new long[5];
for(int a = 0; a < 5; a++)
{
i... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
//入力
// int n = 100;
/*
long n = long.Parse(Console.ReadLine());
long[] input = new long[5];
for(int a = 0; a < 5; a++)
{
i... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20]] | 8 | 105 | 2 |
using System;
using System.Linq;
class ABC96A {
public static void Main() {
string[] input = Console.ReadLine().Split(' ');
int m = int.Parse(input[0]);
int d = int.Parse(input[0]);
if (m > d)
m--;
Console.WriteLine(m);
}
} | using System;
using System.Linq;
class ABC96A {
public static void Main() {
string[] input = Console.ReadLine().Split(' ');
int m = int.Parse(input[0]);
int d = int.Parse(input[1]);
if (m > d)
m--;
Console.WriteLine(m);
}
} | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 80 | 2 |
using System;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var month = Convert.ToInt32(input[0]);
var day = Convert.ToInt32(input[1]);
if (month < day)
Console.WriteLine(month);
else
Console.WriteLine(month - 1);
}
}
| using System;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var month = Convert.ToInt32(input[0]);
var day = Convert.ToInt32(input[1]);
if (month <= day)
Console.WriteLine(month);
else
Console.WriteLine(month - 1);
}
}
| [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 83 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC96 {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine().Split();
var a = int.Parse(s[0]);
var b = int.Parse(s[1]);
if (a > b) {
Console.Wri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC96 {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine().Split();
var a = int.Parse(s[0]);
var b = int.Parse(s[1]);
if (a > b) {
Console.Writ... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 110 | 2 |
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
class Program {
const string Yes = "Yes";
const string No = "No";
const long Mod = 1000000007;
static void Main(string[] args) {
#if DEBUG
... | using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
class Program {
const string Yes = "Yes";
const string No = "No";
const long Mod = 1000000007;
static void Main(string[] args) {
#if DEBUG
... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 322 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace At {
class Program {
static void Main(string[] args) {
var abc = ReadInts();
var k = ReadInt();
var max = abc.Max();
var ans = abc.Sum() - max;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace At {
class Program {
static void Main(string[] args) {
var abc = ReadInts();
var k = ReadInt();
var max = abc.Max();
var ans = abc.Sum() - max;
... | [["-", 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, 32], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 201, 0,... | 8 | 366 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Template {
class Program {
static void Main(string[] args) {
// スペース区切りの整数の入力
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(i... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Template {
class Program {
static void Main(string[] args) {
// スペース区切りの整数の入力
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(i... | [["-", 12, 23, 0, 16, 12, 23, 0, 16, 17, 33], ["-", 12, 23, 0, 16, 12, 23, 0, 16, 12, 203]] | 8 | 211 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProgrammingContest {
class Writer : IDisposable {
private System.IO.TextWriter writer;
private StringBuilder sb;
private bool isReactive;
public Writer(string path) : this(new System.IO.StreamWriter(path)) {}
publ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProgrammingContest {
class Writer : IDisposable {
private System.IO.TextWriter writer;
private StringBuilder sb;
private bool isReactive;
public Writer(string path) : this(new System.IO.StreamWriter(path)) {}
publ... | [["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 1,290 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp20 {
class Program {
static void Main(string[] args) {
int[] ABC = Console.ReadLine().Split().Select(int.Parse).ToArray();
int K = int.Parse(Console.ReadLine());
Array.S... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp20 {
class Program {
static void Main(string[] args) {
int[] ABC = Console.ReadLine().Split().Select(int.Parse).ToArray();
int K = int.Parse(Console.ReadLine());
Array.S... | [["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 140], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48]] | 8 | 146 | 2 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace FertiLib.Contest.C {
static class Program {
public static void Solve(Scanner cin) {
var (h, w) = cin.ReadValue<int, int>();
var s = new char [h + 2][];
for (int i = 0; i < h + 2;... | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace FertiLib.Contest.C {
static class Program {
public static void Solve(Scanner cin) {
var (h, w) = cin.ReadValue<int, int>();
var s = new char [h + 2][];
for (int i = 0; i < h + 2;... | [["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253]] | 8 | 2,907 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
static void Main... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
static void Main... | [["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 47], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 20]] | 8 | 367 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC096_C {
class Program {
static void Main(string[] args) {
string[] hw = Console.ReadLine().Split(' ');
int H = int.Parse(hw[0]);
int W = int.Parse(hw[1]);
string[] s = new ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC096_C {
class Program {
static void Main(string[] args) {
string[] hw = Console.ReadLine().Split(' ');
int H = int.Parse(hw[0]);
int W = int.Parse(hw[1]);
string[] s = new ... | [["-", 64, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 64, 196, 0, 57, 64, 196, 0, 37, 0, 38]] | 8 | 374 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int h = sc.NextInt();
int w = sc.NextInt();
bool[,] black = new bool[h, w];
for (int i = 0; i < h; i++) {
string str = sc.Next();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int h = sc.NextInt();
int w = sc.NextInt();
bool[,] black = new bool[h, w];
for (int i = 0; i < h; i++) {
string str = sc.Next();
... | [["-", 0, 212, 0, 227, 0, 229, 0, 241, 0, 72], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18]] | 8 | 625 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class48 {
static string[] s;
static int h;
static int w;
static void Main() {
var hw = Console.ReadLine().Split();
h = int.Parse(hw[0]);
w = int.Parse(h... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class48 {
static string[] s;
static int h;
static int w;
static void Main() {
var hw = Console.ReadLine().Split();
h = int.Parse(hw[0]);
w = int.Parse(h... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]] | 8 | 322 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC096C {
class Program {
static void Main(string[] args) {
int[] input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int h = input[0];
int w = inpu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC096C {
class Program {
static void Main(string[] args) {
int[] input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int h = input[0];
int w = inpu... | [["+", 0, 200, 0, 212, 0, 229, 0, 241, 0, 33], ["-", 0, 200, 0, 212, 0, 229, 0, 241, 0, 33], ["-", 31, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 31, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22]] | 8 | 369 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC096C {
class Program {
static void Main(string[] args) {
int[] input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int h = input[0];
int w = inpu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC096C {
class Program {
static void Main(string[] args) {
int[] input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int h = input[0];
int w = inpu... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 64, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 64, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 8 | 315 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using static Input;
using static Util;
class Program {
static int[] N;
static char[][] C;
static void INPUT() {
N = LineInt();
C = new char[N[0]][];
for (var i = 0; i ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using static Input;
using static Util;
class Program {
static int[] N;
static char[][] C;
static void INPUT() {
N = LineInt();
C = new char[N[0]][];
for (var i = 0; i ... | [["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22]] | 8 | 669 | 6 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int k = int.Parse(input[1]);
int q = int.Parse(input[2]);
long[] nums = Ar... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int k = int.Parse(input[1]);
int q = int.Parse(input[2]);
long[] nums = Ar... | [["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 472 | 4 |
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
class Program {
const string Yes = "Yes";
const string No = "No";
const char White = '.';
const char Black = '#';
const long Mod = 1000000007;... | using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
class Program {
const string Yes = "Yes";
const string No = "No";
const char White = '.';
const char Black = '#';
const long Mod = 1000000007;... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 317 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
Scanner cin = new Scanner();
long A = cin.Long();
long B = cin.Long();
long C = cin.Long();
long K = cin.Long()... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
Scanner cin = new Scanner();
long A = cin.Long();
long B = cin.Long();
long C = cin.Long();
long K = cin.Long()... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79]] | 8 | 699 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpressi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpressi... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 4,246 | 3 |
using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace AGC024B {
class Program {
static void Main(string[] args) {
var N = RInt;
var P = RIntsC(N);
var Q = new int[N];
for (int i = 0; i < N; i++) {
... | using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace AGC024B {
class Program {
static void Main(string[] args) {
var N = RInt;
var P = RIntsC(N);
var Q = new int[N];
for (int i = 0; i < N; i++) {
... | [["-", 8, 196, 0, 57, 64, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 12, 22]] | 8 | 1,240 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using static MyIO;
public class B {
public static void Main() {
int N = GetInt();
int[] P = new int[N];
for (int i = 0; i < N; i++)
P[i] = GetInt() - 1;
int[] Q = new int[N];
for... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using static MyIO;
public class B {
public static void Main() {
int N = GetInt();
int[] P = new int[N];
for (int i = 0; i < N; i++)
P[i] = GetInt() - 1;
int[] Q = new int[N];
for... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 334 | 2 |
using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
var d = new Dictionary<int, int>();
for (int i = 0; i < n; i++)
d[int.Parse(Console.ReadLine().Trim())] = i;
var ret = 1;
var pre = d[1];
var te... | using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
var d = new Dictionary<int, int>();
for (int i = 0; i < n; i++)
d[int.Parse(Console.ReadLine().Trim())] = i;
var ret = 1;
var pre = d[1];
var te... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33]] | 8 | 166 | 2 |
using System;
using System.Collections.Generic;
namespace Backfront {
class ConsoleInput {
private string[] currentLine = null;
private int currentCursor = 0;
public string Get() {
if (currentLine == null || currentCursor >= currentLine.Length) {
currentLine = Console.ReadLine().Split(' ');
curr... | using System;
using System.Collections.Generic;
namespace Backfront {
class ConsoleInput {
private string[] currentLine = null;
private int currentCursor = 0;
public string Get() {
if (currentLine == null || currentCursor >= currentLine.Length) {
currentLine = Console.ReadLine().Split(' ');
curr... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 302 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Math;
using static System.Array;
using static AtCoder.Tool;
using static AtCoder.CalcL;
namespace AtCoder {
class AC {
const int MOD = 1000000007;
// const int MOD = 998244353;
const int INF ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Math;
using static System.Array;
using static AtCoder.Tool;
using static AtCoder.CalcL;
namespace AtCoder {
class AC {
const int MOD = 1000000007;
// const int MOD = 998244353;
const int INF ... | [["-", 0, 57, 75, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 20]] | 8 | 1,169 | 2 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。
long[] nums = new long[n];
for (long i = 0; i < n; i++) {
nums[i] = long.Parse(Console.ReadLine());
}
long answer ... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。
long[] nums = new long[n];
for (long i = 0; i < n; i++) {
nums[i] = long.Parse(Console.ReadLine());
}
long answer ... | [["+", 75, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 95]] | 8 | 215 | 2 |
using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
var a0 = int.Parse(Console.ReadLine().Trim());
if (a0 != 0) {
Console.WriteLine(-1);
goto end;
}
var p = 0;
var ret = 0L;
var pre = 0;
for (int i = 1; i < n; i++) {... | using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
var a0 = int.Parse(Console.ReadLine().Trim());
if (a0 != 0) {
Console.WriteLine(-1);
goto end;
}
var p = 0;
var ret = 0L;
var pre = 0;
for (int i = 1; i < n; i++) {... | [["-", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 22]] | 8 | 190 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
void calc() {
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
void calc() {
... | [["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 579 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using Debug = System.Diagnostics.Trace;
using SB = System.Text.StringBuilder;
using System.Numerics;
using static System.Math;
namespace Program {
public class Solver {
Random rnd = new Random();
public void Solve() {
v... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using Debug = System.Diagnostics.Trace;
using SB = System.Text.StringBuilder;
using System.Numerics;
using static System.Math;
namespace Program {
public class Solver {
Random rnd = new Random();
public void Solve() {
v... | [["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]] | 8 | 1,469 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
if (N == 2) {
Console.WriteLine("{0} {1}", 1, 0);
return;
}
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
if (N == 2) {
Console.WriteLine("{0} {1}", 1, 2);
return;
}
... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 1,231 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atc_0040 {
class Program {
static void Main(string[] args) {
var St = Console.ReadLine();
long a = long.Parse(St.Split(' ')[0]);
long b = long.Parse(St.Split(' ')[1]);
long c... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atc_0040 {
class Program {
static void Main(string[] args) {
var St = Console.ReadLine();
long a = long.Parse(St.Split(' ')[0]);
long b = long.Parse(St.Split(' ')[1]);
long c... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 25]] | 8 | 193 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999;
public static void Main(string[] args) {
var n = Input().ToInt();
var a = n[0];
var b = n[1];
var c = n[2];
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999;
public static void Main(string[] args) {
var n = Input().ToInt();
var a = n[0];
var b = n[1];
var c = n[2];
... | [["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 12, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]] | 8 | 338 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.