buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { public struct Pair { public int x, y; public Pair(int x, int y) { this.x = x; this.y = y; } } public static void Solve() { string s = NextString(); string t = NextString(); ...
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { public struct Pair { public int x, y; public Pair(int x, int y) { this.x = x; this.y = y; } } public static void Solve() { string s = NextString(); string t = NextString(); ...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22], ["+", 75, 57, 75, 57, 15, 16, 12, 16, 17, 72], ["+", 75, 57, 75, 57, 15, 16, 12, 16, 12, 203], ["+", 0, 1, 0, 11, 12, 204, 205, 204, 205, 22], ...
8
931
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Convert; using static System.Math; //using static System.Globalization.CultureInfo; using System.Text; class Program { private static void chmin<T>(ref T num, T val) where T : ICompar...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Convert; using static System.Math; //using static System.Globalization.CultureInfo; using System.Text; class Program { private static void chmin<T>(ref T num, T val) where T : ICompar...
[["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 31, 23, 0, 16, 31, 16, 31, 16, 17, 33], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 12, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 8, 1...
8
1,851
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...
[["-", 8, 196, 0, 57, 64, 1, 0, 241, 0, 29], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 205, 22], ...
8
1,462
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); string s = sc.Next(); List<string> strs = new List<string>(); string tmp = ""; for (int i = 0; i < s.Length; i++) { tmp += s[i].ToStr...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); string s = sc.Next(); List<string> strs = new List<string>(); int answer = 0; string tmp = ""; string before = ""; for (int i = 0; ...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 62], ["-", 8, 196, 0, 57, 15, 213, 63, 214, 2...
8
433
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 Solve { static public int mod = 1000000007; public static void Main() { // 方針 // // var n = inta(); var s = rstr(); c...
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 Solve { static public int mod = 1000000007; public static void Main() { // 方針 // // var n = inta(); var s = rstr(); c...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 15, 16, 31, 16, 12, 16, 31, 214, 205, 22], ["+", 15, 16, 31, 16, 12, 16, 31, 214, 0, 131], ["+", 15, 16, 31, 16, 12, 16, 31, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 33], ["+", 0, 57, 15, 16, 31, 16, 12, 16...
8
1,254
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; using static util; using P = pair<int, int>; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Ex...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; using static util; using P = pair<int, int>; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Ex...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
2,655
using System; using System.Text; using System.Collections.Generic; using System.Linq; using System.Numerics; class AtCoder { const int MOD = 1000000007; public void Slove() { var str = Console.ReadLine(); char[] bef = new char[2]; bef[0] = str.First(); var dp = Enumerable.Range(0, str.Length).Selec...
using System; using System.Text; using System.Collections.Generic; using System.Linq; using System.Numerics; class AtCoder { const int MOD = 1000000007; public void Slove() { var str = Console.ReadLine(); char[] bef = new char[2]; bef[0] = str.First(); var dp = Enumerable.Range(0, str.Length).Selec...
[["-", 0, 210, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 24], ["-", 0, 210, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 210, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 25]...
8
349
using System; class pg { static void Main(string[] args) { string a = Console.ReadLine(); int count = 0; string ppreStr = string.Empty; string preStr = string.Empty; string nowStr = string.Empty; foreach (char i in a) { nowStr = nowStr + i; if (preStr == nowStr) { } else { ...
using System; class pg { static void Main(string[] args) { string a = Console.ReadLine(); int count = 0; string ppreStr = string.Empty; string preStr = string.Empty; string nowStr = string.Empty; foreach (char i in a) { nowStr = nowStr + i; if (preStr == nowStr) { } else { ...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 241, 0, 111], ["-", 0, 57, 15, 241, 0, 213, 63, 214, 205, 22], ["-", 0, 57, 15, 241, 0, 213, 63, 214, 0, 131], ["-", 0, 57, 15, 241, 0, 213, 63, 214, 141, 22], ["-", 0, 57, 15, 241, 0, 213, 3, 4,...
8
128
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string s = Console.ReadLine(); char c = '0'; int count = 0; int ans = 0; for (int i = 0; i < s.Length; i++) { if (c != s[i]) { if (count % 3 == 2) { ans += 2 * (count + 1) / 3;...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string s = Console.ReadLine(); char c = '0'; int count = 0; int ans = 0; for (int i = 0; i < s.Length; i++) { if (c != s[i]) { if (count % 3 == 2) { ans += 2 * (count + 1) / 3;...
[["+", 64, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 64, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["+", 64, 196, 0, 57, 15, 16, 12, 214, 205, 22], ["+", 64, 196, 0, 57, 15, 16, 12, 214, 0, 131], ["+", 64, 196, 0, 57, 15, 16, 12, 214...
8
190
using System; class Program { static void Main(string[] args) { string S = Console.ReadLine(); int length = S.Length; int[] ct = new int[length]; int sw = 0; int r = 0; int ls = 0; for (var i = 0; i < length; i++) { if (sw == 0) { if (S[i] == 'R') { r++; } e...
using System; class Program { static void Main(string[] args) { string S = Console.ReadLine(); int length = S.Length; int[] ct = new int[length]; int sw = 0; int r = 0; int ls = 0; for (var i = 0; i < length; i++) { if (sw == 0) { if (S[i] == 'R') { r++; } e...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 28, 0, 213, 63, 214, 205, 204, 205, 22], ["+", 0, 213, 63, 214, 205, 204, 206, 207, 0, 70], ["+", 0, 213, 63, 214, 205, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0,...
8
283
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Convert; using static System.Math; //using static System.Globalization.CultureInfo; using System.Text; class Program { private static void chmin<T>(ref T num, T val) where T : ICompar...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Convert; using static System.Math; //using static System.Globalization.CultureInfo; using System.Text; class Program { private static void chmin<T>(ref T num, T val) where T : ICompar...
[["-", 15, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["-", 12, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 7, 8, 57, 15, 16, 12, 16, 17, 60], ["-", 15, 16, 12, 16, 31, 16, 31, 23, 0, 25], ["-", 8, 57, 15, 16, 12, 16, 31, 16, 17, 109], ["-", 8, 57, 15, 16, 12, 16, 31, 16, 12, 22], ["-", 0, 7, 8, 57, 15, 16, 12, 16, 17, 60], ...
8
1,298
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC136E { class Program { public static void Solve(Input input) { var n = input.NextInt(); var k = input.NextInt(); var a = input.NextInt(n)...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC136E { class Program { public static void Solve(Input input) { var n = input.NextInt(); var k = input.NextInt(); var a = input.NextInt(n)...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201...
8
1,438
using System; using System.Collections.Generic; using System.Linq; public class S { public static void Main() { /* var input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = input[0]; var M = input[1]; var bridge = new int[M,2]; for(int i = 0; i < M; i++){ input = Array.ConvertAll(Console.R...
using System; using System.Collections.Generic; using System.Linq; public class S { public static void Main() { /* var input = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var N = input[0]; var M = input[1]; var bridge = new long[M,2]; for(long i = 0; i < M; i++){ input = Array.ConvertAll(Consol...
[["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["-", 0, 195, 54, 55, 0, 220, 3...
8
436
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; namespace AtCoder_Beginner_Contest_13 { class Program { //配列にする static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } // Listにする static pu...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; namespace AtCoder_Beginner_Contest_13 { class Program { //配列にする static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } // Listにする static pu...
[["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24...
8
494
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; namespace AtCoder_Beginner_Contest_13 { class Program { //配列にする static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } // Listにする static pu...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; namespace AtCoder_Beginner_Contest_13 { class Program { //配列にする static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } // Listにする static pu...
[["-", 0, 212, 0, 213, 63, 214, 205, 213, 63, 22], ["+", 0, 212, 0, 213, 63, 214, 205, 213, 63, 22], ["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["-", 8, 201, 0, 195, 8, 196, 0...
8
534
using System; //外 using System.Linq; // Linq public class ABC { public static void Main() { var line = Console.ReadLine(); var l = line.Split(' ').Select(s => int.Parse(s)).ToArray(); // Select,λ型 int a = l[0]; int b = l[1]; if ((a - b) % 2 == 1) { Console.WriteLine("IMPOSSIBLE"); ...
using System; //外 using System.Linq; // Linq public class ABC { public static void Main() { var line = Console.ReadLine(); var l = line.Split(' ').Select(s => int.Parse(s)).ToArray(); // Select,λ型 int a = l[0]; int b = l[1]; if (b > a) { var t = a; a = b; b = t; } i...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 14...
8
116
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int n = Math.Abs(a - b); Console.WriteLine(n % 2 == 0 ? (n / 2).ToString() : "IMPOSSIBLE"); } }
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int n = Math.Abs(a - b); Console.WriteLine(n % 2 == 1 ? "IMPOSSIBLE" : (Math.Min(a, b) + n / 2)...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 205, 23, 0, 16, 31, 213, 63, 214, 205, 22], ["+", 205, 23, 0, 16, 31, 213, 63, 214, 0, 131], ["+", ...
8
99
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp21 { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int A = int.Parse(s.Split(' ')[0]); int B = int.Parse(s.Split(' ')[1]); if ((i...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp21 { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int A = int.Parse(s.Split(' ')[0]); int B = int.Parse(s.Split(' ')[1]); if ((A...
[["-", 8, 196, 0, 57, 15, 16, 31, 74, 39, 199], ["-", 8, 196, 0, 57, 15, 16, 31, 74, 0, 25], ["-", 0, 57, 15, 16, 31, 74, 51, 23, 0, 24], ["-", 31, 74, 51, 23, 0, 16, 31, 23, 0, 24], ["-", 31, 74, 51, 23, 0, 16, 31, 23, 0, 25], ["-", 15, 16, 31, 74, 51, 23, 0, 16, 17, 85], ["-", 15, 16, 31, 74, 51, 23, 0, 16, 12, 250],...
8
150
using System; using System.Collections.Generic; using System.Linq; using System.IO; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { // string A = Console.ReadLine();//Aから読み込む string[] s = Console.ReadLine().Split(' '); // 文字たちを読み込む int A = int.Parse(s[0]); ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { // string A = Console.ReadLine();//Aから読み込む string[] s = Console.ReadLine().Split(' '); // 文字たちを読み込む int A = int.Parse(s[0]); ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], [...
8
139
using System; class Program { static void Main(string[] args) { string[] line = Console.ReadLine().Split(); int a = int.Parse(line[0]); int b = int.Parse(line[1]); double answer = (a + b) / 2; if (answer == (int)answer) { Console.WriteLine(answer); } else { Console.WriteLine("IM...
using System; class Program { static void Main(string[] args) { string[] line = Console.ReadLine().Split(); double a = double.Parse(line[0]); double b = double.Parse(line[1]); double answer = (a + b) / 2; if (answer == (int)answer) { Console.WriteLine((int)answer); } else { Conso...
[["-", 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], ["+", 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, ...
8
100
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 = rint(); int[] a = inta(); in...
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 = rint(); int[] a = inta(); in...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60]...
8
1,779
using System; using System.Linq; public class ABC135_B { public static void Main() { int[] ints = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int warn = 0; for (int i = 0; i < ints.Length; i++) { if (ints[0] != i + 1) warn++; if (warn > 2) { Console.WriteLine("...
using System; using System.Linq; public class ABC135_B { public static void Main() { int count = int.Parse(Console.ReadLine()); int[] ints = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int warn = 0; for (int i = 0; i < count; i++) { if (ints[i] != i + 1) warn++; if...
[["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 63, 214...
8
115
// ABC 135 B - 0 or 1 Swap // 201909012 using System; using System.Linq; using static System.Math; using System.Collections.Generic; namespace B { class Program { static void Main(string[] args) { // Console.WriteLine("Hello World!"); int N = int.Parse(Console.ReadLine()); int[] P = Console.ReadLine().S...
// ABC 135 B - 0 or 1 Swap // 201909012 using System; using System.Linq; using static System.Math; using System.Collections.Generic; namespace B { class Program { static void Main(string[] args) { // Console.WriteLine("Hello World!"); int N = int.Parse(Console.ReadLine()); int[] P = Console.ReadLine().S...
[["+", 8, 196, 0, 1, 0, 11, 12, 23, 0, 24], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 17, 72], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 23, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 0, 1...
8
146
using System; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(' '); int[] b = new int[n]; int[] c = new int[n]; int i = 0; foreach (string s in input) { b[i] = int.Parse(s); c[i] = b[i]; i++;...
using System; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(' '); int[] b = new int[n]; int[] c = new int[n]; int i = 0; foreach (string s in input) { b[i] = int.Parse(s); c[i] = b[i]; i++;...
[["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 213, 63, 214, ...
8
270
using System; namespace question2 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); int[] a = new int[N]; for (int i = 0; i < N; i++) { a[i] = int.Parse(str[i]); } int count = 0; for (int i = 1;...
using System; namespace question2 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); int[] a = new int[N]; for (int i = 0; i < N; i++) { a[i] = int.Parse(str[i]); } int count = 0; for (int i = 0;...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 203], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 72], ["-", 0, 57, 15, 16, 12, 16, 12, 204, 205, 22], ["-", 15, 16, 12, 16, 12, 204, 206, 207, 0, 70], ["+", 8, 196, 0, 57, 15, 16, 12, 23, ...
8
183
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string s = Console.ReadLine(); string[] number = s.Split(' '); int[] numberList = number.Select(x => int.Parse(x)).ToArray(); int[] sortList = numberList.OrderBy(x => x).ToArray(); int flg ...
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string n = Console.ReadLine(); string s = Console.ReadLine(); string[] number = s.Split(' '); int[] numberList = number.Select(x => int.Parse(x)).ToArray(); int[] sortList = numberList.Orde...
[["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4,...
8
164
using System; using System.Collections.Generic; using System.Linq; public class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var array = Console.ReadLine() .Split(' ') .Select(int.Parse) .OrderBy(x => x) ...
using System; using System.Collections.Generic; using System.Linq; public class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var array = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var trueArray = array.OrderBy(x => x).ToArray(); var count = 0; ...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0,...
8
158
using System; namespace ABC135 { class Program { static int Main(string[] args) { problemB(); return 0; } static void problemB() { string Nstr = Console.ReadLine(); string[] input = Console.ReadLine().Split(' '); int N = int.Parse(Nstr); int[] pArray = new int[N]; for (int i = 0; i ...
using System; namespace ABC135 { class Program { static int Main(string[] args) { problemB(); return 0; } static void problemB() { string Nstr = Console.ReadLine(); string[] input = Console.ReadLine().Split(' '); int N = int.Parse(Nstr); int[] pArray = new int[N]; for (int i = 0; i ...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["-", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["-", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 1...
8
189
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { var exStdIn = new System.IO.StreamReader("stdin.txt"); System.Console.SetIn(exStdIn);...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int r = int.Parse(input[0]); in...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["-", 0, 212, 0, 230, 39, 232, 234, 232, 234, 22], ["-", 0, 212, 0, 230, 39, 232, 234, 232, 0, 131], ["-", 0, 212, 0, 230, 39, 232...
8
128
using System; namespace Dodecagon { public class Dominigon { static void Main(string[] args) { string decagon = Console.ReadLine(); int minigon = System.Int32.Parse(decagon); Console.WriteLine(3 * (minigon ^ 2)); } } }
using System; namespace Dodecagon { public class Dominigon { static void Main(string[] args) { string decagon = Console.ReadLine(); int minigon = int.Parse(decagon); Console.WriteLine(3 * minigon * minigon); } } }
[["-", 0, 212, 0, 213, 63, 214, 205, 214, 205, 22], ["-", 0, 212, 0, 213, 63, 214, 205, 214, 0, 131], ["-", 0, 212, 0, 213, 63, 214, 205, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16...
8
57
using System; using static System.Console; namespace AC_Field { class AtCoder { static void Main() { int r; r = int.Parse(ReadLine()); WriteLine(3 * r ^ 2); } } }
using static System.Math; using static System.Console; namespace AC_Field { class AtCoder { static void Main() { int r; r = int.Parse(ReadLine()); WriteLine(3 * Pow(r, 2)); } } }
[["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 115], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 3, 4, 0, 28, 0, 16, 12, 213, 63, 22], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 140], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 21],...
8
47
using System; using System.Collections.Generic; using System.Linq; using System.Security.AccessControl; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { var n = ReadLineIntSpilit(); var w = (2 * n[1]) + ...
using System; using System.Collections.Generic; using System.Linq; using System.Security.AccessControl; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { var n = ReadLineIntSpilit(); var w = (2 * n[1]) + ...
[["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 212, 0, 16, 31, 16, 31, 204, 205, 22], ["+", 0, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 16, 31, 204, 20...
8
724
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static int D; static List<int> monitors; static void Main(string[] args) { //[summary]B - Golden Apple var line = ReadLine(); int N = line[0]; D = line[1]; monitors = new List<int>(); ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static int D; static List<int> monitors; static void Main(string[] args) { //[summary]B - Golden Apple var line = ReadLine(); int N = line[0]; D = line[1]; monitors = new List<int>(); ...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["-", 8...
8
249
using System; class Program { static void Main() { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int D = int.Parse(input[1]); int ans = N / (2 * D + 1) + 1; Console.WriteLine(ans); } }
using System; class Program { static void Main() { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int D = int.Parse(input[1]); int ans = (N + 2 * D) / (2 * D + 1); Console.WriteLine(ans); } }
[["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 31, 203], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 17, 48], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["...
8
80
using System; namespace GoldenApple { public class SilverApple { static void Main(string[] args) { string BronzeApple = Console.ReadLine(); string[] NomalApple = BronzeApple.Split(); int N = int.Parse(NomalApple[0]); int D = int.Parse(NomalApple[1]); if (N % D == 0) { Console.WriteLine(N ...
using System; namespace GoldenApple { public class SilverApple { static void Main(string[] args) { string BronzeApple = Console.ReadLine(); string[] NomalApple = BronzeApple.Split(); int N = int.Parse(NomalApple[0]); int D = int.Parse(NomalApple[1]); int Q = D * 2 + 1; if (N % Q == 0) { ...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 48], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 1...
8
102
using System; using System.Linq; class P { static void Main() { var input = Console.ReadLine().Split().Select(int.Parse).ToList(); var N = input[0]; var D = input[1]; if (N < D * 2 + 1) Console.WriteLine(1); else { Console.WriteLine(N / (D * 2 + 1)); } } }
using System; using System.Linq; class P { static void Main() { var input = Console.ReadLine().Split().Select(int.Parse).ToList(); var N = input[0]; var D = input[1]; if (N % (D * 2 + 1) > 0) Console.WriteLine(N / (D * 2 + 1) + 1); else { Console.WriteLine(N / (D * 2 + 1)); } } ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 16, 31, 16, 12, 23, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 12, 23, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 57, 64, 1, 0, 213, 3, 4, 0, 24], [...
8
94
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; Func cin2; void calc() { cin = new...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; Func cin2; void calc() { cin = new...
[["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 57, 64, 1, 0, 11, 12, 16, 17, 72], ["-", 0, 57, 64, 1, 0, 11, 12, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46]]
8
746
using System; using System.Linq; using System.Collections.Generic; namespace Sample { class Sample { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] values1 = new int[N]; for (int i = 0; i < N; i++) { values1[i] = int.Parse(Console.ReadLine()); } int max = valu...
using System; using System.Linq; using System.Collections.Generic; namespace Sample { class Sample { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] values1 = new int[N]; for (int i = 0; i < N; i++) { values1[i] = int.Parse(Console.ReadLine()); } int max = valu...
[["+", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 70], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 73], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63...
8
176
using System; using System.Collections; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var A = new List<int>(); for (int i = 0; i < N; i++) { A.Add(int.Parse(Console.ReadLine())); } // 降順ソートする ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var A = new List<int>(); for (int i = 0; i < N; i++) { A.Add(int.Parse(Console.ReadLine())); } // 降順ソートする ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 204, 206...
8
180
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; class Program { const long MOD = 1000000007; static void Main(string[] args) { // ここにかく int n = ScanOneInt(); int[] ar = new int[n]; for (int i = 0; i < n; i++) { ar[i] = ScanOneInt(); } ...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; class Program { const long MOD = 1000000007; static void Main(string[] args) { // ここにかく int n = ScanOneInt(); int[] ar = new int[n]; int[] ars = new int[n]; for (int i = 0; i < n; i++) { ar...
[["+", 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, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["+", 0, 200, 0, 212, 0, 227, 3...
8
2,752
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder { public static class Program { static void Main() { var N = int.Parse(Console.ReadLine()); var forSort = new List<int>(N); var array = new int[N]; foreach (var i in Enumerable.Range(0, N)) ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder { public static class Program { static void Main() { var N = int.Parse(Console.ReadLine()); var forSort = new List<int>(N); var array = new int[N]; foreach (var i in Enumerable.Range(0, N)) ...
[["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
200
using System; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] A = new int[N]; for (int i = 0; i < N; i++) { A[i] = int.Parse(Console.ReadLine()); } int MaxA = A.Max(); int count = 0; int secondMax = 0; for (int i =...
using System; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] A = new int[N]; for (int i = 0; i < N; i++) { A[i] = int.Parse(Console.ReadLine()); } int MaxA = A.Max(); int count = 0; int secondMax = 0; for (int i =...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 16, 12, 16, 12, 204, 205, 22], ["+", 15, 16, 12, 16, 12, 204, 206, 207, 0, 70], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 12, 16, 12, 204, 206, 20...
8
219
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main(string[] args) { string input = Console.ReadLine(); int N = int.Parse(input); int[] ary = new int[N]; ary[0] = int.Parse(Console.R...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main(string[] args) { string input = Console.ReadLine(); int N = int.Parse(input); int[] ary = new int[N]; ary[0] = int.Parse(Console.R...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], [...
8
276
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var org = new int[N]; var array = new int[N]; for (var i = 0; i < N; i++) { array[i] = int.Parse(Console.ReadLine())...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var org = new int[N]; var array = new int[N]; for (var i = 0; i < N; i++) { array[i] = int.Parse(Console.ReadLine())...
[["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 12, 204, 206, 207, 0, 28...
8
170
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Main { public static class Program { static void Main(string[] arg) { int n = int.Parse(Console.ReadLine()); var array = GetIntList(Console.ReadLine()); int answe...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Main { public static class Program { static void Main(string[] arg) { int n = int.Parse(Console.ReadLine()); // var array = GetIntList(Console.ReadLine()); int an...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 1...
8
553
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { class Program { static void Main(string[] args) { var cin = new Scanner(); var N = cin.nextInt(); int[] a = new int[N]; ...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { class Program { static void Main(string[] args) { var cin = new Scanner(); var N = cin.nextInt(); int[] a = new int[N]; ...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 18], ["-", 0, 212, 0, 230, 39, 236, 2...
8
547
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0030 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] A = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int[] B ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0030 { class Program { static void Main(string[] args) { Int64 N = Int64.Parse(Console.ReadLine()); Int64[] A = Console.ReadLine().Split(' ').Select(Int64.Parse).ToArray(); ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 22], ["-", 205, 213, 3, 4, 0, 28,...
8
300
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC135C { class Program { static void Main(string[] args) { var N = RInt; var A = RLongs; var B = RLongs; long ans = 0; for (int i = 0; i < N;...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC135C { class Program { static void Main(string[] args) { var N = RInt; var A = RLongs; var B = RLongs; long ans = 0; for (int i = 0; i < N;...
[["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 1...
8
784
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { { int N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split().Select(int.Parse).ToArray(); var B = Console.ReadLine().Split().Select(int.Parse).ToArray(); int a, b...
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { { long N = long.Parse(Console.ReadLine()); var A = Console.ReadLine().Split().Select(long.Parse).ToArray(); var B = Console.ReadLine().Split().Select(long.Parse).ToArray(); long...
[["-", 8, 196, 0, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 8, 196, 0, 196, 0, 7,...
8
182
using System; class ProgramC { static void Main(string[] args) { string input = Console.ReadLine(); int n = int.Parse(input); string[] input_a = Console.ReadLine().Split(' '); int[] a = new int[n + 1]; for (int i = 0; i < n + 1; i++) a[i] = int.Parse(input_a[i]); string[] input_b = Co...
using System; class ProgramC { static void Main(string[] args) { string input = Console.ReadLine(); int n = int.Parse(input); string[] input_a = Console.ReadLine().Split(' '); long[] a = new long[n + 1]; for (int i = 0; i < n + 1; i++) a[i] = long.Parse(input_a[i]); string[] input_b =...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 8, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 8, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 19...
8
450
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { // Console.WriteLine($"enter number."); // var num = int.Parse(Console.ReadLine()); // Console.WriteLine($"fibonacci num: {SolveFibonacci(nu...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FibonacciSample { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split().Select(int.Parse).ToArray(); var B =...
[["+", 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, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], [...
8
242
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp2 { public class Program { static long D = (long)Math.Pow(10, 9) + 7; public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] monsterNumbers = Console.ReadLine().Split(' '); string[...
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp2 { public class Program { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] monsterNumbers = Console.ReadLine().Split(' '); string[] limits = Console.ReadLine().Split(' '); ...
[["-", 0, 235, 8, 201, 0, 124, 0, 251, 0, 115], ["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 200, 0, 212, 0, 16, 31, 74, 0, 24], ["-", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["-", 0, 200, 0, 212, 0, 16, 31, 74, 0...
8
234
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, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 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, 213,...
8
626
namespace AtCoder { using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static Util; class AtCoder { /*------------------------------------------------------------------*/ private int N; private long[...
namespace AtCoder { using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static Util; class AtCoder { /*------------------------------------------------------------------*/ private int N; private long[...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 28, 0, 218, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, ...
8
3,165
using System; using System.Text.RegularExpressions; namespace CitySavers { class Program { static void Main(string[] args) { int Savernum = Convert.ToInt32(Console.ReadLine()); int[] CityMonster = new int[Savernum + 1]; int[] Saver = new int[Savernum]; int tmpnum = 0; foreach (string x in Regex.S...
using System; using System.Text.RegularExpressions; namespace CitySavers { class Program { static void Main(string[] args) { int Savernum = Convert.ToInt32(Console.ReadLine()); Double[] CityMonster = new Double[Savernum + 1]; Double[] Saver = new Double[Savernum]; int tmpnum = 0; foreach (string ...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 22], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 22], ["-", 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...
8
316
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()); long[] A = new long[N + 1]; long[] B = new long[N]; String S = Console....
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()); long[] A = new long[N + 1]; long[] B = new long[N]; String S = Console....
[["-", 75, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["-", 64, 196, 0, 57, 75, 196, 0, 1, 0, 35],...
8
388
using System; class Program { static void Main(string[] args) { // スペース区切りの整数の入力 int n = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(' '), i => int.Parse(i)); int[] b = Array.ConvertAll(Console.ReadLine().Split(' '), i => int.Parse(i)); long ...
using System; class Program { static void Main(string[] args) { // スペース区切りの整数の入力 int n = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(' '), i => int.Parse(i)); int[] b = Array.ConvertAll(Console.ReadLine().Split(' '), i => int.Parse(i)); long ...
[["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 1, 0, 11, 0, 202,...
8
210
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using static System.Math; namespace NewCompetitionProgramming { public class Program { public static void Main(string[] args) { using (var sc = new SetConsole()) { Solve(); } } public static void So...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using static System.Math; namespace NewCompetitionProgramming { public class Program { public static void Main(string[] args) { using (var sc = new SetConsole()) { Solve(); } } public static void So...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207,...
8
789
using System; using System.Collections.Generic; using System.Linq; namespace debug { public static partial class Program { public static void Main() { var n = Console.ReadLine().ToLong(); var ais = Console.ReadLine().ToLongArray(); var bis = Console.ReadLine().ToLongArray(); long cnt = 0; for (i...
using System; using System.Collections.Generic; using System.Linq; namespace debug { public static partial class Program { public static void Main() { var n = Console.ReadLine().ToLong(); var ais = Console.ReadLine().ToLongArray(); var bis = Console.ReadLine().ToLongArray(); long cnt = 0; for (i...
[["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 8...
8
586
#if true //#if false #define UTAKA_DEBUG #endif using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using System.IO; using static System.Math; namespace UtakaApp { public class Program { public const string ContestName = "abc135"; public const string Pro...
#if true //#if false #define UTAKA_DEBUG #endif using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using System.IO; using static System.Math; namespace UtakaApp { public class Program { public const string ContestName = "abc135"; public const string Pro...
[["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0...
8
1,108
using System; using System.Collections.Generic; class Program { static int x; static List<int> s = new List<int>(); static List<int> t = new List<int>(); static int result; static int tmp2; static void Main() { result = 0; x = int.Parse(Console.ReadLine()); string[] tmp = Console.ReadLine().Spli...
using System; using System.Collections.Generic; class Program { static int x; static List<long> s = new List<long>(); static List<long> t = new List<long>(); static long result; static long tmp2; static void Main() { result = 0; x = int.Parse(Console.ReadLine()); string[] tmp = Console.ReadLine(...
[["-", 0, 124, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 124, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 3, 4, 0, 28, 0, 2...
8
323
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 AAddtion { public static void Main(string[] args) { new AAddtion().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 AAddtion { public static void Main(string[] args) { new AAddtion().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["+", 12, 41, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 11, 12, 41, 15, 16...
8
577
using System; using System.Collections.Generic; namespace ABC135_C { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); string[] input1 = Console.ReadLine().Split(); string[] input2 = Console.ReadLine().Split(); List<long> alist = new List<long>(); List<lo...
using System; using System.Collections.Generic; namespace ABC135_C { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); string[] input1 = Console.ReadLine().Split(); string[] input2 = Console.ReadLine().Split(); List<long> alist = new List<long>(); List<lo...
[["+", 75, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 75, 196, 0, 1, 0, 11, 0, 202,...
8
278
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] m = new int[N + 1]; int[] b = new int[N]; string[] s = Console.ReadLine()...
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long[] m = new long[N + 1]; long[] b = new long[N]; string[] s = Console.ReadLi...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 19...
8
323
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { int N = int.Parse(ReadLine()); int[] Aarray = ReadLine().Split(' ').Select(int.Parse).T...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { long N = long.Parse(ReadLine()); long[] Aarray = ReadLine().Split(' ').Select(long.Pars...
[["-", 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, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 205, 213, 3, 4, 0, ...
8
264
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { class Program { static void Main(string[] args) { var cin = new Scanner(); var N = cin.nextInt(); int[] A = new int[N + 1...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { class Program { static void Main(string[] args) { var cin = new Scanner(); var N = cin.nextLong(); long[] A = new long[N ...
[["-", 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, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 1, 0, 11, 12, 21...
8
620
using System; class C_Savers { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] sA = Console.ReadLine().Split(' '); string[] sB = Console.ReadLine().Split(' '); int[] A = new int[N + 1]; int[] B = new int[N]; for (int i = 0; i < N; i++) { A[i] = int.Parse...
using System; class C_Savers { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] sA = Console.ReadLine().Split(' '); string[] sB = Console.ReadLine().Split(' '); long[] A = new long[N + 1]; long[] B = new long[N]; for (int i = 0; i < N; i++) { A[i] = long....
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 19...
8
321
using System; using System.Collections.Generic; using System.Linq; public class Solution { public static void Main() { int N = int.Parse(Console.ReadLine()); string str1 = Console.ReadLine(); string str2 = Console.ReadLine(); string[] strA = str1.Split(' '); string[] strB = str2.Split(' '); i...
using System; using System.Collections.Generic; using System.Linq; public class Solution { public static void Main() { long N = long.Parse(Console.ReadLine()); string str1 = Console.ReadLine(); string str2 = Console.ReadLine(); string[] strA = str1.Split(' '); string[] strB = str2.Split(' '); ...
[["-", 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, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, ...
8
362
using System; using System.Linq; namespace abc135_c { static class Program { static void Main(string[] args) { // 勇者の数 var n = Console.ReadLine().ToInteger(); // 街の数 var c = n + 1; // それぞれの街を襲っているモンスターの数 var a = Console.ReadLine().ToIntArray(); // それぞれの勇者が倒せるモンスターの数 var b = Console.Re...
using System; using System.Linq; namespace abc135_c { static class Program { static void Main(string[] args) { // 勇者の数 var n = Console.ReadLine().ToLong(); // 街の数 var c = n + 1; // それぞれの街を襲っているモンスターの数 var a = Console.ReadLine().ToLongArray(); // それぞれの勇者が倒せるモンスターの数 var b = Console.Read...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["+", 8, 201, 0, 235, 8, 201, 0...
8
241
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace A { partial class Program { public IEnumerable<string> Solve() { var n = ScanInt; var a = ScanLongs(n + 1); var b = ScanLongs(n); long res = 0L; for (int i =...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace A { partial class Program { public IEnumerable<string> Solve() { var n = ScanInt; var a = ScanLongs(n + 1); var b = ScanLongs(n); long res = 0L; for (int i =...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 75, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["+...
8
1,855
using System; using System.Collections.Generic; using System.Linq; class WithIndex<T> { public T Value; public int Index; public WithIndex(T value, int index) { this.Value = value; this.Index = index; } } static class Template { public static int LineToInt() { return int.Parse(Console.ReadLine()); }...
using System; using System.Collections.Generic; using System.Linq; class WithIndex<T> { public T Value; public int Index; public WithIndex(T value, int index) { this.Value = value; this.Index = index; } } static class Template { public static int LineToInt() { return int.Parse(Console.ReadLine()); }...
[["+", 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, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 3, 4, 0, 28, 0, 218, 8, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 218, 8, 74,...
8
409
using System; using System.Collections.Generic; using System.Linq; using System.IO; using SB = System.Text.StringBuilder; // using System.Threading.Tasks; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; using System.Numerics; using static...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using SB = System.Text.StringBuilder; // using System.Threading.Tasks; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; using System.Numerics; using static...
[["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22...
8
925
using System; using System.Text; using System.Collections.Generic; using System.Linq; namespace DigitsParades { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var mod = 1000000007; var exi = false; //一桁目から扱えるようにするため、反転させる var charS = S.ToCharArray(); Array.Rever...
using System; using System.Text; using System.Collections.Generic; using System.Linq; namespace DigitsParades { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var mod = 1000000007; var exi = false; //一桁目から扱えるようにするため、反転させる var charS = S.ToCharArray(); Array.Rever...
[["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 95], ["+", 8, 196, 0, 57, 75, 57, 75, 196, 0, 45], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 75, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ...
8
507
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class Contest { public static void Main() { string s; MyIO.ReadMulti(out s); int[] digmod = { 1, 10, 9, 12, 3, 4 }; List<int> qmod = new List<int>(); int sum = 0; for (int i = 0; i < s.Length; i++)...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class Contest { public static void Main() { string s; MyIO.ReadMulti(out s); int[] digmod = { 1, 10, 9, 12, 3, 4 }; List<int> qmod = new List<int>(); int sum = 0; for (int i = 0; i < s.Length; i++)...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12...
8
1,672
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace ABC135.D { using static Util; public class Solver : SolverBase { public void Run() { var S = ReadLine(); var ary = new int[13]; if (S[0] == '?') { for (int i = 0; i < 10; i++) {...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace ABC135.D { using static Util; public class Solver : SolverBase { public void Run() { var S = ReadLine(); S = new string(S.Reverse().ToArray()); var ary = new int[13]; if (S[0] ==...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 230, 0, 228], ["+", 8, 196, 0, 1, 0, 11, 12, 230, 39, 199], ["+", 0, 1, 0, 11, 12, 230, 3, 4, 0, 24], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 13...
8
1,814
using System; class F { static void Main() { var s = Console.ReadLine(); var t = Console.ReadLine(); var t_sub = new int[t.Length]; t_sub[0] = -1; for (int i = 1; i < t.Length; i++) { var p = t_sub[i - 1]; t_sub[i] = p > -1 && t[i] == t[p + 1] ? p + 1 : t[i] == t[0] ? 0 : -1; } ...
using System; class F { static void Main() { var s = Console.ReadLine(); var t = Console.ReadLine(); var t_sub = new int[t.Length]; t_sub[0] = -1; for (int i = 1; i < t.Length; i++) { var p = t_sub[i - 1]; t_sub[i] = p > -1 && t[i] == t[p + 1] ? p + 1 : t[i] == t[0] ? 0 : -1; } ...
[["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 68], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 7, 8, 196, 0, 7, 8, 196, 0, 46], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196,...
8
434
using System; using System.IO; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using Debug = System.Diagnostics.Debug; using MethodImplOptions = System.Runtime.CompilerServices.Me...
using System; using System.IO; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using Debug = System.Diagnostics.Debug; using MethodImplOptions = System.Runtime.CompilerServices.Me...
[["+", 64, 196, 0, 37, 0, 11, 31, 204, 205, 22], ["+", 0, 37, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 37, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 37, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200,...
8
1,153
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_135 { 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_135 { class F { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["+", 0, 198, 0, 200, 0, 212, 0, 230, 39, 22], ["+", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 230, 3, 4, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45...
8
1,202
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>; using Number = System.Int32; using System.Nu...
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>; using Number = System.Int32; using System.Nu...
[["-", 3, 4, 0, 28, 0, 218, 8, 241, 0, 33], ["-", 3, 4, 0, 28, 0, 218, 8, 241, 0, 203], ["+", 8, 213, 3, 4, 0, 28, 0, 218, 8, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 218, 8, 203], ["+", 0, 195, 8, 196, 0, 7, 8, 7, 0, 25], ["+", 8, 196, 0, 7, 8, 7, 8, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 7, 8, 57, 0, 24], ["+", 8, 57, 15, 16...
8
2,028
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using static System.Math; using System.Text; using System.Threading; namespace Program { public static class AGC036B { static public void Solve() { var N = NN; var K = NN; var AList ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using static System.Math; using System.Text; using System.Threading; namespace Program { public static class AGC036B { static public void Solve() { var N = NN; var K = NN; var AList ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ...
8
8,607
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int N = int.Parse(str[0]); long K = long.Parse(str[1]); int[] A = new int[N]; string[] str2 = Console.ReadLine().Split(); for (var i = 0; i < N; i++) { ...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int N = int.Parse(str[0]); long K = long.Parse(str[1]); int[] A = new int[N]; string[] str2 = Console.ReadLine().Split(); for (var i = 0; i < N; i++) { ...
[["-", 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, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 3...
8
978
using System; using System.Collections.Generic; using System.ComponentModel; using System.Globalization; using System.IO; using System.Linq; using System.Text; class Program { private int N; private long K; private int[] A; static void Main(string[] args) { new Program().Solve(); } public void Solve() { ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Globalization; using System.IO; using System.Linq; using System.Text; class Program { private int N; private long K; private int[] A; static void Main(string[] args) { new Program().Solve(); } public void Solve() { ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]...
8
954
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace A { partial class Program { public IEnumerable<string> Solve() { var n = Scan; var k = Scan; var a = ScanLongs(n); // var r = new Random((int)DateTime.Now.Ticks)...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace A { partial class Program { public IEnumerable<string> Solve() { var n = Scan; var k = Scan; var a = ScanLongs(n); // var r = new Random((int)DateTime.Now.Ticks)...
[["+", 0, 82, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 33...
8
2,240
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { #region library static int n = 0; static int m = 0; static int r = 0; static int c = 0; static int x = 0; static int y = 0; static string s = ""; static string[] ss; static long sum = 0; static long ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { #region library static int n = 0; static int m = 0; static int r = 0; static int c = 0; static int x = 0; static int y = 0; static string s = ""; static string[] ss; static long sum = 0; static long ...
[["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 108], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 0, 57, 64, 1, 0, 11, 12, 213, 63, 22], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196...
8
1,360
using Atcoder; using System; using System.Collections.Generic; using System.ComponentModel.Design; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); ...
using Atcoder; using System; using System.Collections.Generic; using System.ComponentModel.Design; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["-", 0, 198, 0, 200, 0, 212, 0...
8
199
using System; using System.Collections.Generic; using System.Linq; namespace CSharp { class Program { public static void Main() { var N = int.Parse(Console.ReadLine()); var dic = new Dictionary<string, int>(); var result = 0L; for (int i = 0; i < N; i++) { var s = Console.ReadLine(); s ...
using System; using System.Collections.Generic; using System.Linq; namespace CSharp { class Program { public static void Main() { var N = int.Parse(Console.ReadLine()); var dic = new Dictionary<string, int>(); var result = 0L; for (int i = 0; i < N; i++) { var s = Console.ReadLine(); va...
[["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 205, 213, 63, 214, 205, 213, 3...
8
152
using System; using System.Linq; using System.Collections.Generic; namespace ABC137 { class C { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); Dictionary<string, int> dic = new Dictionary<string, int>(); string[] ss = new string[N]; for (int i = 0; i < N; i++) { strin...
using System; using System.Linq; using System.Collections.Generic; namespace ABC137 { class C { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); Dictionary<string, long> dic = new Dictionary<string, long>(); string[] ss = new string[N]; for (int i = 0; i < N; i++) { str...
[["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0...
8
218
using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { var n = int.Parse(Console.ReadLine()); var input = new Dictionary<string, int>(); for (var count = 0; count < n; count++) { var value = string.Join("", Console.ReadLine()...
using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { var n = int.Parse(Console.ReadLine()); var input = new Dictionary<string, long>(); for (var count = 0; count < n; count++) { var value = string.Join("", Console.ReadLine(...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 12, 213, 63, 214, 205, 213, 6...
8
162
using System; using System.Collections.Generic; using System.Linq; namespace Atcoder { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var strs = new Dictionary<string, int>(); long ans = 0; for (int i = 0; i < n; i++) { string str = new string( ...
using System; using System.Collections.Generic; using System.Linq; namespace Atcoder { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var strs = new Dictionary<string, long>(); long ans = 0; for (int i = 0; i < n; i++) { string str = new string( ...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["-", 0, 195, 8, 196, 0, 19...
8
239
using System.Collections.Generic; using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var d = new Dictionary<string, int>(); for (int i = 0; i < n; i++) { var s = Console.ReadLine().Trim(); var sa = s.ToCharArray(); Array.Sort(sa)...
using System.Collections.Generic; using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var d = new Dictionary<string, int>(); for (int i = 0; i < n; i++) { var s = Console.ReadLine().Trim(); var sa = s.ToCharArray(); Array.Sort(sa)...
[["+", 12, 16, 31, 16, 31, 23, 0, 74, 0, 24], ["+", 12, 16, 31, 16, 31, 23, 0, 74, 39, 199], ["+", 12, 16, 31, 16, 31, 23, 0, 74, 0, 25], ["+", 0, 11, 12, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 12, 23, 0, 16, 31, 74, 39, 199], ["+", 31, 16, 12, 23, 0, 16, 31, 74, 0, 25], ["-", 0, 210, 8, 1, 0, 11, 12, 16, 12, 203], ...
8
187
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { //[summary] int n = int.Parse(Console.ReadLine()); var words = new List<string>(); for (int i = 0; i < n; i++) { var chars = new Dictionary<char, int>(); ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { //[summary]C - Green Bin int n = int.Parse(Console.ReadLine()); var words = new List<string>(); for (int i = 0; i < n; i++) { var chars = new Dictionary<stri...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213...
8
280
using System; using System.Collections.Generic; // list用 using System.Text.RegularExpressions; //正規表現用 using System.Text; // StringBuilder用 using System.Collections; class Program { static List<int> s = new List<int>(); static long result; static Hashtable ht = new Hashtable(); public sta...
using System; using System.Collections.Generic; // list用 using System.Text.RegularExpressions; //正規表現用 using System.Text; // StringBuilder用 using System.Collections; class Program { static List<int> s = new List<int>(); static long result; static Hashtable ht = new Hashtable(); public sta...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ...
8
376
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { // var exStdIn = new System.IO.StreamReader("stdin.txt"); // System.Console.SetIn(exS...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { // var exStdIn = new System.IO.StreamReader("stdin.txt"); // System.Console.SetIn(exS...
[["-", 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], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 0, 197, 0, 198, 39, 2...
8
299
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Sandbox { internal class ProgramC { private static void Main(string[] args) { var scanner = new Scanner(); var n = scanner.GetNextAsInt(); var sDic = new Dictionary<string, int>(); for (var i = 0; i < n; i+...
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Sandbox { internal class ProgramC { private static void Main(string[] args) { var scanner = new Scanner(); var n = scanner.GetNextAsInt(); var sDic = new Dictionary<string, int>(); for (var i = 0; i < n; i+...
[["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["-", 0, 57, 75, 196, 0, 1, 0, 223, 0, 29], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0,...
8
747
using System; using System.Linq; using System.Collections.Generic; public class Program { public static void Main() { int N = int.Parse(Console.ReadLine()); string[] s = new string[N]; int ans = 0; var dict = new Dictionary<string, int>(); for (int i = 0; i < N; i++) { char[] a = Console.Re...
using System; using System.Linq; using System.Collections.Generic; public class Program { public static void Main() { int N = int.Parse(Console.ReadLine()); string[] s = new string[N]; long ans = 0; var dict = new Dictionary<string, int>(); for (int i = 0; i < N; i++) { char[] a = Console.R...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["...
8
191
using System; using System.Collections.Generic; using System.Linq; namespace cs { public class Program { public static void Main(string[] args) { /* var N = long.Parse(Console.ReadLine()); var cities = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var brave = Array.ConvertAll(Console.R...
using System; using System.Collections.Generic; using System.Linq; namespace cs { public class Program { public static void Main(string[] args) { /* var N = long.Parse(Console.ReadLine()); var cities = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var brave = Array.ConvertAll(Console.R...
[["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 18], ["+", 0, 212, 0, 230, 39, 236, 2...
8
773
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var dict = new Dictionary<string, int>(); for (var i = 0; i < N; i++) { var tmp = Console.ReadLine().ToCharArray(); ...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var dict = new Dictionary<string, int>(); for (var i = 0; i < N; i++) { var tmp = Console.ReadLine().ToCharArray(); ...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 12, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 7, 0, 88], ["+", 64, 196, 0, 7, 10, 198...
8
183
using System; using System.Collections.Generic; using System.Linq; public class Contest { public static void Main() { /* int n = a[0]; int[][] e = new int[n][]; for(int i=0; i<n; i++) MyIO.ReadArray(out e[i]); int[] a; ...
using System; using System.Collections.Generic; using System.Linq; public class Contest { public static void Main() { /* int n = a[0]; int[][] e = new int[n][]; for(int i=0; i<n; i++) MyIO.ReadArray(out e[i]); int[] a; ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 7, 15, 16, 12, 213, 3, 4, 0, 24], ["+", 15, 16, 12, 213, 3, 4, 0, 28, 0, 22],...
8
938
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using static System.Math; using System.Text; using System.Threading; namespace Program { public static class ABC137C { static public void Solve() { var N = NN; var sList = NSList(N); ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using static System.Math; using System.Text; using System.Threading; namespace Program { public static class ABC137C { static public void Solve() { var N = NN; var sList = NSList(N); ...
[["-", 8, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["+", 0, 11, 12, 16, 31, 16, 31, 214, 205, 22], ["+", 0, 11, 12, 16, 31, 16, 31, 214, 0, 131], ["+", 0, 11, 12, 16, 31, 16, 31, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 203], [...
8
12,015
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC137D { class Program { static void Main(string[] args) { var N = RInt; var M = RInt; jobs = new List<int> [M].Select(x => new List<int>()).ToArray(...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; using System.Collections; namespace ABC137D { class Program { static void Main(string[] args) { var N = RInt; var M = RInt; jobs = new List<int> [M].Select(x =>...
[["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, ...
8
1,450