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; namespace ConsoleApp7 { class Program { static void Main(string[] args) { int[] at = new int[4]; int n = int.Parse(System.Console.ReadLine()); for (int i = 0; i < n; i++) { string a = System.Console.ReadLine(); switch (a) { case "AC": at[0] += 1; break; ...
using System; namespace ConsoleApp7 { class Program { static void Main(string[] args) { int[] at = new int[4]; int n = int.Parse(System.Console.ReadLine()); for (int i = 0; i < n; i++) { string a = System.Console.ReadLine(); switch (a) { case "AC": at[0] += 1; break; ...
[["-", 0, 200, 0, 212, 0, 16, 31, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 16, 31, 5, 0, 222], ["-", 0, 1, 0, 11, 12, 16, 31, 5, 0, 222], ["+", 0, 1, 0, 11, 12, 16, 31, 5, 0, 222]]
8
219
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class Util { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { int N = ri(); List<string> ss = new List<string>(); for (int i = 0; i...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class Util { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { int N = ri(); List<string> ss = new List<string>(); for (int i = 0; i...
[["-", 12, 16, 31, 16, 31, 16, 12, 5, 0, 222], ["+", 12, 16, 31, 16, 31, 16, 12, 5, 0, 222]]
8
441
using System; namespace Atcoder001 { class Program { static void Main(string[] args) { int amount = int.Parse(Console.ReadLine()); string[] answers = new string[amount]; for (int i = 0; i < amount; i++) { answers[i] = Console.ReadLine(); } int[] count = new int[4]; foreach (string answ...
using System; namespace Atcoder001 { class Program { static void Main(string[] args) { int amount = int.Parse(Console.ReadLine()); string[] answers = new string[amount]; for (int i = 0; i < amount; i++) { answers[i] = Console.ReadLine(); } int[] count = new int[4]; foreach (string answ...
[["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222]]
8
233
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp5 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int ac = 0; int wa = 0; int tle = 0; int re = 0; for (int i = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp5 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int ac = 0; int wa = 0; int tle = 0; int re = 0; for (int i = ...
[["-", 15, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 15, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
216
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder.Abc { class QuestionB { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int AC = 0, WA = 0, TLE = 0, RE = 0; for (int i = 0; i < N; i++) { string S = Console.ReadLine(); ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder.Abc { class QuestionB { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int AC = 0, WA = 0, TLE = 0, RE = 0; for (int i = 0; i < N; i++) { string S = Console.ReadLine(); ...
[["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222]]
8
189
using System; using System.Linq; namespace AtCoderMake.ABC173 { class ABC173B { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); int ac = 0; int wa = 0; int lte = 0; int re = 0; for (int i = 0; i < n; i++) { string s = Console.ReadLine(); ...
using System; using System.Linq; namespace AtCoderMake.ABC173 { class ABC173B { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); int ac = 0; int wa = 0; int lte = 0; int re = 0; for (int i = 0; i < n; i++) { string s = Console.ReadLine(); ...
[["-", 75, 57, 75, 57, 15, 16, 12, 5, 0, 222], ["+", 75, 57, 75, 57, 15, 16, 12, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222]]
8
179
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { var N = GetLongNum(); var list = new List<string>(); for (int i = 0; i < N; i++) { list.Add(GetString()); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { var N = GetLongNum(); var list = new List<string>(); for (int i = 0; i < N; i++) { list.Add(GetString()); ...
[["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222]]
8
302
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { int line = int.Parse(Console.ReadLine()); int AC = 0; int WA = 0; int TLE = 0; int RE = 0; for (int i = 0; i < line; i++) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { int line = int.Parse(Console.ReadLine()); int AC = 0; int WA = 0; int TLE = 0; int RE = 0; for (int i = 0; i < line; i++) { ...
[["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222]]
8
200
using System; namespace ABC173 { class Program { static void Main(string[] args) { b(); } public static void b() { int n = int.Parse(Console.ReadLine()); int ac = 0; int wa = 0; int tle = 0; int re = 0; for (int i = 0; i < n; i++) { string s = Console.ReadLine(); if (s == "AC")...
using System; namespace ABC173 { class Program { static void Main(string[] args) { b(); } public static void b() { int n = int.Parse(Console.ReadLine()); int ac = 0; int wa = 0; int tle = 0; int re = 0; for (int i = 0; i < n; i++) { string s = Console.ReadLine(); if (s == "AC")...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
176
using System; class Program { static void Main(string[] args) { int ac = 0, wa = 0, tle = 0, re = 0; for (int i = 0, n = int.Parse(Console.ReadLine()); i < n; i++) { switch (Console.ReadLine()) { case "AC": ac++; break; case "WA": wa++; break; case "TLE...
using System; class Program { static void Main(string[] args) { int ac = 0, wa = 0, tle = 0, re = 0; for (int i = 0, n = int.Parse(Console.ReadLine()); i < n; i++) { switch (Console.ReadLine()) { case "AC": ac++; break; case "WA": wa++; break; case "TLE...
[["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222]]
8
158
using System; using System.Collections.Generic; using System.Linq; namespace atcoder173 { class Program { static void Main(string[] args) { var list = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var H = list[0]; // 行数 var W = list[1]; // 列数 var K = list[2]; // 期待する黒の個数...
using System; using System.Collections.Generic; using System.Linq; namespace atcoder173 { class Program { static void Main(string[] args) { var list = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var H = list[0]; // 行数 var W = list[1]; // 列数 var K = list[2]; // 期待する黒の個数...
[["+", 0, 7, 8, 196, 0, 7, 8, 196, 0, 45], ["+", 0, 7, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 7, 15, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22]]
8
485
using System; class program { static void Main() { var vals = Console.ReadLine().Split(' '); var H = int.Parse(vals[0]); var W = int.Parse(vals[1]); var K = int.Parse(vals[2]); var grid = new char [H][]; for (int y = 0; y < H; y++) { grid[y] = Console.ReadLine().ToCharArray(); } ...
using System; class program { static void Main() { var vals = Console.ReadLine().Split(' '); var H = int.Parse(vals[0]); var W = int.Parse(vals[1]); var K = int.Parse(vals[2]); var grid = new char [H][]; for (int i = 0; i < H; i++) { grid[i] = Console.ReadLine().ToCharArray(); } ...
[["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22]...
8
251
using System; using System.Collections.Generic; namespace abc173_c { class Program { static void Main(string[] args) { var H = CIn.ReadInt(); var W = CIn.ReadInt(); var K = CIn.ReadInt(); var c = CIn.ReadStringArray(W); var ans = 0; for (int bit = 0; bit < Math.Pow(2, H); bit++) { for ...
using System; using System.Collections.Generic; namespace abc173_c { class Program { static void Main(string[] args) { var H = CIn.ReadInt(); var W = CIn.ReadInt(); var K = CIn.ReadInt(); var c = CIn.ReadStringArray(H); var ans = 0; for (int bit = 0; bit < Math.Pow(2, H); bit++) { for ...
[["-", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22]]
8
527
using System; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int h = sc.NextInt(); int w = sc.NextInt(); int k = sc.NextInt(); string[] c = new string[h]; for (int i = 0; i < h; i++) { c[i] = sc.Next(); } int lR = 1 << h; int lC = 1...
using System; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int h = sc.NextInt(); int w = sc.NextInt(); int k = sc.NextInt(); string[] c = new string[h]; for (int i = 0; i < h; i++) { c[i] = sc.Next(); } int lR = 1 << h; int lC = 1...
[["-", 31, 23, 0, 16, 12, 23, 0, 16, 12, 22], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 12, 22]]
8
624
using System; using System.Linq; namespace abc173c { class Program { static void Main(string[] args) { var ln1 = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var H = ln1[0]; var W = ln1[1]; var K = ln1[2]; var cells = Enumerable.Repeat(0, H).Select(x => Console.ReadL...
using System; using System.Linq; namespace abc173c { class Program { static void Main(string[] args) { var ln1 = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var H = ln1[0]; var W = ln1[1]; var K = ln1[2]; var cells = Enumerable.Repeat(0, H).Select(x => Console.ReadL...
[["-", 0, 7, 15, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 7, 15, 16, 12, 23, 0, 16, 12, 22]]
8
267
using System; using System.Collections.Generic; using System.Linq; class Class1 { static void Main(string[] args) { List<int> HKW = Console.ReadLine().Split(' ').Select(_ => int.Parse(_)).ToList(); int H = HKW[0]; int W = HKW[1]; int K = HKW[2]; var ct = new char [H][]; for (int i = ...
using System; using System.Collections.Generic; using System.Linq; class Class1 { static void Main(string[] args) { List<int> HKW = Console.ReadLine().Split(' ').Select(_ => int.Parse(_)).ToList(); int H = HKW[0]; int W = HKW[1]; int K = HKW[2]; var ct = new char [H][]; for (int i = ...
[["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 295], ["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 45], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 46], ["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 62]]
8
293
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); var h = input[0]; var w = input[1]; var k = input[2]; var grid = new string[6, 6]; ...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); var h = input[0]; var w = input[1]; var k = input[2]; var grid = new string[6, 6]; ...
[["+", 0, 212, 0, 230, 10, 229, 0, 5, 0, 222], ["+", 0, 212, 0, 230, 10, 229, 0, 5, 0, 62], ["+", 0, 200, 0, 212, 0, 230, 10, 229, 0, 21]]
8
1,072
using System; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { string[] input = Read(); int h = int.Parse(input[0]); int w = int.Parse(input[1]); int k = int.Parse(input[2]); char[][] color = new char [h][]; for (int i = 0; i < h; i++) { ...
using System; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { string[] input = Read(); int h = int.Parse(input[0]); int w = int.Parse(input[1]); int k = int.Parse(input[2]); char[][] color = new char [h][]; for (int i = 0; i < h; i++) { ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
330
using System; namespace B { class Program { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); int nCorrMax = 0; for (int i = 0; i < s.Length - t.Length; i++) { var nCorrTmp = 0; var j = 0; foreach (var c in t) { if (c == s[i + j...
using System; namespace B { class Program { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); int nCorrMax = 0; for (int i = 0; i < s.Length - t.Length + 1; i++) { var nCorrTmp = 0; var j = 0; foreach (var c in t) { if (c == s[i...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
128
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Runtime.ExceptionServices; using System.Security.Cryptography.X509Certificates; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Runtime.ExceptionServices; using System.Security.Cryptography.X509Certificates; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
355
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string input = Console.ReadLine(); string input2 = Console.ReadLine(); int ...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string input = Console.ReadLine(); string input2 = Console.ReadLine(); int ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 72]]
8
157
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace CompetitiveProgramming { public class CPair<T, U> : IComparable where T : IComparable<T> { public readonly T Item1; ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace CompetitiveProgramming { public class CPair<T, U> : IComparable where T : IComparable<T> { public readonly T Item1; ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
13,483
using System; namespace Example03 { class Program { static void Main(string[] args) { char[] s = Console.ReadLine().ToCharArray(); char[] t = Console.ReadLine().ToCharArray(); int dif = t.Length; for (int i = 0; i < s.Length - t.Length; i++) { int score = 0; for (int j = 0; j < t.Length...
using System; namespace Example03 { class Program { static void Main(string[] args) { char[] s = Console.ReadLine().ToCharArray(); char[] t = Console.ReadLine().ToCharArray(); int dif = t.Length; for (int i = 0; i <= s.Length - t.Length; i++) { int score = 0; for (int j = 0; j < t.Lengt...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
142
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); List<uint> compared = new List<uint>(); for (int i = 0; i < s.Length - t.Length; i++) { compared.Add(CompareString...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); List<uint> compared = new List<uint>(); // Must <= for (int i = 0; i <= s.Length - t.Length; i++) { compared.A...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
171
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace CP { class Atria { static void Main(string[] args) { string s = ReadLine(); string t = ReadLine(); int ans = 0; for (int i = 0; i < s...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace CP { class Atria { static void Main(string[] args) { string s = ReadLine(); string t = ReadLine(); int ans = 0; for (int i = 0; i < s...
[["+", 3, 4, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33]]
8
153
using System; class B { static void Main() { string S = Console.ReadLine(); string A = Console.ReadLine(); int ans = 1999, f = 0; for (int i = 0; i < S.Length - A.Length; i++) { f = 0; for (int j = 0; j < A.Length; j++) { if (S.Substring(i + j, 1) != A.Substring(j, 1)) f...
using System; class B { static void Main() { string S = Console.ReadLine(); string A = Console.ReadLine(); int ans = 1000, f = 0; for (int i = 0; i <= S.Length - A.Length; i++) { f = 0; for (int j = 0; j < A.Length; j++) { if (S.Substring(i + j, 1) != A.Substring(j, 1)) ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
128
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Reflection.Metadata; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; using System.Text.RegularExpres...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Reflection.Metadata; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; using System.Text.RegularExpres...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
3,047
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; namespace AtCoderBeginnerContest177 { class Program { static void Main(string[] args) { // 課題B:Substring(2020/8/29) string reStr = Console.ReadLine(); string str = Console.ReadLine(); if (reStr...
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; namespace AtCoderBeginnerContest177 { class Program { static void Main(string[] args) { // 課題B:Substring(2020/8/29) string reStr = Console.ReadLine(); string str = Console.ReadLine(); if (reStr...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
170
using System; using System.Collections.Generic; namespace Sample { // 拡張クラス static class Sample { static void Main() { string s = Console.ReadLine(); string t = Console.ReadLine(); string[] sarr = s.MySplit(1); string[] tarr = t.MySplit(1); int score = tarr.Length; for (int i = 0; i < (sar...
using System; using System.Collections.Generic; namespace Sample { // 拡張クラス static class Sample { static void Main() { string s = Console.ReadLine(); string t = Console.ReadLine(); string[] sarr = s.MySplit(1); string[] tarr = t.MySplit(1); int score = tarr.Length; for (int i = 0; i <= (sa...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
300
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace atcoder151 { public class MainClass { public static void Main(string[] args) { new MainClass().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 atcoder151 { public class MainClass { public static void Main(string[] args) { new MainClass().Solve(new ConsoleInput(Console.In, ' ')); ...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 64, 196, 0, 1, 0, 11, 12, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 11, 12, 214, 141, 22]]
8
704
using System; class Program { static void Main(string[] args) {    string S = Console.ReadLine(); //標準入力    string T = Console.ReadLine(); //標準入力 int S_length = S.Length; int T_length = T.Length; int maxlength = 0; for (int i = 0; i < S_length - T_length; i++) { int count = 0; f...
using System; class Program { static void Main(string[] args) {    string S = Console.ReadLine(); //標準入力    string T = Console.ReadLine(); //標準入力 int S_length = S.Length; int T_length = T.Length; int maxlength = 0; for (int i = 0; i < S_length - T_length + 1; i++) { int count = 0; ...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
150
// // ABC177B // URL : // using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; namespace AtCoder.Template.ABC177B { class Solver { public static readonly long MOD_CONST = 1000000007; //(long)Math.Pow(10, 9) + 7; public static void Main(string[] args)...
// // ABC177B // URL : // using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; namespace AtCoder.Template.ABC177B { class Solver { public static readonly long MOD_CONST = 1000000007; //(long)Math.Pow(10, 9) + 7; public static void Main(string[] args)...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
1,317
using System; public class Program { public static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); var sLength = s.Length; var tLength = t.Length; var ans = tLength; var pos = 0; while (pos + tLength < sLength) { var current = s.Substring(po...
using System; public class Program { public static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); var sLength = s.Length; var tLength = t.Length; var ans = tLength; var pos = 0; while (pos + tLength <= sLength) { var current = s.Substring(...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
147
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; namespace AtCoder { static class Program_D { class Solver { int ri => sc.Integer(); long rl => sc.Long(); dou...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; namespace AtCoder { static class Program_D { class Solver { int ri => sc.Integer(); long rl => sc.Long(); dou...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
1,392
using System; using System.Linq; namespace AtCoderTutorial { public class AtCoder176 { public static void Main(string[] args) { // long[] HW = Console.ReadLine().Split(' ').Select(_ => // long.Parse(_)).ToArray(); long[] C = // Console.ReadLine().Split(' ').Select(_ => ...
using System; using System.Linq; namespace AtCoderTutorial { public class AtCoder176 { public static void Main(string[] args) { // long[] HW = Console.ReadLine().Split(' ').Select(_ => // long.Parse(_)).ToArray(); long[] C = // Console.ReadLine().Split(' ').Select(_ => ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
191
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; using N = System.Int32; static class Program { static public void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); ...
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; using N = System.Int32; static class Program { static public void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
703
using System; using System.Linq; namespace AtCoder.Abcdef { public class QuestionB { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); // Input string string s = Console.ReadLin...
using System; using System.Linq; namespace AtCoder.Abcdef { public class QuestionB { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); // Input string string s = Console.ReadLin...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
200
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; using System.Numerics; namespace abc177 { class Program { static void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); if (File.Exists("in...
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; using System.Numerics; namespace abc177 { class Program { static void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); if (File.Exists("in...
[["-", 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, 214, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
379
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Numerics; class Util { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { string S = rs(); string T = rs(); int ans = T....
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Numerics; class Util { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { string S = rs(); string T = rs(); int ans = T....
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
594
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.B { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var S = ReadText(...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.B { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var S = ReadText(...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
490
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace contest_Csharp { class Program { public static (long m, long s)[,] dp; static void Main(string[] args) { // checked { var sw = new System.IO.StreamWriter( Console.Open...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace contest_Csharp { class Program { public static (long m, long s)[,] dp; static void Main(string[] args) { checked { var sw = new System.IO.StreamWriter( Console.OpenStandar...
[["+", 8, 201, 0, 195, 8, 196, 0, 287, 0, 292], ["+", 0, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 0, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
216
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { char[] s = Console.ReadLine().ToCharArray(); char[] t = Console.ReadLine().ToCharArray(); int cntMax = 0; for (int i = 0; i < s.Length - t.Leng...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { char[] s = Console.ReadLine().ToCharArray(); char[] t = Console.ReadLine().ToCharArray(); int cntMax = 0; for (int i = 0; i <= s.Length - t.Len...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
162
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace atcoder { public class Program { public static void Main(string[] args) { var S = Console.ReadLine(); var T = Console.ReadLine(); var ans = int.MaxValue; for (int i = 0; i < S.Length - T.Length; i+...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace atcoder { public class Program { public static void Main(string[] args) { var S = Console.ReadLine(); var T = Console.ReadLine(); var ans = int.MaxValue; for (int i = 0; i < S.Length - T.Length + 1...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
153
using System; using System.Linq; class Program { static void Main(string[] args) { var s = Console.ReadLine().ToCharArray(); var t = Console.ReadLine().ToCharArray(); int ans = 0; for (int i = 0; i < s.Length - t.Length; i++) { int count = 0; for (int j = 0; j < t.Length; j++) { i...
using System; using System.Linq; class Program { static void Main(string[] args) { var s = Console.ReadLine().ToCharArray(); var t = Console.ReadLine().ToCharArray(); int ans = 0; for (int i = 0; i <= s.Length - t.Length; i++) { int count = 0; for (int j = 0; j < t.Length; j++) { ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
210
using System; namespace B { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var t = Console.ReadLine(); int max = t.Length; for (var i = 0; i < s.Length - t.Length; i++) { int val = 0; for (var j = 0; j < t.Length; j++) { if (s[i + j] == t[j]) ...
using System; namespace B { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var t = Console.ReadLine(); int max = t.Length; for (var i = 0; i <= s.Length - t.Length; i++) { int val = 0; for (var j = 0; j < t.Length; j++) { if (s[i + j] == t[j]) ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
134
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { public class Solver { public void Solve() { var cin = new Scanner(); var s = cin.next(); var t = cin.next(); var ans ...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { public class Solver { public void Solve() { var cin = new Scanner(); var s = cin.next(); var t = cin.next(); var ans ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
644
using System.Linq; using System.Text; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Diagnostics; using System.Threading; using System.Runtime.CompilerServices; using System.IO.Pipes; namespace AtCoder { class Program { struct Poin...
using System.Linq; using System.Text; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Diagnostics; using System.Threading; using System.Runtime.CompilerServices; using System.IO.Pipes; namespace AtCoder { class Program { struct Poin...
[["+", 0, 212, 0, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 16, 31, 213, 3, 4, 0, 25]]
8
236
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; class Program { static void Main(string[] args) { var s = Console.ReadLine().ToCharArray(); var t = Console.ReadLine().ToCharArray(); int min = t.Length; for (int i = 0; i < s.Length - t.Length; i...
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; class Program { static void Main(string[] args) { var s = Console.ReadLine().ToCharArray(); var t = Console.ReadLine().ToCharArray(); int min = t.Length; for (int i = 0; i < s.Length - t.Length + ...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
150
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; namespace AtCoder.ABC { class QuestionB { public static void Main(string[] args) { var scanner = new Scanner(); var s = scanner.NextLine...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; namespace AtCoder.ABC { class QuestionB { public static void Main(string[] args) { var scanner = new Scanner(); var s = scanner.NextLine...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
881
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Linq.Expressions; using System.Diagnostics.Tracing; namespace Main { class Program { static void Main(string[] args) { //ここから // int n=ReadInt(); // string[] str = Console.ReadLine().Split(' '); ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Linq.Expressions; using System.Diagnostics.Tracing; namespace Main { class Program { static void Main(string[] args) { //ここから // int n=ReadInt(); // string[] str = Console.ReadLine().Split(' '); ...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
453
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System; class Program { #region Reader static string ReadStr => Console.ReadLine(); static string[] ReadStrs => Console.ReadLine().Split(' '); static int ReadInt => Convert.ToInt32(Console.ReadLine()...
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System; class Program { #region Reader static string ReadStr => Console.ReadLine(); static string[] ReadStrs => Console.ReadLine().Split(' '); static int ReadInt => Convert.ToInt32(Console.ReadLine()...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
352
using System; using System.Linq; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); string s = sc.Next(); string t = sc.Next(); int ans = int.MaxValue; for (int b = 0; b + t.Length < s.Length; b++) { int cnt = 0; for (int i = 0; i < t.Length; i+...
using System; using System.Linq; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); string s = sc.Next(); string t = sc.Next(); int ans = int.MaxValue; for (int b = 0; b + t.Length <= s.Length; b++) { int cnt = 0; for (int i = 0; i < t.Length; i...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
526
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace Tasks { public class B { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Consol...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace Tasks { public class B { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Consol...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
553
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 ProblemB { 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 ProblemB { static bool SAIKI = false; st...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47]]
8
1,634
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static int N; static long[] A; static void INPUT() { N = NextInt(); A = LineLong(); } static void OUT() { va...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static int N; static long[] A; static void INPUT() { N = NextInt(); A = LineLong(); } static void OUT() { va...
[["+", 0, 1, 0, 11, 12, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 12, 22]]
8
532
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 ...
[["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24]]
8
1,448
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static readonly long Mod = 1000000007; static void Main() { int N = RInt(); var a = RLongs(); var d = new long[N + 1]; for (int i = 0; i < N; i++) { ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static readonly long Mod = 1000000007; static void Main() { int N = RInt(); var a = RLongs(); var d = new long[N + 1]; for (int i = 0; i < N; i++) { ...
[["+", 12, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 12, 16, 12, 23, 0, 16, 31, 23, 0, 25], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 17, 109], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 12, 22]]
8
766
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; using static System.Array; class MainClass : Scanner { static void Main() { int N = RInt(); var A = RLongs(); var d = new long[N + 1]; for (int i = 0; i < N; i++) { d[i + 1]...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; using static System.Array; class MainClass : Scanner { static void Main() { int N = RInt(); var A = RLongs(); var d = new long[N + 1]; for (int i = 0; i < N; i++) { d[i + 1]...
[["+", 0, 1, 0, 11, 12, 16, 12, 74, 39, 22], ["+", 0, 1, 0, 11, 12, 16, 12, 74, 0, 25], ["+", 0, 11, 12, 16, 12, 74, 51, 23, 0, 24]]
8
1,217
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design; using System.IO.Compression; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; using System.Text.RegularExpressions; using Console ...
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design; using System.IO.Compression; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; using System.Text.RegularExpressions; using Console ...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
231
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } ...
[["-", 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, 216, 0, 217], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 22]]
8
1,778
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder177 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long[] A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).To...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder177 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long[] A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).To...
[["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 17, 109], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 12, 22], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25]]
8
241
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; namespace C { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] s = Console.ReadLine().Split(' '); ulong[] a = new ulong[N]; #region 自作 /*for (int i = 0;...
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; namespace C { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] s = Console.ReadLine().Split(' '); long[] a = new long[N]; #region 自作 /*for (int i = 0; i...
[["-", 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, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 1, 0, 11, 12, 213,...
8
207
using System.Linq; using System.Text; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Diagnostics; using System.Threading; using System.Runtime.CompilerServices; using System.IO.Pipes; namespace AtCoder { class Program { struct Poin...
using System.Linq; using System.Text; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Diagnostics; using System.Threading; using System.Runtime.CompilerServices; using System.IO.Pipes; namespace AtCoder { class Program { struct Poin...
[["+", 8, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 8, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 0, 7, 8, 1, 0, 11, 12, 16, 17, 109], ["+", 0, 7, 8, 1, 0, 11, 12, 16, 12, 22]]
8
270
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Linq; using System.Text; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] sA = Console.ReadLine().Split(' '); long[] A = new long[N]; ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Linq; using System.Text; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] sA = Console.ReadLine().Split(' '); long[] A = new long[N]; ...
[["-", 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, 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, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132],...
8
189
using System; using static System.Console; using static System.Math; using System.Numerics; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class Program { public static void Main(string[] args) { long mod = 1000000007; long ans = 0; var n = myRead.readInt(); var s = m...
using System; using static System.Console; using static System.Math; using System.Numerics; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class Program { public static void Main(string[] args) { long mod = 1000000007; long ans = 0; var n = myRead.readInt(); var s = m...
[["-", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 17, 48], ["-", 12, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 48], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 31, 22]]
8
524
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Numerics; public class MainClass { public const long Giri = 1000000007; public const long DpInf = 99999999999999; public static void Main(string[] args) { var n = Console.ReadLine().ToInt(); var a = Input()...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Numerics; public class MainClass { public const long Giri = 1000000007; public const long DpInf = 99999999999999; public static void Main(string[] args) { var n = Console.ReadLine().ToInt(); var a = Input()...
[["+", 0, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 17, 72]]
8
441
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace ABC177 { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var A = Console.ReadLine().Split().Select(long.Parse).ToArray(); var sum = 0L; var ans = 0L; for ...
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace ABC177 { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var A = Console.ReadLine().Split().Select(long.Parse).ToArray(); var sum = 0L; var ans = 0L; for ...
[["+", 12, 23, 0, 16, 31, 16, 31, 16, 17, 109], ["+", 12, 23, 0, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 1, 0, 11, 12, 23, 0, 25]]
8
136
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace Tasks { public class C { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Consol...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace Tasks { public class C { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Consol...
[["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 109], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22]]
8
640
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; namespace FertiLib.Contest.C { static class Program { public static void Solve(Scanner cin) { int n = cin.ReadInt(); var a = cin.ReadLongArray(n); Mo...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; namespace FertiLib.Contest.C { static class Program { public static void Solve(Scanner cin) { int n = cin.ReadInt(); var a = cin.ReadLongArray(n); Mo...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 108]]
8
3,621
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static void Main() { int N = RInt(); var A = RInts(); int num = A[0]; for (int i = 1; i < N; i++) { num = (int)GCD(num, A[i]); } if (num ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static void Main() { int N = RInt(); var A = RInts(); int num = A[0]; for (int i = 1; i < N; i++) { num = (int)GCD(num, A[i]); } if (num ...
[["-", 12, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["-", 206, 207, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["-", 206, 207, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22]]
8
896
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 ProblemE { 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 ProblemE { static bool SAIKI = false; st...
[["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203]]
8
1,709
using System; using System.Collections.Generic; using System.Linq; namespace E { class Program { static List<int> min_factor = new List<int>(); static void Main(string[] args) { var n = Int32.Parse(Console.ReadLine()); var a = Console.ReadLine().Split(" ").Select(s => Int32.Parse(s)).ToList(); min_fac...
using System; using System.Collections.Generic; using System.Linq; namespace E { class Program { static List<int> min_factor = new List<int>(); static void Main(string[] args) { var n = Int32.Parse(Console.ReadLine()); var a = Console.ReadLine().Split(" ").Select(s => Int32.Parse(s)).ToList(); min_fac...
[["+", 8, 196, 0, 210, 12, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 210, 12, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 210, 8, 196, 0, 210, 0, 25]]
8
401
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Linq.Expressions; using System.Diagnostics.Tracing; namespace Main { class Program { static void Main(string[] args) { //ここから // int n=ReadInt(); // string[] str = Console.ReadLine().Split(' '); ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Linq.Expressions; using System.Diagnostics.Tracing; namespace Main { class Program { static void Main(string[] args) { //ここから // int n=ReadInt(); // string[] str = Console.ReadLine().Split(' '); ...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98]]
8
687
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int n = sc.NextInt(); int[] aa = sc.IntArray(); long allGcd = Gcd(aa[0], aa[1]); for (int i = 2; i < n; i++) { allGcd = Gcd(allGcd, aa...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int n = sc.NextInt(); int[] aa = sc.IntArray(); long allGcd = Gcd(aa[0], aa[1]); for (int i = 2; i < n; i++) { allGcd = Gcd(allGcd, aa...
[["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 7, 8, 196, 0, 1, 0, 223, 0, 29], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 68], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]]
8
683
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC177E { class Program { static void Main(string[] args) { var N = RInt; var A = RInts; var ps = PrimeNumbers(1000 + 1); int[] count = new int[1...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC177E { class Program { static void Main(string[] args) { var N = RInt; var A = RInts; var ps = PrimeNumbers(1000 + 1); int[] count = new int[1...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25]]
8
1,439
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { var ST = new SegTree(W + 1); for (int i = 0; i < H; i++) ST.Update(...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { var ST = new SegTree(W + 1); for (int i = 0; i < W; i++) ST.Update(...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
1,627
using System; class TEST { public static void Main() { string[] value = Console.ReadLine().Split( new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); int AllNum = int.Parse(value[0]); int MakeMax = int.Parse(value[1]); int MaxTime = int.Parse(value[2]); int time = 0; int temp...
using System; class TEST { public static void Main() { string[] value = Console.ReadLine().Split( new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); // if (AllNum <= 0) int AllNum = int.Parse(value[0]); int MakeMax = int.Parse(value[1]); int MaxTime = int.Parse(value[2]); ...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47]]
8
115
using System; using System.Linq; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); var list = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int count = 0; for (int i = 0; i < N; i++) { if (i % 2 != 0 && list[i] % 2 != 0) { count++;...
using System; using System.Linq; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); var list = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int count = 0; for (int i = 0; i < N; i++) { if (i % 2 == 0 && list[i] % 2 != 0) { count++;...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60]]
8
115
using System; using System.Linq; class Program { static void Main() { var N = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); var result = 0; for (int i = 0; i < N; i++) { if (i % 2 == 1 && a[i] % 2 == 1) { result++; } } Cons...
using System; using System.Linq; class Program { static void Main() { var N = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); var result = 0; for (int i = 0; i < N; i++) { if ((i + 1) % 2 == 1 && a[i] % 2 == 1) { result++; } } ...
[["+", 15, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 15, 16, 31, 16, 31, 16, 31, 23, 0, 25]]
8
107
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using static System.Math; namespace CSharpSpiral { class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = #if DEBUG ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using static System.Math; namespace CSharpSpiral { class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = #if DEBUG ...
[["-", 0, 28, 0, 218, 8, 16, 12, 16, 17, 79], ["+", 0, 28, 0, 218, 8, 16, 12, 16, 17, 60]]
8
613
using System; using System.Linq; class name { static void Main() { int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] d = Console.ReadLine().Split().Select(int.Parse).ToArray(); int sum = 0; for (int i = 0; i < s[0]; i++) { if (i % 2 == 1 && d[i] % 2 == 1) { sum++;...
using System; using System.Linq; class name { static void Main() { int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] d = Console.ReadLine().Split().Select(int.Parse).ToArray(); int sum = 0; for (int i = 0; i < s[0]; i++) { if (i % 2 == 0 && d[i] % 2 == 1) { sum++;...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
124
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { public class EijB { public static void Main(string[] args) { var c = new ConsoleInput(Console.In); int N = c.ReadInt; int count = 0; for (int i = 0; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { public class EijB { public static void Main(string[] args) { var c = new ConsoleInput(Console.In); int N = c.ReadInt; int count = 0; for (int i = 1; ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
463
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60]]
8
775
using System; using System.Collections.Generic; class Program { static void Main() { string N = Console.ReadLine(); int n = int.Parse(N); string[] a = Console.ReadLine().Split(' '); int j = 0; int count = 0; for (int i = 0; i < n; i++) { j = int.Parse(a[i]); if (i % 2 == 1 && j % ...
using System; using System.Collections.Generic; class Program { static void Main() { string N = Console.ReadLine(); int n = int.Parse(N); string[] a = Console.ReadLine().Split(' '); int j = 0; int count = 0; for (int i = 1; i <= n; i++) { j = int.Parse(a[i - 1]); if (i % 2 == 1 &&...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
122
using System; using System.Linq; using System.Collections.Generic; using E = System.Linq.Enumerable; public class Program { public static void Main() { var n = int.Parse(Console.ReadLine()); var seqA = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); var k = seqA.Select((x, i) => i * x %...
using System; using System.Linq; using System.Collections.Generic; using E = System.Linq.Enumerable; public class Program { public static void Main() { var n = int.Parse(Console.ReadLine()); var seqA = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); var k = seqA.Select((x, i) => (i + 1)...
[["+", 0, 218, 8, 16, 31, 16, 31, 23, 0, 24], ["+", 8, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 8, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 218, 8, 16, 31, 16, 31, 23, 0, 25]]
8
111
using System; using System.Linq; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var ans = a.Where((e, i) => i % 2 == 1 && e % 2 == 1).Count(); Console.WriteLine(ans); } }
using System; using System.Linq; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var ans = a.Where((e, i) => (i + 1) % 2 == 1 && e % 2 == 1).Count(); Console.WriteLine(ans); } }
[["+", 8, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 8, 16, 31, 16, 31, 16, 31, 23, 0, 25]]
8
106
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static int N; static int[] a; static void INPUT() { N = NextInt(); a = LineInt(); } static void OUT() { var ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static int N; static int[] a; static void INPUT() { N = NextInt(); a = LineInt(); } static void OUT() { var ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
470
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramB { static void Main(string[] args) { var a = long.Parse(Console.ReadLine()); var list = Console.ReadLine().Split(" ").Select(x => long.Parse(x)).ToList(); var result = 0; for (var i = 1; i < a; ...
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramB { static void Main(string[] args) { var a = long.Parse(Console.ReadLine()); var list = Console.ReadLine().Split(" ").Select(x => long.Parse(x)).ToList(); var result = 0; for (var i = 0; i < a; ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
125
using System; using System.Collections.Generic; // using System.Linq; // using System.Numerics; class Program { static void Main(string[] args) { var input = INP(); int N = TOI(input[0]); var input2 = INP(); int[] a = new int[N]; for (int i = 0; i < N; i++) { a[i] = TOI(input2[i]); } ...
using System; using System.Collections.Generic; // using System.Linq; // using System.Numerics; class Program { static void Main(string[] args) { var input = INP(); int N = TOI(input[0]); var input2 = INP(); int[] a = new int[N]; for (int i = 0; i < N; i++) { a[i] = TOI(input2[i]); } ...
[["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 25]]
8
403
using System; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { string[] input = Read(); int n = int.Parse(input[0]); input = Read(); int cnt = 0; for (int i = 1; i <= n; i++) { int a = int.Parse(input[i]); if (i % 2 != 0 && a % 2 !...
using System; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { string[] input = Read(); int n = int.Parse(input[0]); input = Read(); int cnt = 0; for (int i = 0; i < n; i++) { int a = int.Parse(input[i]); if (i % 2 == 0 && a % 2 !=...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60]]
8
157
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace MyProject { class Program { static void Main(string[] args) { #if Local var sw = new Stopwatch(); sw.Start(); Console.SetIn(new StreamReader("input.in")); #endif var solver = new S...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace MyProject { class Program { static void Main(string[] args) { #if Local var sw = new Stopwatch(); sw.Start(); Console.SetIn(new StreamReader("input.in")); #endif var solver = new S...
[["+", 15, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 15, 16, 31, 16, 31, 16, 31, 23, 0, 25]]
8
213
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203]]
8
531
using System; using System.Collections.Generic; using System.Linq; using static Scanner; class Program { static void Main() => new Program().Solve(); public void Solve() { int n = ReadInt(); Console.WriteLine( ReadInt(n).Where((x, i) => x % 2 == 1 && i % 2 == 1).Count()); } } static class Scann...
using System; using System.Collections.Generic; using System.Linq; using static Scanner; class Program { static void Main() => new Program().Solve(); public void Solve() { int n = ReadInt(); Console.WriteLine( ReadInt(n).Where((x, i) => x % 2 == 1 && i % 2 == 0).Count()); } } static class Scann...
[["-", 0, 28, 0, 218, 8, 16, 12, 16, 12, 203], ["+", 0, 28, 0, 218, 8, 16, 12, 16, 12, 203]]
8
346
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.B { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var N = ReadLong(...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.B { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var N = ReadLong(...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
408
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; public static class P { public static void Ma...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; public static class P { public static void Ma...
[["-", 0, 28, 0, 218, 8, 16, 12, 16, 12, 203], ["+", 0, 28, 0, 218, 8, 16, 12, 16, 12, 203]]
8
135
using System; using System.Collections.Generic; using System.IO.Pipes; using System.Linq; using static System.Math; namespace AtcoderSolve { class Program { static void Main(string[] args) { A(); } static void A() { var N = ReadInt(); var list = new int[100000]; for (int x = 1; x < Sqrt(N); x++) { ...
using System; using System.Collections.Generic; using System.IO.Pipes; using System.Linq; using static System.Math; namespace AtcoderSolve { class Program { static void Main(string[] args) { A(); } static void A() { var N = ReadInt(); var list = new int[100000]; for (int x = 1; x < Sqrt(N); x++) { ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
834
using System; using System.Linq; class name { static void Main() { int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int d = a[0]; int[] ans = new int[a[0] + 5]; for (int i = 0; i * i <= d; i++) { for (int s = 0; s * s <= d; s++) { for (int t = 0; t * t <= d; t++) { ...
using System; using System.Linq; class name { static void Main() { int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int d = a[0]; int[] ans = new int[a[0] + 5]; for (int i = 1; i * i <= d; i++) { for (int s = 1; s * s <= d; s++) { for (int t = 1; t * t <= d; t++) { ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
8
192
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
[["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 19]]
8
227
using System; namespace AtCoderSnippet { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var arr = new int[N]; for (long x = 1; x <= 100; x++) { for (long y = 1; y <= 100; y++) { for (long z = 1; z <= 100; z++) { long num = (x * x) + (y * y...
using System; namespace AtCoderSnippet { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var arr = new int[N]; for (long x = 1; x <= 100; x++) { for (long y = 1; y <= 100; y++) { for (long z = 1; z <= 100; z++) { long num = (x * x) + (y * y...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
8
173
using System; using System.Linq; namespace AtCoder0711 { class MainClass { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); // int[] a = Console.ReadLine().Split(' ').Select(x => // int.Parse(x)).ToArray(); long[] ans = new long[N]; for (var x = 1; x < 100; x++) { ...
using System; using System.Linq; namespace AtCoder0711 { class MainClass { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); // int[] a = Console.ReadLine().Split(' ').Select(x => // int.Parse(x)).ToArray(); long[] ans = new long[N]; for (var x = 1; x < 100; x++) { ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
8
171