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.Linq; //リストの使用 using System.Collections.Generic; class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 long n = long.Parse(input[0]); long a = long.Parse(input[1]); long b = long.Parse(input[2]); if (n ...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 long n = long.Parse(input[0]); long a = long.Parse(input[1]); long b = long.Parse(input[2]); if (n ...
[["-", 0, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]]
8
152
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; // using static System.Linq.Enumerable; using static System.Console; using static AtCoder.Util; using static AtCoder.Cin; using static System.Math; using static AtCoder.MyMath; namespace ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; // using static System.Linq.Enumerable; using static System.Console; using static AtCoder.Util; using static AtCoder.Cin; using static System.Math; using static AtCoder.MyMath; // 100 55 ...
[["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22]]
8
3,165
6
using System; using System.IO; using System.Collections.Generic; namespace AGC015A { public class Program { void Solve(StreamScanner ss, StreamWriter sw) { //--------------------------------- var N = ss.Next(long.Parse); var A = ss.Next(long.Parse); var B = ss.Next(long.Parse); if (N == 1 && A !...
using System; using System.IO; using System.Collections.Generic; namespace AGC015A { public class Program { void Solve(StreamScanner ss, StreamWriter sw) { //--------------------------------- var N = ss.Next(long.Parse); var A = ss.Next(long.Parse); var B = ss.Next(long.Parse); if (N == 1 && A !...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]]
8
478
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AGC015_A { class Program { static void Main(string[] args) { var s = Console.ReadLine().Split(); var n = int.Parse(s[0]); var a = int.Parse(s[1]); var b = int.Parse(s[2]); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AGC015_A { class Program { static void Main(string[] args) { var s = Console.ReadLine().Split(); var n = long.Parse(s[0]); var a = long.Parse(s[1]); var b = long.Parse(s[2]); ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
177
6
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = long.Parse(line[0]); var a = long.Parse(line[1]); var b = long.Parse(line[2]); if (a > b) { Console.WriteLine(0); goto end; } if (a != b && n == 1) { ...
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = long.Parse(line[0]); var a = long.Parse(line[1]); var b = long.Parse(line[2]); if (a > b) { Console.WriteLine(0); goto end; } if (a != b && n == 1) { ...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
165
2
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Runtime.InteropServices; using System.Runtime.Remoting.Messaging; using System.Security.Principal; using System.Text; class Simple { priva...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Runtime.InteropServices; using System.Runtime.Remoting.Messaging; using System.Security.Principal; using System.Text; class Simple { priva...
[["-", 15, 16, 12, 23, 0, 16, 31, 16, 12, 203], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 12, 203]]
8
419
2
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace AtCoder { class MainClass { // C#7.0///////////////////////////////////////////////////// int N, A, B; void Solve() { io.i(out N, out A, out B); ...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace AtCoder { class MainClass { // C#7.0///////////////////////////////////////////////////// long N, A, B; void Solve() { io.i(out N, out A, out B);...
[["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199]]
8
3,898
2
using System.Linq; using System.Collections.Generic; using System; class Program { static void Main() { Func<int> InputNumber = () => int.Parse(Console.ReadLine()); Func<string> InputString = () => Console.ReadLine(); Func<IEnumerable<int>> InputNumbers = () => Console.ReadLine().Split(' ').Select...
using System.Linq; using System.Collections.Generic; using System; class Program { static void Main() { Func<int> InputNumber = () => int.Parse(Console.ReadLine()); Func<string> InputString = () => Console.ReadLine(); Func<IEnumerable<int>> InputNumbers = () => Console.ReadLine().Split(' ').Select...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199]]
8
240
10
using System; class MyMain { static void Main() { string[] s = System.Console.ReadLine().Trim().Split(' '); int N = int.Parse(s[0]), A = int.Parse(s[1]), B = int.Parse(s[2]), x; if (A > B) x = 0; else if (N == 1 && A != B) x = 0; else if (N == 1 && A == B) x = 1; else x...
using System; class MyMain { static void Main() { string[] s = System.Console.ReadLine().Trim().Split(' '); long N = long.Parse(s[0]), A = long.Parse(s[1]), B = long.Parse(s[2]), x; if (A > B) x = 0; else if (N == 1 && A != B) x = 0; else if (N == 1 && A == B) x = 1; else ...
[["-", 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
151
8
using System; using System.Linq; namespace agc015_a { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); int ret = ((x[0] - 1) * x[2] + x[1]) - ((x[0] - 1) * x[1] + x[2]) + 1; Console.WriteLine(Math.Max(0, ret)); } } }
using System; using System.Linq; namespace agc015_a { class Program { static void Main(string[] args) { long[] x = Console.ReadLine().Split().Select(long.Parse).ToArray(); long ret = ((x[0] - 1) * x[2] + x[1]) - ((x[0] - 1) * x[1] + x[2]) + 1; Console.WriteLine(Math.Max(0, ret)); } } }
[["-", 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]]
8
114
6
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { static void Main() { string[] inputs = Console.ReadLine().Split(' '); int n = int.Parse(inputs[0]); int a = int.Parse(inpu...
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { static void Main() { string[] inputs = Console.ReadLine().Split(' '); int n = int.Parse(inputs[0]); int a = int.Parse(inpu...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 23, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 23, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 23, 0, 16, 31, 16, 31, 74, 0, 25]]
8
138
5
using System; namespace AtCoder { static class Solver { static IO io = new IO(); public static void Solve() { io.ReadSplit(); int N = io.Int(); int A = io.Int(); int B = io.Int(); io.WriteLine(Ans(N, A, B).ToString()); } static long Ans(int N, int A, int B) { if (N == 1) { if (...
using System; namespace AtCoder { static class Solver { static IO io = new IO(); public static void Solve() { io.ReadSplit(); int N = io.Int(); int A = io.Int(); int B = io.Int(); io.WriteLine(Ans(N, A, B).ToString()); } static long Ans(long N, long A, long B) { if (N == 1) { i...
[["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199]]
8
491
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace agc15 { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int N = int.Parse(str[0]); int A = int.Parse(str[1]); int B = int.Parse...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace agc15 { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); long N = int.Parse(str[0]); long A = int.Parse(str[1]); long B = int.Pa...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
143
6
using System; using System.Collections.Generic; using System.Linq; namespace AIZU { class Program { #region Reserve static int cin() { return cin(-1); } static int cin(int D) { string s = Console.ReadLine(); if (string.IsNullOrEmpty(s)) return D; return int.Parse(s); } static int[] cins(char ...
using System; using System.Collections.Generic; using System.Linq; namespace AIZU { class Program { #region Reserve static int cin() { return cin(-1); } static int cin(int D) { string s = Console.ReadLine(); if (string.IsNullOrEmpty(s)) return D; return int.Parse(s); } static int[] cins(char ...
[["+", 0, 212, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 16, 31, 16, 31, 74, 51, 23, 0, 24]]
8
362
3
using System; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace Rextester { public class Program { private static readonly StreamReader reader = new StreamReader( Console.OpenStandardInput(1024 * 10), ...
using System; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace Rextester { public class Program { private static readonly StreamReader reader = new StreamReader( Console.OpenStandardInput(1024 * 10), ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 39, 199], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 0, 25]]
8
298
5
using System; using System.Text; using System.Linq; using System.Collections.Generic; class Program { const long mod = 1000000007; // public static int[] max; static void Main(string[] args) { char[] cs = new char[] { ' ', ',' }; // int val = int.Parse(Console.ReadLine()); int[] vals = parseAry(Co...
using System; using System.Text; using System.Linq; using System.Collections.Generic; class Program { const long mod = 1000000007; // public static int[] max; static void Main(string[] args) { char[] cs = new char[] { ' ', ',' }; // int val = int.Parse(Console.ReadLine()); int[] vals = parseAry(Co...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 12, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 12, 74, 0, 25]]
8
371
5
using System; using System.Collections.Generic; using System.Linq; using System.Globalization; using System.IO; #region code challenges entry point #if !SOLVER_ATWORKSPACE class Program { static void Main(string[] args) { using ( var output = new CC.BP.FormattedStreamWriter( Console ...
using System; using System.Collections.Generic; using System.Linq; using System.Globalization; using System.IO; #region code challenges entry point #if !SOLVER_ATWORKSPACE class Program { static void Main(string[] args) { using ( var output = new CC.BP.FormattedStreamWriter( Console ...
[["-", 0, 57, 75, 196, 0, 57, 15, 16, 17, 18], ["-", 75, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 75, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 22]]
8
1,458
6
using System; using System.Collections.Generic; namespace A___Grouping { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var x = input[0]; var y = input[1]; var z = new List<string> { "1", "3", "5", "7", "8", "12" }; var a = new List<string> { "4", "6"...
using System; using System.Collections.Generic; namespace A___Grouping { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var x = input[0]; var y = input[1]; var z = new List<string> { "1", "3", "5", "7", "8", "10", "12" }; var a = new List<string> { "4...
[["+", 0, 212, 0, 230, 10, 229, 0, 5, 0, 222], ["+", 0, 212, 0, 230, 10, 229, 0, 5, 0, 62], ["+", 0, 200, 0, 212, 0, 230, 10, 229, 0, 21]]
8
193
4
using System; class c { static void Main() { string[] s = Console.ReadLine().Split(' '); int x = int.Parse(s[0]); int y = int.Parse(s[1]); string ans = "No"; if (x == 2 && y == 2) ans = "Yes"; else if (y == 2 || x == 2) ans = "No"; else if (x < 8 && y < 8 && y % 2 == y % 2) ...
using System; class c { static void Main() { string[] s = Console.ReadLine().Split(' '); int x = int.Parse(s[0]); int y = int.Parse(s[1]); string ans = "No"; if (x == 2 && y == 2) ans = "Yes"; else if (y == 2 || x == 2) ans = "No"; else if (x < 8 && y < 8 && x % 2 == y % 2) ...
[["-", 75, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 75, 57, 15, 16, 12, 16, 31, 16, 31, 22]]
8
205
8
using System; using System.Collections.Generic; using System.Linq; namespace A___Grouping { class Program { static void Main(string[] args) { var x_y = Console.ReadLine().Split().Select(int.Parse).ToArray(); var group = new List<int[]>(); group.Add(new int[] { 1, 3, 5, 7, 8, 10, 12 }); group.Add(new ...
using System; using System.Collections.Generic; using System.Linq; namespace A___Grouping { class Program { static void Main(string[] args) { var x_y = Console.ReadLine().Split().Select(int.Parse).ToArray(); var group = new List<int[]>(); group.Add(new int[] { 1, 3, 5, 7, 8, 10, 12 }); group.Add(new ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
181
4
using System; using System.Collections.Generic; namespace AGC14 { class MainClass { public static void Main(string[] args) { new MainClass().solve(); } int INF = 123456789; Scanner cin; int h, w, k; int ans = 0; string[] r; // room int[,] log; List<Tuple<int, int>> can; int[] dir = { 0, 1, 0, -1, ...
using System; using System.Collections.Generic; namespace AGC14 { class MainClass { public static void Main(string[] args) { new MainClass().solve(); } int INF = 123456789; Scanner cin; int h, w, k; int ans = 0; string[] r; // room int[,] log; List<Tuple<int, int>> can; int[] dir = { 0, 1, 0, -1, ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
810
2
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { List<int>[] G; bool b; bool[] us; public Solve() {} StringBuilder sb; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); Calc(); Console.W...
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { List<int>[] G; bool b; bool[] us; public Solve() {} StringBuilder sb; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); Calc(); Console.W...
[["-", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203]]
8
482
4
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramA { static void Main(string[] args) { var inputs = Console.ReadLine().Split(" "); var a = inputs[0]; var b = inputs[1]; var c = inputs[2]; if (a[a.Length - 1] != b[0] || b[b.Length - 1] != c[0]) { ...
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramA { static void Main(string[] args) { var inputs = Console.ReadLine().Split(" "); var a = inputs[0]; var b = inputs[1]; var c = inputs[2]; if (a[a.Length - 1] != b[0] || b[b.Length - 1] != c[0]) { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
126
4
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var word = Console.ReadLine().Split(' '); int LenA = word[0].Length; // Aの文字数 int LenB = word[1].Length; // Bの文字数 // char Ae = word[0].ToCharArray()[LenA - 1]; // Aの最後の文字 // char Bs = word[1].ToCharArray()[...
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var word = Console.ReadLine().Split(' '); int LenA = word[0].Length; // Aの文字数 int LenB = word[1].Length; // Bの文字数 // char Ae = word[0].ToCharArray()[LenA - 1]; // Aの最後の文字 // char Bs = word[1].ToCharArray()[...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
161
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace A { class Program { public static void Main(string[] args) { var n = ReadLineStringSplit(); var re = "NO"; if (n[0][n[0].Length - 1] == n[1][0] && n[1][n[1].Length - 1] == n[2][0...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace A { class Program { public static void Main(string[] args) { var n = ReadLineStringSplit(); var re = "NO"; if (n[0][n[0].Length - 1] == n[1][0] && n[1][n[1].Length - 1] == n[2][0...
[["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
310
2
using System; namespace A___Shiritori { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var a = input[0]; var b = input[1]; var c = input[2]; if (a[a.Length - 1] == b[0] && b[b.Length - 1] == c[0]) { Console.WriteLine("YES"); } else { C...
using System; namespace A___Shiritori { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var a = input[0]; var b = input[1]; var c = input[2]; if (a[a.Length - 1] == b[0] && b[b.Length - 1] == c[0]) { Console.WriteLine("YES"); } else { C...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
115
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace At { class Program { static void Main(string[] args) { var input = Reads(); if (input[0][input[0].Length - 1].ToString() == input[1][0].ToString()) { if...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace At { class Program { static void Main(string[] args) { var input = Reads(); if (input[0][input[0].Length - 1].ToString() == input[1][0].ToString()) { if...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
316
2
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var input = Console.ReadLine().Split(' ').ToList(); if (input[0].Substring(input[0].Length - 1, 1) == input[1].Substring(0, 1) && input[1].Substring(input[0].Length - 1, 1) == ...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var input = Console.ReadLine().Split(' ').ToList(); if (input[0].Substring(input[0].Length - 1, 1) == input[1].Substring(0, 1) && input[1].Substring(input[1].Length - 1, 1) == ...
[["-", 31, 214, 205, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 214, 205, 204, 206, 207, 0, 28, 0, 203]]
8
133
2
using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); if (str[0].Substring(str[0].Length - 1) == str[1].Substring(0, 1) && str[1].Substring(str[1].Length - 1) == str[2].Substring(0, 1)) { Console.WriteLine("Y...
using System; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); if (str[0].Substring(str[0].Length - 1) == str[1].Substring(0, 1) && str[1].Substring(str[1].Length - 1) == str[2].Substring(0, 1)) { Console.WriteLine("YES"); } else { Console...
[["-", 36, 36, 36, 36, 0, 208, 0, 209, 0, 256], ["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 36, 36, 0, 208, 0, 209, 8, 201, 0, 45], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 0, 235, 8, 201, 0, 195, 8, 196, 0, 46]]
8
129
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, ' ')); } ...
[["-", 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
719
4
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; namespace atcorder2 { class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArra...
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; namespace atcorder2 { class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArra...
[["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
294
2
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[] n = Console.ReadLine().Split().Select(long.Parse).To...
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[] n = Console.ReadLine().Split().Select(long.Parse).To...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["-", 0, 57, 64, 1, 0, 11, 12, 5, 0, 222], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 222]]
8
149
4
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { var Instance = new ChooseIntegers(); Instance.Exec(); } } public class ChooseIntegers { public void Exec() { var inputLongArray = Console.ReadLine().Split(...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { var Instance = new ChooseIntegers(); Instance.Exec(); } } public class ChooseIntegers { public void Exec() { var inputLongArray = Console.ReadLine().Split(...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
194
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { for (int i = 1; i <= A; i++) { if (i * A % B == C) { Console.Wr...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { for (int i = 1; i <= B; i++) { if (i * A % B == C) { Console.Wr...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
371
2
using System; using System.Linq; class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int a = int.Parse(s[0]); int b = int.Parse(s[1]); int c = int.Parse(s[2]); for (int i = 0; i < b; i++) { if (a * i % b == c) { Console.WriteLine("Yes"); ...
using System; using System.Linq; class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int a = int.Parse(s[0]); int b = int.Parse(s[1]); int c = int.Parse(s[2]); for (int i = 0; i < b; i++) { if (a * i % b == c) { Console.WriteLine("YES"); ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
128
2
using System; namespace program { class workspace { static void Main() { // int input = int.Parse(Console.ReadLine()); string[] str = (Console.ReadLine().Split()); int a = int.Parse(str[0]); int b = int.Parse(str[1]); int c = int.Parse(str[2]); for (int i = 1; i < b + 1; i++) { if (i...
using System; namespace program { class workspace { static void Main() { // int input = int.Parse(Console.ReadLine()); string[] str = (Console.ReadLine().Split()); int a = int.Parse(str[0]); int b = int.Parse(str[1]); int c = int.Parse(str[2]); for (int i = 0; i < b; i++) { if (i * a...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
130
6
#pragma warning disable using System.Collections.Generic; using System.IO; using System.Linq; using System; using System.Collections; using static System.Math; using static System.Console; class E { static void Main() => new J(); } class J { int F() => int.Parse(ReadLine()); int[] G() => ReadLine() ...
#pragma warning disable using System.Collections.Generic; using System.IO; using System.Linq; using System; using System.Collections; using static System.Math; using static System.Console; class E { static void Main() => new J(); } class J { int F() => int.Parse(ReadLine()); int[] G() => ReadLine() ...
[["+", 8, 196, 0, 7, 8, 57, 64, 196, 0, 45], ["+", 0, 7, 8, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 7, 8, 57, 64, 196, 0, 46]]
8
394
4
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ARC073D { class Program { static void Main(string[] args) { var N = RInt; var W = RLong; List<long>[] vs = new List<long> [4].Select(x => new ...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ARC073D { class Program { static void Main(string[] args) { var N = RInt; var W = RLong; List<long>[] vs = new List<long> [4].Select(x => new ...
[["-", 0, 213, 3, 4, 0, 28, 0, 74, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 0, 25], ["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 22], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 22]]
8
1,523
5
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 ProblemA { static bool SAIKI = false; st...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ProblemA { static bool SAIKI = false; st...
[["+", 0, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 25]]
8
1,452
4
using System; using System.Collections.Generic; using System.Linq; namespace ABC099 { class Program { static void Main(string[] args) { List<string> list = new List<string>(); while (true) { string line = Console.ReadLine(); if (line == null) break; list.Add(line); } long a ...
using System; using System.Collections.Generic; using System.Linq; namespace ABC099 { class Program { static void Main(string[] args) { List<string> list = new List<string>(); while (true) { string line = Console.ReadLine(); if (line == null) break; list.Add(line); } double ...
[["-", 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
151
8
using static System.Console; using static System.Convert; class Program { static void Main(string[] args) { var num1 = ToDouble(ReadLine()); var num2 = ToDouble(ReadLine()); if (num1 > num2) WriteLine("GREATER"); else if (num1 < num2) WriteLine("LESS"); else WriteLine("EQAUL"); ...
using static System.Console; using static System.Convert; class Program { static void Main(string[] args) { var num1 = ToDouble(ReadLine()); var num2 = ToDouble(ReadLine()); if (num1 > num2) WriteLine("GREATER"); else if (num1 < num2) WriteLine("LESS"); else WriteLine("EQUAL"); ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
82
2
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Text; public class Program { public void Proc() { // A>B のときGREATER、A<B のときLESS、A=B のときEQUALと出力せよ。 Reader.IsDebug = false; string numA = Reader.ReadLine(); string numB = Reader.ReadLi...
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Text; public class Program { public void Proc() { // A>B のときGREATER、A<B のときLESS、A=B のときEQUALと出力せよ。 Reader.IsDebug = false; string numA = Reader.ReadLine(); string numB = Reader.ReadLi...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]]
8
290
2
using System; using System.Text; using System.Linq; using System.Collections.Generic; class Program { const long mod = 1000000007; // public static int[] max; static void Main(string[] args) { char[] cs = new char[] { ' ', ',' }; // int val = int.Parse(Console.ReadLine()); // int[] vals = parseAry...
using System; using System.Text; using System.Linq; using System.Collections.Generic; class Program { const long mod = 1000000007; // public static int[] max; static void Main(string[] args) { char[] cs = new char[] { ' ', ',' }; // int val = int.Parse(Console.ReadLine()); // int[] vals = parseAry...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
420
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush ...
[["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203]]
8
1,766
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text.RegularExpressions; using System.Diagnostics; // var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); namespace AtCoderSolve { class Solve { const int mod = 1000000007; static void Main(string[] a...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text.RegularExpressions; using System.Diagnostics; // var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); namespace AtCoderSolve { class Solve { const int mod = 1000000007; static void Main(string[] a...
[["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 108], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32]]
8
264
2
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; public static void Main() { int n = NextInt(); int[] a = LineInt(); //凸凹の2パターンっぽい int costA = 0; int costB = 0; int now = a[0]; if (now < 0) { ...
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; public static void Main() { int n = NextInt(); int[] a = LineInt(); //凸凹の2パターンっぽい long costA = 0; long costB = 0; long now = a[0]; if (now <= 0...
[["-", 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, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
674
10
using System; using static System.Console; using static System.Math; public class Hello { public static void Main() { int kazu = int.Parse(ReadLine()); string[] number = ReadLine().Split(' '); long wa = 0; long count1 = 0; long ans = 0; for (int i = 0; i < kazu; i++) { long numi = int.P...
using System; using static System.Console; using static System.Math; public class Hello { public static void Main() { int kazu = int.Parse(ReadLine()); string[] number = ReadLine().Split(' '); long wa = 0; long count1 = 0; long ans = 0; for (int i = 0; i < kazu; i++) { long numi = int.P...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
298
4
using System; using System.Linq; namespace arc072_b { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); Console.WriteLine(Math.Abs(x[0] - x[1]) < -1 ? "Brown" : "Alice"); } } }
using System; using System.Linq; namespace arc072_b { class Program { static void Main(string[] args) { long[] x = Console.ReadLine().Split().Select(long.Parse).ToArray(); Console.WriteLine(Math.Abs(x[0] - x[1]) <= 1 ? "Brown" : "Alice"); } } }
[["-", 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], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["-", 0, 28, 0, 41, 15, 16, 12, 241, 0, 33], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17,...
8
84
7
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; using System.IO; class Program { static void Main(string[] args) { new Magatro().Solve(); } } public class Scanner { private S...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; using System.IO; class Program { static void Main(string[] args) { new Magatro().Solve(); } } public class Scanner { private S...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222]]
8
445
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var line1 = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); long N = line1[0]; long D = line1[1]; var d = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var line1 = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); long N = line1[0]; long D = line1[1]; var d = ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 85], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
372
4
using System; using System.Collections.Generic; namespace AGC013A { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var target = Console.ReadLine().Split(' '); var a = new List<int>(); for (int i = 0; i < N; i++) { a.Add(int.Parse(target[i])); } ...
using System; using System.Collections.Generic; namespace AGC013A { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var target = Console.ReadLine().Split(' '); var a = new List<int>(); for (int i = 0; i < N; i++) { a.Add(int.Parse(target[i])); } ...
[["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 95]]
8
268
1
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
[["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46]]
8
1,083
4
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; class Program { static void Main(string[] args) { var num = ToInt32(ReadLine()); var ar = Array.ConvertAll(ReadLine().Split(' '), int.P...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; class Program { static void Main(string[] args) { var num = ToInt32(ReadLine()); var ar = Array.ConvertAll(ReadLine().Split(' '), int.P...
[["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22]]
8
304
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using static System.Console; using static System.Math; using static CS_Contest.Utils; using System.Numerics; using System.Linq.Expressions; using Nakov.IO; using static Nakov.IO.Cin; // using static CS_Contest.Library...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using static System.Console; using static System.Math; using static CS_Contest.Utils; using System.Numerics; using System.Linq.Expressions; using Nakov.IO; using static Nakov.IO.Cin; // using static CS_Contest.Library...
[["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46]]
8
1,572
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { Console.ReadLine(); string[] arrStr = Console.ReadLine().Split(' '); List<int> lstInt = new List<int>(); for (int i = 0; i < arrStr.Le...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { Console.ReadLine(); string[] arrStr = Console.ReadLine().Split(' '); List<int> lstInt = new List<int>(); for (int i = 0; i < arrStr.Le...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
266
2
using System; using System.Collections.Generic; using System.Linq; using static System.Math; class Program { public static void Main() { var input = Console.ReadLine().Split(); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int c = int.Parse(input[2]); if (b - a == c - b) { Con...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; class Program { public static void Main() { var input = Console.ReadLine().Split(); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int c = int.Parse(input[2]); if (b - a == c - b) { Con...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
118
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int a = sc.NextInt(); int b = sc.NextInt(); int c = sc.NextInt(); string answer = (b - a == c - b) ? "Yes" : "No"; Console.WriteLine(an...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int a = sc.NextInt(); int b = sc.NextInt(); int c = sc.NextInt(); string answer = (b - a == c - b) ? "YES" : "NO"; Console.WriteLine(an...
[["-", 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
389
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 AtCorder { 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 AtCorder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
628
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC058A___ι_l { class Program { static void Main(string[] args) { string input = Console.ReadLine(); string[] pillars = input.Split(' '); int a = int.Parse(pillars[0]); int b ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC058A___ι_l { class Program { static void Main(string[] args) { string input = Console.ReadLine(); string[] pillars = input.Split(' '); int a = int.Parse(pillars[0]); int b ...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
149
4
using System; using System.Collections.Generic; using System.Linq; namespace ziyuutyou { class Program { static void Main(string[] args) { var hasira = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); if (hasira[1] - hasira[0] == hasira[2] - hasira[1]) { Console.WriteLine("Yes"); } else...
using System; using System.Collections.Generic; using System.Linq; namespace ziyuutyou { class Program { static void Main(string[] args) { var hasira = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); if (hasira[1] - hasira[0] == hasira[2] - hasira[1]) { Console.WriteLine("YES"); } else...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
104
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { string[] arrStr = Console.ReadLine().Split(' '); List<int> lstInt = new List<int>(); for (int i = 0; i < arrStr.Length; i++) { lstIn...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { string[] arrStr = Console.ReadLine().Split(' '); List<int> lstInt = new List<int>(); for (int i = 0; i < arrStr.Length; i++) { lstIn...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
152
4
using System; using System.Linq; class Prog { public static void Main() { var ipt = Console.ReadLine() .Split(' ') .Select(i => Int32.Parse(i.ToString())) .ToArray(); if (ipt[2] - ipt[1] == ipt[2] - ipt[1]) { Console.WriteLine("YES"); } else { ...
using System; using System.Linq; class Prog { public static void Main() { var ipt = Console.ReadLine() .Split(' ') .Select(i => Int32.Parse(i.ToString())) .ToArray(); if (ipt[2] - ipt[1] == ipt[1] - ipt[0]) { Console.WriteLine("YES"); } else { ...
[["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
101
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc058 { public class Program { public static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a = Convert.ToInt32(str[0]); int b = Convert.ToInt32(st...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc058 { public class Program { public static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a = Convert.ToInt32(str[0]); int b = Convert.ToInt32(st...
[["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
126
2
using System; using System.Linq; class B { static void Main() { char[] Ar = Console.ReadLine().ToCharArray(); char[] Br = Console.ReadLine().ToCharArray(); string ans = ""; int i = Br.Length; for (int j = 0; j < i; j++) { ans += Ar[j].ToString(); ans += Br[j].ToString(); } if ...
using System; using System.Linq; class B { static void Main() { char[] Ar = Console.ReadLine().ToCharArray(); char[] Br = Console.ReadLine().ToCharArray(); string ans = ""; int i = Br.Length; for (int j = 0; j < i; j++) { ans += Ar[j].ToString(); ans += Br[j].ToString(); } if ...
[["+", 205, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
132
2
using System; using System.Collections.Generic; using System.Linq; class MainClass { public static void Main(string[] args) { //入力 var O = Console.ReadLine().ToCharArray(); var E = Console.ReadLine().ToCharArray(); var ans = new List<char>(); for (var i = 0; i < O.Length; i++) { ans.Add(O[...
using System; using System.Collections.Generic; using System.Linq; class MainClass { public static void Main(string[] args) { //入力 var O = Console.ReadLine().ToCharArray(); var E = Console.ReadLine().ToCharArray(); var ans = new List<char>(); for (var i = 0; i < O.Length; i++) { ans.Add(O[...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
134
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; namespace Atcoder01 { /*class Program { //ABC96B static void Main() { int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = int....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; namespace Atcoder01 { /*class Program { //ABC96B static void Main() { int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = int....
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
230
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { var o = Console.ReadLine(); var e = Console.ReadLine(); var res = ""; for (int i = 0; i < o.Length; i++) { res += o[i]; if (i >= e.Length - 1) { continue; } res += e...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { var o = Console.ReadLine(); var e = Console.ReadLine(); var res = ""; for (int i = 0; i < o.Length; i++) { res += o[i]; if (i > e.Length - 1) { continue; } res += e[...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47]]
8
103
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, ' ')); r...
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, ' ')); r...
[["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
678
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { string strOdd = Console.ReadLine(); string strEven = Console.ReadLine(); int intStringCount = strOdd.Length + strEven.Length; string ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { string strOdd = Console.ReadLine(); string strEven = Console.ReadLine(); int intStringCount = strOdd.Length + strEven.Length; string ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203]]
8
134
2
using System; namespace ABC058C { class Program { static void Main(string[] args) { int n = Int32.Parse(Console.ReadLine()); string[] s = new string[n]; for (int i = 0; i < n; i++) { s[i] = Console.ReadLine(); } string tmp = String.Empty; for (int i = 0; i < s[0].Length; i++) { ...
using System; namespace ABC058C { class Program { static void Main(string[] args) { int n = Int32.Parse(Console.ReadLine()); string[] s = new string[n]; for (int i = 0; i < n; i++) { s[i] = Console.ReadLine(); } string tmp = String.Empty; for (int i = 0; i < s[0].Length; i++) { ...
[["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 11, 12, 213, 63, 214, 205, 204, 205, 22], ["+", 12, 213, 63, 214, 205, 204, 206, 207, 0, 70], ["+", 63, 214, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 213, 63, 214, 205, 204, 206, 207, 0, 73]]
8
231
5
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderBeginner { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); string[] xAxis = Console.ReadLine().Split(' '); string[] yAxis ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderBeginner { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); string[] xAxis = Console.ReadLine().Split(' '); string[] yAxis ...
[["-", 0, 28, 0, 23, 0, 16, 31, 213, 63, 22], ["+", 0, 16, 31, 23, 0, 16, 31, 213, 63, 22], ["-", 0, 28, 0, 23, 0, 16, 12, 213, 63, 22], ["+", 0, 16, 31, 23, 0, 16, 12, 213, 63, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["...
8
205
8
using System; class Program { static void Main(string[] args) { string[] xInputMax = "6 5".Split(' '); // string[] xInputMax = Console.ReadLine().Split(' '); int xMaxX = int.Parse(xInputMax[0]); int xMaxY = int.Parse(xInputMax[1]); long xSumX = SumAreaLength(Console.ReadLine(), xMaxX); long x...
using System; class Program { static void Main(string[] args) { string[] xInputMax = Console.ReadLine().Split(' '); int xMaxX = int.Parse(xInputMax[0]); int xMaxY = int.Parse(xInputMax[1]); long xSumX = SumAreaLength(Console.ReadLine(), xMaxX); long xSumY = SumAreaLength(Console.ReadLine(), xMaxY...
[["-", 0, 212, 0, 213, 63, 214, 205, 5, 0, 62], ["-", 0, 212, 0, 213, 63, 214, 205, 5, 0, 222], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 213, 63, 214,...
8
187
8
using System; using System.Collections.Generic; using System.Text; using System.Linq; class Program { public void Proc() { int[] inpt = Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); string ans = "No"; if (inpt[2] >= inpt[0] && inpt[2] <= inpt[1]) { ans = "Yes"; } ...
using System; using System.Collections.Generic; using System.Text; using System.Linq; class Program { public void Proc() { Reader.IsDebug = false; int[] inpt = Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); string ans = "No"; if (inpt[2] >= inpt[0] && inpt[2] <= inpt[1]) { ...
[["+", 8, 196, 0, 1, 0, 11, 31, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 11, 31, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 11, 31, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 211, 0, 147], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
215
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_Cs { class Program { static void Main(string[] args) { int[] line = Console.ReadLine().Trim().Split(' ').Select(int.Parse).ToArray(); string ans = "no"; if (line[2...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_Cs { class Program { static void Main(string[] args) { int[] line = Console.ReadLine().Trim().Split(' ').Select(int.Parse).ToArray(); string ans = "No"; if (line[2...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
133
4
using System; using System.Linq; class A61 { public static void Main(string[] args) { int[] input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); if (input[0] <= input[2] && input[1] >= input[2]) { Console.WriteLine("YES"); } else { Console.WriteLine("NO"); } ...
using System; using System.Linq; class A61 { public static void Main(string[] args) { int[] input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); if (input[0] <= input[2] && input[1] >= input[2]) { 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
103
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace atcorder { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a = Convert.ToInt32(str[0]); int b = Convert.ToInt32(str[0]); in...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace atcorder { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a = Convert.ToInt32(str[0]); int b = Convert.ToInt32(str[1]); in...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
124
4
using System; using System.Collections.Generic; namespace AtCorderPractice { class MainClass { public static void Main(string[] args) { var _ = LnInts(); var N = _[0]; var M = _[1]; var cities = new int[N]; for (int i = 0; i < M; i++) { var roadBetween = LnInts(); cities[roadBetween[0...
using System; using System.Collections.Generic; namespace AtCorderPractice { class MainClass { public static void Main(string[] args) { var _ = LnInts(); var N = _[0]; var M = _[1]; var cities = new int[N]; for (int i = 0; i < M; i++) { var roadBetween = LnInts(); cities[roadBetween[0...
[["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
296
4
using System; using System.Linq; using System.Collections.Generic; class MainClass { public static void Main(string[] args) { var list = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var N = list[0]; var M = list[1]; var lista = new List<long>(); for (var i = 0; i < M; i++) { ...
using System; using System.Linq; using System.Collections.Generic; class MainClass { public static void Main(string[] args) { var list = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var N = list[0]; var M = list[1]; var lista = new List<long>(); for (var i = 0; i < M; i++) { ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
262
2
using System; using System.Linq; using System.Collections.Generic; namespace ABC061 { class B { static void Main(string[] args) { int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = input[0]; int M = input[1]; Dictionary<int, int> dict = new Dictionary<int, int>(); i...
using System; using System.Linq; using System.Collections.Generic; /* Dictionaryの練習 */ namespace ABC061 { class B { static void Main(string[] args) { int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = input[0]; int M = input[1]; Dictionary<int, int> dict = new Dictionar...
[["-", 15, 241, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 15, 241, 0, 213, 3, 4, 0, 28, 0, 22]]
8
291
2
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Solver { Scanner sc = new Scanner(); public void Solve() { var N = sc.nextInt(); var M = sc.nextInt(); var dic = new Dictionary<int, int>(); for (int i = 0; i < M * 2; i++) { var a = sc.next...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Solver { Scanner sc = new Scanner(); public void Solve() { var N = sc.nextInt(); var M = sc.nextInt(); var dic = new Dictionary<int, int>(); for (int i = 0; i < M * 2; i++) { var a = sc.next...
[["+", 0, 7, 8, 196, 0, 57, 15, 241, 0, 111]]
8
552
1
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp64 { 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...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp64 { 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...
[["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18]]
8
226
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CountingRoads { public class Program { public static void Main(String[] args) { // N個の都市とM番目の道路 string nm = Console.ReadLine(); // 都市数 int n = int.Parse(nm.Split(' ')[0]); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CountingRoads { public class Program { public static void Main(String[] args) { // N個の都市とM番目の道路 string nm = Console.ReadLine(); // 都市数 int n = int.Parse(nm.Split(' ')[0]); ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
236
2
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, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 205, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 0, 131], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 141, 22]]
8
256
6
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace Brown { using static Ex; public class Solve { public static void Main(string[] args) { new abc061_c(); } } public class abc061_c { long n, k, a, b; public abc061_c() { (n, k) = ReadLongArray().ToTpl2(); ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace Brown { using static Ex; public class Solve { public static void Main(string[] args) { new abc061_c(); } } public class abc061_c { long n, k, a, b; public abc061_c() { (n, k) = ReadLongArray().ToTpl2(); ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
1,287
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { // test1 long[] vs = new long[100001]; int[] NK = Console.ReadLine().Split(' ').Select(int.Pa...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { // test3 long[] vs = new long[100001]; var NK = Console.ReadLine().Split(' ').Select(long.Par...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 8, 201, 0, 195, 8, 196...
8
203
7
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { // 方針 // int[] n = inta(); var dic = new SortedDi...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { // 方針 // long[] n = longa(); var dic = new Sorted...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
944
6
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp11 { class Class40 { static void Main() { var I = Console.ReadLine().Split().Select(long.Parse).ToArray(); var N = I[0]; var K = I[1]; Dictionary<long, long> Table = new Dictionary<long, long>(); for (int i = 0...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp11 { class Class40 { static void Main() { var I = Console.ReadLine().Split().Select(long.Parse).ToArray(); var N = I[0]; var K = I[1]; SortedDictionary<long, long> Table = new SortedDictionary<long, long>(); f...
[["-", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22]]
8
213
4
using System; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int n = sc.NextInt(); int k = sc.NextInt(); int[] a = new int[n]; int[] b = new int[n]; for (int i = 0; i < n; i++) { a[i] = sc.NextInt(); b[i] = sc.NextInt(); } int[]...
using System; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int n = sc.NextInt(); long k = sc.NextLong(); int[] a = new int[n]; int[] b = new int[n]; for (int i = 0; i < n; i++) { a[i] = sc.NextInt(); b[i] = sc.NextInt(); } lon...
[["-", 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, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 22...
8
517
8
using System; struct S { public int A, B; } public class Program { private int N; private long K; private S[] AB; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); K = sc.NextInt(); AB = new S[N]; for (int i = 0; i < N; i++) { AB[i] = new S() { A = sc.NextInt(), B = ...
using System; struct S { public int A, B; } public class Program { private int N; private long K; private S[] AB; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); K = sc.NextLong(); AB = new S[N]; for (int i = 0; i < N; i++) { AB[i] = new S() { A = sc.NextInt(), B =...
[["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
647
6
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(); long k = sc.NextLong(); Tuple<int, int>[] nums = new Tuple<int, int>[n]; for (int i = 0; i < n; i++) { nums[i] ...
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(); long k = sc.NextLong(); Tuple<int, int>[] nums = new Tuple<int, int>[n]; for (int i = 0; i < n; i++) { nums[i] ...
[["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 205, 22]]
8
484
2
using System; using System.Collections.Generic; namespace cswork { class Program { public Program() {} Scanner cin; const int MAXIN = 1024; bool[] used = new bool[MAXIN]; int[] perm = new int[MAXIN]; List<int[]> permList = new List<int[]>(); void Omame() { cin = new Scanner(); int n = cin.next...
using System; using System.Collections.Generic; namespace cswork { class Program { public Program() {} Scanner cin; const int MAXIN = 1024; bool[] used = new bool[MAXIN]; int[] perm = new int[MAXIN]; List<int[]> permList = new List<int[]>(); void Omame() { cin = new Scanner(); long n = cin.nex...
[["-", 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, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
524
8
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const char White = '.'; const char Black = '#'; const long Mod = 1000000007;...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const char White = '.'; const char Black = '#'; const long Mod = 1000000007;...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
421
2
using Yorukatsu033.Questions; using Yorukatsu033.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu033.Questions { /// <summary> /// ABC061 C /// </summary> public class QuestionC : AtCoderQuestionBase { public override IEn...
using Yorukatsu033.Questions; using Yorukatsu033.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu033.Questions { /// <summary> /// ABC061 C /// </summary> public class QuestionC : AtCoderQuestionBase { public override IEn...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
584
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using static System.Math; using static System.Array; using static AtCoder.IO_ShortCut; using static AtCoder.Tool; using static AtCoder.ModInt; namespace AtCoder { class AC { const int MOD = 10...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using static System.Math; using static System.Array; using static AtCoder.IO_ShortCut; using static AtCoder.Tool; using static AtCoder.ModInt; namespace AtCoder { class AC { const int MOD = 10...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
1,854
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var firstLine = Console.ReadLine() .Split(' ') .Select(value => long.Parse(value)) .T...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var firstLine = Console.ReadLine() .Split(' ') .Select(value => long.Parse(value)) .T...
[["-", 8, 201, 0, 195, 8, 196, 0, 210, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 12, 22]]
8
265
2
using System; using System.Linq; using System.Text.RegularExpressions; using System.Collections.Generic; using static System.Console; using static Program.Input; using static Program.MyMath; using static Program.Const; namespace Program { static class Const { public static string alp = "abcdefghijklmnopqrstuvwxyz"; ...
using System; using System.Linq; using System.Text.RegularExpressions; using System.Collections.Generic; using static System.Console; using static Program.Input; using static Program.MyMath; using static Program.Const; namespace Program { static class Const { public static string alp = "abcdefghijklmnopqrstuvwxyz"; ...
[["-", 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], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]]
8
2,053
4
using System; using System.Linq; using System.Collections.Generic; class MainClass { public static void Main(string[] args) { var list = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var N = list[0]; var K = list[1]; var dic = new Dictionary<long, long>(); for (var i = 0; i < N; i...
using System; using System.Linq; using System.Collections.Generic; class MainClass { public static void Main(string[] args) { var list = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var N = list[0]; var K = list[1]; var dic = new Dictionary<long, long>(); for (var i = 0; i < N; i...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
261
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace CP { class Atria { static void Main(string[] args) { int[] nk = ReadLine().Split(' ').Select(int.Parse).ToArray(); var sortedDic = new Sorted...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace CP { class Atria { static void Main(string[] args) { long[] nk = ReadLine().Split(' ').Select(long.Parse).ToArray(); var sortedDic = new Sort...
[["-", 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]]
8
233
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 AtCorder { 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 AtCorder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22]]
8
722
2
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); long K = int.Parse(input[1]); Dictionary<int, long> dic = new Dictionary<int,...
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); long K = long.Parse(input[1]); Dictionary<int, long> dic = new Dictionary<int...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
260
2