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; public class AtCoderA { static void Main() { var sc = new Scanner(); int a = sc.NextInt(); int b = sc.NextInt(); string answer; if ((a < 0 && b < 0) || (a > 0 && b > 0)) { answer = "Positive"; } else...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int a = sc.NextInt(); int b = sc.NextInt(); string answer; if (a > 0 && b > 0) { answer = "Positive"; } else if (a <= 0 && b >= 0)...
[["-", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["-", 15, 16, 31, 23, 0, 16, 31, 16, 17, 18], ["-", 15, 16, 31, 23, 0, 16, 31, 16, 12, 203], ["-", 0, 57, 15, 16, 31, 23, 0, 16, 17, 98], ["-", 15, 16, 31, 23, 0, 16, 12, 16, 31, 22], ["-", 15, 16, 31, 23, 0, 16, 12, 16, 17, 18], ["-", 15, 16, 31, 23, 0, 16, 12, 16, 12, 203...
8
420
using System; using System.Linq; class A { static void Main() { var n = Console.ReadLine().Split().Select(int.Parse).ToArray(); if (n[0] > 0) { Console.WriteLine("Positive"); } else if (n[0] <= 0 && n[0] + n[1] >= 0) { Console.WriteLine("Zero"); } else if (n[1] % 2 == 0) { Console.W...
using System; using System.Linq; class A { static void Main() { var n = Console.ReadLine().Split().Select(int.Parse).ToArray(); if (n[0] > 0) { Console.WriteLine("Positive"); } else if (n[0] <= 0 && n[1] >= 0) { Console.WriteLine("Zero"); } else if ((n[1] - n[0]) % 2 == 1) { Console...
[["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["-", 75, 57, 15, 16, 12, 16, 31, 16, 17, 72], ["-", 15, 16, 12, 16, 31, 16, 12, 204, 205, 22], ["-", 12, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["+", 75, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 204, ...
8
131
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class _C { void _() { var n = _Ns(); var a = n[0]; var b = n[1]; long c = (long)a * (long)b; if (c <= 0) Console.WriteLine("Zero"); else if (a > 0) Console.Write...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class _C { void _() { var n = _Ns(); var a = n[0]; var b = n[1]; long c = (long)a * (long)b; if (c <= 0) Console.WriteLine("Zero"); else if (a > 0) Console.Write...
[["+", 8, 196, 0, 57, 75, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 57, 75, 196, 0, 57, 0, 121], ["+", 0, 57, 75, 57, 75, 196, 0, 57, 0, 24], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 205, 22], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 15, 16, 31, 16, 31, 213, 3,...
8
290
using System; class Program { static void Main(string[] args) { int ans = 0; // 整数の入力 // int a = int.Parse(Console.ReadLine()); // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int M = int.Parse(input[1]); int[] arrB = { 1, 1 }; Array.R...
using System; class Program { static void Main(string[] args) { int ans = 0; // 整数の入力 // int a = int.Parse(Console.ReadLine()); // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int M = int.Parse(input[1]); int[] arrB = { 0, 1, 1 }; Arra...
[["+", 0, 198, 0, 200, 0, 212, 0, 229, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 229, 0, 21], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ...
8
312
using System; using System.Text.RegularExpressions; using System.Linq; using System.Collections.Generic; using System.IO; using System.Numerics; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { var str = Console.ReadLine().Split(); var n = Int32.Parse(str[0]); var l = Int...
using System; using System.Text.RegularExpressions; using System.Linq; using System.Collections.Generic; using System.IO; using System.Numerics; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { var str = Console.ReadLine().Split(); var n = Int32.Parse(str[0]); var l = Int...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201...
8
241
using System; using System.Linq; using System.Linq.Expressions; using System.Collections.Generic; using Debug = System.Diagnostics.Debug; using StringBuilder = System.Text.StringBuilder; using System.Numerics; using Number = System.Int64; namespace Program { public class Solver { public void Solve() { var n = sc...
using System; using System.Linq; using System.Linq.Expressions; using System.Collections.Generic; using Debug = System.Diagnostics.Debug; using StringBuilder = System.Text.StringBuilder; using System.Numerics; using Number = System.Int64; namespace Program { public class Solver { public void Solve() { var n = sc...
[["-", 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, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 1...
8
1,311
using System; class Program { static void Main() { int i = 0; while (i++ < 9) { int j = 0; while (j < 9 * i) { Console.WriteLine(i + "x" + j + "=" + (j += i)); } } } }
using System; class Program { static void Main() { int i = 0; while (i++ < 9) { int j = 0; while (j++ < 9) { Console.WriteLine(i + "x" + j + "=" + i * j); } } } }
[["+", 8, 196, 0, 52, 15, 16, 31, 223, 0, 29], ["-", 8, 196, 0, 52, 15, 16, 12, 16, 17, 48], ["-", 8, 196, 0, 52, 15, 16, 12, 16, 12, 22], ["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["-", 0, 28, 0, 16, 12, 23, 0, 11, 31, 22], ["-", 0, 16, 12, 23, 0, 11, 0, 202, 0, 107], ["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25], ["+", 3,...
8
66
using System; class Program { static void Main() { int i = 0; while (i++ < 9) { int j = 0; while (j < 9 * i) { Console.WriteLine(i + "x" + j + "=" + (j += i)); } } } }
using System; class Program { static void Main() { int i = 0; while (i++ < 9) { int j = 0; while (j++ < 9) Console.WriteLine(i + "x" + j + "=" + i * j); } } }
[["+", 8, 196, 0, 52, 15, 16, 31, 223, 0, 29], ["-", 8, 196, 0, 52, 15, 16, 12, 16, 17, 48], ["-", 8, 196, 0, 52, 15, 16, 12, 16, 12, 22], ["-", 0, 52, 8, 196, 0, 52, 8, 196, 0, 45], ["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["-", 0, 28, 0, 16, 12, 23, 0, 11, 31, 22], ["-", 0, 16, 12, 23, 0, 11, 0, 202, 0, 107], ["-", ...
8
66
using System; namespace hellounihara { class MainClass { public static void Main(string[] args) { int[] arr = new int[10]; Random rmd = new Random(); for (int i = 0; i < 10; i++) { arr[i] = rmd.Next(10000); // Console.WriteLine(arr[i]); } for (int i = 0; i < arr.Length - 1; i++) { ...
using System; namespace hellounihara { class MainClass { public static void Main(string[] args) { int[] arr = new int[10]; // Random rmd = new Random (); for (int i = 0; i < 10; i++) { arr[i] = int.Parse(Console.ReadLine()); // Console.WriteLine(arr[i]); } for (int i = 0; i < arr.L...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 39, 22], ["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 2...
8
182
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AOJ { class ListofTop3Hills { static void Main(string[] args) { List<int> param = new List<int>(); for (int i = 0; i < 10; i++) { param.Add(int.Parse(System.Console.ReadLine())); } param.Sort(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AOJ { class ListofTop3Hills { static void Main(string[] args) { List<int> param = new List<int>(); for (int i = 0; i < 10; i++) { param.Add(int.Parse(System.Console.ReadLine())); } param.Sort(); ...
[["-", 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, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 1...
8
121
using System; class Test { static void Main() { int m1 = 0, m2 = 0, m3 = 0, h; int i; for (i = 0; i < 10; i++) { h = int.Parse(Console.ReadLine()); if (m1 < h) { m3 = m2; m2 = m1; m1 = h; } else if (m2 < h) { m3 = m2; m2 = h; } else ...
using System; class Test { static void Main() { int m1 = 0, m2 = 0, m3 = 0, h; int i; for (i = 0; i < 10; i++) { h = int.Parse(Console.ReadLine()); if (m1 < h) { m3 = m2; m2 = m1; m1 = h; } else if (m2 < h) { m3 = m2; m2 = h; } else if ...
[["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 17, 18], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 25], ["+", 0, 57, 75, 57, 75, 57, 64, 196, 0, 45],...
8
121
using System; using System.Collections.Generic; using System.IO; namespace Hill { class Program { static void Main(string[] args) { List<int> list = new List<int>(); var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; string str; Console.SetOut(sw); for (int i ...
using System; using System.Collections.Generic; using System.IO; namespace Hill { class Program { static void Main() { var list = new List<int>(); var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; string str; Console.SetOut(sw); for (int i = 0; i < 10; i++) {...
[["-", 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, 236, 141, 22], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["-", 0, 197, 0, 198, 39, ...
8
154
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); int b = int.Parse(Console.ReadLine()); int c = int.Parse(Console.ReadLine()); int d = int.Pars...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); int b = int.Parse(Console.ReadLine()); int c = int.Parse(Console.ReadLine()); int d = int.Pars...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
265
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication32 { class Program { static void Main() { int[] a = new int[10]; for (int b = 0; b < 10; b++) a[b] = int.Parse(Console.ReadLine()); Array.Sort(a); Console.WriteLine(a[0]); Conso...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication32 { class Program { static void Main() { int[] a = new int[10]; for (int b = 0; b < 10; b++) a[b] = int.Parse(Console.ReadLine()); Array.Sort(a); Console.WriteLine(a[9]); Conso...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
113
using System; namespace ListofTop3Hills { class Program { static void Main(string[] args) { string str; int strint; string[] m = new string[10]; int i; for (i = 0; i < 10; ++i) { str = Console.ReadLine(); strint = int.Parse(str); if (strint >= 0 && strint <= 10000) { m[...
using System; namespace ListofTop3Hills { class Program { static void Main(string[] args) { string str; int strint; int[] m = new int[10]; int i; for (i = 0; i < 10; ++i) { str = Console.ReadLine(); strint = int.Parse(str); m[i] = strint; } Array.Sort(m); Array.Rev...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 16,...
8
136
using System; public class two { public static void Main() { int[] heights = new int[10]; for (int i = 0; i < 10; i++) { heights[i] = int.Parse(Console.ReadLine()); } sort(heights); Console.WriteLine(heights[0]); Console.WriteLine(heights[1]); Console.WriteLine(heights[2]); } pr...
using System; public class two { public static void Main() { int[] heights = new int[10]; for (int i = 0; i < 10; i++) { heights[i] = int.Parse(Console.ReadLine()); } sort(heights); Console.WriteLine(heights[0]); Console.WriteLine(heights[1]); Console.WriteLine(heights[2]); } pr...
[["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 15, 16, 12, 16, 31, 214, 205, 22], ...
8
177
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int[] data = new int[10]; for (int i = 0; i < 10; i++) { data[i] = int.Parse(Console.ReadLine()); } Array.Sort(data); for ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int[] data = new int[10]; for (int i = 0; i < 10; i++) { data[i] = int.Parse(Console.ReadLine()); } Array.Sort(data); for ...
[["-", 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, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ...
8
115
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { var list = args.Select(int.Parse).ToList(); list.Sort(); Console.WriteLine(list.AsEnumerable() .Reverse() ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { var list = Enumerable.Range(0, 10) .Select(_ => int.Parse(Console.ReadLine())) .ToList(); list.Sort();...
[["-", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["+", 205,...
8
109
using System; class main { static void Main(string[] args) { int[] a = new int[10]; for (int i = 0; i < a.Length; ++i) { a[i - 1] = int.Parse(Console.ReadLine()); } Array.Sort(a); Array.Reverse(a); for (int r = 0; r < 3; ++r) { Console.WriteLine(a[r]); } /*for (int a = 1;...
using System; class main { static void Main(string[] args) { int[] a = new int[10]; for (int i = 0; i < a.Length; ++i) { a[i] = int.Parse(Console.ReadLine()); } Array.Sort(a); Array.Reverse(a); for (int i = 0; i < 3; ++i) { Console.WriteLine(a[i]); } // Console.ReadKey(); ...
[["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 26, 241, 0...
8
120
using System; using System.Collections.Generic; using System.Text; namespace mondai0002 { class Program { static void Main(string[] args) { string input; int a = 0; int b = 0; while (true) { input = Console.ReadLine(); if (input.Equals("")) { break; } a = int.Parse(...
using System; using System.Collections.Generic; using System.Text; namespace mondai0002 { class Program { static void Main(string[] args) { string input; int a = 0; int b = 0; int sum = 0; while (true) { input = Console.ReadLine(); if (input == null || input.Equals("")) { br...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 1...
8
130
using System; namespace hellounihara { class MainClass { public static void Main(string[] args) { for (int i = 0; i < 200; i++) { int a = 0; string arr02 = Console.ReadLine(); if (arr02 == null) { break; } string[] starr02 = arr02.Split(); foreach (var item in starr02)...
using System; namespace hellounihara { class MainClass { public static void Main(string[] args) { for (int i = 0; i < 200; i++) { int a = 0; string arr02 = Console.ReadLine(); if (arr02 == null) { break; } string[] starr02 = arr02.Split(); foreach (var item in starr02)...
[["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 212, 0, 214, 205, 213, 63, 214, 205, 22], ["+", 0, 212, 0, 214, 205, 213, 63, 214, 0, 131], ["+", 0, 212, 0, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 214, 205, ...
8
99
using System; namespace AIZUJudge { class Disit { static void Main(string[] args) { string data = Console.ReadLine(); string[] tmp = data.Split(' '); int a = int.Parse(tmp[0]); int b = int.Parse(tmp[1]); int sum = a + b; int i = 1; while (true) { if (sum < Math.Pow(10, i)) { ...
using System; namespace AIZUJudge { class Disit { static void Main(string[] args) { while (true) { string data = Console.ReadLine(); if (string.IsNullOrEmpty(data)) break; string[] tmp = data.Split(' '); int a = int.Parse(tmp[0]); int b = int.Parse(tmp[1]); int sum =...
[["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+...
8
116
using System; using System.Linq; using System.Collections.Generic; namespace _0002 { class Program { static void Main(string[] args) { List<int> b = new List<int>(); string input; for (int i = 0; i < 10; i++) { input = Console.ReadLine(); if (input == "") { break; } int[] x...
using System; using System.Linq; using System.Collections.Generic; namespace _0002 { class Program { static void Main(string[] args) { List<int> b = new List<int>(); string input; while (true) { input = Console.ReadLine(); if (input == null) { break; } int[] x = input.Split...
[["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], [...
8
147
using System; using System.Collections.Generic; using System.Linq; namespace AOJ0002 { class Program { static void Main(string[] args) { var inputStr = (Console.ReadLine()); var q = inputStr.Split(' '); var i = q.Sum(s => Convert.ToInt32(s)); Console.WriteLine(i.ToString().Length); } } }
using System; using System.Collections.Generic; using System.Linq; namespace AOJ0002 { class Program { private static void Main(string[] args) { for (;;) { var inputStr = Console.ReadLine(); if (inputStr == null) break; var q = inputStr.Split(' '); var i = q.Sum(s => Convert.ToIn...
[["+", 0, 235, 8, 201, 0, 195, 0, 251, 0, 261], ["+", 0, 235, 8, 201, 0, 195, 54, 55, 0, 25], ["+", 0, 235, 8, 201, 0, 195, 8, 196, 0, 45], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["-", 0, 198, 0, 200, 0, 212, 0, 23, 0, 24], ["+...
8
87
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication40 { class Program { static void Main() { int A, B; A = B = 0; while (true) { string C = Console.ReadLine(); if (C == null) break; int[] D = C.Split(',').Select(int....
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication40 { class Program { static void Main() { int A, B; A = B = 0; while (true) { string C = Console.ReadLine(); if (C == null) break; int[] D = C.Split(',').Select(int....
[["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["-", 0, 28, 0, 16, 31, 16, 12, 5, 0, 62], ["-", 0, 28, 0, 16, 31, 16, 12, 5, 0, 222], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196,...
8
157
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AOJ { class triangle { static void Main(string[] args) { int num = int.Parse(System.Console.ReadLine()); List<int> param = new List<int> { 0, 0, 0 }; for (int i = 0; i < num; i++) { string[] tmp = System...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AOJ { class triangle { static void Main(string[] args) { int num = int.Parse(System.Console.ReadLine()); List<int> param = new List<int> { 0, 0, 0 }; for (int i = 0; i < num; i++) { string[] tmp = System...
[["-", 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
212
using System; using System.Collections.Generic; namespace Volume0_0003 { class Program { static void Main(string[] args) { int len = Convert.ToInt32(Console.ReadLine()); for (int i = 0; i < len; i++) { var list = new List<int>(3); String[] inputs = Console.ReadLine().Split(' '); list.Add(...
using System; using System.Collections.Generic; namespace Volume0_0003 { class Program { static void Main(string[] args) { int len = Convert.ToInt32(Console.ReadLine()); for (int i = 0; i < len; i++) { var list = new List<int>(3); String[] inputs = Console.ReadLine().Split(' '); list.Add(...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
195
using System; namespace prime { class Program { static void Main() { while (true) { int n, ans = 0; if (int.TryParse(Console.ReadLine(), out n)) { for (int i = 2; i <= n; ++i) { if (IsPrime(i)) ans += i; } Console.WriteLine(ans); } else bre...
using System; namespace prime { class Program { static void Main() { while (true) { int n, ans = 0; if (int.TryParse(Console.ReadLine(), out n)) { for (int i = 2; i <= n; ++i) { if (IsPrime(i)) ++ans; } Console.WriteLine(ans); } else break;...
[["+", 8, 196, 0, 57, 64, 1, 0, 241, 0, 29], ["-", 0, 57, 64, 1, 0, 11, 0, 202, 0, 107], ["-", 8, 196, 0, 57, 64, 1, 0, 11, 12, 22]]
8
190
using System; class test { public static void Main() { for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j++) { Console.WriteLine(i + "x" + j + "=" + i * j); } } } }
using System; class test { public static void Main() { for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { Console.WriteLine(i + "x" + j + "=" + i * j); } } } }
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
68
using System; using System.Linq; namespace _0032 { class Program { static void Main(string[] args) { int a = 0; int b = 0; while (true) { string s = Console.ReadLine(); if (s == null) { break; } int[] x = s.Split(',').Select(int.Parse).ToArray(); if (x[0] * x[0] == x...
using System; using System.Linq; namespace _0032 { class Program { static void Main(string[] args) { int a = 0; int b = 0; while (true) { string s = Console.ReadLine(); if (s == null) { break; } int[] x = s.Split(',').Select(int.Parse).ToArray(); if (x[0] * x[0] + x[...
[["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 72], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60]]
8
155
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace QQ { class Program { static void Main(string[] args) { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { Console.WriteLine(i + "*" + j + "=" + i * j); } } } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace QQ { class Program { static void Main(string[] args) { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { Console.WriteLine(i + "x" + j + "=" + i * j); } } } } }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222]]
8
92
using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { for (int i = 0; i <= 9; i++) { for (int j = 0; j <= 9; j++) { Console.WriteLine(i.ToString() + "x" + j.ToString() + "=" + i * j); } } Console.ReadLine(); } } }
using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { Console.WriteLine(i.ToString() + "x" + j.ToString() + "=" + i * j); } } Console.ReadLine(); } } }
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
89
using System; class Program { static void Main(string[] args) { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { int answer = i * j; System.Console.WriteLine(i.ToString() + "*" + j.ToString() + "=" + answer.ToString()); } } } }
using System; class Program { static void Main(string[] args) { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { int answer = i * j; System.Console.WriteLine(i.ToString() + "x" + j.ToString() + "=" + answer.ToString()); } } } }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222]]
8
90
using System; class Program { static void Main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { int re = i * j; Console.Write("{0}X{1}={2}", i, j, re); Console.WriteLine(); } } } }
using System; class Test { static void Main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { int re = i * j; Console.Write("{0}x{1}={2}", i, j, re); Console.WriteLine(); } } } }
[["-", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
74
class MainClass { static void Main() { for (int i = 1; i <= 9; ++i) { for (int j = 1; j <= 9; ++j) { System.Console.WriteLine(i + "x" + j + "=" + i + j); } } } }
class MainClass { static void Main() { for (int i = 1; i <= 9; ++i) { for (int j = 1; j <= 9; ++j) { System.Console.WriteLine(i + "x" + j + "=" + i * j); } } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 17, 48]]
8
66
using System; using System.Collections.Generic; using System.Linq; namespace Problem0003 { class Program { static void Main(string[] args) { var triples = GetInputLines().Skip(1).Select( line => line.Split().Select(word => int.Parse(word)).ToArray()); foreach (int[] triple in triples) { if (IsR...
using System; using System.Collections.Generic; using System.Linq; namespace Problem0003 { class Program { static void Main(string[] args) { var triples = GetInputLines().Skip(1).Select( line => line.Split().Select(word => int.Parse(word)).ToArray()); foreach (int[] triple in triples) { if (IsR...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
215
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { while (true) { int g = 0; string a = Console.ReadLine(); if (a == null) break; int b = int.Parse(a); for (i...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { while (true) { int g = 0; string a = Console.ReadLine(); if (a == null) break; int b = int.Parse(a); for (i...
[["+", 0, 7, 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, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
179
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication40 { class Program { static void Main() { int C = int.Parse(Console.ReadLine()); for (int D = 0; D < C; D++) { int[] E = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication40 { class Program { static void Main() { int C = int.Parse(Console.ReadLine()); for (int D = 0; D < C; D++) { int[] E = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] ...
[["-", 0, 57, 75, 57, 75, 196, 0, 93, 0, 94], ["+", 0, 57, 75, 57, 75, 196, 0, 126, 0, 127], ["+", 0, 57, 75, 57, 75, 196, 0, 126, 0, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 97, 0, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 97, 0, 102]]
8
193
using System; using System.Collections.Generic; using System.Linq; namespace Miscelleneous { class Program { public static int cin() { return int.Parse(Console.ReadLine()); } static HashSet<int> Prime; static void Main(string[] args) { Filt(50000); int n, Res = 0; while (true) { n = cin(); ...
using System; using System.Collections.Generic; using System.Linq; namespace Miscelleneous { class Program { public static int cin() { return int.Parse(Console.ReadLine()); } static HashSet<int> Prime; static void Main(string[] args) { Filt(50000); int n, Res = 0; while (true) { n = cin(); ...
[["-", 75, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 75, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
292
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace straight_line { class Program { static void Main(string[] args) { string line; while ((line = Console.ReadLine()) != null) { var ab = line.Split().Select(int.Parse).ToArray(); int a = ab[0]; int ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace straight_line { class Program { static void Main(string[] args) { string line; while ((line = Console.ReadLine()) != null) { var ab = line.Split().Select(int.Parse).ToArray(); int a = ab[0]; int ...
[["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]]
8
122
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PokerPlaying { class Player { static void Main(string[] args) { int iter = int.Parse(Console.ReadLine()); for (int i = 0; i < iter; i++) { string data = Console.ReadLine(); string[] splitData = data.Sp...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PokerPlaying { class Player { static void Main(string[] args) { int iter = int.Parse(Console.ReadLine()); for (int i = 0; i < iter; i++) { string data = Console.ReadLine(); string[] splitData = data.Sp...
[["-", 0, 57, 64, 196, 0, 37, 0, 5, 0, 222], ["+", 0, 57, 64, 196, 0, 37, 0, 5, 0, 222], ["-", 0, 195, 8, 196, 0, 37, 0, 5, 0, 222], ["+", 0, 195, 8, 196, 0, 37, 0, 5, 0, 222]]
8
418
using System; namespace _0033 { class Program { static void Main(string[] args) { var dataNumber = int.Parse(Console.ReadLine()); for (int i = 0; i < dataNumber; i++) { var input = Console.ReadLine(); if (string.IsNullOrEmpty(input)) { break; } var inputsAString = input.Split...
using System; namespace _0033 { class Program { static void Main(string[] args) { var dataNumber = int.Parse(Console.ReadLine()); for (int i = 0; i < dataNumber; i++) { var input = Console.ReadLine(); if (string.IsNullOrEmpty(input)) { break; } var inputsAString = input.Split...
[["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["+", 0, 57, 75, 57, 75, 196, 0, 1, 0, 35], ["+", 0, 57, 75, 57, 75, 196, 0, 93, 0, 94]]
8
173
using System; namespace AOJ.Volume0 { public class CardGame { public static int Main() { while (true) { string input = Console.ReadLine(); if (string.IsNullOrEmpty(input)) { break; } var sep = input.Split(' '); int c1 = int.Parse(sep[0]); int c2 = ...
using System; namespace AOJ.Volume0 { public class CardGame { public static int Main() { while (true) { string input = Console.ReadLine(); if (string.IsNullOrEmpty(input)) { break; } var sep = input.Split(' '); int c1 = int.Parse(sep[0]); int c2 = ...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222]]
8
183
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication40 { class Program { static void Main() { while (true) { string a = Console.ReadLine(); if (a == null) break; int[] b = a.Split().Select(int.Parse).ToArray(); int c = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication40 { class Program { static void Main() { while (true) { string a = Console.ReadLine(); if (a == null) break; int[] b = a.Split().Select(int.Parse).ToArray(); int c = ...
[["-", 0, 212, 0, 16, 31, 16, 12, 204, 205, 22], ["+", 0, 212, 0, 16, 31, 16, 12, 204, 205, 22], ["-", 0, 200, 0, 212, 0, 16, 12, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 16, 12, 204, 205, 22]]
8
175
using System; class AOJ { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); for (int i = 0; i < n; i++) { int[] x = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); Array.Sort(x); if (x[2] * x[2] == x[0] * x[0] + x[1] * x[1]) Console.WriteLine("Y...
using System; class AOJ { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); for (int i = 0; i < n; i++) { int[] x = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); Array.Sort(x); if (x[2] * x[2] == x[0] * x[0] + x[1] * x[1]) Console.WriteLine("Y...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
133
using System; class AOJ { static void Main(string[] args) { const int MAX_N = 1000001; bool[] IsPrime = new bool[MAX_N]; int[] cnt = new int[MAX_N]; for (int i = 0; i < MAX_N; i++) { IsPrime[i] = true; cnt[i] = 0; } IsPrime[0] = IsPrime[1] = false; for (int i = 2; i * i < MAX_...
using System; class AOJ { static void Main(string[] args) { const int MAX_N = 1000001; bool[] IsPrime = new bool[MAX_N]; int[] cnt = new int[MAX_N]; for (int i = 0; i < MAX_N; i++) { IsPrime[i] = true; cnt[i] = 0; } IsPrime[0] = IsPrime[1] = false; for (int i = 2; i * i < MAX_...
[["-", 0, 57, 64, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 57, 64, 196, 0, 7, 15, 16, 17, 18]]
8
239
using System; namespace AIZUJudge { class PrimeNumber { static void Main(string[] args) { const int MAX = 1000000; bool[] primeList = new bool[MAX]; for (int i = 2; i < MAX; i++) { if (checkPrime(i)) { primeList[i] = true; } } for (string n; (n = Console.ReadLine()) != null;)...
using System; namespace AIZUJudge { class PrimeNumber { static void Main(string[] args) { const int MAX = 1000000; bool[] primeList = new bool[MAX]; for (int i = 2; i < MAX; i++) { if (checkPrime(i)) { primeList[i] = true; } } for (string n; (n = Console.ReadLine()) != null;)...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
216
using System; class main { static int[] p = new int[1000001]; static int max; static void Prime(int n) { for (int i = max; i * i < n; ++i) { if (p[i] == 1) continue; for (int j = i * 2; j < 1000001; j += i) p[j] = 1; } } static void Main() { string s; int count; ...
using System; class main { static int[] p = new int[1000001]; static int max; static void Prime(int n) { for (int i = max; i * i <= n; ++i) { if (p[i] == 1) continue; for (int j = i * 2; j < 1000001; j += i) p[j] = 1; } } static void Main() { string s; int count;...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
184
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { List<int> n = new List<int>(); int r, i; string s; int[] v = new int[] { 2, 3, 5, 7 }; while (true) { s = Console.ReadLine(); if (string.IsNullOrEmpty(s)) break...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { List<int> n = new List<int>(); int r, i; string s; int[] v = new int[] { 2, 3, 5, 7 }; while (true) { s = Console.ReadLine(); if (string.IsNullOrEmpty(s)) break...
[["+", 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, 79], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
236
using System.Linq; using System.Collections.Generic; using System; public class Hello { public static void Main() { string line; for (; (line = Console.ReadLine()) != null;) { var n = int.Parse(line.Trim()); Console.WriteLine(getPcount(n)); } } public static int getPcount(int m) { var...
using System.Linq; using System.Collections.Generic; using System; public class Hello { public static void Main() { string line; for (; (line = Console.ReadLine()) != null;) { var n = int.Parse(line.Trim()); Console.WriteLine(n == 1 ? 0 : getPcount(n)); } } public static int getPcount(int...
[["+", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["+", 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]]
8
177
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AOJ { class Program { static void Main(string[] args) { var dic = new Dictionary<int, int>(); var lis = new List<int>(); var cnt = 0; dic.Add(0, 0); dic.Add(1, 1); for (int i = 2; i < 1000000; i++)...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AOJ { class Program { static void Main(string[] args) { var dic = new Dictionary<int, int>(); var lis = new List<int>(); var cnt = 0; dic.Add(0, 0); dic.Add(1, 0); for (int i = 2; i < 1000000; i++)...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
212
using System; class Program { static void Main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { Console.WriteLine(i.ToString() + "*" + j.ToString() + "=" + (i * j).ToString()); } } } }
using System; class Program { static void Main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { Console.WriteLine(i.ToString() + "x" + j.ToString() + "=" + (i * j).ToString()); } } } }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222]]
8
81
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApp5 { class Program { static void Main(string[] args) { { int a, b; for (a = 1; a <= 9; a++) { for (b = 1; b <= 9; b++) { Console.WriteLine("{0}*{1}={2}", a, b, a * b); } ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApp5 { class Program { static void Main(string[] args) { { int a, b; for (a = 1; a <= 9; a++) { for (b = 1; b <= 9; b++) { Console.WriteLine("{0}x{1}={2}", a, b, a * b); } ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
93
using System; class main { public static int n = 1000001; static void Main() { string s; int c, q = 0; int[] p = new int[n]; for (int i = 2; i < 1001; ++i) for (int j = i * 2; j < n; j += i) p[j] = 1; while ((s = Console.ReadLine()) != null) { c = int.Parse(s); for (in...
using System; class main { public static int n = 1000001; static void Main() { string s; int c, q; int[] p = new int[n]; for (int i = 2; i < 1001; ++i) for (int j = i * 2; j < n; j += i) p[j] = 1; while ((s = Console.ReadLine()) != null) { c = int.Parse(s); q = 0; ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 203]]
8
142
using System; class AOJ { public static void Main() { int[] l = new int[10]; int v1, v2; string str; double time, pos; while ((str = Console.ReadLine()) != null) { int suml = 0, com = 0; string[] s = str.Split(','); for (int i = 0; i < 10; i++) { l[i] = int.Parse(s[...
using System; class AOJ { public static void Main() { int[] l = new int[10]; int v1, v2; string str; double time, pos; while ((str = Console.ReadLine()) != null) { int suml = 0, com = 0; string[] s = str.Split(','); for (int i = 0; i < 10; i++) { l[i] = int.Parse(s[...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
199
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _0036 { public class Program { public static void Main(string[] args) { Dictionary<string, char[,]> patterns = new Dictionary<string, char[,]>(); patterns.Add("A", new char[2, 2] { { '1', '1' }, { '1', '1' } });...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _0036 { public class Program { public static void Main(string[] args) { Dictionary<string, char[,]> patterns = new Dictionary<string, char[,]>(); patterns.Add("A", new char[2, 2] { { '1', '1' }, { '1', '1' } });...
[["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22]]
8
1,356
using System; class aoj { static void Main() { char[] k = new char[50]; int l = 0; while (true) { bool[,] a = new bool[8, 8]; int c = 0, d = 0; bool f = true; for (int i = 0; i < 8; i++) { string b = Console.ReadLine(); if (String.IsNullOrEmpty(b)) goto st...
using System; class aoj { static void Main() { char[] k = new char[50]; int l = 0; while (true) { bool[,] a = new bool[8, 8]; int c = 0, d = 0; bool f = true; for (int i = 0; i < 8; i++) { string b = Console.ReadLine(); if (String.IsNullOrEmpty(b)) goto st...
[["-", 31, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["-", 31, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 47]]
8
628
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AOJ { class Program { static void Main(string[] args) { string[] pattern = { "1100000011", "1000000010000000100000001", "1111", "1000000110000001", "1100000001...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AOJ { class Program { static void Main(string[] args) { string[] pattern = { "1100000011", "1000000010000000100000001", "1111", "1000000110000001", "1100000001...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]]
8
165
using System; using System.Text; using System.Collections.Generic; namespace aizu { class OnlineJudge { static void Main() { Dictionary<string, string> pattern = new Dictionary<string, string> { { "A", "1100000011" }, { "B", "1000000010000000100000001" }, { "C", "1111" }, { "D", "1000000110000...
using System; using System.Text; using System.Collections.Generic; namespace aizu { class OnlineJudge { static void Main() { Dictionary<string, string> pattern = new Dictionary<string, string> { { "A", "1100000011" }, { "B", "1000000010000000100000001" }, { "C", "1111" }, { "D", "1000000110000...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]]
8
210
using System; class aoj { static void Main() { string[] k = new string[50]; int l = 0; while (true) { string c; string a = Console.ReadLine(); if (String.IsNullOrEmpty(a)) break; string[] b = a.Split(','); int[] d = new int[5]; for (int i = 0; i < 5; i++) { ...
using System; class aoj { static void Main() { string[] k = new string[50]; int l = 0; while (true) { string c; string a = Console.ReadLine(); if (String.IsNullOrEmpty(a)) break; string[] b = a.Split(','); int[] d = new int[5]; for (int i = 0; i < 5; i++) { ...
[["+", 0, 52, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 52, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 52, 8, 196, 0, 7, 15, 16, 12, 203]]
8
590
using System; class aoj { public static void Main(string[] args) { for (int i = 1; i <= 9; i++) { for (int j = 0; j <= 9; j++) Console.WriteLine(i + "x" + j + "=" + i * j); } } }
using System; class aoj { public static void Main(string[] args) { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) Console.WriteLine(i + "x" + j + "=" + i * j); } } }
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
70
using System; namespace Solution { class Solution { public static void Main(string[] args) { for (int i = 1; i <= 9; i++) { for (int j = 1; i <= 9; i++) { System.Console.WriteLine("{0}x{1}={2}", i, j, i * j); } } } } }
using System; namespace Solution { class Solution { public static void Main(string[] args) { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { System.Console.WriteLine("{0}x{1}={2}", i, j, i * j); } } } } }
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22]]
8
74
using System; using System.Linq; class Program { static void Main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { Console.WriteLine("{0}*{1}={2}", i, j, i * j); } } } }
using System; using System.Linq; class Program { static void Main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { Console.WriteLine("{0}x{1}={2}", i, j, i * j); } } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
68
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; class Program { static void Main() { for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { Console.WriteLine(string.Format("{0}??{1}={2}", i, j, i * j)); } ...
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; class Program { static void Main() { for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { Console.WriteLine(string.Format("{0}x{1}={2}", i, j, i * j)); } ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
95
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Programminng { class AOJ_Volume0010 { public static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); for (int i = 0; i < n; i++) { string[] s = Console.ReadLine().Split(' '); double x...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Programminng { class AOJ_Volume0010 { public static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); for (int i = 0; i < n; i++) { string[] s = Console.ReadLine().Split(' '); double x...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
346
using System; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { for (int i = 1; i < 10; i++) { for (int w = 1; w < 10; w++) { Console.WriteLine(i + "X" + w + "=" + i * w); } } } } }
using System; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { for (int i = 1; i < 10; i++) { for (int w = 1; w < 10; w++) { Console.WriteLine(i + "x" + w + "=" + i * w); } } } } }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222]]
8
75
using System; using System.Linq; public class Test { public static void Main() { for (int i = 1; i <= 9; i++) { { for (int j = 1; j <= 9; j++) { Console.WriteLine(i + "x" + j + "=" + j * j); } } } } }
using System; using System.Linq; public class Test { public static void Main() { for (int i = 1; i <= 9; i++) { { for (int j = 1; j <= 9; j++) { Console.WriteLine(i + "x" + j + "=" + i * j); } } } } }
[["-", 3, 4, 0, 28, 0, 16, 12, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 31, 22]]
8
76
using System; using System.Linq; using System.Collections.Generic; using System.Text; namespace Yasuo { class Yasuo { static void Main(string[] asrgs) { int n; int a, b, c; string s; string[] ss; bool flag = true; List<string> reslist = new List<string>(); n = int.Parse(Console.ReadLine()...
using System; using System.Linq; using System.Collections.Generic; using System.Text; namespace Yasuo { class Yasuo { static void Main(string[] asrgs) { int n; int a, b, c; string s; string[] ss; bool flag = true; List<string> reslist = new List<string>(); n = int.Parse(Console.ReadLine()...
[["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 46]]
8
299
using System; class Program { public static void Main() { int w = int.Parse(Console.ReadLine()); int n = int.Parse(Console.ReadLine()); int[] m = new int[w]; while (w-- > 0) m[w] = w + 1; while (n-- > 0) { int[] a = Array.ConvertAll(Console.ReadLine().Split(','), int.Parse); int...
using System; class Program { public static void Main() { int w = int.Parse(Console.ReadLine()); int n = int.Parse(Console.ReadLine()); int[] m = new int[w]; while (w-- > 0) m[w] = w + 1; while (n-- > 0) { int[] a = Array.ConvertAll(Console.ReadLine().Split(','), int.Parse); int...
[["-", 0, 210, 8, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 210, 8, 1, 0, 213, 63, 214, 141, 22]]
8
165
using System; using System.Collections.Generic; using System.Linq; namespace _039_RomanFigure { class Program { static void Main(string[] args) { Dictionary<char, int> map = new Dictionary<char, int>(7); map.Add('I', 1); map.Add('V', 5); map.Add('X', 10); map.Add('L', 50); map.Add('C', 100); ...
using System; using System.Collections.Generic; using System.Linq; namespace _039_RomanFigure { class Program { static void Main(string[] args) { Dictionary<char, int> map = new Dictionary<char, int>(7); map.Add('I', 1); map.Add('V', 5); map.Add('X', 10); map.Add('L', 50); map.Add('C', 100); ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
233
using System; class main { static void Main(string[] args) { string s; while ((s = Console.ReadLine()) != null) { double x1, y1, x2, y2, x3, y3, px, py, abc, abp, pbc, apc; string[] a = s.Split(' '); x1 = double.Parse(a[0]); y1 = double.Parse(a[1]); x2 = double.Parse(a[2]); ...
using System; class main { static void Main(string[] args) { string s; while ((s = Console.ReadLine()) != null) { double x1, y1, x2, y2, x3, y3, px, py, abc, abp, pbc, apc; string[] a = s.Split(' '); x1 = double.Parse(a[0]); y1 = double.Parse(a[1]); x2 = double.Parse(a[2]); ...
[["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 250]]
8
369
using System; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); int[] answer = new int[N]; for (int i = 0; i < N; i++) { string[] str = Console.ReadLine().Split(' '); int x = int.Parse(str[0]); int y = int.Parse(str[1]); int z = int.Parse(str[2]); ...
using System; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); int[] answer = new int[N]; for (int i = 0; i < N; i++) { string[] str = Console.ReadLine().Split(' '); int x = int.Parse(str[0]); int y = int.Parse(str[1]); int z = int.Parse(str[2]); ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
243
using System; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); for (int i = 0; i < n; ++i) { string[] input = Console.ReadLine().Split(' '); int[] input_int = new int[3]; for (int j = 0; j < 3; j++) { input_int[j] = int.Parse(input[j]); } Arr...
using System; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); for (int i = 0; i < n; ++i) { string[] input = Console.ReadLine().Split(' '); int[] input_int = new int[3]; for (int j = 0; j < 3; j++) { input_int[j] = int.Parse(input[j]); } Arr...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
166
using System; class p0003 { static void Main(string[] args) { int cnt = int.Parse(Console.ReadLine()); while (0 < cnt--) { int[] intAry = new int[3]; var ary = Console.ReadLine().Split(' '); for (int i = 0; i < 3; i++) { intAry[i] = int.Parse(ary[0]); intAry[i] = intAry[i] * ...
using System; class p0003 { static void Main(string[] args) { int cnt = int.Parse(Console.ReadLine()); while (0 < cnt--) { int[] intAry = new int[3]; var ary = Console.ReadLine().Split(' '); for (int i = 0; i < 3; i++) { intAry[i] = int.Parse(ary[i]); intAry[i] = intAry[i] * ...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22]]
8
154
using System; public class Test { public static void Main() { for (int i = 1; i < 9; i++) for (int j = 1; j < 9; j++) { Console.WriteLine(string.Format("{0}x{1}={2}", i, j, i * j)); } } }
using System; public class Test { public static void Main() { for (int i = 1; i < 10; i++) for (int j = 1; j < 10; j++) { Console.WriteLine(string.Format("{0}x{1}={2}", i, j, i * j)); } } }
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 8, 196, 0, 7, 8, 7, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 7, 15, 16, 12, 203]]
8
68
using System; class Program { static void Main(string[] args) { int i, j; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) { Console.WriteLine("{0}*{1}={2}", i, j, i * j); } } } }
using System; class Program { static void Main(string[] args) { int i, j; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) { Console.WriteLine("{0}x{1}={2}", i, j, i * j); } } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
70
using System; using System.Linq; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { foreach (int i in Enumerable.Range(1, 9)) { foreach (int j in Enumerable.Range(1, 9)) { Console.WriteLine(i + " x " + j + " = " + i * j); } } } } }
using System; using System.Linq; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { foreach (int i in Enumerable.Range(1, 9)) { foreach (int j in Enumerable.Range(1, 9)) { Console.WriteLine(i + "x" + j + "=" + i * j); } } } } }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222], ["-", 0, 28, 0, 16, 31, 16, 12, 5, 0, 222], ["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 222]]
8
80
using System; namespace QQ { class Program { static void Main(string[] args) { int i, j; for (i = 1; i <= 9; ++i) { for (j = 1; j <= 9; ++j) { Console.WriteLine("{0}??{1}???{2}", i, j, i * j); } } } } }
using System; namespace QQ { class Program { static void Main(string[] args) { int i, j; for (i = 1; i <= 9; ++i) { for (j = 1; j <= 9; ++j) { Console.WriteLine("{0}x{1}={2}", i, j, i * j); } } } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
74
using System; using System.Collections.Generic; namespace AOJ.Volume0 { public class Trading { public static void Main() { var company = new Dictionary<int, int>(); var output = new List<int>(); // 今月 while (true) { var input = Console.ReadLine(); if (string.IsNullOrEmpty...
using System; using System.Collections.Generic; namespace AOJ.Volume0 { public class Trading { public static void Main() { var company = new Dictionary<int, int>(); var output = new List<int>(); // 今月 while (true) { var input = Console.ReadLine(); if (string.IsNullOrEmpty...
[["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22]]
8
274
using System; namespace _0014 { class Program { static void Main(string[] args) { while (true) { string ml = Console.ReadLine(); if (ml == null) { break; } int a = int.Parse(ml); int a1 = 600 / a; int y = 0; for (int i = 1; i <= a1; i++) { y += a * (a * (...
using System; namespace _0014 { class Program { static void Main(string[] args) { while (true) { string ml = Console.ReadLine(); if (ml == null) { break; } int a = int.Parse(ml); int a1 = 600 / a; int y = 0; for (int i = 1; i <= a1; i++) { y += a * a * (a...
[["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48]]
8
112
using System; using System.Collections.Generic; using System.Linq; static class Program { static void Main() { var k = int.Parse(Console.ReadLine()); Enumerable.Repeat<Func<string>>(Console.ReadLine, k * 2) .Select((x, i) => new { v = x(), k = i >> 1 }) .GroupBy(x => x.k, x =...
using System; using System.Collections.Generic; using System.Linq; static class Program { static void Main() { var k = int.Parse(Console.ReadLine()); Enumerable.Repeat<Func<string>>(Console.ReadLine, k * 2) .Select((x, i) => new { v = x(), k = i >> 1 }) .GroupBy(x => x.k, x =...
[["-", 0, 28, 0, 218, 8, 41, 15, 16, 17, 20], ["+", 0, 28, 0, 218, 8, 41, 15, 16, 17, 47]]
8
324
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication52 { class Program { static void Main() { int[] a = new int[1000]; while (true) { string s = Console.ReadLine(); if (s == "") break; int[] b = s.Split(',').Select(int.Pa...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication52 { class Program { static void Main() { int[] a = new int[1000]; while (true) { string s = Console.ReadLine(); if (s == "") break; int[] b = s.Split(',').Select(int.Pa...
[["-", 8, 196, 0, 1, 0, 223, 0, 204, 205, 22], ["+", 8, 196, 0, 1, 0, 223, 0, 204, 205, 22]]
8
233
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication57 { class Program { static void Main() { int a = int.Parse(Console.ReadLine()); for (int b = 0; b < a; b++) { string c = Console.ReadLine(); // 999 string d = Console.ReadLine(); // ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication57 { class Program { static void Main() { int a = int.Parse(Console.ReadLine()); for (int b = 0; b < a; b++) { string c = Console.ReadLine(); // 999 string d = Console.ReadLine(); // ...
[["-", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203]]
8
504
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CompetitiveProg { class Program { static int W; static int n; static List<VW> vws; static VW?[,] memo; static void Main(string[] args) { var c = 1; while ((W = int.Parse(Console.ReadLine())) != 0) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CompetitiveProg { class Program { static int W; static int n; static List<VW> vws; static VW?[,] memo; static void Main(string[] args) { var c = 1; while ((W = int.Parse(Console.ReadLine())) != 0) { ...
[["+", 12, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 12, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
553
using System; using System.Linq; using System.Text; namespace V0043 { public class Program { public static void Main(string[] args) { string input; while ((input = Console.ReadLine()) != null) { var tile = new int[12]; Array.ForEach(input.ToCharArray(), c => tile[c - '0']++); var hora = fa...
using System; using System.Linq; using System.Text; namespace V0043 { public class Program { public static void Main(string[] args) { string input; while ((input = Console.ReadLine()) != null) { var tile = new int[12]; Array.ForEach(input.ToCharArray(), c => tile[c - '0']++); var hora = fa...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18]]
8
406
using System; class _0045 { public static void Main() { string str; long sum = 0, ams = 0, ave = 0, c = 0; int[] nums; while ((str = Console.ReadLine()) != null) { c++; nums = Array.ConvertAll(str.Split(','), s => int.Parse(s)); sum += nums[0] * nums[1]; ams += nums[1]; } ...
using System; class _0045 { public static void Main() { string str; long sum = 0, ams = 0, ave = 0, c = 0; int[] nums; while ((str = Console.ReadLine()) != null) { c++; nums = Array.ConvertAll(str.Split(','), s => int.Parse(s)); sum += nums[0] * nums[1]; ams += nums[1]; } ...
[["+", 51, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 51, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["-", 3, 4, 0, 28, 0, 74, 51, 23, 0, 24], ["-", 0, 28, 0, 74, 51, 23, 0, 16, 31, 22], ["-", 0, 28, 0, 74, 51, 23, 0, 16, 17, 85], ["-", 3, 4, 0, 28, 0, 74, 51, 23, 0, 25]]
8
142
using System; class Program { static void Main(string[] args) { for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { Console.WriteLine("{0} x {1} = {2}", i, j, i * j); } } } }
using System; class Program { static void Main(string[] args) { for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { Console.WriteLine("{0}x{1}={2}", i, j, i * j); } } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
67
using System; using System.Linq; namespace aizu { class OnlineJudge { static void Main() { int count = int.Parse(Console.ReadLine()); while (count-- > 0) { var l = Console.ReadLine() .Split() .Select(p => int.Parse(p)) .OrderBy(p => p) ...
using System; using System.Linq; namespace aizu { class OnlineJudge { static void Main() { int count = int.Parse(Console.ReadLine()); while (count-- > 0) { var l = Console.ReadLine() .Split() .Select(p => int.Parse(p)) .OrderBy(p => p) ...
[["-", 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
125
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication40 { class Program { static void Main() { bool[] a = { true, false, false }; bool b; while (true) { string c = Console.ReadLine(); if (c == null) break; string[] d =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication40 { class Program { static void Main() { bool[] a = { true, false, false }; bool b; while (true) { string c = Console.ReadLine(); if (c == null) break; string[] d =...
[["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 104], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253]]
8
267
using System; class Program { static void Main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { Console.WriteLine(i + "*" + j + "=" + i * j); } } } }
using System; class Program { static void Main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { Console.WriteLine(i + "x" + j + "=" + i * j); } } } }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222]]
8
67
using System; namespace _0047 { class Program { static void Main(string[] args) { char ball = 'A'; while (true) { string now = Console.ReadLine(); if (now == null) { break; } if (now[0] == ball) { ball = now[2]; } if (now[2] == ball) { ball = now[0]...
using System; namespace _0047 { class Program { static void Main(string[] args) { char ball = 'A'; while (true) { string now = Console.ReadLine(); if (now == null) { break; } if (now[0] == ball) { ball = now[2]; } else if (now[2] == ball) { ball = now[0];...
[["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 95]]
8
97
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace P0003_Is_it_a_Right_Triangle { class Program { static void Main(string[] args) { List<string> lines = new List<string>(); int cntLine = int.Parse(Console.ReadLine()); for (int i = 1; i <= cntLine; i++) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace P0003_Is_it_a_Right_Triangle { class Program { static void Main(string[] args) { List<string> lines = new List<string>(); int cntLine = int.Parse(Console.ReadLine()); for (int i = 1; i <= cntLine; i++) { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
227
using System; class main { static void Main(string[] args) { string s = Console.ReadLine(); if (s != null) { int n = int.Parse(s); for (int i = 1; i <= n; ++i) { string s2 = Console.ReadLine(); if (s2 != null) { string[] t = s.Split(' '); int[] a = new int[3]; ...
using System; class main { static void Main(string[] args) { string s = Console.ReadLine(); if (s != null) { int n = int.Parse(s); for (int i = 1; i <= n; ++i) { string s2 = Console.ReadLine(); if (s2 != null) { string[] t = s2.Split(' '); int[] a = new int[3];...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22]]
8
215
using System; class Program { static void Main() { for (int x = 1; x <= 9; ++x) { for (int y = 1; y <= 9; ++y) { Console.Write("{0}*{1}={2}", x, y, x * y); } } } }
using System; class Program { static void Main() { for (int x = 1; x <= 9; ++x) { for (int y = 1; y <= 9; ++y) { Console.WriteLine("{0}x{1}={2}", x, y, x * y); } } } }
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
63
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication40 { class Program { static void Main() { while (true) { string a = Console.ReadLine(); if (a == null) break; decimal b = decimal.Parse(a); if (b > 91) Console...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication40 { class Program { static void Main() { while (true) { string a = Console.ReadLine(); if (a == null) break; decimal b = decimal.Parse(a); if (b > 91) Console...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
237
using System; namespace _0003 { class Program { static void Main(string[] args) { var dataCount = int.Parse(Console.ReadLine()); for (int i = 0; i < dataCount; i++) { var input = Console.ReadLine(); if (input != null) { string[] parts = input.Split(' '); int[] sides = new int[3]...
using System; namespace _0003 { class Program { static void Main(string[] args) { var dataCount = int.Parse(Console.ReadLine()); for (int i = 0; i < dataCount; i++) { var input = Console.ReadLine(); if (input != null) { string[] parts = input.Split(' '); int[] sides = new int[3]...
[["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 44]]
8
205
using System; namespace a { class Program { public static void Main(string[] args) { for (int i = 1; i <= 9; i++) for (int j = 1; j <= 9; j++) Console.WriteLine(i + "+" + j + "=" + (i * j)); } } }
using System; namespace a { class Program { public static void Main(string[] args) { for (int i = 1; i <= 9; i++) for (int j = 1; j <= 9; j++) Console.WriteLine(i + "x" + j + "=" + (i * j)); } } }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222]]
8
74
using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { while (true) { String str = Console.ReadLine(); if (str == null) { break; } String[] strArray = str.Split(); double[] a = new double[6]; for (int i = 0; i < 6; i++) { ...
using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { while (true) { String str = Console.ReadLine(); if (str == null) { break; } String[] strArray = str.Split(); double[] a = new double[6]; for (int i = 0; i < 6; i++) { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 44]]
8
185
using System; namespace _0048 { class Program { static void Main(string[] args) { while (true) { string uef = Console.ReadLine(); if (uef == null) { break; } string r = ""; float a = int.Parse(uef); if (a <= 48) { r = "light fly"; } else if (a <= 51) { ...
using System; namespace _0048 { class Program { static void Main(string[] args) { while (true) { string uef = Console.ReadLine(); if (uef == null) { break; } string r = ""; float a = float.Parse(uef); if (a <= 48) { r = "light fly"; } else if (a <= 51) {...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
229
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Prob0004 { class Program { const char splitBy = ' '; static void Main(string[] args) { string line; while (!string.IsNullOrEmpty(line = System.Console.ReadLine())) { double[] param = Array.Conve...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Prob0004 { class Program { const char splitBy = ' '; static void Main(string[] args) { string line; while (!string.IsNullOrEmpty(line = System.Console.ReadLine())) { double[] param = Array.Conve...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
280