buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
change_count
int64
0
100
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; class Program { const int MOD = 1000000007; static void Main(string[] args) { new Program().Solve(); } void Solve() { Scanner cin = new Scanner(); ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; class Program { const int MOD = 1000000007; static void Main(string[] args) { new Program().Solve(); } void Solve() { Scanner cin = new Scanner(); ...
[["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 20]]
8
718
2
using System; using System.Collections.Generic; using System.IO; namespace I_am_the_brown_coder { class Inonoa { static void Main() { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); long n = long.Parse(Console.ReadLine()); string[] sa = Consol...
using System; using System.Collections.Generic; using System.IO; namespace I_am_the_brown_coder { class Inonoa { static void Main() { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); long n = long.Parse(Console.ReadLine()); string[] sa = Consol...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20]]
8
472
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; using System.Diagnostics; using static System.Math; using static System.Array; using static AtCoder.Cout; using static AtCoder.Tool...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; using System.Diagnostics; using static System.Math; using static System.Array; using static AtCoder.Cout; using static AtCoder.Tool...
[["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
4,054
4
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
646
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] s1 = Console.ReadLine().Split(' '); int ga = int.Parse(s1[0]), sa = int.Parse(s1[1]), ba = int.Parse(s1[2]); string[] s2 = Console.ReadLi...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] s1 = Console.ReadLine().Split(' '); int ga = int.Parse(s1[0]), sa = int.Parse(s1[1]), ba = int.Parse(s1[2]); string[] s2 = Console.ReadLi...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25]]
8
487
6
using System; namespace newEx { class Program { static void Main(string[] args) { string[] l = Console.ReadLine().Split(' '); int p = int.Parse(l[0]); int q = int.Parse(l[1]); int r = int.Parse(l[2]); Console.WriteLine(Solve(p, q, r)); } public static int Solve(int p, int q, int r) { in...
using System; namespace newEx { class Program { static void Main(string[] args) { string[] l = Console.ReadLine().Split(' '); int p = int.Parse(l[0]); int q = int.Parse(l[1]); int r = int.Parse(l[2]); Console.WriteLine(Solve(p, q, r)); } public static int Solve(int p, int q, int r) { in...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 18], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 19], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 18...
8
180
8
using System; using System.Linq; namespace ABC129A { class Program { static void Main(string[] args) { int[] PQR = CIN.IntArray(); Console.WriteLine(PQR.Sum() - PQR.Min()); } } internal static class CIN { public static string String() { return Console.ReadLine(); } public static int Int() { return in...
using System; using System.Linq; namespace ABC129A { class Program { static void Main(string[] args) { int[] PQR = CIN.IntArray(); Console.WriteLine(PQR.Sum() - PQR.Max()); } } internal static class CIN { public static string String() { return Console.ReadLine(); } public static int Int() { return in...
[["-", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22]]
8
221
2
using System; class Qsort { public static void Main() { string[] str = Console.ReadLine().Split(' '); long p = long.Parse(str[0]); long q = long.Parse(str[1]); long r = long.Parse(str[2]); if (p > q && p > r) Console.WriteLine(q + r); else if (q > p && q > r) Console.WriteLine(p +...
using System; class Qsort { public static void Main() { string[] str = Console.ReadLine().Split(' '); long p = long.Parse(str[0]); long q = long.Parse(str[1]); long r = long.Parse(str[2]); if (p >= q && p >= r) Console.WriteLine(q + r); else if (q >= p && q >= r) Console.WriteLine...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 47], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 20], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 47...
8
121
8
using System; class Program { static void Main(string[] args) { string[] astr = Console.ReadLine().Split(' '); int a = int.Parse(astr[0]); int b = int.Parse(astr[1]); int c = int.Parse(astr[2]); int d = 0; int e = 0; int f = 0; int rtn = 0; int rtn1 = 0; int rtn2 = 0; /...
using System; class Program { static void Main(string[] args) { string[] astr = Console.ReadLine().Split(' '); int a = int.Parse(astr[0]); int b = int.Parse(astr[1]); int c = int.Parse(astr[2]); int d = 0; int e = 0; int f = 0; int rtn = 9999999; int rtn1 = 0; int rtn2 = 0; ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
183
2
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string[] input = Console.ReadLine().Split(' '); int p = int.Parse(input[0]); int q = int.Parse(input[1]); int r = int.Parse(input[1]); int answer = Mat...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string[] input = Console.ReadLine().Split(' '); int p = int.Parse(input[0]); int q = int.Parse(input[1]); int r = int.Parse(input[2]); int answer = Mat...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
126
2
using System; namespace ConsoleApp1 { class Class1 { static void Main(string[] args) { string S = Console.ReadLine(); string[] PQR = S.Split(' '); int P = int.Parse(PQR[0]); int Q = int.Parse(PQR[1]); int R = int.Parse(PQR[2]); int PQ = P + Q; int QR = Q + R; int PR = P + R; if...
using System; namespace ConsoleApp1 { class Class1 { static void Main(string[] args) { string S = Console.ReadLine(); string[] PQR = S.Split(' '); int P = int.Parse(PQR[0]); int Q = int.Parse(PQR[1]); int R = int.Parse(PQR[2]); int PQ = P + Q; int QR = Q + R; int PR = P + R; if...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 18], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 19], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 18...
8
154
8
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
456
6
using System; using System.Linq; public class Test { public static void Main() { // your code goes here var a = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); int p = a[0]; int q = a[1]; int r = a[2]; int[] c = new int[3] { p + q, q + r, r + p }; int lowest = 101; ...
using System; using System.Linq; public class Test { public static void Main() { // your code goes here var a = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); int p = a[0]; int q = a[1]; int r = a[2]; int[] c = new int[3] { p + q, q + r, r + p }; int lowest = 1000; ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
145
2
using System; using System.Linq; using System.Collections.Generic; using System.IO; using System.Text; namespace program { class Program { static void Main() { int[] input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); Console.WriteLine($"{input.Sum() - input.Min()}"); Cons...
using System; using System.Linq; using System.Collections.Generic; using System.IO; using System.Text; namespace program { class Program { static void Main() { int[] input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); Console.WriteLine($"{input.Sum() - input.Max()}"); Cons...
[["-", 0, 284, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 284, 0, 16, 12, 213, 63, 214, 141, 22]]
8
101
2
using System; using System.Linq; using System.Collections.Generic; using System.Text; using static System.Console; using static System.Math; class Program { static void Main(string[] args) { int[] PQR = ReadLineParseIntArray(); int P = PQR[0]; int Q = PQR[1]; int R = PQR[2]; int ans = int.MaxVal...
using System; using System.Linq; using System.Collections.Generic; using System.Text; using static System.Console; using static System.Math; class Program { static void Main(string[] args) { int[] PQR = ReadLineParseIntArray(); int P = PQR[0]; int Q = PQR[1]; int R = PQR[2]; int ans = int.MaxVal...
[["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
155
2
using System; using System.Collections.Generic; using System.Linq; public class Program { static void Main(string[] args) { var array = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); if (array[0] >= array[1]) { Console.WriteLine(10); } Console.WriteLine(0); } }
using System; using System.Collections.Generic; using System.Linq; public class Program { static void Main(string[] args) { var array = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); if (array[0] >= array[1]) { Console.WriteLine(10); } else { Console.WriteLine(0); } } }
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 46]]
8
86
3
using System; namespace ConsoleApplication1 { class Program { const long M = 10 ^ 9 + 7; static void Main(string[] args) { string[] inputNum = Console.ReadLine().Split(' '); int X = int.Parse(inputNum[0]); int A = int.Parse(inputNum[1]); if (X > A) { Console.WriteLine("0"); } else { ...
using System; namespace ConsoleApplication1 { class Program { const long M = 10 ^ 9 + 7; static void Main(string[] args) { string[] inputNum = Console.ReadLine().Split(' '); int X = int.Parse(inputNum[0]); int A = int.Parse(inputNum[1]); if (X < A) { Console.WriteLine("0"); } else { ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]]
8
105
2
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int X = int.Parse(input[0]); int A = int.Parse(input[1]); if (X > A) { Console.WriteLine("0"); } else { Console.WriteLine("10"); } } ...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int X = int.Parse(input[0]); int A = int.Parse(input[1]); if (X < A) { Console.WriteLine("0"); } else { Console.WriteLine("10"); } } ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]]
8
98
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public static void Main(string[] args) { string[] b = Input(); int x = int.Parse(b[0]); int a = int.Parse(b[0]); Console.WriteLine(x < a ? "0" : "10"); } public static string[] Input()...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public static void Main(string[] args) { string[] b = Input(); int x = int.Parse(b[0]); int a = int.Parse(b[1]); Console.WriteLine(x < a ? "0" : "10"); } public static string[] Input()...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
148
2
using System; class Prog { static void Main() { int[] di = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int[] ls = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int n = di[0]; int x = di[1]; int l = 0; int k = 1; for (int i = 0; i < n; i++) { l += ls[i];...
using System; class Prog { static void Main() { int[] di = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int[] ls = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int n = di[0]; int x = di[1]; int l = 0; int k = 1; for (int i = 0; i < n; i++) { l += ls[i];...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22]]
8
141
2
using System; namespace Sample { class Sample { static void Main(string[] args) { string[] str1 = Console.ReadLine().Split(' '); string[] str2 = Console.ReadLine().Split(' '); int N = int.Parse(str1[0]); long X = long.Parse(str1[1]); int d = 0; int ans = 1; for (int i = 0; i <= N; i++) {...
using System; namespace Sample { class Sample { static void Main(string[] args) { string[] str1 = Console.ReadLine().Split(' '); string[] str2 = Console.ReadLine().Split(' '); int N = int.Parse(str1[0]); long X = long.Parse(str1[1]); int d = 0; int ans = 1; for (int i = 0; i < N; i++) { ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
144
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class390 { static void Main() { var NX = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = NX[0], X = NX[1]; var L = Console.ReadLine().Split()....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class390 { static void Main() { var NX = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = NX[0], X = NX[1]; var L = Console.ReadLine().Split()....
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
192
2
using Yorukatsu029.Questions; using Yorukatsu029.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu029.Questions { /// <summary> /// ABC130 B /// </summary> public class QuestionA : AtCoderQuestionBase { public override IEn...
using Yorukatsu029.Questions; using Yorukatsu029.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu029.Questions { /// <summary> /// ABC130 B /// </summary> public class QuestionA : AtCoderQuestionBase { public override IEn...
[["+", 8, 201, 0, 195, 8, 196, 0, 285, 0, 286], ["+", 8, 201, 0, 195, 8, 196, 0, 285, 0, 38], ["+", 0, 195, 8, 196, 0, 285, 0, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 285, 0, 16, 17, 72], ["+", 0, 195, 8, 196, 0, 285, 0, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 285, 0, 35]]
8
538
6
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[] nx = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[]...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[] nx = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[]...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
197
2
using System; using System.Collections.Generic; using System.Linq; namespace B_Balance { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var n = int.Parse(input[0]); var x = int.Parse(input[1]); var d = new List<int> { 0 }; var l = new List<int>(); ...
using System; using System.Collections.Generic; using System.Linq; namespace B_Balance { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var n = int.Parse(input[0]); var x = int.Parse(input[1]); var d = new List<int> { 0 }; var l = new List<int>(); ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
207
2
using System; class Qsort { public static void Main() { string[] str = Console.ReadLine().Split(' '); long n = long.Parse(str[0]); long x = long.Parse(str[1]); string[] str0 = Console.ReadLine().Split(' '); long sum = 0; long count = 1; for (int i = 0; i < n; i++) { long l = long.P...
using System; class Qsort { public static void Main() { string[] str = Console.ReadLine().Split(' '); long n = long.Parse(str[0]); long x = long.Parse(str[1]); string[] str0 = Console.ReadLine().Split(' '); long sum = 0; long count = 1; for (int i = 0; i < n; i++) { long l = long.P...
[["-", 0, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
142
2
using System; using System.Linq; namespace atcoder { class Program { static void Main(string[] args) { var a = Console.ReadLine().Split(' '); int n = int.Parse(a[0]); int x = int.Parse(a[1]); var tmp = Console.ReadLine().Split(' '); int[] l = tmp.Select(s => int.Parse(s)).ToArray(); int bou...
using System; using System.Linq; namespace atcoder { class Program { static void Main(string[] args) { var a = Console.ReadLine().Split(' '); int n = int.Parse(a[0]); int x = int.Parse(a[1]); var tmp = Console.ReadLine().Split(' '); int[] l = tmp.Select(s => int.Parse(s)).ToArray(); int bou...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
168
2
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCorder { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } public void S...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCorder { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } public void S...
[["+", 8, 196, 0, 52, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 17, 19], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 98]]
8
488
4
using System; using System.Collections.Generic; using System.Collections; using System.Linq; namespace ProjectContest { class Test { static void Main() { var nx = Array.ConvertAll(Console.ReadLine().Split(), Convert.ToInt32); int n = nx[0], x = nx[1]; var L = Array.ConvertAll(Console.ReadLine().S...
using System; using System.Collections.Generic; using System.Collections; using System.Linq; namespace ProjectContest { class Test { static void Main() { var nx = Array.ConvertAll(Console.ReadLine().Split(), Convert.ToInt32); int n = nx[0], x = nx[1]; var L = Array.ConvertAll(Console.ReadLine().S...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
167
2
using System; using System.Linq; using System.Collections.Generic; public class Hello { public static void Main(string[] args) { // 自分の得意な言語で // Let's チャレンジ!! int count = 0; var dList = new List<int>(); var arg1 = System.Console.ReadLine(); string[] valueNX = arg1.Split(' '); var arg2 ...
using System; using System.Linq; using System.Collections.Generic; public class Hello { public static void Main(string[] args) { // 自分の得意な言語で // Let's チャレンジ!! int count = 0; var dList = new List<int>(); var arg1 = System.Console.ReadLine(); string[] valueNX = arg1.Split(' '); var arg2 ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 72], ...
8
198
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Q2 { class Program { static void Main(string[] args) { string line = Console.ReadLine(); string[] strs = line.Split(' '); int N = int.Parse(strs[0]); int X = int.Parse(strs[1...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Q2 { class Program { static void Main(string[] args) { string line = Console.ReadLine(); string[] strs = line.Split(' '); int N = int.Parse(strs[0]); int X = int.Parse(strs[1...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
168
2
using System; using System.Collections.Generic; using static AtCoderer.Exter; using static System.Math; using System.Linq; namespace AtCoderer { public class App { public static void Solve() { var va = readarr[1]; int sum = 0, c = 0; foreach (var l in readarr) { sum += l; if (sum <= va) ...
using System; using System.Collections.Generic; using static AtCoderer.Exter; using static System.Math; using System.Linq; namespace AtCoderer { public class App { public static void Solve() { var va = readarr[1]; int sum = 0, c = 1; foreach (var l in readarr) { sum += l; if (sum <= va) ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
556
2
using System; namespace AtCoderABC130B { class Program { static void Main(string[] args) { int ans = 1; string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int X = int.Parse(s[1]); s = Console.ReadLine().Split(' '); int D = 0; for (int i = 0; i < N + 1; i++) { ...
using System; namespace AtCoderABC130B { class Program { static void Main(string[] args) { int ans = 1; string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int X = int.Parse(s[1]); s = Console.ReadLine().Split(' '); int D = 0; for (int i = 0; i < N; i++) { D +=...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
143
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC130B { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int N = int.Parse(input[0]); int X = int.Parse(input[1]); string[] in...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC130B { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int N = int.Parse(input[0]); int X = int.Parse(input[1]); string[] in...
[["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
244
4
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var sum = 0; int i = 0; List<int> L = new List<int>(); string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int X = int.Parse(input[1]); string[] st...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var sum = 0; int i = 0; List<int> L = new List<int>(); string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int X = int.Parse(input[1]); string[] st...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
252
2
using System; namespace atcoder1 { class problem2 { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N, X; N = int.Parse(input[0]); X = int.Parse(input[1]); string[] L = Console.ReadLine().Split(' '); int[] l = new int[L.Length]; for (int i = 0...
using System; namespace atcoder1 { class problem2 { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N, X; N = int.Parse(input[0]); X = int.Parse(input[1]); string[] L = Console.ReadLine().Split(' '); int[] l = new int[L.Length]; for (int i = 0...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
205
2
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
8
524
6
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder_B { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select(y => int.Parse(y)); var x = input.Skip(1).Fir...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder_B { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select(y => int.Parse(y)); var x = input.Skip(1).Fir...
[["+", 8, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 8, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
183
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using Extensions; using static System.Math; using static Extensions.MathExtension; using static Extensions.ConsoleInputExtension; using static Extensions.ConsoleOutputExtension; class Solver { public void Solve() { // Solve Code ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using Extensions; using static System.Math; using static Extensions.MathExtension; using static Extensions.ConsoleInputExtension; using static Extensions.ConsoleOutputExtension; class Solver { public void Solve() { // Solve Code ...
[["+", 0, 52, 15, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 52, 15, 16, 31, 16, 12, 16, 12, 203]]
8
1,744
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B { class Program { static void Main(string[] args) { int[] vs = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int n = vs[0]; int x = vs[1]; int s...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B { class Program { static void Main(string[] args) { int[] vs = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int n = vs[0]; int x = vs[1]; int s...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, ...
8
183
8
using System; public class Program { public static void Main() { var input = Console.ReadLine(); var split1 = input.Split(' '); var count = int.Parse(split1[0]); var cap = int.Parse(split1[1]); int current = 0; int result = 0; int target = 0; var split = Console.ReadLine().Split(' '...
using System; public class Program { public static void Main() { var input = Console.ReadLine(); var split1 = input.Split(' '); var count = int.Parse(split1[0]); var cap = int.Parse(split1[1]); int current = 0; int result = 1; int target = 0; var split = Console.ReadLine().Split(' '...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
137
2
using System; using System.Collections.Generic; using System.Linq; public class Program { static void Main(string[] args) { var array = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var jumpArray = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var count = 1; var total = 0; ...
using System; using System.Collections.Generic; using System.Linq; public class Program { static void Main(string[] args) { var array = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var jumpArray = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var count = 1; var total = 0; ...
[["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
142
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var vals = Console.ReadLine().Split().Select(x => int.Parse(x)).ToList(); int N = vals[0]; int X = vals[1]; int cnt = 1; int d = 0; var L = Console.ReadLine().Split().Select(x =...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var vals = Console.ReadLine().Split().Select(x => int.Parse(x)).ToList(); int N = vals[0]; int X = vals[1]; int cnt = 1; int d = 0; var L = Console.ReadLine().Split().Select(x =...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
155
2
using System; using System.Collections.Generic; using System.Linq; class ABC130B { public static void Main() { var NX = Console.ReadLine().Split(' ').Select(int.Parse); var Ln = Console.ReadLine().Split(' ').Select(int.Parse); var count = 1; var sum = 0; foreach (var l in Ln) { sum += l; ...
using System; using System.Collections.Generic; using System.Linq; class ABC130B { public static void Main() { var NX = Console.ReadLine().Split(' ').Select(int.Parse); var Ln = Console.ReadLine().Split(' ').Select(int.Parse); var count = 1; var sum = 0; foreach (var l in Ln) { sum += l; ...
[["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 47]]
8
121
2
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { public class Prog { const int MOD = 1000000007; public static void Main(string[] args) { var sw = new StreamWriter(Console...
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { public class Prog { const int MOD = 1000000007; public static void Main(string[] args) { var sw = new StreamWriter(Console...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
607
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC130A { class Program { static void Main(string[] args) { var nx = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var n = nx[0]; var x = nx[1]; var l = Console.R...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC130A { class Program { static void Main(string[] args) { var nx = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var n = nx[0]; var x = nx[1]; var l = Console.R...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
176
4
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC130B { class Program { static void Solve(Input input) { var n = input.NextInt(); var x = input.NextInt(); var l = input.NextInt(n); ...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC130B { class Program { static void Solve(Input input) { var n = input.NextInt(); var x = input.NextInt(); var l = input.NextInt(n); ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
1,202
2
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static void Main() { var (W, H, x, y) = ReadStream<double, double, double, double>(); var ans = (W + H) / 2; if (W / 2 == x && H / 2 == y) { WriteLi...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static void Main() { var (W, H, x, y) = ReadStream<double, double, double, double>(); var ans = (W * H) / 2; if (W / 2 == x && H / 2 == y) { WriteLi...
[["-", 0, 212, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 48]]
8
743
2
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main(string[] args) { var WHxy = ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); var (W, H) = (WHxy[0], WHxy[1]); var (x, y) = (WHxy[2], WHxy[3]); var area = ((doub...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main(string[] args) { var WHxy = ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); var (W, H) = (WHxy[0], WHxy[1]); var (x, y) = (WHxy[2], WHxy[3]); var area = ((doub...
[["-", 0, 212, 0, 41, 15, 23, 0, 16, 17, 106], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 17, 98]]
8
152
2
using System; namespace C { class Program { static void Main(string[] args) { string[] In = Console.ReadLine().Split(' '); long w = int.Parse(In[0]); long h = int.Parse(In[1]); long x = int.Parse(In[2]); long y = int.Parse(In[3]); int v = (h * x == w * y) ? 1 : 0; Console.WriteLine((doubl...
using System; namespace C { class Program { static void Main(string[] args) { string[] In = Console.ReadLine().Split(' '); long w = int.Parse(In[0]); long h = int.Parse(In[1]); long x = int.Parse(In[2]); long y = int.Parse(In[3]); int v = (2 * x == w && 2 * y == h) ? 1 : 0; Console.WriteL...
[["-", 0, 41, 15, 23, 0, 16, 31, 16, 31, 22], ["+", 15, 23, 0, 16, 31, 16, 31, 16, 31, 203], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 17, 98], ["+", 15, 23, 0, 16, 12, 16, 31, 16, 31, 203], ["+", 0, 41, 15, 23, 0, 16, 12, 16, 17, 60], ["+", 0, 41, 15, 23, 0, 16, 12, 16, 12, 22]]
8
129
6
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Numerics; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Xml.Schema; using static System.Console; namespace ConsoleApp2 { class Program { static...
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Numerics; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Xml.Schema; using static System.Console; namespace ConsoleApp2 { class Program { static...
[["-", 0, 235, 8, 201, 0, 195, 39, 224, 39, 199], ["+", 0, 235, 8, 201, 0, 195, 39, 224, 39, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]]
8
223
4
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static void Main(string[] args) { try { Solve.Answer(); } catch (Exception ex) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static void Main(string[] args) { try { Solve.Answer(); } catch (Exception ex) { ...
[["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 16, 12, 16, 12, 16, 17, 109], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 17, 85]]
8
1,136
4
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
[["-", 0, 41, 15, 23, 0, 16, 31, 16, 12, 22], ["+", 0, 41, 15, 23, 0, 16, 31, 16, 12, 22], ["-", 0, 41, 15, 23, 0, 16, 12, 16, 12, 22], ["+", 0, 41, 15, 23, 0, 16, 12, 16, 12, 22]]
8
201
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { public const ulong mod = 1000000007; static void Main(string[] args) { var whxy = Console.ReadLine().Split().Select(long.Parse).ToArray(); double ma...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { public const ulong mod = 1000000007; static void Main(string[] args) { var whxy = Console.ReadLine().Split().Select(long.Parse).ToArray(); double ma...
[["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 25]]
8
376
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; using Pair = System.Tuple<long, long>; /// <su...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; using Pair = System.Tuple<long, long>; /// <su...
[["-", 31, 213, 63, 214, 205, 23, 0, 16, 12, 203], ["+", 31, 213, 63, 214, 205, 23, 0, 16, 12, 250], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 250], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 250]]
8
3,482
6
using System; using System.Linq; namespace CSharp { class Program { static void Main() { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var W = input[0]; var H = input[1]; var x = input[2]; var y = input[3]; Console.WriteLine($"{W * H / 2.0} {(2 * x == W && 2 * y == H...
using System; using System.Linq; namespace CSharp { class Program { static void Main() { var input = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var W = input[0]; var H = input[1]; var x = input[2]; var y = input[3]; Console.WriteLine($"{W * H / 2.0} {(2 * x == W && 2 * y == ...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 283, 0, 284, 0, 23, 0, 41, 64, 203], ["-", 0, 283, 0, 284, 0, 23, 0, 41, 0, 102], ["+", 0, 283, 0, 284, 0, 23, 0, 41, 0, 102], ["+", 0, 283, 0, 284, 0, 23, 0, 41, 75, 203]]
8
117
6
using System; class Program { static void Main() { string[] input = Console.ReadLine().Split(' '); long W = long.Parse(input[0]); long H = long.Parse(input[1]); long x = long.Parse(input[2]); long y = long.Parse(input[3]); double area = W / 2 * H; string multi = "0"; if (W == x * 2 &&...
using System; class Program { static void Main() { string[] input = Console.ReadLine().Split(' '); long W = long.Parse(input[0]); long H = long.Parse(input[1]); long x = long.Parse(input[2]); long y = long.Parse(input[3]); double area = (double)W / 2 * (double)H; string multi = "0"; i...
[["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 0, 25]]
8
137
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; class Program { static void Main(string[] args) { new Program().Calc(); } Scanner cin; public Program() {} bool chmax<T>(ref T a, T b) where T : IComparable<...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; class Program { static void Main(string[] args) { new Program().Calc(); } Scanner cin; public Program() {} bool chmax<T>(ref T a, T b) where T : IComparable<...
[["-", 0, 23, 0, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 23, 0, 16, 31, 16, 31, 16, 12, 250], ["-", 0, 23, 0, 16, 12, 16, 31, 16, 12, 203], ["+", 0, 23, 0, 16, 12, 16, 31, 16, 12, 250]]
8
628
4
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace AtCoder { class Program { static void Main(string[] args) { var cin = new Scanner(); var W = cin.nextLong(); var H = cin.nextLong(); var x = cin.nextLong(); var y = cin.nextLong(); var ans = (...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace AtCoder { class Program { static void Main(string[] args) { var cin = new Scanner(); var W = cin.nextLong(); var H = cin.nextLong(); var x = cin.nextLong(); var y = cin.nextLong(); var ans = (...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 250]]
8
602
2
using Atcoder; using System; using System.Collections.Generic; using System.ComponentModel.Design; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { var first = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); v...
using Atcoder; using System; using System.Collections.Generic; using System.ComponentModel.Design; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { var first = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); d...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
193
4
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // W H x y var Array = Console.ReadLine().Split().Select(z => long.Parse(z)).ToArray(); long W = Array[0]; long H = Array[1]; long x = Array[2]; long y = Array[3]; int Resul...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // W H x y var Array = Console.ReadLine().Split().Select(z => long.Parse(z)).ToArray(); long W = Array[0]; long H = Array[1]; long x = Array[2]; long y = Array[3]; int Resul...
[["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 25]]
8
139
3
using System; using System.Linq; namespace ABC130_C { class Program { static void Main(string[] args) { var line = Console.ReadLine().Split().Select(double.Parse).ToArray(); var W = line[0]; var H = line[1]; var x = line[2]; var y = line[3]; var flag = 2 * x == W && 2 * y == H; Console....
using System; using System.Linq; namespace ABC130_C { class Program { static void Main(string[] args) { var line = Console.ReadLine().Split().Select(double.Parse).ToArray(); var W = line[0]; var H = line[1]; var x = line[2]; var y = line[3]; var flag = 2 * x == W && 2 * y == H ? 1 : 0; ...
[["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 101], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 64, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 102], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 75, 203]]
8
117
4
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); long W = long.Parse(str[0]); long H = long.Parse(str[1]); long X = long.Parse(str[2]); long Y = long.Parse(str[3]); long ans = W * H / 2; long t = 0;...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); double W = double.Parse(str[0]); double H = double.Parse(str[1]); long X = long.Parse(str[2]); long Y = long.Parse(str[3]); double ans = W * H / 2; l...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
139
10
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Competitive { internal class Solution { public long MOD = 1000000007; public void Run() { long W, H, X, Y; { var line = Input.ReadLongArray(); W = line[0]; H = line[1]; X = line[2]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Competitive { internal class Solution { public long MOD = 1000000007; public void Run() { long W, H, X, Y; { var line = Input.ReadLongArray(); W = line[0]; H = line[1]; X = line[2]; ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 250]]
8
368
4
using System; using System.Collections.Generic; using System.Linq; namespace C_ABC130 { class MainClass { static long[] s; public static void Main(string[] args) { s = Array.ConvertAll(Console.ReadLine().Split().ToArray(), long.Parse); double ans = (double)(s[0]) * (double)(s[1]) / 2; int ans2 = 0; ...
using System; using System.Collections.Generic; using System.Linq; namespace C_ABC130 { class MainClass { static long[] s; public static void Main(string[] args) { s = Array.ConvertAll(Console.ReadLine().Split().ToArray(), long.Parse); double ans = (double)(s[0]) * (double)(s[1]) / 2; int ans2 = 0; ...
[["+", 15, 16, 31, 16, 12, 16, 31, 74, 0, 24], ["+", 15, 16, 31, 16, 12, 16, 31, 74, 39, 199], ["+", 15, 16, 31, 16, 12, 16, 31, 74, 0, 25], ["+", 15, 16, 12, 16, 12, 16, 31, 74, 0, 24], ["+", 15, 16, 12, 16, 12, 16, 31, 74, 39, 199], ["+", 15, 16, 12, 16, 12, 16, 31, 74, 0, 25]]
8
141
6
using System; class c { static void Main() { var inp = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); double ans = inp[0] * inp[1] / 2; int ans2 = 0; if (inp[0] / 2 == inp[2] && inp[1] / 2 == inp[3]) ans2 = 1; Console.WriteLine("{0} {1}", ans, ans2); } }
using System; class c { static void Main() { var inp = Array.ConvertAll(Console.ReadLine().Split(), double.Parse); double ans = inp[0] * inp[1] / 2; int ans2 = 0; if (inp[0] / 2 == inp[2] && inp[1] / 2 == inp[3]) ans2 = 1; Console.WriteLine("{0} {1}", ans, ans2); } }
[["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199]]
8
99
2
#if true //#if false #define UTAKA_DEBUG #endif using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using System.IO; namespace UtakaApp { public partial class Program { public const string ContestName = "abc130"; public const string ProblemName = "E"; ...
#if true //#if false #define UTAKA_DEBUG #endif using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using System.IO; namespace UtakaApp { public partial class Program { public const string ContestName = "abc130"; public const string ProblemName = "E"; ...
[["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]]
8
1,402
2
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { ABC130.F(); } class ABC130 { public static void A() { Console.WriteLine(Read.Int() < Read.Int() ? 0 : 10); } public static void B() { var N = Read.Int(); ...
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { ABC130.F(); } class ABC130 { public static void A() { Console.WriteLine(Read.Int() < Read.Int() ? 0 : 10); } public static void B() { var N = Read.Int(); ...
[["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 12, 16, 31, 23, 0, 16, 12, 214, 205, 22], ["+", 12, 16, 31, 23, 0, 16, 12, 214, 0, 131], ["+", 12, 16, 31, 23, 0, 16, 12, 214, 141, 22], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22]]
8
2,407
8
using System; using System.Collections.Generic; public class CSharp { public static void Main() { Kyopuro chokudai = new Kyopuro(); chokudai.AtCoder(); } } public class Kyopuro { string s; int q; int[] x, d, n; public void AtCoder() { q = int.Parse(Console.ReadLine()); string[] input; ...
using System; using System.Collections.Generic; public class CSharp { public static void Main() { Kyopuro chokudai = new Kyopuro(); chokudai.AtCoder(); } } public class Kyopuro { string s; int q; int[] x, d, n; public void AtCoder() { q = int.Parse(Console.ReadLine()); string[] input; ...
[["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
859
5
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC128A { class Program { static void Main(string[] args) { { var word = Console.ReadLine().Split(); double a = double.Parse(word[0]); double b = double.Parse(word[1]);...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC128A { class Program { static void Main(string[] args) { { var word = Console.ReadLine().Split(); int a = int.Parse(word[0]); int b = int.Parse(word[1]); int m...
[["-", 8, 196, 0, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
117
10
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC128A { class Program { static void Main(string[] args) { int a, b, c, d; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[2]); c =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC128A { class Program { static void Main(string[] args) { int a, b, c, d; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c =...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
124
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class ABC128_A { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int p = int.Parse(str[1]); Console.Write(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class ABC128_A { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int p = int.Parse(str[1]); Console.Write(...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
107
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace kyopro { class Program { static void Main(string[] args) { string[] ap = Console.ReadLine().Split(); int a = int.Parse(ap[0]); int p = int.Parse(ap[1]); Console.WriteLine((3 *...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace kyopro { class Program { static void Main(string[] args) { string[] ap = Console.ReadLine().Split(); int a = int.Parse(ap[0]); int p = int.Parse(ap[1]); Console.WriteLine((3 *...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
102
2
using System; class plogram { static void Main() { string apple = Console.ReadLine(); string[] array = apple.Split(','); int piese = int.Parse(array[1]); piese += int.Parse(array[0]) * 3; Console.WriteLine(piese / 2); } }
using System; class plogram { static void Main() { string apple = Console.ReadLine(); string[] array = apple.Split(' '); int piese = int.Parse(array[1]); piese += int.Parse(array[0]) * 3; Console.WriteLine(piese / 2); } }
[["-", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253]]
8
73
2
using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); string[] math = s.Split(' '); int piece = 0; piece += int.Parse(math[0]) * 3; piece += int.Parse(math[1]); Console.WriteLine(piece); } }
using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); string[] math = s.Split(' '); int piece = 0; piece += int.Parse(math[0]) * 3; piece += int.Parse(math[1]); Console.WriteLine(piece / 2); } }
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
79
2
using System; class Program { static void Main(string[] args) { //まずは数を代入する string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int p = int.Parse(input[1]); //リンゴのかけらの数を求める int sum = a * 3 + p; //できるパイの数を計算 sum = sum / 3; //出力 Console.WriteLine(sum);...
using System; class Program { static void Main(string[] args) { //まずは数を代入する string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int p = int.Parse(input[1]); //リンゴのかけらの数を求める int sum = a * 3 + p; //できるパイの数を計算 sum = sum / 2; //出力 Console.WriteLine(sum);...
[["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
88
2
using System; using System.Collections.Generic; using System.Linq; class ABC128A { public static void Main() { var ap = Console.ReadLine().Split(' ').Select(int.Parse); Console.WriteLine(ap.ElementAt(0) * 3 + ap.ElementAt(1) / 2); } }
using System; using System.Collections.Generic; using System.Linq; class ABC128A { public static void Main() { var ap = Console.ReadLine().Split(' ').Select(int.Parse); Console.WriteLine((ap.ElementAt(0) * 3 + ap.ElementAt(1)) / 2); } }
[["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 12, 213, 3, 4, 0, 25]]
8
73
2
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); sample[] PS = new sample[N]; for (int i = 0; i < N; i++) { string[] tmp = Console.ReadLine().Split(' ').ToArray(); PS[i] = new sample { Index = i +...
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); sample[] PS = new sample[N]; for (int i = 0; i < N; i++) { string[] tmp = Console.ReadLine().Split(' ').ToArray(); PS[i] = new sample { I...
[["+", 10, 229, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 10, 229, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 10, 229, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 10, 229, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 10, 229, 0, 11, 12, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 235, 8, 201, 0, 277, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0...
8
187
7
using System; using System.Linq; using System.Collections.Generic; public class AtCoderB { static void Main() { int n = int.Parse(Console.ReadLine()); List<Tuple<int, string, int>> scores = new List<Tuple<int, string, int>>(); for (int i = 0; i < n; i++) { var line = Console.ReadLine(); var...
using System; using System.Linq; using System.Collections.Generic; public class AtCoderB { static void Main() { int n = int.Parse(Console.ReadLine()); List<Tuple<int, string, int>> scores = new List<Tuple<int, string, int>>(); for (int i = 0; i < n; i++) { var line = Console.ReadLine(); var...
[["+", 0, 230, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 230, 3, 4, 0, 28, 0, 16, 12, 203], ["-", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22]]
8
183
4
using System; using System.Collections.Generic; // list用 using System.Text; // StringBuilder用 using System.Collections; using System.Linq; class Program { static List<int> s = new List<int>(); static List<string> t = new List<string>(); static decimal result; static StringBuilder sb = new StringB...
using System; using System.Collections.Generic; // list用 using System.Text; // StringBuilder用 using System.Collections; using System.Linq; class Program { static List<int> s = new List<int>(); static List<string> t = new List<string>(); static decimal result; static StringBuilder sb = new StringB...
[["+", 51, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 51, 213, 3, 4, 0, 28, 0, 16, 17, 33]]
8
731
4
using System; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); Tuple<string, int, int>[] val = new Tuple<string, int, int>[n]; for (int i = 0; i < n; i++) { var r = Console.ReadLine().Split(); val[i] = new Tuple<st...
using System; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); Tuple<string, int, int>[] val = new Tuple<string, int, int>[n]; for (int i = 0; i < n; i++) { var r = Console.ReadLine().Split(); val[i] = new Tuple<st...
[["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 12, 203]]
8
180
2
using System; using System.Text; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] S = new string[N]; int[] P = new int[N]; ...
using System; using System.Text; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] S = new string[N]; int[] P = new int[N]; ...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
281
2
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class Hoge { public string Name; public int Point; public int Index; } class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var list = new List<Hoge>(N); for (int ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class Hoge { public string Name; public int Point; public int Index; } class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var list = new List<Hoge>(N); for (int ...
[["-", 3, 4, 0, 28, 0, 218, 8, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 214, 141, 22]]
8
197
2
using System; using System.Collections.Generic; namespace cswork { class Program { public Program() {} Scanner cin; void Omame() { cin = new Scanner(); int n = cin.nextInt(); int m = cin.nextInt(); List<int> sList = new List<int>(); for (int i = 0; i < m; i++) { int k = cin.nextInt...
using System; using System.Collections.Generic; namespace cswork { class Program { public Program() {} Scanner cin; void Omame() { cin = new Scanner(); int n = cin.nextInt(); int m = cin.nextInt(); List<int> sList = new List<int>(); for (int i = 0; i < m; i++) { int k = cin.nextInt...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22]]
8
497
2
using System; using System.Linq; using System.Collections.Generic; namespace ABC128 { class C { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int M = int.Parse(input[1]); int[] k = new int[M]; int[,] s = new int[M, 10]; for (i...
using System; using System.Linq; using System.Collections.Generic; namespace ABC128 { class C { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int M = int.Parse(input[1]); int[] k = new int[M]; int[,] s = new int[M, 20]; for (i...
[["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203]]
8
468
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { static class Extensions { public static int LowerBound<T>(this IList<T> list, T value, IComparer<T> comp = null) { if (comp == null) comp = Comparer<T>.Default;...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { static class Extensions { public static int LowerBound<T>(this IList<T> list, T value, IComparer<T> comp = null) { if (comp == null) comp = Comparer<T>.Default;...
[["+", 206, 207, 0, 28, 0, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 15, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 15, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
2,220
5
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int M = int.Parse(s[1]); int maxSW = (int)Math.Pow...
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int M = int.Parse(s[1]); int maxSW = (int)Math.Pow...
[["-", 0, 52, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 203]]
8
428
2
using System; using System.Linq; using System.Collections.Generic; using System.Text; using static System.Console; using static System.Math; class Program { static void Main(string[] args) { int[] NM = ReadLineParseIntArray(); int N = NM[0]; int M = NM[1]; int[][] s = new int [M][]; for (int i =...
using System; using System.Linq; using System.Collections.Generic; using System.Text; using static System.Console; using static System.Math; class Program { static void Main(string[] args) { int[] NM = ReadLineParseIntArray(); int N = NM[0]; int M = NM[1]; int[][] s = new int [M][]; for (int i =...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18]]
8
329
2
using System; using System.Linq; using System.Collections.Generic; namespace ABC127 { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int[] n = s.Select(x => int.Parse(x)).ToArray(); int RR = n[0]; int LL = 1; int L, R = 1; for (int i = 0; i < n...
using System; using System.Linq; using System.Collections.Generic; namespace ABC127 { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int[] n = s.Select(x => int.Parse(x)).ToArray(); int RR = n[0]; int LL = 1; int L, R = 1; for (int i = 0; i < n...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]]
8
211
4
using System; using System.Collections.Generic; using System.Linq; public static class Program { public static void Main(string[] args) { var nm = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var min = 1; var max = nm[0]; for (int i = 0; i < nm[1]; i++) { var door = ...
using System; using System.Collections.Generic; using System.Linq; public static class Program { public static void Main(string[] args) { var nm = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var min = 1; var max = nm[0]; for (int i = 0; i < nm[1]; i++) { var door = ...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20]]
8
178
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; #if !DEBUG using System.IO; #endif public class Program { public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var sw = new StreamWriter(Console.OpenStan...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; #if !DEBUG using System.IO; #endif public class Program { public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var sw = new StreamWriter(Console.OpenStan...
[["-", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22]]
8
2,845
4
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace ConsoleApp1 { class Program { static void Main(string[] args) { A(); } static void A() { var NM = ReadSplitInt(); var LR = new List<List<int>>(); var Lmax = 0; var Rmin = int.MaxValue; for (...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace ConsoleApp1 { class Program { static void Main(string[] args) { A(); } static void A() { var NM = ReadSplitInt(); var LR = new List<List<int>>(); var Lmax = 0; var Rmin = int.MaxValue; for (...
[["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 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
729
5
using System; using System.Collections.Generic; using System.Linq; using static System.Console; namespace AtCoder.Probrems.Solvers.ABC127 { public class C { static void Main(string[] args) { var nm = ReadLine().Split().Select(int.Parse).ToArray(); var gates = Enumerable.Range(0, nm[0]).Select(_ => Re...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; namespace AtCoder.Probrems.Solvers.ABC127 { public class C { static void Main(string[] args) { var nm = ReadLine().Split().Select(int.Parse).ToArray(); var gates = Enumerable.Range(0, nm[1]).Select(_ => Re...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
218
2
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace CSharp { static class Program { static void Main(string[] args) { int n, m; ReadInt(out n, out m); var gates = Enumerable.Repeat(0, m) .Select(_ => { int l, r; ...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace CSharp { static class Program { static void Main(string[] args) { int n, m; ReadInt(out n, out m); var gates = Enumerable.Repeat(0, m) .Select(_ => { int l, r; ...
[["-", 0, 200, 0, 212, 0, 41, 15, 16, 31, 22], ["-", 0, 200, 0, 212, 0, 41, 15, 16, 17, 20], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 20], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 12, 22]]
8
675
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C_Prison { class Program { static void Main(string[] args) { string[] str1 = Console.ReadLine().Split(' '); int N = int.Parse(str1[0]); int M = int.Parse(str1[1]); int[] L = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C_Prison { class Program { static void Main(string[] args) { string[] str1 = Console.ReadLine().Split(' '); int N = int.Parse(str1[0]); int M = int.Parse(str1[1]); int[] L = ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
271
4
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 22]]
8
513
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; Func cin2; void calc() { cin = new...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; Func cin2; void calc() { cin = new...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
805
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class27 { static void Main() { var NM = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = NM[0], M = NM[1]; var A = Console.ReadLine().Split().S...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class27 { static void Main() { var NM = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = NM[0], M = NM[1]; var A = Console.ReadLine().Split().S...
[["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 98], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 22]]
8
302
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { var inputArray = retreiveLongArray(); var inputCount = 2; // 不正な入力は処理しない if (inputArray.Length != inputCount) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { var inputArray = retreiveLongArray(); var inputCount = 2; // 不正な入力は処理しない if (inputArray.Length != inputCount) { ...
[["-", 12, 204, 206, 207, 0, 28, 0, 223, 0, 29]]
8
431
1
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } static void Solve() { ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } static void Solve() { ...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25]]
8
1,799
6