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.Collections.Generic; using System.Linq; public static class Solution { public static void Main() { var vals = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var X = Math.Abs(vals[0]); var K = vals[1]; var D = vals[2]; if (K % 2 != 0) { X = Math.Abs(X...
using System; using System.Collections.Generic; using System.Linq; public static class Solution { public static void Main() { var vals = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var X = Math.Abs(vals[0]); var K = vals[1]; var D = vals[2]; if (K % 2 != 0) { X = Math.Abs(X...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22]]
8
172
2
using System; using System.CodeDom; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices; namespace AtCoder { public static class Ex { public static bool IsNullOrEmpty(this string s) { return string.IsNullOrEmpty(s); } public static List<string> FastSort(...
using System; using System.CodeDom; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices; namespace AtCoder { public static class Ex { public static bool IsNullOrEmpty(this string s) { return string.IsNullOrEmpty(s); } public static List<string> FastSort(...
[["+", 0, 28, 0, 16, 31, 213, 3, 4, 0, 25], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
2,194
2
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; namespace AtCoder { static class Program_D { class Solver { int ri => sc.Integer(); long r...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; namespace AtCoder { static class Program_D { class Solver { int ri => sc.Integer(); long r...
[["+", 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, 200, 0, 212, 0, 213, 3, 4, 0, 25]]
8
1,366
5
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; class program { static public int mod = 1000000007; static void Main() { var nk = inta(); int n = nk[0], k = nk[1]; var p = inta(); va...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; class program { static public int mod = 1000000007; static void Main() { var nk = inta(); int n = nk[0], k = nk[1]; var p = inta(); va...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
1,399
2
using System; using System.Collections.Generic; using System.Linq; class B { static void Main() { var n = int.Parse(Console.ReadLine()); var ss = new int [n] .Select(_ => Console.ReadLine()) .OrderBy(s => s.Length) .ToArray(); var r = 0L; var nodes ...
using System; using System.Collections.Generic; using System.Linq; class B { static void Main() { var n = int.Parse(Console.ReadLine()); var ss = new int [n] .Select(_ => Console.ReadLine()) .OrderBy(s => s.Length) .ToArray(); var r = 0L; var nodes ...
[["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 206, 207, 0, 28, 0, 16, 12, 252, 0, 104], ["+", 206, 207, 0, 28, 0, 16, 12, 252, 0, 253]]
8
318
4
using System; using System.IO; using System.Linq; using System.Collections.Generic; namespace CSharp_Shell { public static class Program { public static void Main() { int a = int.Parse(Console.ReadLine()); string b; if (a <= 30) { b = "Yes"; } else { b = "No"; } Console.WriteLine...
using System; using System.IO; using System.Linq; using System.Collections.Generic; namespace CSharp_Shell { public static class Program { public static void Main() { int a = int.Parse(Console.ReadLine()); string b; if (30 <= a) { b = "Yes"; } else { b = "No"; } Console.WriteLine...
[["-", 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, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22]]
8
85
4
using System; using System.Collections.Generic; class IDONTKNOWCSHARP { public static void Main() { int temp = int.Parse(Console.ReadLine()); if (temp >= 30) Console.WriteLine("Yes"); Console.WriteLine("No"); } }
using System; using System.Collections.Generic; class IDONTKNOWCSHARP { public static void Main() { int temp = int.Parse(Console.ReadLine()); if (temp >= 30) Console.WriteLine("Yes"); else Console.WriteLine("No"); } }
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]]
8
60
1
using System; namespace ABC_174_A_Csharp_ver { class Program { static void Main(string[] args) { int X = int.Parse(Console.ReadLine()); if (X >= 25) Console.WriteLine("Yes\n"); else Console.WriteLine("No\n"); Console.ReadKey(); } } }
using System; namespace ABC_174_A_Csharp_ver { class Program { static void Main(string[] args) { int X = int.Parse(Console.ReadLine()); if (X >= 30) Console.WriteLine("Yes\n"); else Console.WriteLine("No\n"); Console.ReadKey(); } } }
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]]
8
69
2
using System; using System.IO; class Program { static void Main(string[] args) { var scan = new Scanner(); var writer = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(writer); Console.WriteLine(Solve(scan)); Console.Out.Flush(); } static object So...
using System; using System.IO; class Program { static void Main(string[] args) { var scan = new Scanner(); var writer = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(writer); Console.WriteLine(Solve(scan)); Console.Out.Flush(); } static object So...
[["-", 8, 196, 0, 37, 0, 41, 15, 16, 17, 47], ["+", 8, 196, 0, 37, 0, 41, 15, 16, 17, 20]]
8
235
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) { var input = int.Parse(Console.ReadLine()); if (input >= 30) { Console.WriteLine("Yes"); } else { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main() { int input = int.Parse(Console.ReadLine()); if (input >= 30) { Console.WriteLine("Yes"); } else { Console.Wri...
[["-", 0, 195, 54, 55, 0, 220, 39, 224, 39, 199], ["-", 54, 55, 0, 220, 39, 224, 225, 226, 0, 70], ["-", 54, 55, 0, 220, 39, 224, 225, 226, 0, 73], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0...
8
89
8
using System; using System.Collections.Generic; using System.Linq; namespace KCLC { class Program { static void Main() { int Input = int.Parse(Console.ReadLine()); if (Input <= 30) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } } }
using System; using System.Collections.Generic; using System.Linq; namespace KCLC { class Program { static void Main() { int Input = int.Parse(Console.ReadLine()); if (Input >= 30) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } } }
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
73
2
using System; using System.Linq; namespace Program { class A { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); if (-40 <= n && n <= 40) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } } }
using System; using System.Linq; namespace Program { class A { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); if (30 <= n) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } } }
[["-", 0, 57, 15, 16, 31, 16, 31, 241, 0, 33], ["-", 0, 57, 15, 16, 31, 16, 31, 241, 0, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, ...
8
75
7
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp3 { class Program { static void Main() { var a = int.Parse(Console.ReadLine()); if (a >= 30) { Console.WriteLine("yes"); } else { Console.WriteLine("no"); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp3 { class Program { static void Main() { var a = int.Parse(Console.ReadLine()); if (a >= 30) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
85
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC174 { class Program { static void Main(string[] args) { long X; X = long.Parse(Console.ReadLine()); String A = ""; A = 30 <= X ? "YES" : "No"; Console.WriteLine(A); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC174 { class Program { static void Main(string[] args) { long X; X = long.Parse(Console.ReadLine()); String A = ""; A = 30 <= X ? "Yes" : "No"; Console.WriteLine(A); ...
[["-", 0, 1, 0, 11, 12, 41, 64, 5, 0, 222], ["+", 0, 1, 0, 11, 12, 41, 64, 5, 0, 222]]
8
89
2
using System; class Program { static void Main(string[] args) { int X = int.Parse(Console.ReadLine()); if (X >= 30) { Console.WriteLine("yes"); } else { Console.WriteLine("no"); } } }
using System; class Program { static void Main(string[] args) { int X = int.Parse(Console.ReadLine()); if (X >= 30) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
61
4
using System; using System.Collections.Generic; class Program { static void Main() { string[] X = Console.ReadLine().Split(' '); int x = int.Parse(X[0]); if (x == 30) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } }
using System; using System.Collections.Generic; class Program { static void Main() { string[] X = Console.ReadLine().Split(' '); int x = int.Parse(X[0]); if (x >= 30) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } }
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
81
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() { var N = ri(); Console.WriteLine(N == 30 ? "Yes" : "No"); } public Sol...
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() { var N = ri(); Console.WriteLine(N >= 30 ? "Yes" : "No"); } public Sol...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20]]
8
312
2
using System; using System.IO; class Program { static void Main(string[] args) { var scan = new Scanner(); var writer = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(writer); Console.WriteLine(Solve(scan)); Console.Out.Flush(); } static object So...
using System; using System.IO; class Program { static void Main(string[] args) { var scan = new Scanner(); var writer = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(writer); Console.WriteLine(Solve(scan)); Console.Out.Flush(); } static object So...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
8
307
2
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var basis = Console.ReadLine().Split(); int n = int.Parse(basis[0]); int d = int.Parse(basis[1]); int result = 0; for (int i = 0; i < n; i++) { long[] XY = Console.ReadLine().Split()...
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var basis = Console.ReadLine().Split(); int n = int.Parse(basis[0]); long d = long.Parse(basis[1]); int result = 0; for (int i = 0; i < n; i++) { long[] XY = Console.ReadLine().Split...
[["-", 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
154
4
using System; using System.Globalization; using System.Threading; namespace atcoder1 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int D = int.Parse(input[1]); double result = 0; int count = 0; for (int i = 0;...
using System; using System.Globalization; using System.Threading; namespace atcoder1 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int D = int.Parse(input[1]); double result = 0; int count = 0; for (int i = 0;...
[["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 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
189
8
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var d = int.Parse(line[1]); var count = 0; for (int i = 0; i < n; i++) { line = Console.ReadLine().Trim().Split(' '); var x = int.Parse(line...
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var d = long.Parse(line[1]); var count = 0; for (int i = 0; i < n; i++) { line = Console.ReadLine().Trim().Split(' '); var x = long.Parse(li...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
154
6
using System; namespace q1 { class q2 { static void Main() { string[] kosuumae = Console.ReadLine().Split(); int kosuua = int.Parse(kosuumae[0]); int kosuub = int.Parse(kosuumae[1]); int kotae = 0; for (int ruupu = 0; ruupu < kosuua; ruupu++) { string[] x = Console.ReadLine().Split(); ...
using System; namespace q1 { class q2 { static void Main() { string[] kosuumae = Console.ReadLine().Split(); int kosuua = int.Parse(kosuumae[0]); int kosuub = int.Parse(kosuumae[1]); int kotae = 0; for (int ruupu = 0; ruupu < kosuua; ruupu++) { string[] x = Console.ReadLine().Split(); ...
[["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 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
161
8
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; class Test { public static void Main() { var ss = Console.ReadLine().Split(' '); var n = int.Parse(ss[0]); var d = int.Parse(ss[1]); int ans = 0; for (int i = 0; i < n; i++) { ...
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; class Test { public static void Main() { var ss = Console.ReadLine().Split(' '); var n = int.Parse(ss[0]); var d = int.Parse(ss[1]); int ans = 0; for (int i = 0; i < n; i++) { ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]]
8
174
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { long[] a = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long kosuu = 0; for (int i = 0; i < a[0]; i++) { long[] b = C...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { long[] a = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long kosuu = 0; for (int i = 0; i < a[0]; i++) { long[] b = C...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
8
180
2
using System; using System.Collections.Generic; class Program { static void Main() { string[] ND = Console.ReadLine().Split(' '); long n = long.Parse(ND[0]); long d = long.Parse(ND[1]); long[] x = new long[n]; long[] y = new long[n]; long xy = 0; int count = 0; for (int i = 0; i < n; ...
using System; using System.Collections.Generic; class Program { static void Main() { string[] ND = Console.ReadLine().Split(' '); long n = long.Parse(ND[0]); long d = long.Parse(ND[1]); long[] x = new long[n]; long[] y = new long[n]; long xy = 0; int count = 0; for (int i = 0; i < n; ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
8
231
2
using System; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int n = sc.NextInt(); int d = sc.NextInt(); long[] x = new long[n]; long[] y = new long[n]; for (int i = 0; i < n; i++) { x[i] = sc.NextInt(); y[i] = sc.NextInt(); } int...
using System; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int n = sc.NextInt(); long d = sc.NextInt(); long[] x = new long[n]; long[] y = new long[n]; for (int i = 0; i < n; i++) { x[i] = sc.NextInt(); y[i] = sc.NextInt(); } in...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
552
2
using System; public class Hello { public static void Main() { // Your code here! int result = 0; var line = System.Console.ReadLine().Split(); var data = Array.ConvertAll(line, int.Parse); for (var i = 0; i < data[0]; i++) { var targetData = System.Console.ReadLine().Split(); var t...
using System; public class Hello { public static void Main() { // Your code here! int result = 0; var line = System.Console.ReadLine().Split(); var data = Array.ConvertAll(line, int.Parse); for (var i = 0; i < data[0]; i++) { var targetData = System.Console.ReadLine().Split(); var t...
[["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199]]
8
168
8
using System; class main { static void Main(string[] args) { string[] s = Console.ReadLine().Split(" "); int cnt = int.Parse(s[0]); int dist = int.Parse(s[1]); int ans = 0; for (int i = 0; i < cnt - 1; i++) { string[] s2 = Console.ReadLine().Split(" "); double x = int.Parse(s2[0]); ...
using System; class main { static void Main(string[] args) { string[] s = Console.ReadLine().Split(" "); int cnt = int.Parse(s[0]); int dist = int.Parse(s[1]); int ans = 0; for (int i = 1; i <= cnt; i++) { string[] s2 = Console.ReadLine().Split(" "); double x = int.Parse(s2[0]); ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
188
6
using System; using static System.Console; using static System.Math; using System.Numerics; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class Program { public static void Main(string[] args) { var s = myRead.readIntArray(); var d = s[1] * s[1]; var ans = 0; for (in...
using System; using static System.Console; using static System.Math; using System.Numerics; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class Program { public static void Main(string[] args) { var s = myRead.readLongArray(); var d = s[1] * s[1]; var ans = 0; for (i...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
512
4
using System; using System.Linq; namespace ConsoleApp3 { internal class Program { private static void Main(string[] args) { var input1 = Console.ReadLine().Split(" "); var count = int.Parse(input1.First()); var distance = int.Parse(input1.Last()); var result = Enumerable.Range(0, count) ...
using System; using System.Linq; namespace ConsoleApp3 { internal class Program { private static void Main(string[] args) { var input1 = Console.ReadLine().Split(" "); var count = int.Parse(input1.First()); var distance = long.Parse(input1.Last()); var result = Enumerable.Range(0, count) ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 288, 0, 28, 0, 213, 63, 214, 205, 199], ["+", 0, 288, 0, 28, 0, 213, 63, 214, 205, 199]]
8
172
6
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace contest_Csharp { class Program { public static (long m, long s)[,] dp; static void Main(string[] args) { checked { var sw = new System.IO.StreamWriter( Console.OpenStandard...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace contest_Csharp { class Program { public static (long m, long s)[,] dp; static void Main(string[] args) { checked { var sw = new System.IO.StreamWriter( Console.OpenStandard...
[["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 287, 0, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 287, 0, 196, 0, 7, 10, 198, 39, 199]]
8
235
6
using System; using System.Collections.Generic; using System.Linq; public static class Solution { public static void Main() { var vals = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var N = vals[0]; var D = vals[1]; var count = 0; for (int i = 0; i < N; i++) { vals = Console.R...
using System; using System.Collections.Generic; using System.Linq; public static class Solution { public static void Main() { var vals = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var N = vals[0]; var D = vals[1]; var count = 0; for (int i = 0; i < N; i++) { vals = Console....
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]]
8
161
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; class Program { static void Main(string[] args...
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; class Program { static void Main(string[] args...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
197
6
using System; using System.IO; class Program { static void Main(string[] args) { var scan = new Scanner(); var writer = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(writer); Console.WriteLine(Solve(scan)); Console.Out.Flush(); } static object So...
using System; using System.IO; class Program { static void Main(string[] args) { var scan = new Scanner(); var writer = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(writer); Console.WriteLine(Solve(scan)); Console.Out.Flush(); } static object So...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
268
2
using System; namespace _174.c { internal class Program { private static void Main(string[] args) { var k = int.Parse(Console.ReadLine()); var a = 7; var ans = -1; for (var i = 0; i < k; i++) { if (a % k == 0) { ans = i + 1; break; } a = a * 10...
using System; namespace _174.c { internal class Program { private static void Main(string[] args) { var k = int.Parse(Console.ReadLine()); long a = 7; var ans = -1; for (var i = 0; i < k; i++) { if (a % k == 0) { ans = i + 1; break; } a = (a % ...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 109], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 11, 12, 16, 31, 16, 31, 23, 0, 25]]
8
104
6
using System; using System.Collections.Generic; class C { static void Main(string[] args) { var input1Line = Console.ReadLine(); var k = int.Parse(input1Line); var intList = new List<int>(); intList.Add(7 % k); for (int i = 1; i < k; i++) { var lastInt = intList[i - 1]; intList.Add((l...
using System; using System.Collections.Generic; class C { static void Main(string[] args) { var input1Line = Console.ReadLine(); var k = int.Parse(input1Line); var intList = new List<int>(); intList.Add(7 % k); for (int i = 1; i < k; i++) { var lastInt = intList[i - 1]; intList.Add((l...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
149
2
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Numerics; namespace AtCoder { class Program { private static void Main(string[] args) { var k = Scanner.Integer(); var l = k % 7 == 0 ? 9 *...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Numerics; namespace AtCoder { class Program { private static void Main(string[] args) { var k = Scanner.Integer(); var l = k % 7 == 0 ? 9 *...
[["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 22], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 22]]
8
1,332
2
using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Linq; class CompetitiveProgrammingProgram { static long Gcd(long a, long b) { long[] v = new long[] { a, b }; while (v[1] != 0) { v = new long[] { v[1], v[0] % v[1] }; } return v[0]; } st...
using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Linq; class CompetitiveProgrammingProgram { static long Gcd(long a, long b) { long[] v = new long[] { a, b }; while (v[1] != 0) { v = new long[] { v[1], v[0] % v[1] }; } return v[0]; } st...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
398
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { int K = int.Parse(Console.ReadLine()); if (K % 2 == 0 || K % 5 == 0) { Console.WriteLine(-1); } else { if (K % 7 == 0) { K = K / 7; } ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { int K = int.Parse(Console.ReadLine()); if (K % 2 == 0 || K % 5 == 0) { Console.WriteLine(-1); } else { if (K % 7 == 0) { K = K / 7; } ...
[["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 75, 196, 0, 57, 75, 196, 0, 1, 0, 35]]
8
147
6
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Numerics; using System.IO; using System.Net; using System.Diagnostics; using System.Runtime.InteropServices.WindowsRuntime; using System.Runtime.Remoting; namespace Practice { class Program { static void Main(string[] ...
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Numerics; using System.IO; using System.Net; using System.Diagnostics; using System.Runtime.InteropServices.WindowsRuntime; using System.Runtime.Remoting; namespace Practice { class Program { static void Main(string[] ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
2,700
4
using System; using System.Numerics; using System.Text; using static ConsoleReader; class Program { static void Main(string[] args) { var k = Read<int>(); var mod = k % 10; var res = 0L; var count = 0; while (true) { var lastResDig = res % 10; var nextDig = 0; while (nextDig < 1...
using System; using System.Numerics; using System.Text; using static ConsoleReader; class Program { static void Main(string[] args) { var k = Read<int>(); var mod = k % 10; var res = 0L; var count = 0; while (true) { var lastResDig = res % 10; var nextDig = 0; while (nextDig < 1...
[["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38]]
8
479
2
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; class Program { static void Main(string[] args...
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; class Program { static void Main(string[] args...
[["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]]
8
151
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; public static class P { public static void Mai...
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 Mai...
[["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 52, 0, 89]]
8
182
4
using static System.Math; using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var s = Console.ReadLine().Trim(); getAns(n, s); } static void getAns(int n, string s) { var rtow = s.Replace("R", "").Length; var ans = rtow; var wtor = ...
using static System.Math; using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var s = Console.ReadLine().Trim(); getAns(n, s); } static void getAns(int n, string s) { var rtow = n - s.Replace("R", "").Length; var ans = rtow; var wto...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33]]
8
154
2
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 string C; static int LW; static int RR; static int N; static void Main(string[] args) { N = ...
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 string C; static int LW; static int RR; static int N; static void Main(string[] args) { N = ...
[["-", 8, 196, 0, 52, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 17, 20], ["-", 0, 52, 15, 16, 12, 16, 12, 252, 0, 253], ["+", 0, 52, 15, 16, 12, 16, 12, 252, 0, 253]]
8
213
4
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramD { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); var s = Console.ReadLine().Select(x => x).ToArray(); var result = 0; var j = s.Length - 1; for (var i = 0; i < n; i++) { ...
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramD { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); var s = Console.ReadLine().Select(x => x).ToArray(); var result = 0; var j = s.Length - 1; for (var i = 0; i < n; i++) { ...
[["-", 64, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 64, 196, 0, 7, 15, 16, 12, 16, 12, 22]]
8
168
2
using System.Linq; using System.Text; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Security.Cryptography.X509Certificates; using System.Diagnostics; using System.Reflection.Metadata; using System.Threading; namespace AtCoder { class...
using System.Linq; using System.Text; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Security.Cryptography.X509Certificates; using System.Diagnostics; using System.Reflection.Metadata; using System.Threading; namespace AtCoder { class...
[["+", 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, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
261
6
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static void Main() { var (N, K) = ReadTuple<int, int>(); var A = RLongs(); var (lb, ub) = (-1L, 1000000007L); while (ub - lb > 1) { var mid = (lb...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static void Main() { var (N, K) = ReadTuple<int, int>(); var A = RLongs(); var (lb, ub) = (0L, 1000000007L); while (ub - lb > 1) { var mid = (lb ...
[["-", 0, 212, 0, 288, 0, 28, 0, 241, 0, 33], ["-", 0, 212, 0, 288, 0, 28, 0, 241, 0, 203], ["+", 0, 200, 0, 212, 0, 288, 0, 28, 0, 203]]
8
820
3
using System; using System.Linq; namespace Program { class D { static void Main(string[] args) { int ret = 1; var NK = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = NK[0]; int K = NK[1]; var A = Console.ReadLine().Split().Select(int.Parse).ToArray(); int low = 1, high = 1; ...
using System; using System.Linq; namespace Program { class D { static void Main(string[] args) { int ret = 1; var NK = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = NK[0]; int K = NK[1]; var A = Console.ReadLine().Split().Select(int.Parse).ToArray(); int low = 0, high = 1; ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
290
2
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; using System.Collections; namespace debug { class main { static void Main(string[] args) { //問題クラスを展開 ProgramE a = new ProgramE(); a.main(); //実行する } } // ABC170 class ProgramA { public void m...
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; using System.Collections; namespace debug { class main { static void Main(string[] args) { //問題クラスを展開 ProgramE a = new ProgramE(); a.main(); //実行する } } // ABC170 class ProgramA { public void m...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
826
2
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; private static long max = 999999999999; static void Main(string[] args) { var r = ReadSpl...
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; private static long max = 999999999999; static void Main(string[] args) { var r = ReadSpl...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
1,322
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; using static Atcoder.IO; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandar...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; using static Atcoder.IO; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandar...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
662
4
using System; using static System.Console; namespace abc174 { class Program { static int[] ReadNumList() { var line = ReadLine().Split(' '); if (line.Length == 1 && string.IsNullOrEmpty(line[0])) { return new int[0]; } var numList = new int[line.Length]; for (var i = 0; i < line.Length; ++i...
using System; using static System.Console; namespace abc174 { class Program { static int[] ReadNumList() { var line = ReadLine().Split(' '); if (line.Length == 1 && string.IsNullOrEmpty(line[0])) { return new int[0]; } var numList = new int[line.Length]; for (var i = 0; i < line.Length; ++i...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
399
2
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int N = int.Parse(str[0]); int K = int.Parse(str[1]); int[] a = new int[N]; string[] str2 = Console.ReadLine().Split(); for (var i = 0; i < N; i++) { ...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int N = int.Parse(str[0]); int K = int.Parse(str[1]); int[] a = new int[N]; string[] str2 = Console.ReadLine().Split(); for (var i = 0; i < N; i++) { ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
218
2
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 ProblemE { static bool SAIKI = false; st...
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 ProblemE { static bool SAIKI = false; st...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
1,631
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template...
[["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
1,945
3
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 ProblemB { static bool SAIKI = false; st...
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 ProblemB { static bool SAIKI = false; st...
[["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
2,823
6
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; static public string al = "abcdefghijklmnopqrstuvwxyz"; public static void Main() { // ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; static public string al = "abcdefghijklmnopqrstuvwxyz"; public static void Main() { // ...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18]]
8
1,668
2
using System; namespace A { class Program { static void Main(string[] args) { int x = int.Parse(Console.ReadLine()); if (x < 600) Console.WriteLine(8); else if (x < 800) Console.WriteLine(7); else if (x < 1000) Console.WriteLine(6); else if (x < 1200) Console.WriteLine(5);...
using System; namespace A { class Program { static void Main(string[] args) { int x = int.Parse(Console.ReadLine()); if (x < 600) Console.WriteLine(8); else if (x < 800) Console.WriteLine(7); else if (x < 1000) Console.WriteLine(6); else if (x < 1200) Console.WriteLine(5);...
[["-", 75, 57, 75, 57, 75, 57, 15, 16, 12, 203], ["+", 75, 57, 75, 57, 75, 57, 15, 16, 12, 203]]
8
141
2
using System; using System.Linq; using System.Collections.Generic; namespace MSPC2020 { class A { static void Main(string[] args) { // var CA = Enumerable.Repeat(0, (int)N).Select(_ => // Console.ReadLine().Split().Select(long.Parse).ToArray()).ToArray(); var // LRd = Console.ReadLine().Split().Select(in...
using System; using System.Linq; using System.Collections.Generic; namespace MSPC2020 { class A { static void Main(string[] args) { // var CA = Enumerable.Repeat(0, (int)N).Select(_ => // Console.ReadLine().Split().Select(long.Parse).ToArray()).ToArray(); var // LRd = Console.ReadLine().Split().Select(in...
[["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
203
1
using System.Linq; using System.Text; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Security.Cryptography.X509Certificates; using System.Diagnostics; using System.Reflection.Metadata; using System.Threading; namespace AtCoder { class...
using System.Linq; using System.Text; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Security.Cryptography.X509Certificates; using System.Diagnostics; using System.Reflection.Metadata; using System.Threading; namespace AtCoder { class...
[["-", 0, 28, 0, 16, 12, 23, 0, 16, 17, 109], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 17, 85]]
8
145
2
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int C = int.Parse(input[2]); int K = int.Parse(Console.ReadLine()); while (B <= A && K > 0) { B *= 2; K--; ...
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int C = int.Parse(input[2]); int K = int.Parse(Console.ReadLine()); while (B <= A && K > 0) { B *= 2; K--; ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
156
2
using System; using System.Linq; class Program { static void Main(string[] args) { var x = Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray(); long n = long.Parse(Console.ReadLine()); for (int p = 0; p < n; p++) { if (x[0] > x[1]) { x[1] *= 2; } else { x[2] *= 2...
using System; using System.Linq; class Program { static void Main(string[] args) { var x = Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray(); long n = long.Parse(Console.ReadLine()); for (int p = 0; p < n; p++) { if (x[0] >= x[1]) { x[1] *= 2; } else { x[2] *= ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
161
2
using System; using System.Collections.Generic; class Program { static void Main() { string[] ABC = Console.ReadLine().Split(' '); int A = int.Parse(ABC[0]); int B = int.Parse(ABC[1]); int C = int.Parse(ABC[2]); int K = int.Parse(Console.ReadLine()); for (int i = 0; i < K; i++) { if (...
using System; using System.Collections.Generic; class Program { static void Main() { string[] ABC = Console.ReadLine().Split(' '); int A = int.Parse(ABC[0]); int B = int.Parse(ABC[1]); int C = int.Parse(ABC[2]); int K = int.Parse(Console.ReadLine()); for (int i = 0; i < K; i++) { if (...
[["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45]]
8
209
3
using System; using System.Runtime.CompilerServices; namespace ChokudaiScanner { class MainClass { static void Main() { Scanner cin = new Scanner(); int A = cin.NextInt(); int B = cin.NextInt(); int C = cin.NextInt(); int K = cin.NextInt(); string ans = "No"; while (0 < K) { if (A...
using System; using System.Runtime.CompilerServices; namespace ChokudaiScanner { class MainClass { static void Main() { Scanner cin = new Scanner(); int A = cin.NextInt(); int B = cin.NextInt(); int C = cin.NextInt(); int K = cin.NextInt(); string ans = "No"; while (0 < K) { if (A...
[["-", 64, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 95]]
8
563
5
using System; using System.Linq; using System.Collections.Generic; namespace MSPC2020 { class A { static void Main(string[] args) { // var CA = Enumerable.Repeat(0, (int)N).Select(_ => // Console.ReadLine().Split().Select(long.Parse).ToArray()).ToArray(); var // LRd = Console.ReadLine().Split().Select(in...
using System; using System.Linq; using System.Collections.Generic; namespace MSPC2020 { class A { static void Main(string[] args) { // var CA = Enumerable.Repeat(0, (int)N).Select(_ => // Console.ReadLine().Split().Select(long.Parse).ToArray()).ToArray(); var // LRd = Console.ReadLine().Split().Select(in...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19]]
8
171
4
using System; using static System.Console; using static System.Math; using System.Numerics; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class Program { public static void Main(string[] args) { var x = myRead.readIntArray(); var k = myRead.readInt(); int count = 0; ...
using System; using static System.Console; using static System.Math; using System.Numerics; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class Program { public static void Main(string[] args) { var x = myRead.readIntArray(); var k = myRead.readInt(); int count = 0; ...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20]]
8
518
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace ABC { class MPCO2020B { const string FILE = "/tmp/data.txt"; static void Main(string[] args) { #if DEBUG Console.SetIn(new StreamReader(FILE)); #endif var Ia = RIa...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace ABC { class MPCO2020B { const string FILE = "/tmp/data.txt"; static void Main(string[] args) { #if DEBUG Console.SetIn(new StreamReader(FILE)); #endif var Ia = RIa...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20]]
8
295
4
using System; using System.Linq; namespace M_solutions2020 { class Program { static void Main(string[] args) { b(); } public static void b() { int[] abc = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int k = int.Parse(Console.ReadLine()); for (int i = 0; i < k; i++) { if (abc[0] > ...
using System; using System.Linq; namespace M_solutions2020 { class Program { static void Main(string[] args) { b(); } public static void b() { int[] abc = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int k = int.Parse(Console.ReadLine()); for (int i = 0; i < k; i++) { if (abc[0] >=...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 20]]
8
182
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(); int[] abc = Console.ReadLine().Split().Select(int.Parse).ToArray(); var a = abc[0]; var b = abc[1...
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(); int[] abc = Console.ReadLine().Split().Select(int.Parse).ToArray(); var a = abc[0]; var b = abc[1...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 20]]
8
183
4
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { hoge(); System.Console.ReadLine(); } public static void hoge() { var vars = System.Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var a = vars[0]; var b = vars[1]; ...
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { hoge(); System.Console.ReadLine(); } public static void hoge() { var vars = System.Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var a = vars[0]; var b = vars[1]; ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 20]]
8
212
4
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace Tasks { public class B { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Consol...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace Tasks { public class B { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Consol...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19]]
8
224
4
using System; using System.Linq; class name { static void Main() { int[] gakki = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] score = Console.ReadLine().Split().Select(int.Parse).ToArray(); int k = gakki[1]; int n = gakki[0]; for (int m = 0; m < n - k; m++) { if (score[k ...
using System; using System.Linq; class name { static void Main() { int[] gakki = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] score = Console.ReadLine().Split().Select(int.Parse).ToArray(); int k = gakki[1]; int n = gakki[0]; for (int m = 0; m < n - k; m++) { if (score[k ...
[["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 22]]
8
142
2
using System; using System.Linq; class C { static void Main() { var x = (Console.ReadLine()).Split(' '); int N = int.Parse(x[0]); int K = int.Parse(x[1]); // string[] y = (Console.ReadLine()).Split(' '); var A = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); // int[] A ...
using System; using System.Linq; class C { static void Main() { var x = (Console.ReadLine()).Split(' '); int N = int.Parse(x[0]); int K = int.Parse(x[1]); var A = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); for (int i = K; i < N; i++) { if ((int)A[i - K] < (int)A[i...
[["-", 51, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["-", 51, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 51, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 12, 74, 51, 204, 206, 207, 0, 28, 0, 22]]
8
159
4
using System; using static System.Console; using static System.Math; using System.Numerics; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class Program { public static void Main(string[] args) { var s = myRead.readIntArray(); var a = myRead.readLongArray(); for (int i = ...
using System; using static System.Console; using static System.Math; using System.Numerics; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class Program { public static void Main(string[] args) { var s = myRead.readIntArray(); var a = myRead.readLongArray(); for (int i = ...
[["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
500
2
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics.Contracts; using System.IO; using System.Linq; using System.Numerics; using System.Xml.Schema; using System.Threading; using System.Diagnostics.CodeAnalysis; using System.Security.Cryptography; using System.IO.Pipes; u...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics.Contracts; using System.IO; using System.Linq; using System.Numerics; using System.Xml.Schema; using System.Threading; using System.Diagnostics.CodeAnalysis; using System.Security.Cryptography; using System.IO.Pipes; u...
[["-", 3, 4, 0, 28, 0, 16, 12, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 16, 12, 214, 141, 22]]
8
2,471
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template...
[["-", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22]]
8
4,518
4
using System; namespace _20200711_A { class Program { static void Main(string[] args) { int L, R, n; string input; input = System.Console.ReadLine(); L = int.Parse(input.Split(' ')[0]); R = int.Parse(input.Split(' ')[1]); n = int.Parse(input.Split(' ')[2]); Console.WriteLine(((R / n) + ...
using System; namespace _20200711_A { class Program { static void Main(string[] args) { int L, R, n; string input; input = System.Console.ReadLine(); L = int.Parse(input.Split(' ')[0]); R = int.Parse(input.Split(' ')[1]); n = int.Parse(input.Split(' ')[2]); Console.WriteLine(((R / n) - ...
[["-", 0, 213, 63, 214, 205, 23, 0, 16, 17, 72], ["+", 0, 213, 63, 214, 205, 23, 0, 16, 17, 33], ["+", 63, 214, 205, 23, 0, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 16, 12, 23, 0, 16, 31, 23, 0, 25]]
8
122
6
using System; using System.Linq; class name { static void Main() { int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int sum = 0; for (int i = a[0]; i < a[1] + 1; i++) { if (i % a[3] == 0) { sum++; } } Console.WriteLine(sum); } }
using System; using System.Linq; class name { static void Main() { int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int sum = 0; for (int i = a[0]; i < a[1] + 1; i++) { if (i % a[2] == 0) { sum++; } } Console.WriteLine(sum); } }
[["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
97
2
public class Program { public static void Main() { long n = long.Parse(System.Console.ReadLine()); System.Console.WriteLine(-n % 1000); } }
public class Program { public static void Main() { long n = long.Parse(System.Console.ReadLine()); System.Console.WriteLine((10000 - n) % 1000); } }
[["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 31, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25]]
8
41
3
using System; public class p { static void Main() { int A = int.Parse(Console.ReadLine()); Console.WriteLine(A % 1000 % 1000); } }
using System; public class p { static void Main() { int A = int.Parse(Console.ReadLine()); Console.WriteLine((1000 - A % 1000) % 1000); } }
[["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 31, 203], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25]]
8
40
4
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; namespace ForAtcoder { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); long mod = n % 1000; Console.WriteLine(mod != 0 ? mod : 0); } } }
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; namespace ForAtcoder { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); long mod = n % 1000; Console.WriteLine(mod != 0 ? (1000 - mod) : 0); } } }
[["+", 3, 4, 0, 28, 0, 41, 64, 23, 0, 24], ["+", 0, 28, 0, 41, 64, 23, 0, 16, 31, 203], ["+", 0, 28, 0, 41, 64, 23, 0, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 41, 64, 23, 0, 25]]
8
73
4
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, ' ')); } ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 75, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 12, 22]]
8
470
4
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); int answer = N; while (answer >= 0) { answer -= 1000; } answer = answer * -1; Console.WriteLine(answe...
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); int answer = N % 1000; if (answer != 0) { answer -= 1000; answer = answer * -1; } Console.WriteLine...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 0, 195, 8, 196, 0, 52, 8, 196, 0, 46...
8
79
8
using System; namespace ConsoleApp3 { internal class Program { private static void Main(string[] args) { var input = int.Parse(Console.ReadLine()); var result = input; while (result >= 0) { result -= 1000; } Console.WriteLine(-result); } } }
using System; namespace ConsoleApp3 { internal class Program { private static void Main(string[] args) { var input = int.Parse(Console.ReadLine()); var result = input; while (result > 0) { result -= 1000; } Console.WriteLine(-result); } } }
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47]]
8
63
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc141/tasks/abc141_a public class QuestionA { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc141/tasks/abc141_a public class QuestionA { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( ...
[["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 64, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 75, 22]]
8
121
6
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; using static System.Math; using static System.Array; using static AtCoder.Sc_out; using static AtCoder.Tool; using static AtCoder.M...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; using static System.Math; using static System.Array; using static AtCoder.Sc_out; using static AtCoder.Tool; using static AtCoder.M...
[["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
1,787
4
using System; using System.Collections.Generic; class IDONTKNOWCSHARP { public static void Main() { int num = int.Parse(Console.ReadLine()); int[] array = new int[4]; array[0] = 0; array[1] = 0; array[2] = 0; array[3] = 0; for (int i = 0; i < num; i++) { switch (Console.ReadLine()...
using System; using System.Collections.Generic; class IDONTKNOWCSHARP { public static void Main() { int num = int.Parse(Console.ReadLine()); int[] array = new int[4]; array[0] = 0; array[1] = 0; array[2] = 0; array[3] = 0; for (int i = 0; i < num; i++) { switch (Console.ReadLine()...
[["-", 3, 4, 0, 28, 0, 16, 12, 283, 0, 296], ["+", 3, 4, 0, 28, 0, 16, 12, 283, 0, 296]]
8
204
2
using System; using System.Collections.Generic; using System.Linq; namespace ProgramingStudying2 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var ac = 0; var wa = 0; var tle = 0; var re = 0; for (int i = 0; i < n; i++) { var s = Console.Re...
using System; using System.Collections.Generic; using System.Linq; namespace ProgramingStudying2 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var ac = 0; var wa = 0; var tle = 0; var re = 0; for (int i = 0; i < n; i++) { var s = Console.Re...
[["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222]]
8
189
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; class program { static public int mod = 1000000007; static void Main() { var n = rint(); var ans = new Dictionary<string, int>() { { "AC...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; class program { static public int mod = 1000000007; static void Main() { var n = rint(); var ans = new Dictionary<string, int>() { { "AC...
[["-", 0, 28, 0, 16, 31, 16, 12, 5, 0, 222], ["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 222]]
8
870
8
using System; using System.Linq; class Test { static void Main(string[] args) { var inputs = System.Console.ReadLine() .Split(' ') .Select(s => int.Parse(s)) .ToArray(); int N = inputs[0]; int cntAC = 0; int cntWA = 0; int cntTLE = 0;...
using System; using System.Linq; class Test { static void Main(string[] args) { var inputs = System.Console.ReadLine() .Split(' ') .Select(s => int.Parse(s)) .ToArray(); int N = inputs[0]; int cntAC = 0; int cntWA = 0; int cntTLE = 0;...
[["-", 75, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 75, 57, 64, 196, 0, 1, 0, 223, 0, 22]]
8
211
2
using System; namespace atcoder { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] ans = new int[4]; string AC = "AC x"; string WA = "WA x"; string TEL = "TEL x"; string RE = "RE x"; for (int i = 0; i < N; i++) { string Input = Consol...
using System; namespace atcoder { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] ans = new int[4]; string AC = "AC x"; string WA = "WA x"; string TEL = "TLE x"; string RE = "RE x"; for (int i = 0; i < N; i++) { string Input = Consol...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["-", 0, 239, 0, 264, 0, 23, 0, 5, 0, 222], ["+", 0, 239, 0, 264, 0, 23, 0, 5, 0, 222]]
8
249
4
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { int[] ans = new int[4]; int n = crI(); for (int i = 0; i < n; i++) { string s = crS(); if (s.Equals("AC")) ans[0]++; else if (s.Equals("WA")) ans[1]++; ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { int[] ans = new int[4]; int n = crI(); for (int i = 0; i < n; i++) { string s = crS(); if (s.Equals("AC")) ans[0]++; else if (s.Equals("WA")) ans[1]++; ...
[["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222]]
8
397
8
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var num = Scanner.Integer(); var strings = new List<string>(); for (int i = 0; i < num; i++) { str...
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var num = Scanner.Integer(); var strings = new List<string>(); for (int i = 0; i < num; i++) { str...
[["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222]]
8
862
2
using System; using System.Collections.Generic; using System.Linq; namespace test1 { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var list = new List<string>(); for (int i = 0; i < N; i++) { list.Add(Console.ReadLine()); } Console.WriteLine("AC x...
using System; using System.Collections.Generic; using System.Linq; namespace test1 { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var list = new List<string>(); for (int i = 0; i < N; i++) { list.Add(Console.ReadLine()); } Console.WriteLine("AC x...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
220
2
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; namespace ForAtcoder { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); long ac = 0; long wa = 0; long tle = 0; long re = 0; for (var i = 1; i <= n; i++) { ...
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; namespace ForAtcoder { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); long ac = 0; long wa = 0; long tle = 0; long re = 0; for (var i = 1; i <= n; i++) { ...
[["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]]
8
192
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var ansl = new int[4] { 0, 0, 0, 0 }; for (var i = 0; n > i; i++) { var l = Console.ReadLine(); if (l == "AC") ansl[0]++; i...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var ansl = new int[4] { 0, 0, 0, 0 }; for (var i = 0; n > i; i++) { var l = Console.ReadLine(); if (l == "AC") ansl[0]++; i...
[["-", 8, 196, 0, 57, 15, 16, 12, 5, 0, 222], ["+", 8, 196, 0, 57, 15, 16, 12, 5, 0, 222]]
8
234
2
using System; using System.Collections; 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(); } ...
using System; using System.Collections; 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(); } ...
[["-", 0, 212, 0, 227, 0, 229, 0, 5, 0, 222], ["+", 0, 212, 0, 227, 0, 229, 0, 5, 0, 222]]
8
1,781
2
using System; using System.Linq; class name { static void Main() { int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray(); string m = string.Empty; int[] h = new int[10]; string AC = "AC"; string WA = "WA"; string TLE = "TLE"; string RE = "RE"; for (int k = 0; k < n[0]; k++...
using System; using System.Linq; class name { static void Main() { int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray(); string m = string.Empty; int[] h = new int[10]; string AC = "AC"; string WA = "WA"; string TLE = "TLE"; string RE = "RE"; for (int k = 0; k < n[0]; k++...
[["-", 0, 28, 0, 16, 31, 16, 31, 5, 0, 222], ["+", 0, 28, 0, 16, 31, 16, 31, 5, 0, 222]]
8
261
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace atcoder172 { class Program { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); var acCnt = 0; var waCnt = 0; var tleCnt = 0; var reCnt = 0; f...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace atcoder172 { class Program { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); var acCnt = 0; var waCnt = 0; var tleCnt = 0; var reCnt = 0; f...
[["-", 8, 254, 0, 239, 0, 264, 0, 5, 0, 222], ["+", 8, 254, 0, 239, 0, 264, 0, 5, 0, 222]]
8
199
2