buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
change_count
int64
0
100
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { var cin = new Scanner2(); int n = cin.Int(); ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { var cin = new Scanner2(); int n = cin.Int(); ...
[["-", 8, 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, 72], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["-", 0, 52, 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, 6...
8
1,092
34
using System; namespace ConsoleApp11 { class Class1 { public static void Main() { string[] IN = Console.ReadLine().Split(); long N = long.Parse(IN[0]); long A = long.Parse(IN[1]); long B = long.Parse(IN[2]); long up; long down; long small; long big; long ans; if ((A + B) % 2 ...
using System; namespace ConsoleApp11 { class Class1 { public static void Main() { string[] IN = Console.ReadLine().Split(); long N = long.Parse(IN[0]); long A = long.Parse(IN[1]); long B = long.Parse(IN[2]); long up; long down; long small; long big; long ans; if ((A + B) % 2 ...
[["+", 31, 23, 0, 16, 31, 213, 63, 214, 205, 22], ["+", 31, 23, 0, 16, 31, 213, 63, 214, 0, 131], ["+", 31, 23, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 31, 23, 0, 16, 31, 213, 3, 4, 0, 24], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 12, 20...
8
248
18
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder.Contests.AGC041 { /// <summary> /// /// </summary> static class A { static void Main(string[] args) { var n = NextLong(); var a = NextLong(); var b = NextLong(); if ((b - a) % 2 == 0) { Con...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder.Contests.AGC041 { /// <summary> /// /// </summary> static class A { static void Main(string[] args) { var n = NextLong(); var a = NextLong(); var b = NextLong(); if ((b - a) % 2 == 0) { Con...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 12, 203], ["+", 0, ...
8
560
24
using System; using System.Collections.Generic; namespace D { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] A = Console.ReadLine().Split(' '); int[] aa = new int[N]; int[] d = new int[N]; for (int i = 0; i < N; i++) { aa[i] = int.Parse(A[i...
using System; using System.Collections.Generic; namespace D { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] A = Console.ReadLine().Split(' '); int[] aa = new int[N]; int[] d = new int[N]; for (int i = 0; i < N; i++) { aa[i] = int.Parse(A[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, 204, 205, 22], ["+", 0, 57, 15, 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, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 1...
8
200
25
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApp14 { class Program { static void Main(string[] args) { var solver = new Solver(); solver.Calc(); } } public class Solver { public void Calc() { var N = long.Parse(Console.ReadLine()); var a...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApp14 { class Program { static void Main(string[] args) { var solver = new Solver(); solver.Calc(); } } public class Solver { public void Calc() { var N = long.Parse(Console.ReadLine()); var a...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 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, 204, 205, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 31...
8
187
29
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _20191224_ATC { class Program { static void Main(string[] args) { var n = Myself.NextInt()[0]; var a = Myself.NextInt(); int checkNum = 1; int ansNum = 0; int index = 0; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _20191224_ATC { class Program { static void Main(string[] args) { var n = Myself.NextInt()[0]; var a = Myself.NextInt(); int checkNum = 1; int ansNum = 0; int index = 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, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 2...
8
821
37
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BrickBreak { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] strBricks = Console.ReadLine().Split(' '); int brick = 0; int ne...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BrickBreak { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] strBricks = Console.ReadLine().Split(' '); int brick = 0; int ne...
[["+", 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
152
19
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace PaizaTest { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); // DP? var oneLine = Console.ReadLine().Split(' ').Select(int.Parse).ToList(); ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace PaizaTest { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); // DP? var oneLine = Console.ReadLine().Split(' ').Select(int.Parse).ToList(); ...
[["-", 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], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["...
8
152
13
using System; class p { static void Main() { int N = int.Parse(Console.ReadLine()); string[] ipt = Console.ReadLine().Split(' '); int[] arr = new int[N]; for (int i = 0; i < N; i++) { arr[i] = int.Parse(ipt[i]); } int count = 1, num = 0, prev = -1; for (int i = 0; i < N; i++) { ...
using System; class p { static void Main() { int N = int.Parse(Console.ReadLine()); string[] ipt = Console.ReadLine().Split(' '); int[] arr = new int[N]; for (int i = 0; i < N; i++) { arr[i] = int.Parse(ipt[i]); } int count = 1, num = 0; for (int i = 0; i < N; i++) { if (arr[i]...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 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, 241, 0, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95],...
8
160
21
using System; using System.Linq; namespace ABC148D { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var As = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); if (!As.Contains(1)) { Console.WriteLine(-1); return; } if (As.Lengt...
using System; using System.Linq; namespace ABC148D { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var As = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); if (!As.Contains(1)) { Console.WriteLine(-1); return; } if (As.Lengt...
[["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 33], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 22...
8
183
16
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace template { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } public void Solve(ConsoleInput cin) { var n = int.Parse(cin.ReadLine); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace template { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } public void Solve(ConsoleInput cin) { var n = int.Parse(cin.ReadLine); ...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 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, 141,...
8
558
24
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; internal static class CR { public static string Get() { return Console.ReadLine(); } public static long GetInteger() { return long.Parse(Console.ReadLine()); } public static IEnumerable<ulong> GetIntegers() { return ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; internal static class CR { public static string Get() { return Console.ReadLine(); } public static long GetInteger() { return long.Parse(Console.ReadLine()); } public static IEnumerable<ulong> GetIntegers() { return ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 250], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 108], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 203], ["...
8
216
20
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var n = Read().ToDecimal(); var ans = Math.Min(G2(n, 2), G2(n, 5)); WriteRead(ans); } ...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var n = Read().ToDecimal(); if (n % 2 == 1) { WriteRead(0); return; } var ...
[["+", 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, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 2...
8
390
17
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static _20200331.Abc148_E.Cin; using static _20200331.Abc148_E.Util; using Pair = _20200331.Abc148_E.VTuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<long>>; using Syst...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static _20200331.Abc148_E.Cin; using static _20200331.Abc148_E.Util; using Pair = _20200331.Abc148_E.VTuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<long>>; using Syst...
[["+", 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, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 2...
8
3,603
19
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Math; using static System.Console; class Program { static void Main() { long N = long.Parse(Console.ReadLine()); long count5 = 0; if (N % 2 ==...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Math; using static System.Console; class Program { static void Main() { long N = long.Parse(Console.ReadLine()); long count5 = 0; if (N % 2 ==...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 25], ["-", 0, 1, 0, 11, 12, 74, 51, 23, 0, 24], ["-", 0, 1, 0, 11, 12, 74, 51, 23, 0, 25], ["-", 0, 195...
8
907
15
using System; using static System.Console; using static System.Math; public class Hello { public static void Main() { long read = rlong(); read /= 10; long counter = read; while (read >= 5) { read /= 5; counter += read; } WriteLine(counter); } //各種読取 static string rstr() { r...
using System; using static System.Console; using static System.Math; public class Hello { public static void Main() { long read = rlong(); if (read % 2 == 0) { read /= 10; long counter = read; while (read >= 5) { read /= 5; counter += read; } WriteLine(counter); ...
[["+", 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, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 2...
8
328
18
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { long n = IO.GetLong(); if (n % 2 == 1) { Console.WriteLine(0); return; } long ans = 0; long inc = 1; long dC = 0; do { long b = (long)Math.Pow(5, inc); ...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { long n = IO.GetLong(); if (n % 2 == 1) { Console.WriteLine(0); return; } long ans = 0; long inc = 1; long dC = 0; do { long b = (long)Math.Pow(5, inc); ...
[["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 8, 196, 0, 82, 8, 196, 0, 1, 0, 35], ["-", 0, 82, 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, 74, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 25], ["-", 0, 11, 12, 74, 51, 213, 63, 214, 205, 22], ["-", 0, ...
8
374
17
//ヒントがっつり見た using System; namespace tst { class Program { public static long Gusu(long x) { long cnt = 0; long bunbo = 10; while (x >= bunbo) { // doubleで切捨て、その値をlongにいれる cnt += (long)Math.Floor((double)x / bunbo); bunbo *= 5; } return cnt; } /*public static long Kisu(long x)...
//ヒントがっつり見た//キャストやめたら成功するようになった using System; namespace tst { class Program { public static long Gusu(long x) { long cnt = 0; long bunbo = 10; while (x >= bunbo) { cnt += x / bunbo; bunbo *= 5; } return cnt; } /*public static long Kisu(long x) { long sum = 1; for (int...
[["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 25], ["-", 0, 11, 12, 74, 51, 213, 63, 214, 205, 22], ["-", 0, 11, 12, 74, 51, 213, 63, 214, 0, 131], ["-", 0, 11, 12, 74, 51, 213, 63, 214, 141, 22], ["-", 0, 11, 12, 74, 51, 213, 3, 4, 0, 24]...
8
129
11
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace AtCoder { public class Program { public static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); long sum = 0; long i = 1; while (true) { if (N / (long)Math.Pow(5, i) > 0) { ...
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace AtCoder { public class Program { public static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); long sum = 0; long i = 1; if (N % 2 == 0) { while (true) { if (N / (long)M...
[["+", 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, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 2...
8
124
22
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...
[["+", 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, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 2...
8
174
10
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderBeginnerContest148 { class Program { static void Main(string[] args) { var input = long.Parse(Console.ReadLine()); if (input % 2 == 1) { Console.WriteLine("0"); return; } long result = 0; var index = ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderBeginnerContest148 { class Program { static void Main(string[] args) { var input = long.Parse(Console.ReadLine()); if (input % 2 == 1) { Console.WriteLine("0"); return; } long result = 0; var index = ...
[["-", 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, 74, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 0, 25], ["-", 3, ...
8
126
14
using System; public class Program { private long N; public void Solve() { var sc = new Scanner(); N = sc.NextLong(); long ans = 0; // 偶数かつ5の倍数がいくつあるか long l = 1; for (int i = 0;; i++) { l *= 5; if (l * 2 > N) break; ans += N / (l * 2); } Console.WriteL...
using System; public class Program { private long N; public void Solve() { var sc = new Scanner(); N = sc.NextLong(); if (N % 2 == 1) { Console.WriteLine("0"); return; } long ans = 0; // 偶数かつ5の倍数がいくつあるか long l = 1; while (true) { l *= 5; if (l * 2 > N) ...
[["+", 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, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 2...
8
528
32
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; using static MyIO; using static MyUtil; public class E { public static void Main() => (new Solver()).Solve(); } public class Solver { p...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; using static MyIO; using static MyUtil; public class E { public static void Main() => (new Solver()).Solve(); } public class Solver { p...
[["-", 0, 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], ["-", 0, 57, 64, 196, 0, 1, 0, 213, 63, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["-",...
8
658
17
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; using static AtCoder.Tool; namespace AtCoder { class AC { const int MOD = 1000000007; const int INF = int.MaxValue / 2; const long SINF = long.MaxValue / 2; ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; using static AtCoder.Tool; namespace AtCoder { class AC { const int MOD = 1000000007; const int INF = int.MaxValue / 2; const long SINF = long.MaxValue / 2; ...
[["+", 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
601
17
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static void Main() { var (N, u, v) = ReadStream<int, int, int>(); u--; v--; var G = new Graph<int>(N); for (int i = 0; i < N - 1; i++) { var ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static void Main() { var (N, u, v) = ReadStream<int, int, int>(); u--; v--; var G = new Graph<int>(N); for (int i = 0; i < N - 1; i++) { var ...
[["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 72], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["-", 64, 1, 0, 11, 12, 16, 31, 16, 17, 85], ["-", 64, 1, 0, 11, 12, 16, 31, 16, 12, 203], ["-", 0, 57, 64, 1, 0, 11, 12, 16, 17, 48],...
8
1,277
8
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 ABC148F { static public int numberOfRandom...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ABC148F { static public int numberOfRandom...
[["-", 12, 218, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 204, 205, 22], ["+", 0, 57, 15, 16, 12, 204, 206, 207, 0, 70], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 12, 204, 206, 207, 0, 73], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 204,...
8
1,206
10
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace AtCoder { public static class Ex { public static List<string> FastSort(this List<string> s) { s.Sort(StringComparer.OrdinalIgnoreCase); return s.ToList(); } public static string yesno(this bool b) { return b ? "...
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace AtCoder { public static class Ex { public static List<string> FastSort(this List<string> s) { s.Sort(StringComparer.OrdinalIgnoreCase); return s.ToList(); } public static string yesno(this bool b) { return b ? "...
[["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 12, 16, 31, 204, 206...
8
2,081
15
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, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 204, 205, 22], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 57, 64, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["-", 0, 57, 15, 16, 31, 16, 31, 204, ...
8
2,501
18
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static Asakatsu20200317E.Input; using static System.Math; namespace Asakatsu20200317E { class Input { private static String String() => Console.ReadLine(); private static IEnumerable<string> Split() => String().Split(' '); ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static Asakatsu20200317E.Input; using static System.Math; namespace Asakatsu20200317E { class Input { private static String String() => Console.ReadLine(); private static IEnumerable<string> Split() => String().Split(' '); ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 204, 205, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 204, 2...
8
1,440
27
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static long[] distanceMemos = new long[2]; //キューから捨てた最短距離と頂点番号 static void Main() { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int u = in...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static long[] distanceMemos = new long[2]; //キューから捨てた最短距離と頂点番号 static void Main() { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int u = in...
[["+", 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, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["+", 64, 196, 0, 57, 15, 16, 12, 23, ...
8
1,471
16
using System; using System.Collections.Generic; using System.Linq; namespace BlackJack { class Program { static void Main(string[] args) { var inputNums = Console.ReadLine(); if (Convert.ToInt32(inputNums[0]) + Convert.ToInt32(inputNums[1]) + Convert.ToInt32(inputNums[2]) >= 22) { C...
using System; using System.Collections.Generic; using System.Linq; namespace BlackJack { class Program { static void Main(string[] args) { var inputNums = Console.ReadLine().Split(); if (int.Parse(inputNums[0]) + int.Parse(inputNums[1]) + int.Parse(inputNums[2]) >= 22) { Console.Wri...
[["+", 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, 0, 25], ["-", 31, 16, 31, 16, 31, 213, 63, 214, 205, 22], ["+", 31, 16, 31, 16, 31, 213, 63, 214, 205, 199], ["-", 31, 16, 31, 16, 31, 213, 63...
8
100
16
using System; using System.Collections.Generic; // using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; private static long max = 999999999999; static void Main(string[] args) { var n = Read...
using System; using System.Collections.Generic; // using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; private static long max = 999999999999; static void Main(string[] args) { var n = Read...
[["+", 0, 7, 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, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 0, 7, 8, 1...
8
1,282
20
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); string[] S = Console.ReadLine().Split(); long[] A = new long[N]; for (long i = 0; i < N; i++) A[i] = long.Parse(S[i]); long a = 0, b = 0, c = 0...
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); string[] S = Console.ReadLine().Split(); long[] A = new long[N]; for (long i = 0; i < N; i++) A[i] = long.Parse(S[i]); long a = 0, b = 0, c = 0...
[["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 24], ["+", 75, 57, 75, 57, 15, 16, 31, 204, 205, 22], ["+", 75, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 75, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 75, 57, 75, 57, 15, ...
8
227
14
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { input_iter = LazyLoadAllLines(); //------------------------------------------------// // var x = Read<long>(); // var m = Read<long>(); // var x = Read<long>();...
using System; using System.Collections.Generic; using System.Linq; // 91 // 0 0 0 1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 6 6 6 7 7 7 8 8 8 9 9 9 10 10 10 11 11 11 // 12 12 12 13 13 13 14 14 14 15 15 15 16 16 16 17 17 17 18 18 18 19 19 19 20 20 // 20 21 21 21 22 22 22 23 23 23 24 24 24 25 25 25 26 26 26 27 27 27 28 28 28 29 // ...
[["+", 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, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 33], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0,...
8
1,762
18
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { const long MOD = 1000000007; static void Main(string[] args) { var cin = new Scanner2(); int n = cin.Int...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { const long MOD = 1000000007; static void Main(string[] args) { var cin = new Scanner2(); int n = cin.Int...
[["+", 75, 57, 75, 57, 75, 57, 75, 57, 0, 121], ["+", 75, 57, 75, 57, 75, 57, 75, 57, 0, 24], ["+", 75, 57, 75, 57, 75, 57, 15, 16, 31, 22], ["+", 75, 57, 75, 57, 75, 57, 15, 16, 17, 60], ["+", 75, 57, 75, 57, 75, 57, 15, 16, 12, 22], ["+", 75, 57, 75, 57, 75, 57, 75, 57, 0, 25], ["+", 75, 57, 75, 57, 64, 196, 0, 1, 0,...
8
695
18
using System; using System.Collections.Generic; using System.Linq; using static Constans; using static Common; public static class Common { public static void CountAdd<T>(this Dictionary<T, ModInt> dict, T key, ModInt v) { if (dict.ContainsKey(key)) { dict[key] += v; }...
using System; using System.Collections.Generic; using System.Linq; using static Constans; using static Common; public static class Common { public static void CountAdd<T>(this Dictionary<T, ModInt> dict, T key, ModInt v) { if (dict.ContainsKey(key)) { dict[key] += v; }...
[["+", 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
746
19
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass { static void Main() { var T = ReadLine().Split().Select(long.Parse).ToArray(); var A = ReadLine().Split().Select(_ => long.Parse(_)).ToArray(); var B = ReadLine().Spl...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass { static void Main() { var T = ReadLine().Split().Select(long.Parse).ToArray(); var A = ReadLine().Split().Select(_ => long.Parse(_)).ToArray(); var B = ReadLine().Spl...
[["-", 15, 16, 31, 23, 0, 16, 31, 16, 17, 19], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 17, 20], ["+", 31, 23, 0, 16, 12, 16, 31, 16, 31, 22], ["+", 31, 23, 0, 16, 12, 16, 31, 16, 17, 72], ["-", 15, 16, 31, 23, 0, 16, 12, 16, 17, 20], ["+", 15, 16, 31, 23, 0, 16, 12, 16, 17, 19], ["-", 15, 16, 12, 23, 0, 16, 31, 16, 17, 20...
8
242
13
using System; using CompLib.Util; public class Program { private long T1, T2; private long A1, A2; private long B1, B2; public void Solve() { var sc = new Scanner(); T1 = sc.NextLong(); T2 = sc.NextLong(); A1 = sc.NextLong(); A2 = sc.NextLong(); B1 = sc.NextLong(); B2 = sc.NextLong...
using System; using CompLib.Util; public class Program { private long T1, T2; private long A1, A2; private long B1, B2; public void Solve() { var sc = new Scanner(); T1 = sc.NextLong(); T2 = sc.NextLong(); A1 = sc.NextLong(); A2 = sc.NextLong(); B1 = sc.NextLong(); B2 = sc.NextLong...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 212, 0, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 212, 0, 16, 31, 16, 31, 16, 17, 85], ["-", 0, 212, 0, 16, 31, 16, 31, 16, 12, 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, 17, 7...
8
630
30
using System; using System.Text.RegularExpressions; public class Program { private long T1, T2; private long A1, A2; private long B1, B2; public void Solve() { var sc = new Scanner(); T1 = sc.NextInt(); T2 = sc.NextInt(); A1 = sc.NextLong() * T1; A2 = sc.NextLong() * T2; B1 = sc.NextLo...
using System; using System.Text.RegularExpressions; public class Program { private long T1, T2; private long A1, A2; private long B1, B2; public void Solve() { var sc = new Scanner(); T1 = sc.NextInt(); T2 = sc.NextInt(); A1 = sc.NextLong() * T1; A2 = sc.NextLong() * T2; B1 = sc.NextLo...
[["-", 8, 201, 0, 195, 8, 196, 0, 196, 0, 45], ["+", 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, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0...
8
703
26
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace 三井住友信託銀行2019F { class Program { static void Main(string[] args) { var T1 = RLong; var T2 = RLong; var A1 = RLong; var A2 = RLong; var B1 = RLon...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace 三井住友信託銀行2019F { class Program { static void Main(string[] args) { var T1 = RLong; var T2 = RLong; var A1 = RLong; var A2 = RLong; var B1 = RLon...
[["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 16, 31, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 16, 31, 16, 31, 22],...
8
1,266
23
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.CompilerServices; using ll = System.Int64; public class Contest { static void Swap1<T>(ref T a, ref T b) { T t = a; a = b; b = t; } static void Swap2<T>(ref T a, ref T b) where T : ICompa...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.CompilerServices; using ll = System.Int64; public class Contest { static void Swap1<T>(ref T a, ref T b) { T t = a; a = b; b = t; } static void Swap2<T>(ref T a, ref T b) where T : ICompa...
[["+", 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, 18], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 64, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, ...
8
3,078
12
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
[["-", 0, 57, 15, 16, 31, 23, 0, 16, 17, 98], ["-", 31, 23, 0, 16, 12, 16, 31, 204, 205, 22], ["-", 0, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["-", 15, 16, 31, 23, 0, 16, 12, 16, 17, 47], ["-", 15, 16, 31, 23, 0, 16, 12, 16...
8
3,414
15
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); long T1 = long.Parse(str[0]); long T2 = long.Parse(str[1]); string[] str2 = Console.ReadLine().Split(); long A1 = long.Parse(str2[0]); long A2 = long.Par...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); long T1 = long.Parse(str[0]); long T2 = long.Parse(str[1]); string[] str2 = Console.ReadLine().Split(); long A1 = long.Parse(str2[0]); long A2 = long.Par...
[["+", 0, 57, 75, 57, 75, 196, 0, 57, 0, 121], ["+", 0, 57, 75, 57, 75, 196, 0, 57, 0, 24], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 75, 57, 75, 196, 0, 57, 15, 16, 17, 60], ["+", 75, 57, 75, 196, 0, 57, 15, 16, 1...
8
320
14
using System; using System.Collections; using System.Collections.Generic; using static Exter; using System.Linq; using System.Numerics; #if DEBUG #else using console = System.Console; #endif public class App { public static void Main(string[] args) { cout = 6 - Array.IndexOf(new string[] { "MON", "TUE", "WED", "...
using System; using System.Collections; using System.Collections.Generic; using static Exter; using System.Linq; using System.Numerics; #if DEBUG #else using console = System.Console; #endif public class App { public static void Main(string[] args) { cout = 7 - Array.IndexOf(new string[] { "SUN", "MON", "TUE", "...
[["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 203], ["+", 0, 28, 0, 227, 0, 229, 0, 5, 0, 62], ["+", 0, 28, 0, 227, 0, 229, 0, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 227, 0, 229, 0, 21], ["-", 0, 28, 0, 227, 0, 229, 0, 5, 0, 62], ["-", 3, 4, 0, 28, 0, 227, 0, 229, 0, 21], ["-", 0, 28, ...
8
1,577
10
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication5 { class Program { static void Main(string[] args) { String s = Console.ReadLine(); List<string> comp = new List<string> { "MON", "TUE", "WED", "THU", "FRI...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication5 { class Program { static void Main(string[] args) { String s = Console.ReadLine(); List<string> comp = new List<string> { "SUN", "MON", "TUE", "WED", "THU...
[["+", 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], ["-", 0, 212, 0, 230, 10, 229, 0, 5, 0, 62], ["-", 0, 200, 0, 212, 0, 230, 10, 229, 0, 21], ["-", 0, 212, 0, 230, 10, 229, 0, 5, 0, 222], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 20...
8
135
10
using System; namespace A { class A { static void Main() { string day = Console.ReadLine(); switch (day) { case "SUN": Console.WriteLine("MON"); break; case "MON": Console.WriteLine("TUE"); break; case "TUE": Console.WriteLine("WED"); break; case "WED": ...
using System; namespace A { class A { static void Main() { string day = Console.ReadLine(); switch (day) { case "SUN": Console.WriteLine("7"); break; case "MON": Console.WriteLine("6"); break; case "TUE": Console.WriteLine("5"); break; case "WED": Cons...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
158
16
using System; using System.Collections.Generic; using System.Linq; namespace ProgramingStudying2 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var s = Console.ReadLine(); var ans = ""; for (int i = 0; i < s.Length; i++) { Console.WriteLine(s[i] + n)...
using System; using System.Collections.Generic; using System.Linq; namespace ProgramingStudying2 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var s = Console.ReadLine(); var ans = ""; for (int i = 0; i < s.Length; i++) { ans += (char)((s[i] + n - 6...
[["-", 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], ["-", 3, 4, 0, 28, 0, 16, 31, 204, 205, 22], ["-", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 22]...
8
122
12
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp11 { class Program { static void Main(string[] args) { int N = Convert.ToInt32(Console.ReadLine()); string S = Console.ReadLine(); char[] A = new char[S.Length]; in...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp11 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); char[] A = new char[S.Length]; int num;...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 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, 2...
8
156
2
using System; using System.Collections.Generic; using System.Text; public class Program { private static void Main() { int n = int.Parse(Console.ReadLine()); byte[] str = Encoding.ASCII.GetBytes(Console.ReadLine()); for (int i = 0; i < str.Length; i++) { if (str[i] + n > Encoding.ASCII.GetBytes("Z...
using System; using System.Collections.Generic; using System.Text; public class Program { private static void Main() { int n = int.Parse(Console.ReadLine()); byte[] str = Encoding.ASCII.GetBytes(Console.ReadLine()); for (int i = 0; i < str.Length; i++) { if (str[i] + n > Encoding.ASCII.GetBytes("Z...
[["-", 12, 204, 205, 213, 63, 214, 205, 214, 205, 22], ["-", 12, 204, 205, 213, 63, 214, 205, 214, 0, 131], ["-", 12, 204, 205, 213, 63, 214, 205, 214, 141, 22], ["-", 0, 16, 12, 204, 205, 213, 63, 214, 0, 131], ["-", 0, 16, 12, 204, 205, 213, 63, 214, 141, 22], ["-", 0, 16, 12, 204, 205, 213, 3, 4, 0, 24], ["-", 205, ...
8
166
14
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var waaaa = new waaaa(); waaaa.Solve(); } } public class waaaa { const int MOD = 1000000007; const int INF = 1 << 20; const long INFL ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var waaaa = new waaaa(); waaaa.Solve(); } } public class waaaa { const int MOD = 1000000007; const int INF = 1 << 20; const long INFL ...
[["-", 12, 230, 3, 4, 0, 28, 0, 223, 0, 68], ["+", 12, 230, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 12, 230, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+...
8
1,098
13
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Swap<T>(ref T a, ref T b) { T temp = a; a = b; b = temp; } static void Main() { ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Swap<T>(ref T a, ref T b) { T temp = a; a = b; b = temp; } static void Main() { ...
[["-", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["-", 0...
8
1,603
22
using System; using System.Linq; using System.Collections.Generic; namespace lineAralgebra { class Edge { public int id; public int to; public Edge(int to, int id) { this.id = id; this.to = to; } } class Program { public static Dictionary<int, List<Edge>> graph = new Dictionary<int, List<Edge>...
using System; using System.Linq; using System.Collections.Generic; namespace lineAralgebra { class Edge { public int id; public int to; public Edge(int to, int id) { this.id = id; this.to = to; } } class Program { public static Dictionary<int, List<Edge>> graph = new Dictionary<int, List<Edge>...
[["-", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["-", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["-", 0, 1, 0, 213, 63, 214, 205, 214, 141, 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, 1, 0, 213, 3, 4, 0, 28, 0, 22...
8
446
9
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm {     class Program     { static int col; static List<Edge>[] graph;         static void Main(string[] args)         { var n = int.Parse(Console.ReadLine()); graph = Enumerable.Repeat(0, n).Select(_ => new List<Edge>()...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm {     class Program     { static int col; static List<Edge>[] graph;         static void Main(string[] args)         { var n = int.Parse(Console.ReadLine()); graph = Enumerable.Repeat(0, n).Select(_ => new List<Edge>()...
[["-", 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], ["-", 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],...
8
392
25
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using static System.Console; using static System.Math; class Program { static List<Edge>[] g; static void Main() { SetOut( new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = false }); var N = int.P...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using static System.Console; using static System.Math; class Program { static List<Edge>[] g; static void Main() { SetOut( new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = false }); var N = int.P...
[["-", 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, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, ...
8
522
11
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication9 { class Program { static void Main(string[] args) { int a, b, c; string[] str = Console.ReadLine().Split(' '); a = int.Parse(str[0]); b = int.Parse(str[1])...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication9 { class Program { static void Main(string[] args) { int a, b, c; string[] str = Console.ReadLine().Split(' '); a = int.Parse(str[0]); b = int.Parse(str[1])...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 57, 64, 1, 0, 213, 3, 4, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 1, 0, 35], ["+", 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
145
8
using System; public class Program { public static void Main() { string[] input = Console.ReadLine().Split(' '); var a = int.Parse(input[0]); var b = int.Parse(input[1]); var c = int.Parse(input[2]); var s = a + b + c; Console.WriteLine(s); if (s >= 22) { Console.WriteLine("bust"); ...
using System; public class Program { public static void Main() { string[] input = Console.ReadLine().Split(' '); var a = int.Parse(input[0]); var b = int.Parse(input[1]); var c = int.Parse(input[2]); var s = a + b + c; // Console.WriteLine(s); if (s >= 22) { Console.WriteLine("bust")...
[["-", 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, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
124
7
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder_with_csharp { using cl = Console; class Program { static void Main(string[] args) { var ap = new ArgsProcess(); var arg = ap.ArgsInt; var sum = arg.Sum(); cl.WriteL...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder_with_csharp { using cl = Console; class Program { static void Main(string[] args) { var ap = new ArgsProcess(); var arg = ap.ArgsInt; var sum = arg.Sum(); var str = ...
[["-", 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, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
289
7
using System; using System.Collections.Generic; using System.Linq; class main { public static void Main(string[] args) { string s = Console.ReadLine(); char[] former = new char[s.Length / 2]; char[] latter = new char[s.Length / 2]; int cnt = 0; for (int i = 0; i < former.Length; i++) { for...
using System; using System.Collections.Generic; using System.Linq; class main { public static void Main(string[] args) { string s = Console.ReadLine(); char[] former = new char[s.Length / 2]; char[] latter = new char[s.Length / 2]; int cnt = 0; for (int i = 0; i < former.Length; i++) { for...
[["-", 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, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], [...
8
161
20
using System; using System.Linq; using System.Threading; namespace ConsoleApp19 { class Program { static void Main(string[] args) { string s = Console.ReadLine(); string r = string.Concat(s.Reverse()); int count = 0; for (int i = 0; i < s.Length; i++) { for (int k = 0; k < r.Length; k++) { ...
using System; using System.Linq; using System.Threading; namespace ConsoleApp19 { class Program { static void Main(string[] args) { string s = Console.ReadLine(); string r = string.Concat(s.Reverse()); int count = 0; for (int i = 0; i < s.Length; i++) { if (s[i] != r[i]) { count++; ...
[["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["-", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 35], ["-", 0, 7...
8
120
24
using System; using System.Collections.Generic; using System.Text; namespace Kyoupro { class Plactice { static void Main() { int count = 0; string S = Console.ReadLine(); int len = S.Length; for (int i = 0; i <= len / 2; i++) { if (S[i] != S[len - 1]) { count++; } len--; ...
using System; using System.Collections.Generic; using System.Text; namespace Kyoupro { class Plactice { static void Main() { int count = 0; string S = Console.ReadLine(); int len = S.Length; int Solidlen = len; for (int i = 0; i < Solidlen / 2; i++) { if (S[i] != S[len - 1]) { coun...
[["+", 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, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 31, ...
8
98
9
using System; using System.Linq; namespace ConsoleApp6 { class Program { static void Main(string[] args) { var source = Console.ReadLine(); var hugCount = 0; var x = (int)Math.Floor((decimal)(source.Length / 2)); for (int i = 0; i <= x; i++) { if (source[i] != source[source.Length - 1 - i]) { ...
using System; using System.Diagnostics; using System.Linq; namespace ConsoleApp6 { class Program { static void Main(string[] args) { var source = Console.ReadLine(); var hugCount = 0; var x = (int)Math.Floor((decimal)(source.Length / 2)); for (int i = 0; i < x; i++) { if (source[i] != source[s...
[["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["+", 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], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, ...
8
109
14
using System; using System.Linq; using System.Collections.Generic; using SyrupBeans.Competitive.IO; using E = System.Linq.Enumerable; public class Program { public static void Main() { var n = InputParser.TakeInt32(); var witness = new int[n + 1]; var mention = new int[n + 1]; for (int i = 1; i < w...
using System; using System.Linq; using System.Collections.Generic; using SyrupBeans.Competitive.IO; using E = System.Linq.Enumerable; public class Program { public static void Main() { var n = InputParser.TakeInt32(); var witness = new int[n + 1]; var mention = new int[n + 1]; for (int i = 1; i < w...
[["-", 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, 241, 0, 92], ["-", 0, 200, 0, 212, 0, 241, 0, 204, 205, 22], ["-", 0, 212, 0, 241, 0, 204, 206, 207, 0, 70], ["-", 0, 204, 206, 207, 0, 28, 0, 1...
8
723
32
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; using static AtCoder.Tool; namespace AtCoder { class AC { const int MOD = 1000000007; const int INF = int.MaxValue / 2; const long SINF = long.MaxValue / 2; ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; using static AtCoder.Tool; namespace AtCoder { class AC { const int MOD = 1000000007; const int INF = int.MaxValue / 2; const long SINF = long.MaxValue / 2; ...
[["+", 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
2,211
11
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...
[["+", 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, 198, 0, 200, 0, 212, 0, 230, 39, 22], ["+", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["+", 0, 212, 0, 230, 3, 4, 0, 28, 0, 2...
8
1,417
13
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; namespace V { partial class Solver { public void Solve() { // var n = Read; Write(SolveLong()); // YesNo(SolveBool()); } public long SolveLong() { var n = Read; var a = ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; namespace V { partial class Solver { public void Solve() { // var n = Read; Write(SolveLong()); // YesNo(SolveBool()); } public long SolveLong() { var n = Read; var r = ...
[["+", 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, 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], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35...
8
10,623
26
using System; public class Program { private int N; private long[] A; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); A = sc.LongArray(); // [i+1,N)のxor // [0,i)で j桁目が1の奴の個数の和 cnt[j,i] long[][] cnt = new long [60][]; for (int i = 0; i < 60; i++) { cnt[i] = new...
using System; public class Program { private int N; private long[] A; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); A = sc.LongArray(); // [i+1,N)のxor // [0,i)で j桁目が1の奴の個数の和 cnt[j,i] long[][] cnt = new long [60][]; for (int i = 0; i < 60; i++) { cnt[i] = new...
[["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 22], ["+", 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, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 22], ...
8
1,091
9
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.D { 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.D { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var N = ReadLong(...
[["-", 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, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 22], ...
8
759
12
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; static void Main(string[] args) { var n = Read().Int(); var r = ReadSplit(); var l =...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; static void Main(string[] args) { // var N = Read().ToInt64(); // var l = new List<long>...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 0, 11, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["...
8
538
17
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
[["-", 0, 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], ["-", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 17, 72], ["-", 31, 23, 0, 16, 12, 16, 31, 23, 0, 24], ["-...
8
260
24
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var A = sc.ReadLongArray(N); ModInt ans = 0; for (int k = 0; k <= 60; k++) { long x0 = 0; long x1 = 0; for (int i = 0; i < N; i++) { var...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { checked { var N = sc.ReadInt(); var A = sc.ReadLongArray(N); ModInt ans = 0; for (int k = 0; k <= 60; k++) { ModInt x0 = 0; ModInt x1 = 0; for (int ...
[["+", 8, 201, 0, 195, 8, 196, 0, 287, 0, 292], ["+", 0, 195, 8, 196, 0, 287, 0, 196, 0, 45], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 22], ["-", 8, 196, 0, 57, 64, 1, 0, 223, 0, 29], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 12, 203], ["...
8
1,763
22
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { // modをかける場所がわからない int N = int.Parse(Console.ReadLine()); long[] A = new long[N]; string[] str = Console.ReadLine().Split(); for (var i = 0; i < N; i++) { A[i] = long.Parse(str[i]); } l...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { // modをかける場所がわからない int N = int.Parse(Console.ReadLine()); long[] A = new long[N]; string[] str = Console.ReadLine().Split(); for (var i = 0; i < N; i++) { A[i] = long.Parse(str[i]); } l...
[["+", 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, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
237
7
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { #if DEBUG // MyDebugger.MakeTestCase("../TextFile2.txt"); return; MyDebugger.Test(process, "../TextFile1.txt"); #else object r...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { #if DEBUG // MyDebugger.MakeTestCase("../TextFile2.txt"); return; MyDebugger.Test(process, "../TextFile1.txt"); #else object r...
[["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 8, 196, 0, 1, 0, 11, 12, 23, 0, 24], ["+", 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, 1, 0, 11, 12, 23, 0, 16, 17, 151], ["+"...
8
345
33
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var wrong_answer = new wrong_answer(); wrong_answer.Solve(); } } public class wrong_answer { const int MOD = 1000000007; const int INF =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var wrong_answer = new wrong_answer(); wrong_answer.Solve(); } } public class wrong_answer { const int MOD = 1000000007; const int INF =...
[["+", 0, 11, 12, 23, 0, 16, 31, 23, 0, 24], ["-", 12, 16, 31, 16, 31, 16, 31, 23, 0, 25], ["-", 0, 11, 12, 16, 31, 16, 31, 16, 17, 109], ["-", 0, 11, 12, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 0, 16, 12, 23, 0, 16, 31, 23, 0, 25], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 17, 109], ["...
8
873
10
using System; using System.Collections.Generic; using System.Linq; namespace ABC146_E___Rem_of_Sum_is_Num { class Program { static void Main(string[] args) { var NK = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = NK[0]; var K = NK[1]; var A = Array.ConvertAll(Console.ReadLine()....
using System; using System.Collections.Generic; using System.Linq; namespace ABC146_E___Rem_of_Sum_is_Num { class Program { static void Main(string[] args) { Console.WriteLine(solver()); } static long solver() { var NK = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = NK[0]; var K =...
[["+", 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, 213, 63, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["+", 8, 19...
8
410
31
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; static class CodeJam { static int Mod(long n, int K) { return (int)(((n % K) + K) % K); } static long Solve(int N, int K, int[] A) { long sum = 0; var cnts = new Di...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; static class CodeJam { static int Mod(long n, int K) { return (int)(((n % K) + K) % K); } static long Solve(int N, int K, int[] A) { if (K == 1) { return 0; }...
[["+", 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
375
11
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; static void Main() { ...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; static void Main() { ...
[["+", 0, 28, 0, 41, 15, 16, 31, 204, 205, 22], ["+", 0, 41, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 41, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101...
8
1,067
9
using System; using System.Collections.Generic; using System.Linq; public static class Common { public static void Increment<T>(this Dictionary<T, long> dict, T key) { if (dict.ContainsKey(key)) { dict[key]++; } else { dict[key] = 1; } } public static void Decrement<T>(this Dictionary<T,...
using System; using System.Collections.Generic; using System.Linq; public static class Common { public static void Increment<T>(this Dictionary<T, long> dict, T key) { if (dict.ContainsKey(key)) { dict[key]++; } else { dict[key] = 1; } } public static void Decrement<T>(this Dictionary<T,...
[["+", 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, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 213, 3, 4, 0, 24], ["+", 0, 57, 15, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 57, 15, 213, 3, 4, 0, 25], ...
8
409
22
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using MethodImplAttribute = System.Runtime.Compi...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using MethodImplAttribute = System.Runtime.Compi...
[["+", 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
897
17
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { struct mint : IEquatable<mint> { // static uint mod = 998244353; static uint mod = 1000000007; uint _v; public mint(long v) : this((uint)(v % mod + mod)) {} private mint(uint v) { _v = v < mod ?...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { struct mint : IEquatable<mint> { // static uint mod = 998244353; static uint mod = 1000000007; uint _v; public mint(long v) : this((uint)(v % mod + mod)) {} private mint(uint v) { _v = v < mod ?...
[["+", 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, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 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, 19...
8
3,604
9
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long x = sc.NextLong(); long y = sc.NextLong(); long answer = 0; answer += (4 - x) * 100000; answer += (4 - y) * 100000; if (x == 1 ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long x = sc.NextLong(); long y = sc.NextLong(); long answer = 0; answer += Math.Max(0, (4 - x) * 100000); answer += Math.Max(0, (4 - y) ...
[["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 0, ...
8
400
14
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class Solver { private readonly IInputReader _inputReader; private readonly IOutputWriter _outputWriter; public Solver(IInputReader inputReader, IOutputWriter outputWriter) { _inputReader = inputReader; _output...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class Solver { private readonly IInputReader _inputReader; private readonly IOutputWriter _outputWriter; public Solver(IInputReader inputReader, IOutputWriter outputWriter) { _inputReader = inputReader; _output...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["-", 75, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 75, 57, 64, 196, 0, 1, 0, 11, 12, 203]]
8
1,005
14
using System; class ddccfinals { public static void Main() { String[] str = Console.ReadLine().Split(' '); int code = int.Parse(str[0]); int mec = int.Parse(str[1]); int result = 0; if (code > 3) { code = 0; } if (mec > 3) { mec = 0; } result = code * 100000 + mec * 100...
using System; class ddccfinals { public static void Main() { String[] str = Console.ReadLine().Split(' '); int code = int.Parse(str[0]); int mec = int.Parse(str[1]); int result = 0; if (code > 3) { code = 4; } if (mec > 3) { mec = 4; } result = (4 - code) * 100000 + (4 ...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 11, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 31, 203], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 11, 12, 16, 12, 16, 31, 23, 0, 24], [...
8
121
12
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var A = sc.ReadLongArray(N); var sum = new long[N]; sum[0] = A[0]; var asum = A.Sum(); for (int i = 1; i < N; i++) { sum[i] = sum[i - 1] + A[i]; ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var A = sc.ReadLongArray(N); var sum = new long[N]; sum[0] = A[0]; var asum = A.Sum(); for (int i = 1; i < N; i++) { sum[i] = sum[i - 1] + A[i]; ...
[["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 95], ["+", 0, 57, 64, 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, 32], ["+", 75, 196, 0, 1, 0, 11, 12, 214, 0, 131], ["+", 75, 196, 0, 1, 0, 11, 12, 214, 141, 22], ["+", 64, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["...
8
1,222
11
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...
[["-", 75, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["-", 75, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["-", 0, 57, 75, 57, 64, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 31, 22], ["-", 0, ...
8
912
29
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var waaaa = new waaaa(); waaaa.Solve(); } } public class waaaa { const int MOD = 1000000007; const long INF = 1 << 63; const int MOD2 ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var waaaa = new waaaa(); waaaa.Solve(); } } public class waaaa { const int MOD = 1000000007; const long INF = 1 << 62; const int MOD2 ...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 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, ...
8
900
17
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, ...
8
3,163
41
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; using static MyIO; using static MyUtil; public class D { public static void Main() => (new Solver()).Solve(); } public class Solver { p...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; using static MyIO; using static MyUtil; public class D { public static void Main() => (new Solver()).Solve(); } public class Solver { p...
[["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 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, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], [...
8
590
37
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC145A { class Program { static void Main(string[] args) { int r, s; var word = Console.ReadLine().Split(' '); r = int.Parse(word[0]); s = int.Parse(word[1]); s = r * r;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC145A { class Program { static void Main(string[] args) { int r, s; var word = Console.ReadLine().Split(' '); r = int.Parse(word[0]); s = r * r; Console.WriteLine(s); ...
[["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["-", 12, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]...
8
110
12
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, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 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, 16, 17, 109], [...
8
562
29
using System; using System.Collections.Generic; // using System.Linq; using System.Diagnostics; class Program { static void Main(string[] args) { const long MOD = 1000000007; var sc = new Scanner(); long n = sc.nextLong(); var a = new long[n]; long a_max = 0; for (int i = 0; i < n; i++) { ...
using System; using System.Collections.Generic; // using System.Linq; using System.Diagnostics; class Program { static void Main(string[] args) { const long MOD = 1000000007; var sc = new Scanner(); int n = sc.nextInt(); var a = new long[n]; long a_max = 0; for (int i = 0; i < n; i++) { ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, ...
8
662
26
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { const long MOD = 1000000007; static void Main(string[] args) { var cin = new Scanner2(); int n = cin.Int...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { const long MOD = 1000000007; static void Main(string[] args) { var cin = new Scanner2...
[["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["+", 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], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57...
8
646
29
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 ABC147D { static public int numberOfRandom...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ABC147D { static public int numberOfRandom...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["+", 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, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, ...
8
1,746
15
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassLibrary1 { public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } public class Class1 { static Dictionary<Tuple<long, long>, long> dic...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassLibrary1 { public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } public class Class1 { static Dictionary<Tuple<long, long>, long> dic...
[["+", 12, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 31, 23, 0, 25], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 109], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 0,...
8
535
10
using System; namespace D { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var A = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var result = 0L; long MOD = 1000000007; for (int d = 0; d < 60; d++) { var count = 0L; for (int i ...
using System; namespace D { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var A = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var result = 0L; long MOD = 1000000007; for (int d = 0; d < 60; d++) { var count = 0L; for (int i ...
[["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 7, 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, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ...
8
164
11
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using static Template; using static System.Console; using static System.Convert; using static System.Math; using Pi = Pair<int, int>; class Solver { Scanner sc = new Scanner()...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using static Template; using static System.Console; using static System.Convert; using static System.Math; using Pi = Pair<int, int>; class Solver { Scanner sc = new Scanner()...
[["+", 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, 23, 0, 24], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 31, 203], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 151], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25]...
8
1,716
23
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using MethodImplAttribute = System.Runtime.Compi...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using MethodImplAttribute = System.Runtime.Compi...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ...
8
1,227
12
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var h = ni(); var w = ni(); var a = new int[h, w]; var b = new int[h, w]; ...
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var h = ni(); var w = ni(); var a = new int[h, w]; var b = new int[h, w]; ...
[["-", 206, 207, 0, 28, 0, 213, 63, 214, 205, 22], ["-", 206, 207, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 206, 207, 0, 28, 0, 213, 63, 214, 141, 22], ["-", 206, 207, 0, 28, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 31, 204, 205, 22], ["-", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 16, 31, 204, 206,...
8
1,332
17
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 0, 213, 63, 214, 205, 204, 205, 204, 205, 22], ["+", 63, 214, 205, 204, 205, 204, 206, 207, 0, 70]...
8
5,026
17
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 { const int T = 25600; const int X = 60; const int Y = T / X + 1; public void Solve() { long[][...
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 { const int T = 80 * 81; const int X = 60; const int Y = T / X + 1; public void Solve() { long[...
[["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 22]]
8
969
12
using System; using System.Collections.Generic; using System.Linq; class F { struct LR { public long L, R; } static void Main() { var h = Console.ReadLine().Split().Select(long.Parse).ToArray(); long n = h[0], x = h[1], d = h[2]; if (d == 0) { Console.WriteLine(x == 0 ? 1 : n + 1); ...
using System; using System.Collections.Generic; using System.Linq; class F { struct LR { public long L, R; } static void Main() { var h = Console.ReadLine().Split().Select(long.Parse).ToArray(); long n = h[0], x = h[1], d = h[2]; if (d == 0) { Console.WriteLine(x == 0 ? 1 : n + 1); ...
[["-", 0, 212, 0, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 212, 0, 16, 31, 16, 31, 16, 17, 48], ["-", 0, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["-", 0, 16, 31, 16, 31, 16, 12, 23, 0, 25]...
8
362
42