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.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 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
493
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, 64, 196, 0, 45], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]]
8
490
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Collections; using System.Linq.Expressions; using Pair = System.Tuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<long>>; using static _20200213.Cin; usi...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Collections; using System.Linq.Expressions; using Pair = System.Tuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<long>>; using static _20200213.Cin; usi...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
2,572
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; namespace ABC152 { class Program { static v...
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; namespace ABC152 { class Program { static v...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
3,202
using System; using System.Collections; using System.Collections.Generic; using System.IO; namespace AtCoder { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[,] tmp = new int[10, 10]; for (int i = 1; i < N; i++) { int first, last; if (i > 99999) ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; namespace AtCoder { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[,] tmp = new int[10, 10]; for (int i = 1; i <= N; i++) { int first, last; if (i > 99999) ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
294
using System; using System.Linq; using System.Text.RegularExpressions; using System.Collections.Generic; using static program.Input; using static program.MyMath; using static System.Console; namespace program { class Program { static string alp = "abcdefghijklmnopqrstuvwxyz"; static string Alp = "ABCDEFGHIJKLMNOPQ...
using System; using System.Linq; using System.Text.RegularExpressions; using System.Collections.Generic; using static program.Input; using static program.MyMath; using static System.Console; namespace program { class Program { static string alp = "abcdefghijklmnopqrstuvwxyz"; static string Alp = "ABCDEFGHIJKLMNOPQ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
1,199
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionD { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionD { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
[["-", 0, 57, 75, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 7, 15, 16, 17, 19]]
8
430
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp5 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] res = new int[100]; for (int i = 0; i < N; i++) { int A = i.T...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp5 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] res = new int[100]; for (int i = 0; i <= N; i++) { int A = i....
[["-", 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; public class Program { private int N; private List<E>[] Edges; private int M; private int[] U, V; private long[] F; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); Edges = new List<E>[N]; for (int i = 0; i < N; i++) { E...
using System; using System.Collections.Generic; public class Program { private int N; private List<E>[] Edges; private int M; private int[] U, V; private long[] F; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); Edges = new List<E>[N]; for (int i = 0; i < N; i++) { E...
[["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 31, 203], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 31, 203]]
8
1,019
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; static List<Tuple<int,...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; static List<Tuple<int,...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 31, 203], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 31, 203], ["-", 75, 196, 0, 1, 0, 11, 12, 16, 31, 203], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 31, 203]]
8
1,473
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long h = sc.NextLong(); long w = sc.NextLong(); long n = sc.NextLong(); long answer = (n + (Math.Max(h, w) - 1) / (Math.Max(h, w) - 1)); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long h = sc.NextLong(); long w = sc.NextLong(); long n = sc.NextLong(); long answer = (n + Math.Max(h, w) - 1) / Math.Max(h, w); Consol...
[["-", 0, 23, 0, 16, 12, 16, 31, 23, 0, 24], ["-", 0, 23, 0, 16, 12, 16, 12, 23, 0, 24], ["-", 12, 23, 0, 16, 31, 213, 3, 4, 0, 25], ["-", 0, 16, 12, 16, 12, 23, 0, 16, 17, 33], ["-", 0, 16, 12, 16, 12, 23, 0, 16, 12, 203], ["-", 0, 23, 0, 16, 12, 16, 12, 23, 0, 25]]
8
401
using static System.Math; using System; public class Hello { public static void Main() { var h = int.Parse(Console.ReadLine().Trim()); var w = int.Parse(Console.ReadLine().Trim()); var n = int.Parse(Console.ReadLine().Trim()); var a = Max(h, w); Console.WriteLine((n + a - 1) / n); } }
using static System.Math; using System; public class Hello { public static void Main() { var h = int.Parse(Console.ReadLine().Trim()); var w = int.Parse(Console.ReadLine().Trim()); var n = int.Parse(Console.ReadLine().Trim()); var a = Max(h, w); Console.WriteLine((n + a - 1) / a); } }
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
101
using System; class Painting { static void Main(string[] args) { int h = int.Parse(System.Console.ReadLine()); int w = int.Parse(System.Console.ReadLine()); int n = int.Parse(System.Console.ReadLine()); int rtn = 0; int wk = 0; while (wk < n) { if (h < w) { wk = wk + w; ...
using System; class Painting { static void Main(string[] args) { int h = int.Parse(System.Console.ReadLine()); int w = int.Parse(System.Console.ReadLine()); int n = int.Parse(System.Console.ReadLine()); int rtn = 0; int wk = 0; while (wk < n) { if (h < w) { wk = wk + w; ...
[["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]]
8
126
using System; class Program { static void Main() { int h = int.Parse(Console.ReadLine()); int w = int.Parse(Console.ReadLine()); int p = int.Parse(Console.ReadLine()); Console.WriteLine(Math.Round(p / (double)Math.Max(h, w))); } }
using System; class Program { static void Main() { int h = int.Parse(Console.ReadLine()); int w = int.Parse(Console.ReadLine()); int p = int.Parse(Console.ReadLine()); Console.WriteLine(Math.Ceiling(p / (double)Math.Max(h, w))); } }
[["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]]
8
80
using System; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] A = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); foreach (var a in A) { if (a % 2 == 0) { if (a % 3 != 0 && a % 5 != 0) { Console.WriteLine...
using System; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] A = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); foreach (var a in A) { if (a % 2 == 0) { if (a % 3 != 0 && a % 5 != 0) { Console.WriteLine...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
121
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { bool flag = true; int N = int.Parse(Console.ReadLine()); string[] temp = Console.ReadLine().Split(); int[] A = new int[N]; for (int i = 0; i < N; i++) { A[i] = int.Parse(temp[i]); ...
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { bool flag = true; int N = int.Parse(Console.ReadLine()); string[] temp = Console.ReadLine().Split(); int[] A = new int[N]; for (int i = 0; i < N; i++) { A[i] = int.Parse(temp[i]); ...
[["-", 64, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 64, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0,...
8
176
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp13 { class Program { static void Main(string[] args) { int ass = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); bool iuu = true; for (i...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp13 { class Program { static void Main(string[] args) { int ass = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); bool iuu = true; for (i...
[["+", 0, 7, 8, 196, 0, 57, 15, 241, 0, 111]]
8
197
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Sample { class Sample { static void Main() { var list = new List<int>(); int number = int.Parse(Console.ReadLine()); var p = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int count = 0; i...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Sample { class Sample { static void Main() { var list = new List<int>(); int number = int.Parse(Console.ReadLine()); var p = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int count = 0; i...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
179
using System; using System.Linq; class Program { public static void Main() { int n = int.Parse(Console.ReadLine()); int[] input = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); bool flag = false; for (int i = 0; i < n; i++) { if (input[i] % 2 == 0) { if (inp...
using System; using System.Linq; class Program { public static void Main() { int n = int.Parse(Console.ReadLine()); int[] input = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); bool flag = false; for (int i = 0; i < n; i++) { if (input[i] % 2 == 0) { if (inp...
[["-", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 15, 16, 12, 16, 31, 16, 31, 204, 205, 22], ["+", 12, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 16, 31, 16, 31, 204, 206, 207, 0, 73]]
8
153
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace abc155 { class Program { static void Main(string[] args) { if (File.Exists("input.txt")) { Console.SetIn(new StreamReader("input.txt")); } solve_abc155B(); } public static void ...
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace abc155 { class Program { static void Main(string[] args) { if (File.Exists("input.txt")) { Console.SetIn(new StreamReader("input.txt")); } solve_abc155B(); } public static void ...
[["-", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46]]
8
332
using System; using System.Linq; namespace ConsoleApp1111 { class Program { static void Main(string[] args) { var n = Console.ReadLine().Trim().Split(' ').Select(int.Parse).ToArray(); var a = n.Where(_ => _ % 2 == 0).All(_ => _ % 3 == 0 || _ % 5 == 0); if (a) { Console.WriteLine("APPROVED"); } ...
using System; using System.Linq; namespace ConsoleApp1111 { class Program { static void Main(string[] args) { Console.ReadLine(); var n = Console.ReadLine().Trim().Split(' ').Select(int.Parse).ToArray(); var a = n.Where(_ => _ % 2 == 0).All(_ => _ % 3 == 0 || _ % 5 == 0); if (a) { Console.Write...
[["+", 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
118
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using System.Diagnostics; using ll=System.Int64; using static Contest_C.Lib_IO; using static Contest_C.Lib_Minifunc; public static class Contest_C { public static ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using System.Diagnostics; using ll=System.Int64; using static Contest_C.Lib_IO; using static Contest_C.Lib_Minifunc; public static class Contest_C { public static ...
[["-", 0, 213, 3, 4, 0, 28, 0, 241, 0, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 241, 0, 203]]
8
3,941
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; static void Main() { ...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; static void Main() { ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22]]
8
1,231
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var S = sc.ReadStrArray(N); var dic = new Dictionary<string, int>(); var max = 0; for (int i = 0; i < N; i++) { var j = 0; dic[...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var S = sc.ReadStrArray(N); var dic = new Dictionary<string, int>(); var max = 0; for (int i = 0; i < N; i++) { var j = 0; dic[...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
1,181
using System; // k番目の値->「x未満がk未満」であるxの最大値 //-INF=ok,INF=ngを条件に(今回はINF=10^18 +1)二分探索でO(log INF) //「x未満が何個?」 class Program { static public readonly long INF = (long)Math.Pow(10, 18) + 1; static void Main(string[] args) { string[] In = Console.ReadLine().Split(' '); int n = int.Parse(In[0]); long k = int.P...
using System; // k番目の値->「x未満がk未満」であるxの最大値 //-INF=ok,INF=ngを条件に(今回はINF=10^18 +1)二分探索でO(log INF) //「x未満が何個?」 class Program { static public readonly long INF = (long)Math.Pow(10, 18) + 1; static void Main(string[] args) { string[] In = Console.ReadLine().Split(' '); int n = int.Parse(In[0]); long k = long....
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199]]
8
442
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace V { partial class Solver { public void Solve() { Write(SolveLong()); // YesNo(SolveBool()); } public long SolveLong() { long n = Read; long k = Read - 1; var a = Arr(n).OrderBy(x => x).ToArray(); ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace V { partial class Solver { public void Solve() { Write(SolveLong()); // YesNo(SolveBool()); } public long SolveLong() { long n = Read; long k = Read - 1; var a = Arr(n).OrderBy(x => x).ToArray(); ...
[["-", 0, 212, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 141, 22], ["-", 0, 212, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 16, 12, 213, 63, 214, 141, 22], ["-", 0, 28, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 31, 213, 63, 214, 141, 22], ["-", 0, 28, 0, 16, 12, 213...
8
7,214
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; using static MyIO; using static MyUtil; public class E { public static void Main() => (new Solver()).Solve(); } public class Solver { p...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; using static MyIO; using static MyUtil; public class E { public static void Main() => (new Solver()).Solve(); } public class Solver { p...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
822
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace A { class StartingPoint { static void Main(string[] args) { if (args?.Any() == true) { var assembly = Assembly.GetEntryAssembly(); var resourceName = "AtCoderCShar...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace A { class StartingPoint { static void Main(string[] args) { if (args?.Any() == true) { var assembly = Assembly.GetEntryAssembly(); var resourceName = "AtCoderCShar...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]]
8
826
using System; using static System.Console; using System.Linq; namespace Main { class Program { static void Main(string[] args) { string[] tmp = ReadLine().Split(' ').ToArray(); string S = tmp[0]; string T = tmp[1]; int[] nums = ReadLine().Split(' ').Select(int.Parse).ToArray(); int A = nums[0]; ...
using System; using static System.Console; using System.Linq; namespace Main { class Program { static void Main(string[] args) { string[] tmp = ReadLine().Split(' ').ToArray(); string S = tmp[0]; string T = tmp[1]; int[] nums = ReadLine().Split(' ').Select(int.Parse).ToArray(); int A = nums[0]; ...
[["-", 8, 196, 0, 57, 15, 16, 12, 5, 0, 62], ["-", 8, 196, 0, 57, 15, 16, 12, 5, 0, 222], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22]]
8
155
using System; using System.Collections.Generic; using System.Linq; namespace Hayadoki20200309A { class Input { /// <summary> /// 1行の入力を取得する /// </summary> /// <returns>文字列</returns> public void String(out string s) { s = Console.ReadLine(); } /// <summary> /// 複数行の入力を取得 /// </summary> /// <returns>文...
using System; using System.Collections.Generic; using System.Linq; namespace Hayadoki20200309A { class Input { /// <summary> /// 1行の入力を取得する /// </summary> /// <returns>文字列</returns> public void String(out string s) { s = Console.ReadLine(); } /// <summary> /// 複数行の入力を取得 /// </summary> /// <returns>文...
[["-", 8, 196, 0, 57, 15, 16, 12, 5, 0, 62], ["-", 8, 196, 0, 57, 15, 16, 12, 5, 0, 222], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22]]
8
971
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long n = sc.NextLong(); Tuple<long, long>[] robots = new Tuple<long, long>[n]; for (int i = 0; i < n; i++) { long x = sc.NextLong(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long n = sc.NextLong(); Tuple<long, long>[] robots = new Tuple<long, long>[n]; for (int i = 0; i < n; i++) { long x = sc.NextLong(); ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 68]]
8
483
using System; using System.IO; class Solve { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var robos = new(int left, int right)[N]; for (int i = 0; i < N; i++) { var arr = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); robos[i] = (arr[0] - arr[1], arr[0] +...
using System; using System.IO; class Solve { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var robos = new(int left, int right)[N]; for (int i = 0; i < N; i++) { var arr = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); robos[i] = (arr[0] - arr[1], arr[0] +...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 0, 7, 8, 196, 0, 1, 0, 223, 0, 68], ...
8
219
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 // var s = Console.ReadLine(); var n = long.Parse(Console.ReadLine()); long[] x = new long[n]; long[] l = new long[n]; for (i...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 // var s = Console.ReadLine(); var n = long.Parse(Console.ReadLine()); long[] x = new long[n]; long[] l = new long[n]; for (i...
[["-", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22]]
8
275
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; using static AtCoder.Tool; using static AtCoder.CalcL; namespace AtCoder { class AC { const int MOD = 1000000007; const int INF = int.MaxValue / 2; const long...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; using static AtCoder.Tool; using static AtCoder.CalcL; namespace AtCoder { class AC { const int MOD = 1000000007; const int INF = int.MaxValue / 2; const long...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18]]
8
1,160
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static _20200313.Keyence2020_B.Cin; using static _20200313.Keyence2020_B.Util; using Pair = _20200313.Keyence2020_B.VTuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<lon...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static _20200313.Keyence2020_B.Cin; using static _20200313.Keyence2020_B.Util; using Pair = _20200313.Keyence2020_B.VTuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<lon...
[["-", 12, 230, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 12, 230, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 12, 230, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 12, 230, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 8, 196, 0, 57, 15, 16, 12, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 141, 22], ["-", 64, 196, 0, 1, 0, 11, 12, 214, 141, 22], ...
8
2,281
using System; using System.Linq; using System.Collections.Generic; class ProgramB { static void Main(string[] args) { //入力 int n = int.Parse(Console.ReadLine()); int[] pos = new int[n]; int[] l = new int[n]; List<Task> task = new List<Task>(); for (int i = 0; i < n; i++) { string[] i...
using System; using System.Linq; using System.Collections.Generic; class ProgramB { static void Main(string[] args) { //入力 int n = int.Parse(Console.ReadLine()); int[] pos = new int[n]; int[] l = new int[n]; List<Task> task = new List<Task>(); for (int i = 0; i < n; i++) { string[] i...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33]]
8
369
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using static Template; using static System.Console; using static System.Convert; using static System.Math; using Pi = Pair<int, int>; class Solver { public void Solve(Scanner ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using static Template; using static System.Console; using static System.Convert; using static System.Math; using Pi = Pair<int, int>; class Solver { public void Solve(Scanner ...
[["-", 0, 52, 15, 16, 12, 16, 12, 16, 17, 72], ["-", 0, 52, 15, 16, 12, 16, 12, 16, 12, 203]]
8
1,817
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using System.IO; class readint { public readint(out int i) { i = int.Parse(Console.ReadLine()); } public readint(out int a, out int b) { int[] sp = Console....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using System.IO; class readint { public readint(out int i) { i = int.Parse(Console.ReadLine()); } public readint(out int a, out int b) { int[] sp = Console....
[["-", 0, 57, 75, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 22]]
8
3,353
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var array = "abcdefghijklmnopqrstuvwxy"; var r = Console.ReadLine(); var...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var array = "abcdefghijklmnopqrstuvwxyz"; var r = Console.ReadLine(); va...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]]
8
91
using System; namespace ABC151 { class Program { static void Main(string[] args) { // int a = int.Parse(Console.ReadLine()); // string[] input = Console.ReadLine().Split(' '); // int b = int.Parse(input[0]); // int c = int.Parse(input[1]); // string s = Console.ReadLine(); // Console.WriteL...
using System; namespace ABC151 { class Program { static void Main(string[] args) { // int a = int.Parse(Console.ReadLine()); // string[] input = Console.ReadLine().Split(' '); // int b = int.Parse(input[0]); // int c = int.Parse(input[1]); // string s = Console.ReadLine(); // Console.WriteL...
[["-", 0, 200, 0, 212, 0, 229, 0, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 229, 0, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 229, 0, 5, 0, 62], ["+", 0, 198, 0, 200, 0, 212, 0, 229, 0, 21]]
8
183
using System; using System.Diagnostics; namespace atcode { class Program { static void Main(string[] args) { string charString = "abcdefghijklmnopqrstuvwxy"; string inputS = Console.ReadLine().Trim(); if (inputS == "z") { return; } int inputindex = charString.IndexOf(inputS); if (i...
using System; using System.Diagnostics; namespace atcode { class Program { static void Main(string[] args) { string charString = "abcdefghijklmnopqrstuvwxyz"; string inputS = Console.ReadLine().Trim(); if (inputS == "z") { return; } int inputindex = charString.IndexOf(inputS); if (...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]]
8
106
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp15 { class Class102 { static void Main() { var NM = Console.ReadLine().Split(); int N = int.Parse(NM[0]); int M = int.Parse(NM[1]); bool[] Table = new bool[N]; int[] wa = new int[N]; int WA = 0; for (in...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp15 { class Class102 { static void Main() { var NM = Console.ReadLine().Split(); int N = int.Parse(NM[0]); int M = int.Parse(NM[1]); bool[] Table = new bool[N]; int[] wa = new int[N]; int WA = 0; for (in...
[["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 22], ["+", 3, 4, 0, 28, 0, 283, 0, 284, 0, 22]]
8
224
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[] NK = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int N = NK[0]; int K = NK[1]; if (K == 0) { Console.WriteLine("0 0")...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[] NK = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int N = NK[0]; int K = NK[1]; if (K == 0) { Console.WriteLine("0 0")...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]]
8
275
using System; using System.Linq; using System.Collections.Generic; namespace lineAralgebra { class Program { public static void Main(String[] args) { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int n = input[0]; var m = input[1]; var correctSet = new HashSet<int>(); // va...
using System; using System.Linq; using System.Collections.Generic; namespace lineAralgebra { class Program { public static void Main(String[] args) { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int n = input[0]; var m = input[1]; var correctSet = new HashSet<int>(); // va...
[["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203]]
8
234
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class C { static void Main() { int[] intRecord = Console.ReadLine().Trim().Split(' ').Select(int.Parse).ToArray(); var N = intRecord[0]; var M = intRecord[1]; int p_i = 0; var S_i = string.Empty;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class C { static void Main() { int[] intRecord = Console.ReadLine().Trim().Split(' ').Select(int.Parse).ToArray(); var N = intRecord[0]; var M = intRecord[1]; int p_i = 0; var S_i = string.Empty;...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 75, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 75, 57, 64, 196, 0, 1, 0, 11, 12, 203]]
8
284
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AtCoder { static class Program { static void Main() { var str = IO.ReadLineToIntList(); var N = str[0]; var M = str[1]; Dictionary<int, int> q = new Dict...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AtCoder { static class Program { static void Main() { var str = IO.ReadLineToIntList(); var N = str[0]; var M = str[1]; Dictionary<int, int> q = new Dict...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 16, 12, 16, 12, 241, 0, 33], ["+", 0, 57, 15, 16, 12, 16, 12, 241, 0, 203]]
8
794
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { string[] arr = Console.ReadLine().Split(' '); int N = int.Parse(arr[0]); int M = int.Parse(arr[1]); int ac = 0; int wa = 0; bool[] arrAC = new bool[N]; int[] arrWA = Enumerable.Repeat(...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { string[] arr = Console.ReadLine().Split(' '); int N = int.Parse(arr[0]); int M = int.Parse(arr[1]); int ac = 0; int wa = 0; bool[] arrAC = new bool[N]; int[] arrWA = Enumerable.Repeat(...
[["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 22], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 22]]
8
249
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string Input; int N, M; int ac = 0; int wa = 0; Input = Console.ReadLine(); N = int.Parse(Input.Split(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string Input; int N, M; int ac = 0; int wa = 0; Input = Console.ReadLine(); N = int.Parse(Input.Split(...
[["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107]]
8
283
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string[] a = Console.ReadLine().Split(' '); string N = a[0]; string M = a[1]; Dictionary<int, List<string>> ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string[] a = Console.ReadLine().Split(' '); string N = a[0]; string M = a[1]; Dictionary<int, List<string>> ...
[["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72]]
8
287
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int M = int.Parse(input[1]); int correctNum = 0; int penaltyNum = 0; bool[] probB = new bool[N]; int[] wai = new int[N]; for (int i = 0; i < M; i...
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int M = int.Parse(input[1]); int correctNum = 0; int penaltyNum = 0; bool[] probB = new bool[N]; int[] wai = new int[N]; for (int i = 0; i < M; i...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
203
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; namespace Atcoder { class Program { public static int h; public static int w; static void Main(string[] args) { StreamScanner scan = new StreamScanne...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; namespace Atcoder { class Program { public static int h; public static int w; static void Main(string[] args) { StreamScanner scan = new StreamScanne...
[["-", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22]]
8
1,103
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassLibrary1 { public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } public class Class1 { static Dictionary<Tuple<long, long>, long> dic...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassLibrary1 { public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } public class Class1 { static Dictionary<Tuple<long, long>, long> dic...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
650
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ABC151F { static public int numberOfRandom...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ABC151F { static public int numberOfRandom...
[["-", 8, 201, 0, 195, 8, 306, 0, 213, 63, 22], ["-", 0, 195, 8, 306, 0, 213, 3, 4, 0, 24], ["-", 0, 195, 8, 306, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 213, 63, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
1,527
using System; using System.Linq; using System.Collections.Generic; namespace Contest { partial class Program { static void Main(string[] args) { ABC151F(); } static void ABC151A() { var s = ReadStr(); Console.WriteLine((char)(s[0] + 1)); } static void ABC151B() { var nkm = ReadIntN(); var A = ...
using System; using System.Linq; using System.Collections.Generic; namespace Contest { partial class Program { static void Main(string[] args) { ABC151F(); } static void ABC151A() { var s = ReadStr(); Console.WriteLine((char)(s[0] + 1)); } static void ABC151B() { var nkm = ReadIntN(); var A = ...
[["-", 31, 241, 0, 23, 0, 16, 12, 16, 12, 22], ["+", 31, 241, 0, 23, 0, 16, 12, 16, 12, 22]]
8
2,428
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_151 { class F { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_151 { class F { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72]]
8
1,066
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace AtCoder { class Program { private static string Read() { return Console.ReadLine(); } private static int ReadInt() { return int.Parse(Read()); } private static long ReadLong() { return long.P...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace AtCoder { class Program { private static string Read() { return Console.ReadLine(); } private static int ReadInt() { return int.Parse(Read()); } private static long ReadLong() { return long.P...
[["+", 0, 28, 0, 218, 8, 16, 12, 16, 17, 72], ["+", 0, 28, 0, 218, 8, 16, 12, 16, 12, 250]]
8
871
using System; namespace dowa6_A { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] s = new string[n]; int[] t = new int[n]; for (int i = 0; i < n; i++) { string[] input = Console.ReadLine().Split(' '); s[i] = input[0]; t[i] = int.Par...
using System; namespace dowa6_A { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] s = new string[n]; int[] t = new int[n]; for (int i = 0; i < n; i++) { string[] input = Console.ReadLine().Split(' '); s[i] = input[0]; t[i] = int.Par...
[["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 8, 196, 0, 1, 0, 11, 12, 241, 0, 72], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107]]
8
200
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, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
465
using System; namespace abc150_a { class Program { static void Main(string[] args) { string[] KX = Console.ReadLine().Split(" "); int K = int.Parse(KX[0]); int X = int.Parse(KX[1]); int sum = K * 500; if (X >= sum) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); ...
using System; namespace abc150_a { class Program { static void Main(string[] args) { string[] KX = Console.ReadLine().Split(" "); int K = int.Parse(KX[0]); int X = int.Parse(KX[1]); int sum = K * 500; if (X <= sum) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
102
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC150A { class Program { static void Main(string[] args) { string[] KX = Console.ReadLine().Split(' '); int K = int.Parse(KX[0]); int X = int.Parse(KX[1]); int a = K * X; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC150A { class Program { static void Main(string[] args) { string[] KX = Console.ReadLine().Split(' '); int K = int.Parse(KX[0]); int X = int.Parse(KX[1]); int a = 500 * K; ...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]]
8
126
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC_150a { class Program { static void Main(string[] args) { int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); if (input[0] >= input[1]) { Console.WriteL...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC_150a { class Program { static void Main(string[] args) { int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); if (input[0] * 500 >= input[1]) { Console....
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
108
using System; using System.Linq; using static System.Console; using System.Collections.Generic; class Program { public static void Main() { var input = ReadLine().Split(' ').Select(int.Parse).ToArray(); if (input[0] * 500 >= input[0]) { Write("Yes"); } else { Write("No"); } } }
using System; using System.Linq; using static System.Console; using System.Collections.Generic; class Program { public static void Main() { var input = ReadLine().Split(' ').Select(int.Parse).ToArray(); if (input[0] * 500 >= input[1]) { Write("Yes"); } else { Write("No"); } } }
[["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
91
using System; public class Hello { public static void Main() { int result; int M = 500; var str = Console.ReadLine().Split(' '); int K = int.Parse(str[0]); int X = int.Parse(str[1]); if (K * M > X) { Console.Write("Yes"); } else { Console.Write("No"); } } }
using System; public class Hello { public static void Main() { int result; int M = 500; var str = Console.ReadLine().Split(' '); int K = int.Parse(str[0]); int X = int.Parse(str[1]); if (K * M >= X) { Console.Write("Yes"); } else { Console.Write("No"); } } }
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
97
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC150A { class Program { static void Main(string[] args) { int a, b; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); if ((a * 50...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC150A { class Program { static void Main(string[] args) { int a, b; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); if ((a * 50...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
126
using System; class MainClass { public static void Main(string[] args) { var kx = Console.ReadLine().Split(); var k = int.Parse(kx[0]); var x = int.Parse(kx[1]); Console.WriteLine(x < 500 * k ? "No" : "Yes"); } }
using System; class MainClass { public static void Main(string[] args) { var kx = Console.ReadLine().Split(); var k = int.Parse(kx[0]); var x = int.Parse(kx[1]); Console.WriteLine(500 * k < x ? "No" : "Yes"); } }
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 22]]
8
77
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC150A { class Program { static void Main(string[] args) { int x, k, n; string d; var word = Console.ReadLine().Split(' '); x = int.Parse(word[0]); k = int.Parse(word[1])...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC150A { class Program { static void Main(string[] args) { int x, k, n; string d; var word = Console.ReadLine().Split(' '); x = int.Parse(word[0]); k = int.Parse(word[1])...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22]]
8
133
using System; namespace MyProgram { class AtCoder { public static void Main(string[] args) { int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int K = input[0]; int X = input[1]; Console.WriteLine(K * 500 >= X ? "Yes" : "NO"); } } }
using System; namespace MyProgram { class AtCoder { public static void Main(string[] args) { int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int K = input[0]; int X = input[1]; Console.WriteLine(K * 500 >= X ? "Yes" : "No"); } } }
[["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
85
using System; using System.Linq; public class Hello { public static void Main() { var lines = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int coin_count = lines[0]; int border = lines[1]; int value = coin_count * 5; if (value >= border) { Console.WriteLine("Yes"); } else ...
using System; using System.Linq; public class Hello { public static void Main() { var lines = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int coin_count = lines[0]; int border = lines[1]; int value = coin_count * 500; if (value >= border) { Console.WriteLine("Yes"); } els...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
100
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC150A { class Program { static void Main(string[] args) { int K, X; var word = Console.ReadLine().Split(' '); //全体をSpace区切りで文字列として認識 K = int.Parse(word[0]); //文字列から数字を...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC150A { class Program { static void Main(string[] args) { int K, X; var word = Console.ReadLine().Split(' '); //全体をSpace区切りで文字列として認識 K = int.Parse(word[0]); //文字列から数字を...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
130
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC150A { class Program { static void Main(string[] args) { int k, x; var word = Console.ReadLine().Split(' '); k = int.Parse(word[0]); x = int.Parse(word[1]); if (500 ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC150A { class Program { static void Main(string[] args) { int k, x; var word = Console.ReadLine().Split(' '); k = int.Parse(word[0]); x = int.Parse(word[1]); if (500 ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
128
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp12 { class Program { static void Main(string[] args) { var arr = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); Console.WriteLine(arr[0] * 500 >= arr[1] ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp12 { class Program { static void Main(string[] args) { var arr = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); Console.WriteLine(arr[0] * 500 >= arr[1] ...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222]]
8
103
using System; class Program { static void Main(string[] args) { int K, X; string[] str = Console.ReadLine().Split(' '); K = int.Parse(str[0]); X = int.Parse(str[1]); if (500 * K > X) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } }
using System; class Program { static void Main(string[] args) { int K, X; string[] str = Console.ReadLine().Split(' '); K = int.Parse(str[0]); X = int.Parse(str[1]); if (500 * K >= X) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } }
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
96
using System; class Program { static void Main(string[] args) { // get a integer var input = Console.ReadLine().Split(' '); var K = int.Parse(input[0]); var X = int.Parse(input[1]); if (K * 500 <= X || X == 0) { Console.Write("Yes"); } else { Console.Write("No"); } } }
using System; class Program { static void Main(string[] args) { // get a integer var input = Console.ReadLine().Split(' '); var K = int.Parse(input[0]); var X = int.Parse(input[1]); if (K * 500 >= X || X == 0) { Console.Write("Yes"); } else { Console.Write("No"); } } }
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20]]
8
96
using System; namespace tst { class Program { public static void Main() { string[] In = Console.ReadLine().Split(' '); int k = int.Parse(In[0]); int x = int.Parse(In[1]); int have = k * 500; if (have >= x) { Console.WriteLine("YES"); } else { Console.WriteLine("No"); } } } }
using System; namespace tst { class Program { public static void Main() { string[] In = Console.ReadLine().Split(' '); int k = int.Parse(In[0]); int x = int.Parse(In[1]); int have = k * 500; if (have >= x) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
99
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace ABC150_A { 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 ABC150_A { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222]]
8
463
using System; using System.Linq; class Program { static void Main(string[] args) { int[] KX = Console.ReadLine().Split(' ').Select(o => int.Parse(o)).ToArray(); int K = KX[0], X = KX[1]; string O = 500 * K >= X ? "YES" : "NO"; Console.WriteLine(O); } }
using System; using System.Linq; class Program { static void Main(string[] args) { int[] KX = Console.ReadLine().Split(' ').Select(o => int.Parse(o)).ToArray(); int K = KX[0], X = KX[1]; string O = 500 * K >= X ? "Yes" : "No"; Console.WriteLine(O); } }
[["-", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["-", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222]]
8
96
using System; namespace ABC150A { public class MainClass { public static void Main(string[] args) { int[] inp = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); Console.WriteLine(500 * inp[0] >= inp[1] ? "YES" : "NO"); } } }
using System; namespace ABC150A { public class MainClass { public static void Main(string[] args) { int[] inp = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); Console.WriteLine(500 * inp[0] >= inp[1] ? "Yes" : "No"); } } }
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
76
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC150_A { class Program { static void Main(string[] args) { var kx = Console.ReadLine().Split().Select(int.Parse).ToArray(); Console.WriteLine(kx[0] * 500 > kx[1] ? "Yes" : "No"); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC150_A { class Program { static void Main(string[] args) { var kx = Console.ReadLine().Split().Select(int.Parse).ToArray(); Console.WriteLine(kx[0] * 500 >= kx[1] ? "Yes" : "No"); ...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20]]
8
95
using System; class ProgramA { static void Main(string[] args) { //日付を入力する string[] input = Console.ReadLine().Split(' '); int x = int.Parse(input[0]); int k = int.Parse(input[1]); //月が同じなら月末、それ以外は別 if (x * 2 >= k) Console.WriteLine("Yes"); else { Console.WriteLine("No"); ...
using System; class ProgramA { static void Main(string[] args) { //日付を入力する string[] input = Console.ReadLine().Split(' '); int x = int.Parse(input[0]); int k = int.Parse(input[1]); //月が同じなら月末、それ以外は別 if (x * 500 >= k) Console.WriteLine("Yes"); else { Console.WriteLine("No"); ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
93
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; public class ABC { // long[] sp = Console.ReadLine().Split().Select(long // .Parse).ToArray(); int[] sp = // Console.ReadLine().Spli...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; public class ABC { // long[] sp = Console.ReadLine().Split().Select(long // .Parse).ToArray(); int[] sp = // Console.ReadLine().Spli...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
3,181
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AtCoder { static class Program { static void Main() { //ここから var str = IO.ReadLineToIntList(); var ans = str[1] / str[0] <= 500 ? "Yes" : "No"; //ここまで ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AtCoder { static class Program { static void Main() { //ここから var str = IO.ReadLineToIntList(); var ans = str[1] <= 500 * str[0] ? "Yes" : "No"; //ここまで ...
[["-", 0, 212, 0, 41, 15, 16, 31, 16, 17, 85], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 19], ["+", 0, 212, 0, 41, 15, 16, 12, 16, 31, 203], ["+", 0, 212, 0, 41, 15, 16, 12, 16, 17, 48], ["-", 0, 200, 0, 212, 0, 41, 15, 16, 17, 19], ["-", 0, 200, 0, 212, 0, 41, 15, 16, 12, 203]]
8
630
using System; using System.Linq; namespace ABC150A { class Program { static void Main(string[] args) { var KX = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); if (KX[0] * 500 > KX[1]) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } Console.ReadLine(); } }...
using System; using System.Linq; namespace ABC150A { class Program { static void Main(string[] args) { var KX = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); if (KX[0] * 500 >= KX[1]) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } Console.ReadLine(); } ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
97
using System; using System.Linq; public class AtCoder_150_A { public static void Main() { // var exStdIn = new System.IO.StreamReader( "input.txt" ); // System.Console.SetIn( exStdIn ); int[] nums = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int count = nums[0]; i...
using System; using System.Linq; public class AtCoder_150_A { public static void Main() { // var exStdIn = new System.IO.StreamReader( "input.txt" ); // System.Console.SetIn( exStdIn ); int[] nums = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int count = nums[0]; i...
[["-", 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
92
using System; using System.Linq; namespace CSharp { class Program { static void Main() { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); var K = input[0]; var X = input[1]; Console.WriteLine(K * 500 > X ? "Yes" : "No"); } } }
using System; using System.Linq; namespace CSharp { class Program { static void Main() { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); var K = input[0]; var X = input[1]; Console.WriteLine(K * 500 >= X ? "Yes" : "No"); } } }
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20]]
8
82
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); int cnt = 0; for (int i = 0; i < N - 3; i++) { if ("ABC" == S.Substring(i, 3)) cnt++; } Cons...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); int cnt = 0; for (int i = 0; i < N - 2; i++) { if ("ABC" == S.Substring(i, 3)) cnt++; } Cons...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
115
using System; class Program { static void Main(string[] args) { Console.ReadLine(); char[] s = Console.ReadLine().ToCharArray(); int count = 0; for (int i = 0; i < s.Length; i++) { if (s[i] != 'A') continue; if (s[i + 1] != 'B') continue; if (s[i + 2] == 'C') ...
using System; class Program { static void Main(string[] args) { Console.ReadLine(); char[] s = Console.ReadLine().ToCharArray(); int count = 0; for (int i = 0; i < s.Length - 2; i++) { if (s[i] != 'A') continue; if (s[i + 1] != 'B') continue; if (s[i + 2] == 'C') ...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
113
using System; using System.Linq; using System.Collections.Generic; namespace ForAtcoder { class Program { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); var s = Console.ReadLine(); var count = 0; for (var i = 1; i <= n; i++) { if (s.Substring(i - 1, 3) == "ABC") ...
using System; using System.Linq; using System.Collections.Generic; namespace ForAtcoder { class Program { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); var s = Console.ReadLine(); var count = 0; for (var i = 1; i <= n - 2; i++) { if (s.Substring(i - 1, 3) == "ABC") ...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
105
using System; using System.Collections.Generic; using static Assistant.Input; using System.Linq; using Assistant; namespace ABC150B { class Program { static void Main(string[] args) { int N = ReadInt; var S = Console.ReadLine(); string match = "ABC"; int count = 0; for (int i = 0; i < S.Length -...
using System; using System.Collections.Generic; using static Assistant.Input; using System.Linq; using Assistant; namespace ABC150B { class Program { static void Main(string[] args) { int N = ReadInt; var S = Console.ReadLine(); string match = "ABC"; int count = 0; for (int i = 0; i <= S.Length ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
275
using System; using System.Linq; public class Test { public static void Main() { int n = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); int counter = 0; for (int i = 0; i != n - 3; i++) { if (s.Substring(i, 3) == "ABC") { counter++; } } Console.WriteLine(c...
using System; using System.Linq; public class Test { public static void Main() { int n = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); int counter = 0; for (int i = 0; i != n - 2; i++) { if (s.Substring(i, 3) == "ABC") { counter++; } } Console.WriteLine(c...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
94
using System; using System.Linq; namespace AtCoder { class Program { static void Main() { int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int n = input[0], a = input[1], b = input[2]; int[] d = new int[3]; d[0] = b - a; d[1] = (a - 1) + 1 + (b - 1); d[2] = (n - a) + 1...
using System; using System.Linq; namespace AtCoder { class Program { static void Main() { long[] input = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long n = input[0], a = input[1], b = input[2]; long[] d = new long[3]; d[0] = b - a; d[1] = (a - 1) + 1 + (b - 1); d[2] = (n - a...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 227,...
8
156
using System; namespace agc041a { class Program { static void Main(string[] args) { double[] read = Array.ConvertAll(Console.ReadLine().Split(), double.Parse); double N = read[0]; double A = read[1]; double B = read[2]; double roundNum = 0; if (Math.Abs(A - B) % 2 == 0) { roundNum = (B ...
using System; namespace agc041a { class Program { static void Main(string[] args) { long[] read = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); long N = read[0]; long A = read[1]; long B = read[2]; long roundNum = 0; if (Math.Abs(A - B) % 2 == 0) { roundNum = (B - A) / 2; ...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
139
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int a = int.Parse(input[1]); int b = int.Parse(input[2]); if ((b - a) % 2 == 0) { Console.WriteLine((b - a) / 2); } else { if (a + b < n + 1...
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); long n = long.Parse(input[0]); long a = long.Parse(input[1]); long b = long.Parse(input[2]); if ((b - a) % 2 == 0) { Console.WriteLine((b - a) / 2); } else { if (a + b <...
[["-", 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
158
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; class Myon { public Myon() {} public static int Main() { cin = new Scanner(); new Myon().calc(); return 0; } static Scanner cin; void calc() { long N, A, B; N...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; class Myon { public Myon() {} public static int Main() { cin = new Scanner(); new Myon().calc(); return 0; } static Scanner cin; void calc() { long N, A, B; N...
[["-", 0, 28, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72]]
8
819
using System; class Program { static void Main(string[] args) {   long n, a, b; // a = int.Parse(Console.ReadLine()); //標準入力 string[] str = Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得 n = long.Parse(str[0]); //数値で受け取りたい場合は変換する a = long.Parse(str[1]); b = long.Parse(str[2]); ...
using System; class Program { static void Main(string[] args) {   long n, a, b; string[] str = Console.ReadLine().Split(' '); n = long.Parse(str[0]); a = long.Parse(str[1]); b = long.Parse(str[2]); if (((b - a) % 2) == 0) { Console.Write((b - a) / 2); } else { Console.Write((b...
[["+", 15, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["-", 75, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 12, 213, 3, 4, 0, 28, 0, 23, 0, 25]]
8
145
using System; class Program { static void Main(string[] args) {   long n, a, b; // a = int.Parse(Console.ReadLine()); //標準入力 string[] str = Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得 n = long.Parse(str[0]); //数値で受け取りたい場合は変換する a = long.Parse(str[1]); b = long.Parse(str[2]); ...
using System; class Program { static void Main(string[] args) {   long n, a, b; // a = int.Parse(Console.ReadLine()); //標準入力 string[] str = Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得 n = long.Parse(str[0]); //数値で受け取りたい場合は変換する a = long.Parse(str[1]); b = long.Parse(str[2]); ...
[["+", 15, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
151
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class AC { public void Do() { var N = Split.Int(); var A = Split.Int(); var B = Split.Int(); if ((Math.Abs(A - B) % 2) == 0) { Console.WriteLine(Math.Abs(A - B) / 2); retur...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class AC { public void Do() { var N = Split.Long(); var A = Split.Long(); var B = Split.Long(); if ((Math.Abs(A - B) % 2) == 0) { Console.WriteLine(Math.Abs(A - B) / 2); re...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
376
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using MethodImplAttribute = System.Runtime.Compi...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using MethodImplAttribute = System.Runtime.Compi...
[["-", 0, 213, 3, 4, 0, 28, 0, 213, 63, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 213, 63, 22]]
8
264
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
4,234
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
4,251
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { var cin = new Scanner2(); int n = cin.Int(); ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { var cin = new Scanner2(); int n = cin.Int(); ...
[["-", 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, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]...
8
747