buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
using System; using System.Collections.Generic; using System.Linq; 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); ...
[["-", 8, 196, 0, 210, 12, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 210, 12, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 210, 12, 213, 3, 4, 0, 24], ["-", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["-", 12, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["-", 3, 4, 0, 28, 0, 218, 8, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 218, 8, 214, 0,...
8
369
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var N = ni(); var X = ni(); var D = ni(); cout.WriteLine(...
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var N = ni(); var X = ni(); var D = ni(); cout.WriteLine(...
[["-", 0, 235, 8, 201, 0, 195, 0, 251, 0, 261], ["+", 0, 235, 8, 201, 0, 195, 0, 251, 0, 305], ["+", 0, 235, 8, 201, 0, 195, 0, 251, 0, 115], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 8, 196, 0, 57, 64, 37, 0, 16, 31, 22], ["-", 8, 196, 0, 57, 64, 37, 0, 16, 17, 72], ["-", 8, 196, 0, 57, 64, 37, 0, 16, 12, 20...
8
1,610
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Text; using System.Diagnostics; using static util; using P = pair<int, int>; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) {...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Text; using System.Diagnostics; using static util; using P = pair<int, int>; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) {...
[["+", 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, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25]]
8
2,227
using static System.Console; class Program { static void Main(string[] args) { string[] input = ReadLine().Split(' '); string[] input2 = ReadLine().Split(' '); int M1 = int.Parse(input[0]); int D1 = int.Parse(input[1]); int M2 = int.Parse(input2[0]); int D2 = int.Parse(input2[1]); if (M1 ...
using static System.Console; class Program { static void Main(string[] args) { string[] input = ReadLine().Split(' '); string[] input2 = ReadLine().Split(' '); int M1 = int.Parse(input[0]); int D1 = int.Parse(input[1]); int M2 = int.Parse(input2[0]); int D2 = int.Parse(input2[1]); if (D2 ...
[["-", 15, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 60], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 98], ["-", 31, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["-", 31, 16, 31, 16, 12, 16, 31, 16, 17, 33], ["-", 31, 16, 31, 16, 12, 16, 31, 16, ...
8
150
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long n = sc.NextLong(); long answer = n * 100 / 108; if (answer * 108 / 100 != n) { Console.WriteLine(":("); return; } Con...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long n = sc.NextLong(); for (long i = 0; i <= n; i++) { if (i * 108 / 100 == n) { Console.WriteLine(i); return; } } ...
[["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 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], [...
8
382
using System; namespace ChokudaiScanner { class MainClass { static void Main() { Scanner cin = new Scanner(); double b, c = cin.NextDouble(); b = c; while (!(b == 0)) { b--; if (Math.Floor(b * 1.08) == c) { Console.WriteLine(b); break; } if (b == 0) { ...
using System; namespace ChokudaiScanner { class MainClass { static void Main() { Scanner cin = new Scanner(); double b, c = cin.NextDouble(); b = Math.Ceiling(c / 1.08); if (Math.Floor(b * 1.08) == c) { Console.WriteLine(b); } else { Console.WriteLine(":("); } } } class Scanne...
[["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["-", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["-", 0, 195, 8, 196, 0, 52, 15, 241, 0, 111], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], [...
8
446
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) { var v = readarr[0]; for (int i = 0; i < 50000; i++) { ...
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) { var v = readarr[0]; for (int i = 0; i < 50000; i++) { ...
[["+", 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], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 0, 57,...
8
1,573
using System; class Program { static void Main(string[] args) { // while (true) //{ // 整数の入力 int N = int.Parse(Console.ReadLine()); if ((N + 1) / 13.5 - (N + 1 % 13.5) < 0.04) { Console.WriteLine(":("); return; } int X = N - (int)(N / 13.5); Console.WriteLine(X); //} ...
using System; class Program { static void Main(string[] args) { // 整数の入力 int N = int.Parse(Console.ReadLine()); if ((N + 1) / 13.5 - ((int)((N + 1) / 13.5)) < 0.04) { Console.WriteLine(":("); return; } int X = N - (int)(N / 13.5); Console.WriteLine(X); } }
[["+", 15, 16, 31, 16, 12, 23, 0, 74, 0, 24], ["+", 15, 16, 31, 16, 12, 23, 0, 74, 39, 199], ["+", 15, 16, 31, 16, 12, 23, 0, 74, 0, 25], ["+", 31, 16, 12, 23, 0, 74, 51, 23, 0, 24], ["+", 0, 74, 51, 23, 0, 16, 31, 23, 0, 24], ["-", 31, 16, 12, 23, 0, 16, 12, 16, 17, 109], ["+", 0, 74, 51, 23, 0, 16, 31, 23, 0, 25], ["...
8
90
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AtCoder { static class Program { static void Main() { //ここから int N = IO.ReadLineToInt(); string ans = ":("; for (int i = 1; i < N; i++) { if (Mat...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AtCoder { static class Program { static void Main() { //ここから int N = IO.ReadLineToInt(); string ans = ":("; for (int X = 1; X <= N; X++) { if (Ma...
[["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ...
8
655
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace sumitomo2019 { class Program { static void Main(string[] args) { // Console.SetIn(new StreamReader("input.txt")); solve_sumitomo2019B(); } public static void solve_sumitomo2019B() { i...
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace sumitomo2019 { class Program { static void Main(string[] args) { // Console.SetIn(new StreamReader("input.txt")); solve_sumitomo2019B(); } public static void solve_sumitomo2019B() { i...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["-", 0, 212, 0, 74, 51, 213, 63, 214, 205, 22], ["-", 0, 212, 0, 74, 51, 213, 63, 214...
8
195
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { bool ret = false; var s = Console.ReadLine(); int X = int.Parse(s); int min = (int)((X / 1.1)); for...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { bool ret = false; var s = Console.ReadLine(); int X = int.Parse(s); int min = (int)((X / 1.1)); for...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+",...
8
158
using System; using System.Text; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string ret = string.Empty; double value = n / 1.08; int[] applePie = new int[2]; int[] tax = new int[2]; applePie[0] = (int)value; applePie[1] = (int)value + 1; ...
using System; using System.Text; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string ret = string.Empty; double value = n / 1.08; int[] applePie = new int[2]; int[] tax = new int[2]; applePie[0] = (int)value; applePie[1] = (int)value + 1; ...
[["-", 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, 203], ["-", 0, 57, 15, 16, 12, 204, 206, 207, 0, 73], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 0, 57, 75, 57, 15, 16, 12, 204, 205, 22], ["-", 75, 57, 15, 16, 12, 204, 2...
8
200
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; using N = System.Int32; public class Solver { public void Solve() { N n = ri; if ((n * 25) % 27 >= 3 || n % 27 == 0) { Write(n * 25 / 27); } else { Write(":("); } ...
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; using N = System.Int32; public class Solver { public void Solve() { N n = ri; for (int i = 1; i <= n; i++) { if (i * 27 / 25 == n) { Write(i); return; } ...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 15, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 195, 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
2,057
using System; using System.Linq; namespace kakomon { class Program { static void Main(string[] args) { sumitb2019_c(); } static void sumitb2019_c() { // C - 100 to 105 long x = long.Parse(Console.ReadLine()); long min_pcs = (long)(x / 105); long max_pcs = (long)(x / 100); bool succ = false; ...
using System; using System.Linq; namespace kakomon { class Program { static void Main(string[] args) { sumitb2019_c(); } static void sumitb2019_c() { // C - 100 to 105 long x = long.Parse(Console.ReadLine()); long min_pcs = (long)(x / 105); long max_pcs = (long)(x / 100); bool succ = false; ...
[["-", 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
164
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...
[["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 74, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 12, 74, 39, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 74, 0, 25], [...
8
2,591
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace sumitb2019_c { class Program { static void Main(string[] args) { int X = 99998; int XS = X; int[] S = new int[] { 100, 101, 102, 103, 104, 105 }; bool b = false; for (int...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace sumitb2019_c { class Program { static void Main(string[] args) { int X = int.Parse(Console.ReadLine()); int[] S = new int[] { 100, 101, 102, 103, 104, 105 }; bool b = false; ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 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], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214,...
8
391
using System; public class Program { private static int Check(int price, int[] source, int[] count) { return source[0] * count[0] + source[1] * count[1] + source[2] * count[2] + source[3] * count[3] + source[4] * count[4] + source[5] * count[5]; } private static int Sum(int[] a) { int sum = 0...
using System; public class Program { private static bool Check(int price, int[] source, int[] count) { return price == source[0] * count[0] + source[1] * count[1] + source[2] * count[2] + source[3] * count[3] + source[4] * count[4] + source[5] * count[5]; } pr...
[["-", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 17, 60], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 2...
8
379
using System; using System.Linq; using System.Collections.Generic; namespace MSBPC2019 { class C { static void Main(string[] args) { long X = long.Parse(Console.ReadLine()); int[] price = new int[] { 100, 101, 102, 103, 104, 105 }; List<long> list = new List<long>(); for (int bit = 0; bit <= (1 << 6)...
using System; using System.Linq; using System.Collections.Generic; namespace MSBPC2019 { class C { static void Main(string[] args) { long X = long.Parse(Console.ReadLine()); int[] price = new int[] { 100, 101, 102, 103, 104, 105 }; List<long> list = new List<long>(); for (int bit = 0; bit < (1 << 6);...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 0, 57, 15, 16, 12, 23, 0, 16, 17, 106], ["+", 0, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 109], ...
8
210
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 C { 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 C { public static void Main() => (new Solver()).Solve(); } public class Solver { p...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 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, 10...
8
524
using System; using System.Collections.Generic; using System.Linq; using System.Net.NetworkInformation; using System.Security.Cryptography; using System.Text; using System.Threading; using Extensions; using static System.Math; using static Extensions.MathExtension; using static Extensions.ConsoleInputExtension; using s...
using System; using System.Collections.Generic; using System.Linq; using System.Net.NetworkInformation; using System.Security.Cryptography; using System.Text; using System.Threading; using Extensions; using static System.Math; using static Extensions.MathExtension; using static Extensions.ConsoleInputExtension; using s...
[["-", 10, 198, 0, 200, 0, 212, 0, 23, 0, 24], ["-", 0, 200, 0, 212, 0, 23, 0, 16, 31, 203], ["-", 0, 200, 0, 212, 0, 23, 0, 16, 17, 72], ["-", 0, 200, 0, 212, 0, 23, 0, 16, 12, 22], ["-", 10, 198, 0, 200, 0, 212, 0, 23, 0, 25], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], [...
8
2,304
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var S = sc.ReadStr(); var counts = new int[N, 10]; for (int i = 0; i < N; i++) { for (int j = 0; j < 10; j++) { if (i > 0) { counts[i, j] ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var S = sc.ReadStr(); var counts = new int[N, 10]; for (int i = 0; i < N; i++) { for (int j = 0; j < 10; j++) { if (i > 0) { counts[i, j] ...
[["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25], ["+", 0, 28, 0, 16, 31, 74, 51, 204, 205, 22], ["+", 0, 16, 31, 74, 51, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 74, 51, 204, 206, 207, 0, 73], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+",...
8
1,253
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System; using System.Collections; using System.Runtime.Serialization; using System.Collections.Specialized; using System.Security.Cryptography; using System.Globalization; class Program { #region Reader ...
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System; using System.Collections; using System.Runtime.Serialization; using System.Collections.Specialized; using System.Security.Cryptography; using System.Globalization; class Program { #region Reader ...
[["-", 8, 196, 0, 1, 0, 223, 0, 204, 205, 22], ["-", 0, 1, 0, 223, 0, 204, 206, 207, 0, 70], ["-", 0, 223, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 1, 0, 223, 0, 204, 206, 207, 0, 73], ["-", 0, 195, 8, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], [...
8
442
using System; using System.Collections.Generic; namespace abc144_e { class Program { static void Main(string[] args) { var n = CIn.ReadInt(); var k = CIn.ReadLong(); var a = CIn.ReadIntArray(n); var f = CIn.ReadIntArray(n); Array.Sort(a); Array.Sort(f); Array.Reverse(f); var ok = (l...
using System; using System.Collections.Generic; namespace abc144_e { class Program { static void Main(string[] args) { var n = CIn.ReadInt(); var k = CIn.ReadLong(); var a = CIn.ReadIntArray(n); var f = CIn.ReadIntArray(n); Array.Sort(a); Array.Sort(f); Array.Reverse(f); var ok = (l...
[["-", 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, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85],...
8
518
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { static class Extensions { public static int LowerBound<T>(this IList<T> list, T value, IComparer<T> comp = null) { if (comp == null) comp = Comparer<T>.Default;...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { static class Extensions { public static int LowerBound<T>(this IList<T> list, T value, IComparer<T> comp = null) { if (comp == null) comp = Comparer<T>.Default;...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 31, 23, 0, 16, 31, 16, 12, 214, 20...
8
2,148
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; namespace Program { public static class ABC144E { static public int numberOfRandomCases = 0; static public void MakeTestCase(List<string> _input, List<string> _out...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; namespace Program { public static class ABC144E { static public int numberOfRandomCases = 0; static public void MakeTestCase(List<string> _input, List<string> _out...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 8, 196, 0, 7, 10, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32],...
8
9,720
using System; namespace A { class Program { static void Main(string[] args) { string[] AB = Console.ReadLine().Split(' '); int A = int.Parse(AB[0]); int B = int.Parse(AB[1]); int C = A - (B * 2); if (C < 0) { Console.WriteLine("0"); } else { Console.WriteLine(A % (B * 2)); } ...
using System; namespace A { class Program { static void Main(string[] args) { string[] AB = Console.ReadLine().Split(' '); int A = int.Parse(AB[0]); int B = int.Parse(AB[1]); int C = A - (B * 2); if (C < 0) { Console.WriteLine("0"); } else { Console.WriteLine(C); } } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 31, 22], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 17, 48], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25], ["+", 0, 1, 0, ...
8
110
using System; using System.Collections.Generic; using System.Linq; namespace ABC143B { class Input { /// <summary> /// 1行の入力を取得する /// </summary> /// <returns>文字列</returns> public string String() { return Console.ReadLine(); } /// <summary> /// 複数行の入力を取得 /// </summary> /// <returns>文字列の配列</returns> ...
using System; using System.Collections.Generic; using System.Linq; namespace ABC143B { class Input { /// <summary> /// 1行の入力を取得する /// </summary> /// <returns>文字列</returns> public string String() { return Console.ReadLine(); } /// <summary> /// 複数行の入力を取得 /// </summary> /// <returns>文字列の配列</returns> ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 25], ["-", 0, 7, 8, 196, 0, 7, 8, 196, 0, 45], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-...
8
871
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; using System.Threading.Tasks; class Sobaya { static void Main() { new Sobaya().calc(); return; } Scanner cin; void cal...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; using System.Threading.Tasks; class Sobaya { static void Main() { new Sobaya().calc(); return; } Scanner cin; void cal...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 7, 15, 16, 12, 16, 31, 16, 17, 33], ["-", 0, 7, 15, 16, 12, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, ...
8
516
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { public const ulong mod = 1000000007; static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); var s = Console.ReadLine().ToArra...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { public const ulong mod = 1000000007; static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); var s = Console.ReadLine().ToArra...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["...
8
149
using System; class P { static void Main() { string color = Console.ReadLine(); char c = color[0]; int count = 1; for (int i = 1; i < color.Length; i++) { if (c != color[i]) { c = color[i]; count++; } } Console.WriteLine(count); } }
using System; class P { static void Main() { string a = Console.ReadLine(); string color = Console.ReadLine(); char c = color[0]; int count = 1; for (int i = 1; i < color.Length; i++) { if (c != color[i]) { c = color[i]; count++; } } Console.WriteLine(count); ...
[["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4,...
8
82
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0027 { class Program { static void Main(string[] args) { string s = Console.ReadLine(); if (s.Length % 2 == 1) { Console.WriteLine("No"); return; } string h ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0027 { class Program { static void Main(string[] args) { string n = Console.ReadLine(); string s = Console.ReadLine(); if (s.Length % 2 == 1) { Console.WriteLine("No");...
[["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4,...
8
127
using System; using System.Linq; using System.Security.Cryptography.X509Certificates; namespace AtCoder_B___Echo { class Program { const string yes = "Yes"; const string no = "No"; static void Main(string[] args) { string s = Console.ReadLine(); int halflength = s.Length / 2; Console.WriteLine( ...
using System; using System.Linq; using System.Security.Cryptography.X509Certificates; namespace AtCoder_B___Echo { class Program { const string yes = "Yes"; const string no = "No"; static void Main(string[] args) { string length = Console.ReadLine(); string s = Console.ReadLine(); int halflength = s....
[["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4,...
8
96
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); if (1 < N) { if ((S.Substring(0, N / 2)...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); if (1 < N) { if (N % 2 == 0) { ...
[["+", 64, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, ...
8
203
using System; namespace Sample { class Sample { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); string ans1 = S.Substring(0, (N / 2)); string ans2 = S.Substring((N / 2), (N / 2)); if ((N >= 2) && (ans1 == ans2)) { Console.WriteLine("Ye...
using System; namespace Sample { class Sample { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); string ans1 = S.Substring(0, (N / 2)); string ans2 = S.Substring((N / 2), (N / 2)); if ((N >= 2) && (N % 2 == 0) && (ans1 == ans2)) { Conso...
[["+", 31, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 17, 109], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 12, 203], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 17, 60], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 12, 23, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, ...
8
118
using System; namespace ABC145B { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); int x = 0; for (int i = 0; i <= a / 2 - 1; i++) { if (s[i] == s[a / 2 + i]) x += 1; } if (x == a / 2) Console.WriteLin...
using System; namespace ABC145B { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); int x = 0; for (int i = 0; i <= a / 2 - 1; i++) { if (s[i] == s[a / 2 + i]) x += 1; } if (a % 2 != 0) x -= 1; if (...
[["+", 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, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22...
8
117
using System; using System.Collections.Generic; namespace Echo { class Program { static void Main(string[] args) { var inputN = int.Parse(Console.ReadLine()); string inputS = Console.ReadLine(); List<char> inputString = new List<char>(inputS); int middlePoint = inputString.Count / 2; if (middleP...
using System; using System.Collections.Generic; namespace Echo { class Program { static void Main(string[] args) { var inputN = int.Parse(Console.ReadLine()); string inputS = Console.ReadLine(); List<char> inputString = new List<char>(inputS); int middlePoint = inputString.Count / 2; if (inputN ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 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, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 9...
8
147
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { static class Program { static void Main() { Solve(); Console.ReadKey(); } static void Solve() { var N = IO.GetInt(); var S = IO.GetString(); var ans = "Yes...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { static class Program { static void Main() { Solve(); Console.ReadKey(); } static void Solve() { var N = IO.GetInt(); var S = IO.GetString(); var ans = "Yes...
[["+", 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, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 2...
8
369
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp7 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); string ans = "Yes"; for (int i = 0; i <...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp7 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); string ans = "Yes"; if (N % 2 == 0) { ...
[["+", 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
129
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using static Template; using static System.Console; using static System.Convert; using static System.Math; using Pi = Pair<int, int>; using Number = System.Int64; class Solver {...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using static Template; using static System.Console; using static System.Convert; using static System.Math; using Pi = Pair<int, int>; using Number = System.Int64; class Solver {...
[["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 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, ...
8
1,619
using System; namespace abab145 { class Program { static void Main(string[] args) { int a; string b; a = int.Parse(Console.ReadLine()); b = Console.ReadLine(); int len = b.Length; var n = (len / 2) - 1; var g = len - 1; var c = n + 1; var l = len / 2; var str1 = b.Substring(0...
using System; namespace abab145 { class Program { static void Main(string[] args) { int a; string b; a = int.Parse(Console.ReadLine()); b = Console.ReadLine(); int len = b.Length; var n = (len / 2) - 1; var g = len - 1; var c = n + 1; var l = len / 2; var str1 = b.Substring(0...
[["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["-", 64, 196, 0, 57, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 57, 64, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 195, 8, 196, 0, 57, 64, 57, 0, 95...
8
155
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); string b = Console.ReadLine(); if (a % 2 == 0) { if (b.Substring(b.Len...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); string b = Console.ReadLine(); if (a % 2 == 0) { if (b.Substring(b.Len...
[["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 95], ["+", 0, 57, 64, 196, 0, 57, 75, 196, 0, 45], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 75, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], [...
8
128
using System; using System.IO; using static System.Console; using static System.Math; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace atcoder { class Program { //メイン関数 static void Main(string[] args) { int n = int.Parse(ReadLine()); string s =...
using System; using System.IO; using static System.Console; using static System.Math; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace atcoder { class Program { //メイン関数 static void Main(string[] args) { int n = int.Parse(ReadLine()); string s =...
[["+", 0, 57, 15, 16, 31, 16, 31, 214, 141, 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, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 57, 0,...
8
523
using System; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); bool result = s.Substring(0, n / 2) == s.Substring(n / 2); Console.WriteLine(result); } }
using System; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); bool result = s.Substring(0, n / 2) == s.Substring(n / 2); Console.WriteLine(result ? "Yes" : "No"); } }
[["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
71
using System; public class Program { public void Solve() { var sc = new Scanner(); int n = sc.NextInt(); string s = sc.Next(); bool f = true; for (int i = 0; i < n / 2; i++) { if (s[i] != s[i + n / 2]) { f = false; break; } } Console.WriteLine(f ? "Yes" : "No"...
using System; public class Program { public void Solve() { var sc = new Scanner(); int n = sc.NextInt(); string s = sc.Next(); bool f = true; if (n % 2 != 0) { Console.WriteLine("No"); return; } for (int i = 0; i < n / 2; i++) { if (s[i] != s[i + n / 2]) { f = f...
[["+", 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, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 2...
8
541
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 void Main(string[] args) { long n ...
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 void Main(string[] args) { long n ...
[["-", 0, 7, 15, 16, 12, 16, 31, 214, 205, 22], ["-", 0, 7, 15, 16, 12, 16, 31, 214, 0, 131], ["-", 0, 7, 15, 16, 12, 16, 31, 214, 141, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 109], ["+", 8, 196, 0, 7, 15, 16, 12, 23, 0, 24], ["+", 0, 7, 15, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 7, 15, 16, 12, 23, 0, 16, 17, 85], [...
8
261
using System; using System.Linq; namespace Atcoder { class Program { static void Main(string[] args) { var r = int.Parse(Console.ReadLine()); var input = Console.ReadLine().OrderBy(x => x).ToArray(); for (int i = 0; i < input.Length; i += 2) { if (input.Length <= 1 || input[i] != input[i + 1]) { ...
using System; using System.Linq; namespace Atcoder { class Program { static void Main(string[] args) { var r = int.Parse(Console.ReadLine()); var input = Console.ReadLine().OrderBy(x => x).ToArray(); for (int i = 0; i < input.Length; i += 2) { if (input.Length == 1 || input.Length % 2 == 1 || ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 106], ["+", 31, 16, 12, 16, 31, 16, 31, 214, 205, 22], ["+", 31, 16, 12, 16, 31, 16, 31, 214, 0, 131], ["+", 31, 16, 12, 16, 31, 16, 31, 21...
8
122
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp14 { class Class34 { static void Main() { int N = int.Parse(Console.ReadLine()); var x = new double[N]; var y = new double[N]; for (int i = 0; i < N; i++) { va...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp14 { class Class34 { static void Main() { int N = int.Parse(Console.ReadLine()); var x = new double[N]; var y = new double[N]; for (int i = 0; i < N; i++) { va...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 0, 7, 8, 196, 0, 1, 0, 223, 0, 22], ...
8
256
using System; using System.Linq; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.RegularExpressions; class Program { static void Main() { var n = Console.ReadLine().ToInt32(); var xy = new List<long[]>(); for (int i = 0; i < n; i++) { var a = System.Console....
using System; using System.Linq; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.RegularExpressions; class Program { static void Main() { var n = Console.ReadLine().ToInt32(); var xy = new List<double[]>(); for (int i = 0; i < n; i++) { var a = System.Consol...
[["-", 0, 230, 39, 236, 237, 238, 0, 224, 39, 199], ["+", 0, 230, 39, 236, 237, 238, 0, 224, 39, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0...
8
661
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace atcorder1 { class MainClass { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } public static vo...
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace atcorder1 { class MainClass { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } public static vo...
[["-", 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, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24]]
8
365
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 r = ReadSplit(); var x = r[0].ToInt64(); var y = r[1].ToInt64(); var ans = Combina...
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 r = ReadSplit(); var x = r[0].ToInt64(); var y = r[1].ToInt64(); var ans = Combina...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 106], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 16, 31, 16, 12, 16, 12, 16, 31, 203], ["+", 15, 16, 31, 16, 12, 16, 12, 16, 17, 48], ["+", 15, 16, 31, 16, 12, 16, 12, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 1...
8
598
using System; using System.Collections.Generic; using System.Linq; namespace ABC145D_2 { class Program { static void Main(string[] args) { var XY = ReadInt(); int X = XY[0]; int Y = XY[1]; bool canGo = true; if ((2 * X - Y) % 3 != 0) canGo = false; if ((2 * Y - X) % 3 != 0) canGo...
using System; using System.Collections.Generic; using System.Linq; namespace ABC145D_2 { class Program { static void Main(string[] args) { var XY = ReadInt(); int X = XY[0]; int Y = XY[1]; bool canGo = true; if ((2 * X - Y) % 3 != 0 || (2 * X - Y) < 0) canGo = false; if ((2 * Y - X) % ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 15, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 31, 203], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 17, 48], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 12, 2...
8
446
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 inputs = Read...
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 inputs = Read...
[["+", 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, 18], ["+", 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, 37, 0, 203]...
8
660
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 long P = 1000000007; static void Main(string[] args) { var xy = Console.ReadLi...
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 long P = 1000000007; static void Main(string[] args) { var xy = Console.ReadLi...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 106], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22...
8
373
using System; using System.Collections.Generic; namespace Application { class MainClass { const long MOD = 1000000007; public static void Main(string[] args) { var xy = Console.ReadLine().Split(); var x = long.Parse(xy[0]); var y = long.Parse(xy[1]); if ((x + y) % 3 != 0) { Console.WriteLin...
using System; using System.Collections.Generic; namespace Application { class MainClass { const long MOD = 1000000007; public static void Main(string[] args) { var xy = Console.ReadLine().Split(); var x = long.Parse(xy[0]); var y = long.Parse(xy[1]); if ((x + y) % 3 != 0) { Console.WriteLin...
[["-", 0, 212, 0, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 212, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 31, 203], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 17, 48], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["-...
8
294
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; using System.Threading; using System.Threading.Tasks; namespace AtCoder { public class Program { public static void Main(string[] args) { new Prog...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; using System.Threading; using System.Threading.Tasks; namespace AtCoder { public class Program { public static void Main(string[] args) { new Prog...
[["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
770
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 << 61; 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 << 61; const int MOD2...
[["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 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], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203...
8
1,749
using System; using System.Collections.Generic; using System.Linq; namespace ABC145D { class Program { static void Main(string[] args) { var xy = Cin.LArr(); var solver = new Solver(xy[0], xy[1]); Console.WriteLine(solver.Solve()); } } class Solver { private long x; private long y; public Solv...
using System; using System.Collections.Generic; using System.Linq; namespace ABC145D { class Program { static void Main(string[] args) { var xy = Cin.LArr(); var solver = new Solver(xy[0], xy[1]); Console.WriteLine(solver.Solve()); } } class Solver { private long x; private long y; public Solv...
[["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 35], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 12, 22], ["...
8
742
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { class modMCalc { private const int M = 1000000007; // 素数(int範囲) // 乗算結果 % Mを求める static public int Mul(int a, int b) { return (int)(Math.BigMul(a, b) % M); } ...
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { class modMCalc { private const int M = 1000000007; // 素数(int範囲) // 乗算結果 % Mを求める static public int Mul(int a, int b) { return (int)(Math.BigMul(a, b) % M); } ...
[["+", 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, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],...
8
538
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; public class ABC { // long[] sp = Console.ReadLine().Split().Select(long // .Parse).ToArray(); int[] sp = // Console.ReadLine().Spli...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; public class ABC { // long[] sp = Console.ReadLine().Split().Select(long // .Parse).ToArray(); int[] sp = // Console.ReadLine().Spli...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 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, 37, 0, 38], ["+", 0, 195, 8, 196, 0, 57, 64, 37, 0, 203], ["+", 0, 195, 8, 196, 0, 57, 64, 37, 0, 35],...
8
3,134
using System; using System.Collections.Generic; using System.Linq; using System.Net.NetworkInformation; using System.Security.Cryptography; using System.Text; using System.Threading; using Extensions; using static System.Math; using static Extensions.MathExtension; using static Extensions.ConsoleInputExtension; using s...
using System; using System.Collections.Generic; using System.Linq; using System.Net.NetworkInformation; using System.Security.Cryptography; using System.Text; using System.Threading; using Extensions; using static System.Math; using static Extensions.MathExtension; using static Extensions.ConsoleInputExtension; using 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, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 2...
8
2,330
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace A { class StartingPoint { static void Main(string[] args) { if (args?.Any() == true) { var assembly = Assembly.GetEntryAssembly(); var resourceName = "AtCoderCShar...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace A { class StartingPoint { static void Main(string[] args) { if (args?.Any() == true) { var assembly = Assembly.GetEntryAssembly(); var resourceName = "AtCoderCShar...
[["+", 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, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 2...
8
1,447
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace AtCoder { class Modular { private const int M = 1000000007; private long value; public Modular(long value) { this.value = value; } public static implicit operator Modular(long a) { var...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace AtCoder { class Modular { private const int M = 1000000007; private long value; public Modular(long value) { this.value = value; } public static implicit operator Modular(long a) { var...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["-", 15, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["-", 15, 16, 12, 23, 0, 16, 31, 16, 17, 19], ["-", 12, 23, 0, 16, 31, 16, 12, 16, 31, 22], ["-", 12, 23, 0, 16, 31, 16, 12, 16, 17, 48], ["-", 12, 23, 0, 16, 31, 16, 12, 16, 12, 203...
8
659
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...
[["+", 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, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 2...
8
890
using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; using System.Numerics; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Math; using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOption...
using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; using System.Numerics; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Math; using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOption...
[["+", 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, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22...
8
887
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; using N = System.Int64; public class Solver { public void Solve() { N x = rl, y = rl; if ((2 * x - y) % 3 != 0 || (2 * y - x) % 3 != 0) { Write(0); return; } N a =...
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; using N = System.Int64; public class Solver { public void Solve() { N x = rl, y = rl; if ((2 * x - y) % 3 != 0 || (2 * y - x) % 3 != 0) { Write(0); return; } N a =...
[["+", 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, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 2...
8
2,230
using System; 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(); } static void Solve() { ...
using System; 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(); } static void Solve() { ...
[["-", 8, 201, 0, 195, 8, 196, 0, 287, 0, 292], ["-", 0, 195, 8, 196, 0, 287, 0, 196, 0, 45], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 21...
8
1,241
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 << 61; 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 << 61; const int MOD2...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, ...
8
2,015
using System; using System.Collections.Generic; using System.Linq; using static Input; using NX = System.Int64; public class Prog { public static void Solve() { int N = NextInt(), T = NextInt(); Tuple<int, int>[] tp = new Tuple<int, int>[N]; for (int i = 0; i < N; i++) { int A = NextInt(), B = Next...
using System; using System.Collections.Generic; using System.Linq; using static Input; using NX = System.Int64; public class Prog { public static void Solve() { int N = NextInt(), T = NextInt(); Tuple<int, int>[] tp = new Tuple<int, int>[N]; for (int i = 0; i < N; i++) { int A = NextInt(), B = Next...
[["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 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, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["+...
8
657
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...
[["-", 8, 74, 51, 23, 0, 16, 31, 214, 141, 22], ["+", 8, 74, 51, 23, 0, 16, 31, 214, 141, 22], ["-", 8, 74, 51, 23, 0, 16, 12, 214, 141, 22], ["+", 8, 74, 51, 23, 0, 16, 12, 214, 141, 22], ["-", 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...
8
2,768
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int N = int.Parse(str[0]); int T = int.Parse(str[1]); long[][] A = new long [N][]; for (var i = 0; i < N; i++) { string[] str2 = Console.ReadLine().Spl...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int N = int.Parse(str[0]); int T = int.Parse(str[1]); long[][] A = new long [N][]; for (var i = 0; i < N; i++) { string[] str2 = Console.ReadLine().Spl...
[["+", 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, 21], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 24], ["+", 0, 28...
8
425
using System; namespace E { class Program { static void Main(string[] args) { var NT = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = NT[0]; var T = NT[1]; var A = new int[N + 1]; var B = new int[N + 1]; for (int i = 1; i < N + 1; i++) { var AB = Array.ConvertAll(Co...
using System; namespace E { class Program { static void Main(string[] args) { var NT = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = NT[0]; var T = NT[1]; var A = new int[N + 1]; var B = new int[N + 1]; for (int i = 1; i < N + 1; i++) { var AB = Array.ConvertAll(Co...
[["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 75, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 21],...
8
376
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public class Dish { public int Time { get; set; } public int Yammy { get; set; } } public static void Main(string[] args) { var p = Input().ToInt(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public class Dish { public int Time { get; set; } public int Yammy { get; set; } } public static void Main(string[] args) { var p = Input().ToInt(); ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32],...
8
590
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 ABC145E { 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 ABC145E { static public int numberOfRandom...
[["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 2...
8
1,378
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { ABC145.F(); } class ABC145 { public static void A() { var R = Read.Int(); Console.WriteLine(R * R); } public static void B() { var N = Read.Int(); ...
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { ABC145.F(); } class ABC145 { public static void A() { var R = Read.Int(); Console.WriteLine(R * R); } public static void B() { var N = Read.Int(); ...
[["-", 31, 16, 31, 213, 63, 214, 205, 214, 205, 22], ["-", 31, 16, 31, 213, 63, 214, 205, 214, 0, 131], ["-", 31, 16, 31, 213, 63, 214, 205, 214, 141, 22], ["-", 15, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["-", 15, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["-", 15, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["-", 15, 16, 31, 16...
8
2,310
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { public class Solver { public void Solve() { var cin = new Scanner(); var n = cin.nextLong(); if (n % 2 == 0) { Cons...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { public class Solver { public void Solve() { var cin = new Scanner(); var n = cin.nextLong(); n--; Console.WriteLine((...
[["-", 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, 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, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 2...
8
589
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace abc144 { class Program { static void Main(string[] args) { // Console.SetIn(new StreamReader("input.txt")); solve_abc144B(); } public static void solve_abc144C() {} public static void ...
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace abc144 { class Program { static void Main(string[] args) { // Console.SetIn(new StreamReader("input.txt")); solve_abc144B(); } public static void solve_abc144C() {} public static void ...
[["-", 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, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 3...
8
384
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 void Main(string[] args) { // ...
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 void Main(string[] args) { // ...
[["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], [...
8
229
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Convert; using static System.Console; using static System.Math; namespace AtCorder { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.I...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Convert; using static System.Console; using static System.Math; namespace AtCorder { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.I...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 25], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 45], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["+", 0, 7...
8
483
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // ReSharper disable PossibleNullReferenceException // ReSharper disable AssignNullToNotNullAttribute namespace ProCon { class Program { static void Main(string[] args) { var n = long.Parse(Console...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // ReSharper disable PossibleNullReferenceException // ReSharper disable AssignNullToNotNullAttribute namespace ProCon { class Program { static void Main(string[] args) { var n = long.Parse(Console...
[["-", 0, 212, 0, 41, 15, 16, 31, 16, 31, 22], ["-", 0, 212, 0, 41, 15, 16, 31, 16, 17, 109], ["-", 0, 212, 0, 41, 15, 16, 31, 16, 12, 203], ["-", 0, 200, 0, 212, 0, 41, 15, 16, 17, 60], ["-", 0, 198, 0, 200, 0, 212, 0, 41, 0, 101], ["-", 0, 198, 0, 200, 0, 212, 0, 41, 64, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 41, 0, ...
8
137
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.C { 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.C { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var N = ReadLong(...
[["-", 8, 201, 0, 195, 8, 196, 0, 293, 0, 294], ["-", 0, 195, 8, 196, 0, 293, 0, 230, 0, 228], ["-", 0, 195, 8, 196, 0, 293, 0, 230, 39, 22], ["-", 8, 196, 0, 293, 0, 230, 3, 4, 0, 24], ["-", 8, 196, 0, 293, 0, 230, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 293, 0, 35], ["-", 0, 212, 0, 74, 51, 213, 63, 214, 141, ...
8
317
using System; class Atcoder_Templete { static void Main(string[] args) { string input_string = Console.ReadLine(); long input_int = long.Parse(input_string); decimal rootOfInputDouble = (decimal)Math.Sqrt(input_int); long result = 0; long niceX = 0; long niceY = 0; long rootOfInputInt = (l...
using System; class Atcoder_Templete { static void Main(string[] args) { string input_string = Console.ReadLine(); long input_int = long.Parse(input_string); decimal rootOfInputDouble = (decimal)Math.Sqrt(input_int); long result = 0; long niceX = 0; long niceY = 0; long rootOfInputInt = (l...
[["-", 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, 33], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203...
8
152
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 // var s = Console.ReadLine(); // var n = int.Parse(Console.ReadLine()); double[] abx = Console.ReadLine().Split().Select(double.Pars...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 // var s = Console.ReadLine(); // var n = int.Parse(Console.ReadLine()); double[] abx = Console.ReadLine().Split().Select(double.Pars...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 17, 48...
8
196
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const long INF = 1 << 61; static void Main(string[] args) { Solve(); } static void Solve() { Scaner cin = new Scaner(); write cout = new writ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const long INF = 1 << 61; static void Main(string[] args) { Solve(); } static void Solve() { Scaner cin = new Scaner(); write cout = new writ...
[["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["+", 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, 8...
8
1,536
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { //入力を受け取る var ABX = Console.ReadLine().Split(' ').Select(x => double.Parse(x)).ToArray(); double a = ABX[0]; double b = AB...
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { //入力を受け取る var ABX = Console.ReadLine().Split(' ').Select(x => double.Parse(x)).ToArray(); double a = ABX[0]; double b = AB...
[["-", 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, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
234
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProblemD { class Program { static void Main(string[] args) { var read = Console.ReadLine().Split(' ').Select(x_ => int.Parse(x_)).ToArray(); var a = (double)read[0]; var b...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProblemD { class Program { static void Main(string[] args) { var read = Console.ReadLine().Split(' ').Select(x_ => int.Parse(x_)).ToArray(); var a = (double)read[0]; var b...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 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
211
namespace AtCoder.ABC.D144 { using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.IO; using AtCoder.ABC.IO; public class Quest { public object Solve(Parser parser) { int a = parser.Integer(); int b = parser.Integer(); int x = parser...
namespace AtCoder.ABC.D144 { using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.IO; using AtCoder.ABC.IO; public class Quest { public object Solve(Parser parser) { int a = parser.Integer(); int b = parser.Integer(); int x = parser...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 48], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, ...
8
1,106
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); double a = double.Parse(input[0]); double b = double.Parse(input[1]); double x = double.Parse(input[2]); double theta = 0; double degree = 0; if...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); double a = double.Parse(input[0]); double b = double.Parse(input[1]); double x = double.Parse(input[2]); double theta = 0; double degree = 0; if...
[["-", 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, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-",...
8
196
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); double A = double.Parse(str[0]); double B = double.Parse(str[1]); double X = double.Parse(str[2]); double N = 0; if (X < A * A * B / 2) { N = 90 - ...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); double A = double.Parse(str[0]); double B = double.Parse(str[1]); double X = double.Parse(str[2]); double N = 0; if (X < A * A * B / 2) { N = 90 - ...
[["-", 31, 16, 31, 16, 12, 213, 63, 214, 205, 22], ["-", 31, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["-", 31, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["-", 31, 16, 31, 16, 12, 213, 3, 4, 0, 24], ["-", 31, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["-", 31, 16, 31, 16, 12, 213, 3, 4, 0, 21], ["-", 31, 16, 31, 16, 12, 213, 3, 4,...
8
188
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() { ...
[["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 16, 31, 16, 12, 204, 205, 22], ["+", 15, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 16, 12, 204...
8
1,136
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC144E { class Program { static void Main(string[] args) { var N = RLong; var K = RLong; var A = RLongs.OrderBy(x => x).ToArray(); var F = RLongs....
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC144E { class Program { static void Main(string[] args) { var N = RLong; var K = RLong; var A = RLongs.OrderBy(x => x).ToArray(); var F = RLongs....
[["+", 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, 203], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25]]
8
1,247
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(); } ...
[["-", 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
1,413
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace Atcoder { class Pair : IComparable { public int x; public int y; public int id = 0; public Pair(int X, int Y, int ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace Atcoder { class Pair : IComparable { public int x; public int y; public int id = 0; public Pair(int X, int Y, int ...
[["+", 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, 203], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25]]
8
6,777
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; 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; } ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; 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; } ...
[["+", 8, 16, 31, 23, 0, 213, 63, 214, 205, 22], ["+", 8, 16, 31, 23, 0, 213, 63, 214, 0, 131], ["+", 8, 16, 31, 23, 0, 213, 63, 214, 141, 22], ["+", 8, 16, 31, 23, 0, 213, 3, 4, 0, 24], ["+", 8, 16, 31, 23, 0, 213, 3, 4, 0, 21], ["+", 31, 23, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 8, 16, 31, 23, 0, 213, 3, 4, 0, 25]]
8
1,762
using System; using System.Text; using System.Collections.Generic; using System.Collections; using System.Linq; using E = System.Linq.Enumerable; class Program { static long max = 10000000000; static long K; static long N; static long[] A; static long[] F; static void Main(string[] args) { var NK = Co...
using System; using System.Text; using System.Collections.Generic; using System.Collections; using System.Linq; using E = System.Linq.Enumerable; class Program { static long max = 10000000000; static long K; static long N; static long[] A; static long[] F; static void Main(string[] args) { var NK = Co...
[["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20], ["+", 75, 19...
8
1,176
using System; namespace _153232 { class Program { static void Main(string[] args) { string N = Console.ReadLine(); double n = int.Parse(N); double a = -1; if (n == 1) { a = 1; } else if (n % 2 == 0) { a = 0.5; } else { a = (n + 1) / 2 / ((n - 1) / 2); } Console.Writ...
using System; namespace _153232 { class Program { static void Main(string[] args) { string N = Console.ReadLine(); double n = int.Parse(N); double a = -1; if (n == 1) { a = 1; } else if (n % 2 == 0) { a = 0.5; } else { a = (n + 1) / 2 / n; } Console.WriteLine(a); ...
[["-", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["-", 12, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 12, 203], ["-", 12, 16, 12, 23, 0, 16, 31, 23, 0, 25], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 17, 85], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 12, 203], ["-"...
8
104
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Console; namespace AtCoder_1 { class Program { static void Main(string[] args) { var n = CinT(); if (n % 2 == 0) { Cout(1 / 2); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Console; namespace AtCoder_1 { class Program { static void Main(string[] args) { var n = CinT(); if (n % 2 == 0) { Cout(n / 2.0 /...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 250], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 0, 28, 0, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 23, 0,...
8
765
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, 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
198
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var X = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var X = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); ...
[["-", 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
203
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static Dictionary<int, int> Query; static int H; static int[] A; static void Main(string[] args) { //入力を受け取る int N = int.Parse(Console.ReadLine()); A = Console....
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static Dictionary<int, int> Query; static int H; static int[] A; static void Main(string[] args) { //入力を受け取る int N = int.Parse(Console.ReadLine()); A = Console....
[["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 3...
8
162
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 r = ReadSplit(); var a = r[0].ToLong(); var b = r[1].ToLong(); long now = Gcd(a, b...
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 r = ReadSplit(); var a = r[0].ToLong(); var b = r[1].ToLong(); long now = Gcd(a, b...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 18], ["-", 0, 212, 0, 230, 39, 236, 2...
8
536