buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC042A { 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 = int....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC042A { 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 = int....
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
218
using System; using System.Linq; class Program { static void Main(string[] args) { var ABC = Console.ReadLine().Split(' ').ToList(); Console.WriteLine( ABC.Count(s => s == "5") == 2 && ABC.Count(s => s == "7") == 1 ? "Yes" : "No");...
using System; using System.Linq; class Program { static void Main(string[] args) { var ABC = Console.ReadLine().Split(' ').ToList(); Console.WriteLine( ABC.Count(s => s == "5") == 2 && ABC.Count(s => s == "7") == 1 ? "YES" : "NO");...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
86
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // List<int> values = new List<int>(Console.ReadLine().Split(' ').Select(s // => int.Parse(s))); List<int> values = new List<int>(); string input = Console.ReadLine(); int n = int.Pa...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // List<int> values = new List<int>(Console.ReadLine().Split(' ').Select(s // => int.Parse(s))); List<int> values = new List<int>(); string input = Console.ReadLine(); int n = int.Pa...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
167
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 d = ria(); Array.Sort(d); Console.WriteLine(d[0] == 5 && d[1] == 5...
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 d = ria(); Array.Sort(d); Console.WriteLine(d[0] == 5 && d[1] == 5...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
336
using System; using System.Linq; class Program { static void Main() { var seq = Console.ReadLine().Split().Select(int.Parse).OrderBy(x => x).ToArray(); if (seq[0] == 5 && seq[1] == 5 && seq[2] == 7) { Console.WriteLine("Yes"); } else { Console.WriteLine("NO"); } } }
using System; using System.Linq; class Program { static void Main() { var seq = Console.ReadLine().Split().Select(int.Parse).OrderBy(x => x).ToArray(); if (seq[0] == 5 && seq[1] == 5 && seq[2] == 7) { 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
96
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B_019_42 { internal class Program { private static void Main(string[] args) { new Logic_A().Start(); Console.ReadLine(); } public class Logic_A { public void Start() { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B_019_42 { internal class Program { private static void Main(string[] args) { new Logic_A().Start(); Console.ReadLine(); } public class Logic_A { public void Start() { ...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
184
using System; using System.Linq; class S { static void Main() { int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); Array.Sort(a); if (a[0] == 5 && a[1] == 5 && a[2] == 7) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } }
using System; using System.Linq; class S { static void Main() { int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); Array.Sort(a); if (a[0] == 5 && a[1] == 5 && a[2] == 7) { 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
98
using System; using System.Collections.Generic; using System.Linq; namespace B042 { class Program { static void Main(string[] args) { List<int> n = Console.ReadLine().Split(' ').Select(int.Parse).ToList(); n.Sort(); if (n[0] == 5 && n[1] == 5 && n[2] == 7) Console.WriteLine("YES"); else ...
using System; using System.Collections.Generic; using System.Linq; namespace B042 { class Program { static void Main(string[] args) { List<int> n = Console.ReadLine().Split(' ').Select(int.Parse).ToList(); n.Sort(); if (n[0] == 5 && n[1] == 5 && n[2] == 7) Console.WriteLine("YES"); else ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
112
using System; class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(); int fivecnt = 0; int sevencnt = 0; for (int i = 0; i < s.Length; i++) { int x = int.Parse(s[i]); if (x == 5) fivecnt++; if (x == 7) sevencnt++; } if (fi...
using System; class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(); int fivecnt = 0; int sevencnt = 0; for (int i = 0; i < s.Length; i++) { int x = int.Parse(s[i]); if (x == 5) fivecnt++; if (x == 7) sevencnt++; } if (fi...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
121
using System.Linq; using System.Collections.Generic; using System; using System.Collections; class A { static void Main() { int[] a = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); Array.Sort(a); if (a[0] == 5 && a[1] == 5 && a[2] == 7) { Console.WriteLine("YES"); } else { ...
using System.Linq; using System.Collections.Generic; using System; using System.Collections; class A { static void Main() { int[] a = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); Array.Sort(a); if (a[0] == 5 && a[1] == 5 && a[2] == 7) { Console.WriteLine("YES"); } else { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
118
using System; using System.Collections.Generic; using System.Linq; namespace WelcomeAtcordet { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[1]); string[] search = new string[N]; string ans = null; for (int i = 0; i < N;...
using System; using System.Collections.Generic; using System.Linq; namespace WelcomeAtcordet { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); string[] search = new string[N]; string ans = null; for (int i = 0; i < N;...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
135
using System; using System.Linq; class B { static void Main() { int[] NM = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int L = NM[1]; string[] Ar = new string[L]; for (int j = 0; j < L; j++) { Ar[j] = Console.ReadLine(); } Array.Sort(Ar); Console.WriteLine(String.Joi...
using System; using System.Linq; class B { static void Main() { int[] NM = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int L = NM[0]; string[] Ar = new string[L]; for (int j = 0; j < L; j++) { Ar[j] = Console.ReadLine(); } Array.Sort(Ar); Console.WriteLine(String.Joi...
[["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203]]
8
114
using System; using System.Collections.Generic; using System.Linq; class Progaram { static void Main(string[] args) { var line = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList(); var n = line[0]; var l = line[1]; var sl = new List<string>(); for (var i = 0; l > i; i++) { sl...
using System; using System.Collections.Generic; using System.Linq; class Progaram { static void Main(string[] args) { var line = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList(); var n = line[0]; var l = line[1]; var sl = new List<string>(); for (var i = 0; n > i; i++) { sl...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22]]
8
148
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class _042b { static void Main() { string[] nl = Console.ReadLine().Split(' '); int n = int.Parse(nl[0]); int l = int.Parse(nl[1]); var list = new List<string>(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class _042b { static void Main() { string[] nl = Console.ReadLine().Split(' '); int n = int.Parse(nl[0]); int l = int.Parse(nl[1]); var list = new List<string>(); ...
[["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 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
154
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCode { class Program { static void Main(string[] args) { string InputNum = Console.ReadLine(); string[] DivNum = InputNum.Split(' '); int Num = int.Parse(DivNum[0]); int Length = int.Parse(DivNum[1]); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCode { class Program { static void Main(string[] args) { string InputNum = Console.ReadLine(); string[] DivNum = InputNum.Split(' '); int Num = int.Parse(DivNum[0]); int Length = int.Parse(DivNum[1]); ...
[["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 0, 1, 0, 11, 12, 16, 12, 5, 0, 62], ["-", 0, 1, 0, 11, 12, 16, 12, 5, 0, 222]]
8
175
using System; using System.Collections.Generic; class Program { static void Main() { string[] inputs = Console.ReadLine().Split(); int length = int.Parse(inputs[0]); int maxCount = int.Parse(inputs[1]); List<string> datas = new List<string>(); for (var i = 0; i < maxCount; i++) datas.Add(Co...
using System; using System.Collections.Generic; class Program { static void Main() { string[] inputs = Console.ReadLine().Split(); int maxCount = int.Parse(inputs[0]); int length = int.Parse(inputs[1]); List<string> datas = new List<string>(); for (var i = 0; i < maxCount; i++) datas.Add(Co...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22]]
8
126
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { var imp = Console.ReadLine().Split(' '); int N = int.Parse(imp[0]); int L = int.Parse(imp[1]); string[] strs = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { var imp = Console.ReadLine().Split(' '); int N = int.Parse(imp[0]); int L = int.Parse(imp[1]); string[] strs = ...
[["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22]]
8
171
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace program { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int l = int.Parse(input[1]); string[] ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace program { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int l = int.Parse(input[1]); string[] ...
[["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
179
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace VirtualAtCorder { class Program { static void Main(string[] args) { string[] inputs = Console.ReadLine().Split(' '); string[] lst = new string[int.Parse(inputs[0])];...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace VirtualAtCorder { class Program { static void Main(string[] args) { string[] inputs = Console.ReadLine().Split(' '); string[] lst = new string[int.Parse(inputs[0])];...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22]]
8
152
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Numerics; class Program { public void Proc() { Reader.IsDebug = false; int[] inpt = Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); int numCount = inpt[1]; for (int i = 0; i <...
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Numerics; class Program { public void Proc() { Reader.IsDebug = false; int[] inpt = Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); int numCount = inpt[0]; for (int i = 0; i <...
[["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203]]
8
257
using System; using System.Linq; public class Program { public static void Main() { int[] input = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray(); string[] arr = new string[input[1]]; for (int i = 0; i < input[1]; i++) { arr[i] = Console.ReadLine(); } Array.Sort(arr);...
using System; using System.Linq; public class Program { public static void Main() { int[] input = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray(); string[] arr = new string[input[0]]; for (int i = 0; i < input[0]; i++) { arr[i] = Console.ReadLine(); } Array.Sort(arr);...
[["-", 225, 226, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 225, 226, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
118
using System; using System.Collections; using System.Collections.Generic; namespace A { class Program { public class TupleList<T1, T2, T3> : List<Tuple<int, int, string>> { public void Add(int item1, int item2, string s) { Add(new Tuple<int, int, string>(item1, item2, s)); } } static void Main(stri...
using System; using System.Collections; using System.Collections.Generic; namespace A { class Program { public class TupleList<T1, T2, T3> : List<Tuple<int, int, string>> { public void Add(int item1, int item2, string s) { Add(new Tuple<int, int, string>(item1, item2, s)); } } static void Main(stri...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
191
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder.ABC042 { class ProblemC { static void Main() { var nk = ReadIntArray(); var n = nk[0]; var k = nk[1]; var ds = ReadIntArray(); for (int i = n; i >= 0; i--) { if (EnumerateDigt(i).Any(v => ds...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder.ABC042 { class ProblemC { static void Main() { var nk = ReadIntArray(); var n = nk[0]; var k = nk[1]; var ds = ReadIntArray(); for (var i = n; i < 100000; i++) { if (EnumerateDigt(i).Any(v =...
[["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 39, 216, 0, 217], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 68]...
8
203
namespace AtCoder.ABC.C042 { using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.IO; using AtCoder.ABC.IO; public class Quest { public object Solve(Parser parser) { int n = parser.Integer(); int k = parser.Integer(); var d = parse...
namespace AtCoder.ABC.C042 { using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.IO; using AtCoder.ABC.IO; public class Quest { public object Solve(Parser parser) { int n = parser.Integer(); int k = parser.Integer(); var d = parse...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]]
8
1,075
using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[] inputNum = Console.ReadLine().Split(' '); int N = int.Parse(inputNum[0]); int K = int.Parse(inputNum[1]); string[] arrD = Console.ReadLine().Split(' '); int pay = N; while (isPayCheck(p...
using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[] inputNum = Console.ReadLine().Split(' '); int N = int.Parse(inputNum[0]); int K = int.Parse(inputNum[1]); string[] arrD = Console.ReadLine().Split(' '); int pay = N; while (!isPayCheck(...
[["+", 0, 195, 8, 196, 0, 52, 15, 241, 0, 111]]
8
181
using System; using System.Collections.Generic; using System.Linq; using static Atcoder; using System.Threading.Tasks; using System.ComponentModel; public class Hello { private const int INF = 1000000000; public static void Main() { int[] box = SpRead(' ').Select(int.Parse).ToArray(); int N = box[0], K = b...
using System; using System.Collections.Generic; using System.Linq; using static Atcoder; using System.Threading.Tasks; using System.ComponentModel; public class Hello { private const int INF = 1000000000; public static void Main() { int[] box = SpRead(' ').Select(int.Parse).ToArray(); int N = box[0], K = b...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22]]
8
444
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { // Console.SetIn(new StreamReader("input.txt")); var ints = In.Ints().ToArray(); var N = ints[0]; var K = ints[1...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { // Console.SetIn(new StreamReader("input.txt")); var ints = In.Ints().ToArray(); var N = ints[0]; var K = ints[1]...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72]]
8
414
using System; namespace _0220 { class Program { static void Main(string[] args) { while (true) { double n = double.Parse(Console.ReadLine()); if (n < 0) break; n *= 16; if (n % 1 != 0 || n >= 4096) { Console.WriteLine("NA"); break; } double i = double.P...
using System; namespace _0220 { class Program { static void Main(string[] args) { while (true) { double n = double.Parse(Console.ReadLine()); if (n < 0) break; n *= 16; if (n % 1 != 0 || n >= 4096) { Console.WriteLine("NA"); } else { double i = double.Parse(C...
[["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 95], ["+", 0, 52, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 52, 8, 196, 0, 57, 75, 196, 0, 46]]
8
133
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Test1 { class ClassMain { public static void Main(String[] args) { string line; while ((line = Console.ReadLine()) != null) { int t = int.Parse(line); if (t == 0) { break; } int n...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Test1 { class ClassMain { public static void Main(String[] args) { string line; while ((line = Console.ReadLine()) != null) { int t = int.Parse(line); if (t == 0) { break; } int n...
[["-", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
181
using System.Linq; using System.Collections.Generic; using System; public class hello { public static void Main() { while (true) { var n = int.Parse(Console.ReadLine().Trim()); if (n == 0) break; var ary = new int[n, 5]; for (int i = 0; i < n; i++) { string[] line = Consol...
using System.Linq; using System.Collections.Generic; using System; public class hello { public static void Main() { while (true) { var n = int.Parse(Console.ReadLine().Trim()); if (n == 0) break; var ary = new int[n, 5]; for (int i = 0; i < n; i++) { string[] line = Consol...
[["-", 8, 196, 0, 7, 8, 57, 15, 16, 17, 20], ["+", 8, 196, 0, 7, 8, 57, 15, 16, 17, 47]]
8
385
using System; using System.Linq; using System.Collections.Generic; namespace Aizu { class OnlineJudge { public static void Main() { for (int i; (i = int.Parse(Console.ReadLine())) != 0;) { var d = new Dictionary<string, int>(); while (i-- > 0) { Array.ForEach(Console.ReadLine().Split(), ...
using System; using System.Linq; using System.Collections.Generic; namespace Aizu { class OnlineJudge { public static void Main() { for (int i; (i = int.Parse(Console.ReadLine())) != 0;) { var d = new Dictionary<string, int>(); while (i-- > 0) { Array.ForEach(Console.ReadLine().Split(), ...
[["-", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22]]
8
211
using System; using System.Collections.Generic; using System.Linq; namespace AOJ.Volume2 { public class InputCandidates { public static int Main() { while (true) { int n = int.Parse(Console.ReadLine()); if (n == 0) { break; } var dic = new Dictionary<string, int>(...
using System; using System.Collections.Generic; using System.Linq; namespace AOJ.Volume2 { public class InputCandidates { public static int Main() { while (true) { int n = int.Parse(Console.ReadLine()); if (n == 0) { break; } var dic = new Dictionary<string, int>(...
[["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22]]
8
263
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace _0254 { class Program { static void Main(string[] args) { // var exStdIn = new System.IO.StreamReader("stdin.txt"); // Console.SetIn(exStdIn); while (true) { int[] nm = RArInt(); ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace _0254 { class Program { static void Main(string[] args) { // var exStdIn = new System.IO.StreamReader("stdin.txt"); // Console.SetIn(exStdIn); while (true) { int[] nm = RArInt(); ...
[["+", 0, 57, 15, 16, 31, 204, 205, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 204, 205, 214, 141, 22], ["+", 0, 37, 0, 41, 64, 204, 205, 214, 0, 131], ["+", 0, 37, 0, 41, 64, 204, 205, 214, 141, 22]]
8
673
using System; using System.Linq; class Program { static void Main(string[] args) { int[] s = new int[10]; int sum = 0; for (int i = 1; i < 10; i++) { s[i] = int.Parse(Console.ReadLine()); sum += s[i]; } Console.WriteLine(sum); Console.ReadLine(); } }
using System; using System.Linq; class Program { static void Main(string[] args) { int[] s = new int[10]; int sum = 0; for (int i = 0; i < 10; i++) { s[i] = int.Parse(Console.ReadLine()); sum += s[i]; } Console.WriteLine(sum); Console.ReadLine(); } }
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
91
using System; namespace AOJ { class Program { public static void Main(string[] args) { var s = ""; var sum = 0; while ((s = Console.ReadLine()) != null) { sum += int.Parse(s); } Console.WriteLine(s); } } }
using System; namespace AOJ { class Program { public static void Main(string[] args) { var s = ""; var sum = 0; while ((s = Console.ReadLine()) != null) { sum += int.Parse(s); } Console.WriteLine(sum); } } }
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
66
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _0257 { class Program { static void Main(string[] args) { string b1 = Console.ReadLine(); if (b1 == "1 0 0" || b1 == "0 1 0" || b1 == "0 0 0") Console.WriteLine("close"); else Console.WriteLine("op...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _0257 { class Program { static void Main(string[] args) { string b1 = Console.ReadLine(); if (b1 == "1 0 0" || b1 == "0 1 0" || b1 == "0 0 0") Console.WriteLine("Close"); else Console.WriteLine("Op...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
93
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _0261 { class Program { static readonly int[] DaysToMonth365 = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }; static readonly int[] DaysToMonth366 = { 0,...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _0261 { class Program { static readonly int[] DaysToMonth365 = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }; static readonly int[] DaysToMonth366 = { 0,...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47]]
8
803
using System; namespace Aizu { class OnlineJudge { public static void Main() { var p = new[] { 1, 5, 10, 50, 100, 500, 0 }; var c = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); for (int i = 5; i >= 0 && p[6] < 1000; p[6] = p[i] * c[i--]) ; Console.WriteLine(p[6] >= 1000 ? 1 : 0); ...
using System; namespace Aizu { class OnlineJudge { public static void Main() { var p = new[] { 1, 5, 10, 50, 100, 500, 0 }; var c = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); for (int i = 5; i >= 0 && p[6] < 1000; p[6] += p[i] * c[i--]) ; Console.WriteLine(p[6] >= 1000 ? 1 : 0); ...
[["-", 8, 196, 0, 7, 26, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 7, 26, 11, 0, 202, 0, 107]]
8
114
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication62 { class Program { static void Main() { int a = int.Parse(Console.ReadLine()); for (int b = 0; b < a; b++) { int[] c = Console.ReadLine().Split().Select(int.Parse).ToArray(); if (c[...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication62 { class Program { static void Main() { int a = int.Parse(Console.ReadLine()); for (int b = 0; b < a; b++) { int[] c = Console.ReadLine().Split().Select(int.Parse).ToArray(); if (c[...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
135
using System; namespace AOJ.Volume3 { public class NumberOfParticipants { public static int Main() { var input = Console.ReadLine().Split(' '); int answer = 0; for (int i = 0; i < 3; i++) { answer += int.Parse(input[i]); } Console.WriteLine(); return 0; } } }
using System; namespace AOJ.Volume3 { public class NumberOfParticipants { public static int Main() { var input = Console.ReadLine().Split(' '); int answer = 0; for (int i = 0; i < 3; i++) { answer += int.Parse(input[i]); } Console.WriteLine(answer); return 0; } ...
[["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
80
using System.Collections.Generic; using System; public class hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var a = new long[n + 1]; for (int i = 0; i < n; i++) a[i + 1] = a[i] + long.Parse(Console.ReadLine().Trim()); var d = new Dictionary<long, int>(); v...
using System.Collections.Generic; using System; public class hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var a = new long[n + 1]; for (int i = 0; i < n; i++) a[i + 1] = a[i] + long.Parse(Console.ReadLine().Trim()); var d = new Dictionary<long, int>(); v...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 139], ["-", 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
196
using System; namespace AOJ.Volume3 { public class RectangleMade { public static int Main() { var input = Console.ReadLine().Split(' '); var len = new int[12]; for (int i = 0; i < 12; i++) { len[i] = int.Parse(input[0]); } Array.Sort(len); bool success = true; f...
using System; namespace AOJ.Volume3 { public class RectangleMade { public static int Main() { var input = Console.ReadLine().Split(' '); var len = new int[12]; for (int i = 0; i < 12; i++) { len[i] = int.Parse(input[i]); } Array.Sort(len); bool success = true; f...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22]]
8
178
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace OthloKyopro { class Program { static void Main(string[] args) { /* 2 */ var input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var own = input[0]; var a = input[1]; var ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace OthloKyopro { class Program { static void Main(string[] args) { /* 2 */ var input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var own = input[0]; var a = input[1]; var...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 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
143
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace OthloKyopro { class Program { static void Main(string[] args) { /*3*/ var input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray()[0]; var mod = (input - 9) / 7; switch (mod) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace OthloKyopro { class Program { static void Main(string[] args) { /*3*/ var input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray()[0]; var mod = (35 + input - 9) % 7; switch (mod)...
[["+", 0, 16, 31, 23, 0, 16, 31, 16, 31, 203], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109]]
8
189