buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
using System; namespace D { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var X = Console.ReadLine(); var fn = new int[N + 1]; fn[1] = 1; for (int i = 2; i <= N; i++) { var temp = i % popcount(i); fn[i] = fn[temp] + 1; } var count1 ...
using System; namespace D { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var X = Console.ReadLine(); var fn = new int[N + 1]; fn[1] = 1; for (int i = 2; i <= N; i++) { var temp = i % popcount(i); fn[i] = fn[temp] + 1; } var count1 ...
[["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 47], ["+", 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, 0, 45]...
8
430
using System; using System.Collections.Generic; using System.Linq; using System.IO; using SB = System.Text.StringBuilder; // using System.Threading.Tasks; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; using System.Numerics; using static...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using SB = System.Text.StringBuilder; // using System.Threading.Tasks; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; using System.Numerics; using static...
[["+", 8, 196, 0, 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, 47], ["+", 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, 196, 0, 57, 0, 121], ["+", 8, 1...
8
1,281
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; using System.Text; namespace エイシングプログラミングコンテスト2020D { class Program { static void Main(string[] args) { var N = RInt; var X = Console.ReadLine(); int count1 = 0...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; using System.Text; namespace エイシングプログラミングコンテスト2020D { class Program { static void Main(string[] args) { var N = RInt; var X = Console.ReadLine(); // for (int m ...
[["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ...
8
1,536
using System; namespace ABC_173_A_C_sharp_ver { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); for (int i = 1; i <= 10; i++) { N %= (i * 1000); if (N % 1000 == 0) { break; } } Console.WriteLine(N.ToString()); Console.ReadKey(); ...
using System; namespace ABC_173_A_C_sharp_ver { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int s = 0; for (int i = 1; i <= 10; i++) { N %= (i * 1000); if (N % 1000 == 0) { break; } s = 1000 - N; } // N = (1000 - N % 100...
[["+", 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
89
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderExamCS { class Program { static void Main(string[] args) { int N, answer = 0; N = int.Parse(Console.ReadLine()); for (int i = 1; i <= 10; i++) { if (N < i * 1000) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderExamCS { class Program { static void Main(string[] args) { int N, answer = 0; N = int.Parse(Console.ReadLine()); for (int i = 1; i <= 10; i++) { if (N == 0) { ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 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], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["+", 0, ...
8
109
using System; using System.Linq; using System.Collections.Generic; using Debug = System.Diagnostics.Trace; using SB = System.Text.StringBuilder; using static System.Math; using static Program.IO.Scanner; using Number = System.Int64; using System.Numerics; #region IO namespace Program.IO { using System.IO; using Sys...
using System; using System.Linq; using System.Collections.Generic; using Debug = System.Diagnostics.Trace; using SB = System.Text.StringBuilder; using static System.Math; using static Program.IO.Scanner; using Number = System.Int64; using System.Numerics; #region IO namespace Program.IO { using System.IO; using Sys...
[["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 45], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 7, 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], ["+", 0, ...
8
1,003
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; using static MyIO; using static MyUtil; public class D { public static void Main() => (new Solver()).Solve(); } public class Solver { p...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; using static MyIO; using static MyUtil; public class D { public static void Main() => (new Solver()).Solve(); } public class Solver { p...
[["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 0, 213, 63, 214, 205, 213, 63, 21...
8
730
using System; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public static void Main(string[] args) { new D().test(); } } public class A { public void test() { // 普通の数値 var yen = CommonRead.ReadInt(); if (yen % 1000 == 0) { Console.WriteLine(0); ...
using System; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public static void Main(string[] args) { new D().test(); } } public class A { public void test() { // 普通の数値 var yen = CommonRead.ReadInt(); if (yen % 1000 == 0) { Console.WriteLine(0); ...
[["-", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["-", 205, 213, 3, 4, 0, 28, 0, 218, 8, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 8, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 2...
8
793
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace ABC { class ABC173D { const string FILE = "/tmp/data.txt"; static void Main(string[] args) { #if DEBUG Console.SetIn(new StreamReader(FILE)); #endif var N = RI(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace ABC { class ABC173D { const string FILE = "/tmp/data.txt"; static void Main(string[] args) { #if DEBUG Console.SetIn(new StreamReader(FILE)); #endif var N = RI(); ...
[["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 8, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["+", 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...
8
293
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Numerics; namespace ABC173.D { using static Util; using static Math; struct Conf { public int Value; public int Count; } public class Solver : SolverBase { public void Run...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Numerics; namespace ABC173.D { using static Util; using static Math; struct Conf { public int Value; public int Count; } public class Solver : SolverBase { public void Run...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 47], ["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 200, 0, 212, 0, ...
8
4,211
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[] a = sc.LongArray(); a = a.OrderByDescending(num => num).ToArray(); long answer = 0; long a1 = 0; lo...
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[] a = sc.LongArray(); a = a.OrderByDescending(num => num).ToArray(); long answer = 0; for (int i = 0; i <...
[["-", 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, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 3...
8
446
using System; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Tracing; using System.Linq; using System.Net.NetworkInformation; using System.Runtime.CompilerServices; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Threading; ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Tracing; using System.Linq; using System.Net.NetworkInformation; using System.Runtime.CompilerServices; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Threading; ...
[["-", 0, 200, 0, 212, 0, 16, 31, 204, 205, 22], ["-", 0, 212, 0, 16, 31, 204, 206, 207, 0, 70], ["-", 0, 212, 0, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 200, 0, 212, 0, 16, 12, 204, 205, 22], ["-", 0, 212, 0, 16, 12, 204, 206, 207, 0, 70], ["-", 0, 16, 12, 204, 206, 207, 0...
8
2,683
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder.Abc173 { class E { static long mod = 1000000007; public static void Main() { var nk = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var n = nk[0]; v...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder.Abc173 { class E { static long mod = 1000000007; public static void Main() { var nk = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var n = nk[0]; v...
[["+", 0, 28, 0, 218, 8, 11, 0, 202, 0, 32], ["+", 0, 218, 8, 11, 12, 16, 31, 16, 31, 22], ["-", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 11, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 5...
8
658
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ProblemA { static bool SAIKI = false; st...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ProblemA { static bool SAIKI = false; st...
[["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 227,...
8
1,777
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { public class QuestionA { public static void Main(string[] args) { // 整数の入力 long a = long.Parse(Console.ReadLine()); Console.WriteLine(Math.Pow(a, 6)); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { public class QuestionA { public static void Main(string[] args) { // 整数の入力 long a = long.Parse(Console.ReadLine()); Console.WriteLine(a + Math.Pow(a, 2) ...
[["+", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["-", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 31, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 2...
8
87
using System; namespace AtCoder172 { class ProgramA { static void Main(string[] args) { var input = Console.ReadLine(); var a = int.Parse(Console.ReadLine()); Console.WriteLine(a + a * a + a * a * a); } } }
using System; namespace AtCoder172 { class ProgramA { static void Main(string[] args) { var a = int.Parse(Console.ReadLine()); Console.WriteLine(a + a * a + a * a * a); } } }
[["-", 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
62
using System; using System.Linq; using System.Collections.Generic; namespace Contest { internal class Program { private static void Main(string[] args) { var p = new ProbremA(); p.Run(); } } internal class ConsoleOutput { public void Print<T>(T target) { Console.WriteLine(target.ToString()); } public...
using System; using System.Linq; using System.Collections.Generic; namespace Contest { internal class Program { private static void Main(string[] args) { var p = new ProbremA(); p.Run(); } } internal class ConsoleOutput { public void Print<T>(T target) { Console.WriteLine(target.ToString()); } public...
[["-", 0, 212, 0, 230, 10, 229, 0, 5, 0, 222], ["-", 0, 212, 0, 230, 10, 229, 0, 5, 0, 62], ["-", 0, 200, 0, 212, 0, 230, 10, 229, 0, 21], ["+", 0, 212, 0, 230, 10, 229, 0, 5, 0, 222], ["-", 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, ...
8
332
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel.Design; using System.Globalization; using System.Linq; using System.Numerics; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Xml.Schema; usin...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel.Design; using System.Globalization; using System.Linq; using System.Numerics; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Xml.Schema; usin...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 250], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 197, 0, 198, 0, 200, 0, 212,...
8
199
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; namespace AC { class Program { static void Main(string[] args) { var X = ReadInt(); var mul = 1; var K = 360 * mul / X; while (360 * mul % X != 0) mul++; Console.Writ...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; namespace AC { class Program { static void Main(string[] args) { var X = ReadInt(); var K = 1; while (!(K * X >= 360 && K * X % 360 == 0)) K++; Console.WriteLine(K); ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 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], ["+", 8, 196, 0, 52, 15, 241, 0, 23, 0...
8
238
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace AGC046 { using static Ex; public class Solve { public static void Main(string[] args) { new AGC_A(); } } public class AGC_A { public AGC_A() { var x = ReadInt; var a = 360 % x; if (a == 0) { (36...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace AGC046 { using static Ex; public class Solve { public static void Main(string[] args) { new AGC_A(); } } public class AGC_A { public AGC_A() { var x = ReadInt; var b = Lcm(x, 360) / x; b.Cw(); } } p...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["-", 8, 201, 0, 263, 8, 196, 0, 197, 0, 35], ["-", 8, 201, 0, 263, 8, 196, 0, 57, ...
8
1,236
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using static System.Math; using static System.Array; using static AtCoder.IO_ShortCut; using static AtCoder.Tool; using static AtCoder.ModInt; namespace AtCoder { class A...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using static System.Math; using static System.Array; using static AtCoder.IO_ShortCut; using static AtCoder.Tool; using static AtCoder.ModInt; namespace AtCoder { class A...
[["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21]...
8
1,763
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int c = int.Parse(input[2]); int d = int.Parse(input[3]); long mod = 998244353; long...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int c = int.Parse(input[2]); int d = int.Parse(input[3]); long mod = 998244353; long...
[["-", 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, 79], ["-", 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
326
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0034 { class Program { static void Main(string[] args) { var str = Console.ReadLine(); int X = int.Parse(str.Split(' ')[0]); int Y = int.Parse(str.Split(' ')[1]); for (...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0034 { class Program { static void Main(string[] args) { var str = Console.ReadLine(); int X = int.Parse(str.Split(' ')[0]); int Y = int.Parse(str.Split(' ')[1]); for (...
[["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["-", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-"...
8
165
using System; using System.Linq; namespace atcoder.abc170.b { class Program { static void Main(string[] args) { int[] inputArray = getIntParams(); int X = inputArray[0]; int Y = inputArray[1]; for (int i = 0; i <= X; i++) { for (int j = X; j >= 0; j--) { if (4 * i + 2 *...
using System; using System.Linq; namespace atcoder.abc170.b { class Program { static void Main(string[] args) { int[] inputArray = getIntParams(); int X = inputArray[0]; int Y = inputArray[1]; for (int i = 0; i <= X; i++) { int j = X - i; if (4 * i + 2 * j == Y) { ...
[["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 35], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 20], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, ...
8
276
using System; namespace ConsoleApp31 { class Program { static void Main(string[] args) { string line = Console.ReadLine(); string[] array = line.Split(' '); int x = int.Parse(array[0]); int y = int.Parse(array[1]); if (y % 2 == 0) { if (x <= y / 2 && x >= y / 4) { Console.WriteLin...
using System; namespace ConsoleApp31 { class Program { static void Main(string[] args) { string line = Console.ReadLine(); string[] array = line.Split(' '); int x = int.Parse(array[0]); int y = int.Parse(array[1]); if (y % 2 == 0) { if (x * 2 <= y && x * 4 >= y) { Console.WriteLin...
[["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["-", 0, 57, 15, 16, 12, 16, 12, 16, 17,...
8
130
using System; using System.Linq; namespace _170_b { internal class CraneAndTurtle { private static void Main(string[] args) { var xy = Console.ReadLine()?.Split(" ").Select(int.Parse).ToArray(); if (xy == null) return; var x = xy[0]; var y = xy[1]; if (y % 2 != 0) { Console.WriteLine...
using System; using System.Linq; namespace _170_b { internal class CraneAndTurtle { private static void Main(string[] args) { var xy = Console.ReadLine()?.Split(" ").Select(int.Parse).ToArray(); if (xy == null) return; var x = xy[0]; var y = xy[1]; // 奇数 if (y % 2 != 0) { Console...
[["+", 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, 48], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22...
8
132
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class Util { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { int[] XY = ria(); int X = XY[0]; int Y = XY[1]; // string[][] ani...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class Util { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { int[] XY = ria(); int X = XY[0]; int Y = XY[1]; string ans = "No"...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 85], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22]...
8
578
using System; using System.Collections.Generic; class Program { private const int CRANE_LEGS = 2; public static void Main(string[] args) { int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); Program pg = new Program(); Console.WriteLine(pg.Exe(input)); } public string Exe(int...
using System; using System.Collections.Generic; class Program { private const int CRANE_LEGS = 2; public static void Main(string[] args) { int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); Program pg = new Program(); Console.WriteLine(pg.Exe(input)); } public string Exe(int...
[["+", 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, 23, 0, 24], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+...
8
162
using System; namespace ABC171B { class Program { static void Main(string[] args) { int n, k; var aa = Console.ReadLine().Split(" "); n = int.Parse(aa[0]); k = int.Parse(aa[1]); int x = 0; int[] a = new int[n]; var ac = Console.ReadLine().Split(" "); for (int i = 0; i < n; i++) ...
using System; namespace ABC171B { class Program { static void Main(string[] args) { int n, k; var aa = Console.ReadLine().Split(" "); n = int.Parse(aa[0]); k = int.Parse(aa[1]); int x = 0; int[] a = new int[n]; var ac = Console.ReadLine().Split(" "); for (int i = 0; i < n; i++) ...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], [...
8
185
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace C { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace C { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["-", 0, 99, 8, 254, 0, 239, 0, 264, 0, 203], ["+", 0, 99, 8, 254, 0, 239, 0, 264, 0, 203]]
8
473
using System; using System.Linq; class program { static void Main() { long n = long.Parse(Console.ReadLine()); string a = ""; while (n > 0) { a += (char)(n % 26 + 96); n = n / 26; } string ans = string.Concat(a.Reverse()); Console.Write(ans); } }
using System; using System.Linq; class program { static void Main() { long n = long.Parse(Console.ReadLine()); string a = ""; while (n > 0) { a += (char)((n - 1) % 26 + 97); n = (n - 1) / 26; } string ans = string.Concat(a.Reverse()); Console.Write(ans); } }
[["+", 51, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 51, 23, 0, 16, 31, 16, 31, 23, 0, 25], ["-", 0, 11, 12, 74, 51, 23, 0, 16, 12, 203], ["+", 0, 11, 12, 74, 51, 23, 0, 16, 12, 203], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+...
8
87
using System; using System.Collections.Generic; public class Program { public static void Main() { long number = long.Parse(Console.ReadLine()); List<int> result = new List<int>(); int baseNumber = 26; while (number != 0) { number--; result.Add((int)(number % baseNumber)); number =...
using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { long number = long.Parse(Console.ReadLine()); List<int> result = new List<int>(); int baseNumber = 26; while (number != 0) { number--; result.Add((int)(number % baseNumbe...
[["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 2...
8
115
using System; using System.Collections.Generic; using System.Linq; class Progaram { static List<char> resl = new List<char>(); static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); Saiki(N); Console.WriteLine(new String(resl.ToArray())); } static void Saiki(long N) { var w...
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; class Progaram { static List<char> resl = new List<char>(); static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); Saiki(N); Console.WriteLine(new String(resl.ToArray())); } static void ...
[["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202...
8
156
using System; namespace ABC171C { class Program { static void Main(string[] args) { ulong n = ulong.Parse(Console.ReadLine()); string s = null; int f = 0; double ss = Math.Pow(26, 6) + Math.Pow(26, 5) + Math.Pow(26, 4) + Math.Pow(26, 3) + Math.Pow(26, 2) + Math.Pow(26, 1); if (0 ...
using System; namespace ABC171C { class Program { static void Main(string[] args) { ulong n = ulong.Parse(Console.ReadLine()); string s = null; int f = 0; double ss = Math.Pow(26, 6) + Math.Pow(26, 5) + Math.Pow(26, 4) + Math.Pow(26, 3) + Math.Pow(26, 2) + Math.Pow(26, 1); if (0 ...
[["-", 0, 1, 0, 11, 12, 16, 12, 74, 0, 24], ["-", 0, 1, 0, 11, 12, 16, 12, 74, 39, 199], ["-", 0, 1, 0, 11, 12, 16, 12, 74, 0, 25], ["-", 12, 16, 12, 74, 51, 213, 63, 214, 205, 22], ["-", 12, 16, 12, 74, 51, 213, 63, 214, 0, 131], ["-", 12, 16, 12, 74, 51, 213, 63, 214, 141, 22], ["-", 12, 16, 12, 74, 51, 213, 3, 4, 0,...
8
1,054
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } ...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 62], ["+", 0, 198, 0, 200, 0, 212, 0, 283, 0, 295], ["+", 0, 200, 0, 212, 0, 283, 0, 284, 0...
8
1,127
using System; using System.Text; namespace AtCoder.Abcdef { public class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); long n = long.Parse(Console.ReadLine()); s...
using System; using System.Text; namespace AtCoder.Abcdef { public class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); // Input integer long n = long.Parse(Conso...
[["-", 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, 5, 0, 62], ["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22],...
8
146
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { var N = GetLongNum(); var str = "zabcdefghijklmnopqrstuvwxyz"; var a = N / 26; var b = N % 26; var ans = st...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { var N = GetLongNum(); var str = "zabcdefghijklmnopqrstuvwxyz"; var a = N / 26; var b = N % 26; var ans = st...
[["+", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", ...
8
267
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; public class GFG { public static void Main() { var ii = Console.ReadLine(); long n = long.Parse(ii); Dictionary<long, char> dic = new Dictionary<long, char>(); char a = 'a'; for (int ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; public class GFG { public static void Main() { var ii = Console.ReadLine(); long n = long.Parse(ii); Dictionary<long, char> dic = new Dictionary<long, char>(); char a = 'a'; for (int ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109],...
8
187
using System; using System.Collections.Generic; namespace AtCoder.Abc { class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); // long mx = 1000000000000001L; var c...
using System; using System.Collections.Generic; namespace AtCoder.Abc { class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); // long mx = 1000000000000001L; var c...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 85], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 0, 1...
8
274
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace ABC171 { class C { static void Main(string[] args) { // var NK = Console.ReadLine().Split().Select(long.Parse).ToArray(); // var p = Console.ReadLine().Split().Select(long.Parse).OrderBy(x => // x).ToArray...
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace ABC171 { class C { static void Main(string[] args) { // var NK = Console.ReadLine().Split().Select(long.Parse).ToArray(); // var p = Console.ReadLine().Split().Select(long.Parse).OrderBy(x => // x).ToArray...
[["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 0, 52, 8, 196, 0, 57, 64, 93, 0, 94], ["-", 0, 52, 8, 196, 0, 57, 64, 93, 0, 35], ["+", 0, 52, 8, 196, 0, 57, 64, 1, 0, 35], ["+",...
8
176
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC { class ABC170 { static ulong N; static char[] answers; static List<char> result; static void Main(String[] args) { init(); // 26進数 // 再帰 base: i < 26 proc(N); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC { class ABC170 { static ulong N; static char[] answers; static List<char> result; static void Main(String[] args) { init(); // 26進数 // 再帰 base: i < 26 proc(N); ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46],...
8
212
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; public class MainClass { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput(), Console.Out.Encoding); sw.AutoFlush = false; Console.SetOut(sw); ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; public class MainClass { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput(), Console.Out.Encoding); sw.AutoFlush = false; Console.SetOut(sw); ...
[["+", 0, 200, 0, 212, 0, 297, 0, 229, 0, 258], ["+", 0, 200, 0, 212, 0, 297, 0, 229, 0, 21], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 196, 0, 52, 8, 196, 0, 197, 0, 35], ["+", 0, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 0, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ...
8
1,848
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() => new Program().Solve(); void Solve() { var n = ReadLong(); var s = ""; while (n != 0) { var t = (n - 1) % 26; s = (char)(t + 'a') + s; n = n / 26; } Console.WriteLine(s);...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() => new Program().Solve(); void Solve() { var n = ReadLong(); var s = ""; while (true) { n--; var t = n % 26; s = (char)(t + 'a') + s; if (n <= 25) break; n = n /...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 79], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 68], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["-"...
8
147
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = decimal.Parse(Console.ReadLine()) - 1; var list = new List<decimal>(); var i = 1; var current = N; while (true) { if ((i != 1 && current / 26 > 1) || (i == 1 && c...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = decimal.Parse(Console.ReadLine()) - 1; var list = new List<decimal>(); var i = 1; var current = N; while (true) { if ((i != 1 && current / 26 > 1) || (i == 1 && c...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["-", 12, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 0, 23, 0, 41, 15, 16, 31, 16, 17, 109], ["+", 0, 23, 0, 41, 15, 16, 31, 16, 12, 2...
8
260
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); long n = long.Parse(input[0]); char a = 'a'; List<char> nameInv = new List<char>(); long test = n; while (test > 0) { long idx = test % 26; ...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); long n = long.Parse(input[0]); char a = 'a'; List<char> nameInv = new List<char>(); long test = n; while (true) { long tmp1 = test % 26; ...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 3...
8
191
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication6 { class Program { static string alfa = "abcdefghijklmnopqrstuvwxyz"; static void Main(string[] args) { var ret = string.Empty; var num = c2i(RL()) - 1; var...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication6 { class Program { static string alfa = "abcdefghijklmnopqrstuvwxyz"; static void Main(string[] args) { var ret = string.Empty; var num = c2i(RL()) - 1; var...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
277
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(); string answer = ""; while (true) { long mod = n % 26; answer = ((char)('a' + mod - 1)).ToString() + answer;...
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(); string answer = ""; while (true) { long mod = n % 26; char c = mod == 0 ? 'z' : (char)('a' + mod - 1); ...
[["-", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 12, 16, 31, 213, 63, 214, 205, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 60], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 12,...
8
406
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProblemC { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); long alphabetNum = 26; long temp = 1; var firstNum = N % 26; var res =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProblemC { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); long alphabetNum = 26; long numPow = 1; long temp = 0; var firstNum = ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31,...
8
208
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderMake.ABC171 { class ABC171C { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); List<char> ans = new List<char>(); String ret = ""; while (n != 0) { ans.Add(alphNum(n)); ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderMake.ABC171 { class ABC171C { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); List<char> ans = new List<char>(); String ret = ""; while (n != 0) { n--; ans.Add(alp...
[["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 68], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0...
8
170
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; class Program { public static void Main() { long N = long.Parse(Console.ReadLine()); long num = 26; String ans = ""; while (N > 0) { int x = (int)(N % num - 1); char temp = (char)('a' + x); ans ...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; class Program { public static void Main() { long N = long.Parse(Console.ReadLine()); long num = 26; String ans = ""; while (N > 0) { N = N - 1; long x = (long)(N % num); char temp = (char)('a' +...
[["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 0, 5...
8
110
using System; using System.Collections; using System.Collections.Generic; class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); string ans = ""; while (N > 0) { ans = DecToLetter(N % 26) + ans; N -= N % 26; N /= 26; } Console.WriteLine(ans); ...
using System; using System.Collections; using System.Collections.Generic; class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); string ans = ""; while (N > 0) { ans = DecToLetter((N - 1) % 26 + 1) + ans; N -= (N - 1) % 26 + 1; N /= 26; } Cons...
[["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 25], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 11, 12, 16, 31, 16, 31, 23, 0, 24], ["+", ...
8
112
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["+", 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, 60], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["+", ...
8
574
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_20190707_1 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); List<long> name = new List<long>(); do { name.Add(N % 26); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_20190707_1 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); List<long> name = new List<long>(); do { if (N % 26 != 0) {...
[["+", 8, 196, 0, 82, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 82, 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, 82, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 82, 8, 196, 0, 57, 15, 16, 12, 203],...
8
157
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 31, ...
8
257
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; static public string al = "abcdefghijklmnopqrstuvwxyz"; public static void Main() { // ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; static public string al = "abcdefghijklmnopqrstuvwxyz"; public static void Main() { // ...
[["+", 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, 60], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+",...
8
1,184
using System; using System.Collections.Generic; using System.Linq; class c { public static void Main() { long n = long.Parse(Console.ReadLine()); String ans = ""; while (n > 0) { long a = n % 26; if (a == 0) { a = 26; } ans = (char)('a' + a - 1) + ans; n /= 26; } ...
using System; using System.Collections.Generic; using System.Linq; class c { public static void Main() { long n = long.Parse(Console.ReadLine()); String ans = ""; while (n > 0) { long a = n % 26; if (a == 0) a = 26; ans = (char)('a' + a - 1) + ans; n /= 26; if (a == 2...
[["-", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 52, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 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, 60], ["+", 0...
8
102
using System.Collections; using System.Text; using System.Threading.Tasks; using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System; using System.Numerics; using System.IO.Pipes; using System.Threading; using System.Net; class Program { #region Reader ...
using System.Collections; using System.Text; using System.Threading.Tasks; using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System; using System.Numerics; using System.IO.Pipes; using System.Threading; using System.Net; class Program { #region Reader ...
[["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["-", 0, 28, 0, 74, 51, 23, 0, 16, 31, 203], ["+", 0, 28, 0, 74, 51, 23, 0, 16, 31, 203]]
8
2,537
using System; using System.Collections.Generic; using System.Text; namespace abc171_c { class Program { static void Main(string[] args) { var N = CIn.ReadLong(); var sb = new StringBuilder(); while (N > 0) { var c = (char)((N - 1) % 26 + 'a'); sb.Insert(0, c); N /= 26; } Cons...
using System; using System.Collections.Generic; using System.Text; namespace abc171_c { class Program { static void Main(string[] args) { var N = CIn.ReadLong(); var sb = new StringBuilder(); while (N > 0) { N -= 1; var c = (char)(N % 26 + 'a'); sb.Insert(0, c); N /= 26; } ...
[["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["-", 0, 200, 0, 212, 0, 74, 51, 23, 0, 24], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["-", 51,...
8
505
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder.Abc171 { class C { public static void Main() { var n = long.Parse(Console.ReadLine()); var ans = new List<char>(); while (n > 0) { int a = (int)((n - 1) % 26); ans.Add((char)(a + 'a')); ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder.Abc171 { class C { public static void Main() { var n = long.Parse(Console.ReadLine()); var ans = new List<char>(); while (n > 0) { int a = (int)((n - 1) % 26); ans.Add((char)(a + 'a')); ...
[["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 90], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 8, 19...
8
123
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace D { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace D { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["+", 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, 196, 0, 7, 8, 196, 0, 1, 0, 35]]
8
351
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; class Program { static void Main(string[] args...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; class Program { static void Main(string[] args...
[["-", 225, 226, 0, 16, 31, 213, 63, 214, 205, 22], ["-", 225, 226, 0, 16, 31, 213, 63, 214, 0, 131], ["-", 225, 226, 0, 16, 31, 213, 63, 214, 141, 22], ["-", 225, 226, 0, 16, 31, 213, 3, 4, 0, 24], ["-", 225, 226, 0, 16, 31, 213, 3, 4, 0, 25], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["-", 0, 227, 39, 224, 225...
8
274
using System; using System.Collections.Generic; public class Program { public static Int64 sum(Dictionary<String, Int64> nums) { Int64 sum = 0; foreach (KeyValuePair<String, Int64> item in nums) { sum += item.Value * Convert.ToInt64(item.Key); } return sum; } public static void Main(Strin...
using System; using System.Collections.Generic; public class Program { public static Int64 sum(Dictionary<String, Int64> nums) { Int64 sum = 0; foreach (KeyValuePair<String, Int64> item in nums) { sum += item.Value * Convert.ToInt64(item.Key); } return sum; } public static void Main(Strin...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107...
8
324
using System; class c { static void Main() { int n = int.Parse(Console.ReadLine()); var a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int q = int.Parse(Console.ReadLine()); var x = new int[100001]; for (int i = 0; i < n; i++) { x[a[i]]++; } long ans = 0; for (int i...
using System; class c { static void Main() { int n = int.Parse(Console.ReadLine()); var a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int q = int.Parse(Console.ReadLine()); var x = new long[100001]; for (int i = 0; i < n; i++) x[a[i]]++; long ans = 0; for (int i = 0; i...
[["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 45], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 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...
8
225
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { hoge(); // System.Console.ReadLine(); } public static void hoge() { var n = long.Parse(System.Console.ReadLine()); var a = System.Console.ReadLine().Split(' ').Select(long.Parse).T...
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { hoge(); // System.Console.ReadLine(); } public static void hoge() { var n = long.Parse(System.Console.ReadLine()); var a = System.Console.ReadLine().Split(' ').Select(long.Parse).T...
[["+", 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, 241, 0, 111], ["+", 0, 57, 15, 241, 0, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 241, 0, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 241, 0, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 241, 0, 213, 3, 4, 0, 24...
8
313
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Text; using System.Text.RegularExpressions; using System.Diagnostics; using static util; using P = pair<int, int>; class Program { static void Main(string[] args) { var sw = new Stream...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Text; using System.Text.RegularExpressions; using System.Diagnostics; using static util; using P = pair<int, int>; class Program { static void Main(string[] args) { var sw = new Stream...
[["+", 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, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]]
8
2,282
using System; using System.Collections.Generic; using System.Diagnostics.Tracing; using System.Linq; using System.Net.NetworkInformation; using System.Runtime.CompilerServices; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Threading; using Extensions; using DS...
using System; using System.Collections.Generic; using System.Diagnostics.Tracing; using System.Linq; using System.Net.NetworkInformation; using System.Runtime.CompilerServices; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Threading; using Extensions; using DS...
[["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 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
2,718
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; static void Main(string[] args) { var n = Read().Int(); var l = new long[n]; var r ...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; static void Main(string[] args) { var n = Read().Int(); var l = new long[n]; var r ...
[["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 64, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0...
8
794
using System; class B { public static void Main() { string[] Ar = Console.ReadLine().Split(' '); bool ans = false; for (int i = int.Parse(Ar[0]); i >= 0; i--) { for (int j = 0; j <= int.Parse(Ar[0]); j++) { int TuAsi = i * 2; int KaAsi = j * 4; int Ashi = TuAsi + KaAsi; ...
using System; class B { public static void Main() { string[] Ar = Console.ReadLine().Split(' '); bool ans = false; for (int i = int.Parse(Ar[0]); i >= 0; i--) { int j = int.Parse(Ar[0]) - i; int TuAsi = i * 2; int KaAsi = j * 4; int Ashi = TuAsi + KaAsi; if (Ashi == int.Pars...
[["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 35], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0...
8
152
using System; namespace aziz { class Program { static void Main(string[] args) { String[] XY = Console.ReadLine().Split(' '); int X = int.Parse(XY[0]); int Y = int.Parse(XY[1]); int legs; string result = "No"; for (int i = 0; i <= X; i++) { legs = 2 * i + (X - i) * 4; if (legs == ...
using System; using System.Collections.Generic; using System.Linq; namespace aziz { class Program { static void Main(string[] args) { String[] XY = Console.ReadLine().Split(' '); int X = int.Parse(XY[0]); int Y = int.Parse(XY[1]); int legs; string result = "No"; for (int i = 0; i <= X; i++) {...
[["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, ...
8
129
using System; using System.Globalization; using System.IO; using System.Text; public class Program { public static void Main(string[] args) { var stdin = Console.OpenStandardInput(); var ss = new StreamScanner(stdin); var p = new Program(); p.solve(ss); stdin.Close(); } private void solve(St...
using System; using System.Globalization; using System.IO; using System.Text; public class Program { public static void Main(string[] args) { var stdin = Console.OpenStandardInput(); var ss = new StreamScanner(stdin); var p = new Program(); p.solve(ss); stdin.Close(); } private void solve(St...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 7, 10, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, ...
8
603
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace atcoder { class Program { static void Main(string[] args) { var xy = Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray(); var x = xy[0]; var y = xy[1]; var result = x * 4; ...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace atcoder { class Program { static void Main(string[] args) { var xy = Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray(); var x = xy[0]; var y = xy[1]; var result = x * 4; ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],...
8
142
using System; namespace ABC170B { class Program { static void Main(string[] args) { var str = Console.ReadLine().Split(' '); var x = int.Parse(str[0]); var y = int.Parse(str[1]); if (y % 2 != 0) { Console.WriteLine("No"); } var flag = false; for (var i = 0; i <= x; i++) { va...
using System; namespace ABC170B { class Program { static void Main(string[] args) { var str = Console.ReadLine().Split(' '); var x = int.Parse(str[0]); var y = int.Parse(str[1]); var flag = false; if (y % 2 == 0) { for (var i = 0; i <= x; i++) { var kame = i * 2; var tsuru ...
[["+", 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, 211, 0, 147], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 1...
8
167
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace Contest { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(); var x = int.Parse(input[0]); var y = int.Parse(input[1]); for (int i = 0; i <= x; i++) { ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace Contest { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(); var x = int.Parse(input[0]); var y = int.Parse(input[1]); for (int i = 0; i <= x; i++) { ...
[["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["-", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 35], ["-", 0, 7...
8
146
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionB { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionB { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
[["+", 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
198
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class { static void Main(string[] args) { var XY = RL<int>(); for (var x = 0; x <= XY[0]; x++) { for (var y = 0; y <= XY[0] - x; y++) { if (x * 2 + y * 4 == XY[1]) { Console.Write("...
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class { static void Main(string[] args) { var XY = RL<int>(); for (var x = 0; x <= XY[0]; x++) { for (var y = 0; y <= XY[0] - x; y++) { if (x * 2 + y * 4 == XY[1] && x + y == XY[0]) { ...
[["+", 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, 72], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 16, 12, 16, 12, 204, 205, 22], ["+", 15, 16, 12, 16, 12, 204, 206, 207, 0,...
8
357
using System; using System.Text; using System.Collections.Generic; using System.Linq; using System.IO; namespace AtCoder.XXX.B { public class Program { public static void Main(string[] args) { var datas = cr(); // 3 8 for (var i = 0; i < datas[0] + 1; i++) { for (var j = 0; j < datas[0] + 1; ...
using System; using System.Text; using System.Collections.Generic; using System.Linq; using System.IO; namespace AtCoder.XXX.B { public class Program { public static void Main(string[] args) { var datas = cr(); // 3 8 for (var i = 0; i < datas[0] + 1; i++) { for (var j = 0; j < datas[0] + 1; ...
[["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["+", 64, 196, 0, 57, 15, 16, 12, 204, 20...
8
346
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionB { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionB { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 16, 12, 16, 12, 74, 0, 24], ["+", 0, 57, 15, 16, 12, 16, 12, 74, 39, 199], ["+", 0, 57, 15, 16, 12, 16, 12, 74, 51, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25]...
8
182
using System; using System.Collections.Generic; using System.Linq; namespace x { class Program { static void Main(string[] args) { var (animalCount, legCount) = IOUtils.Read2Ints(); var tsuruCount = ((decimal)legCount - 4 * (decimal)animalCount) / (-2); if (tsuruCount % 1 == 0 && tsuruCount >= 0) { ...
using System; using System.Collections.Generic; using System.Linq; namespace x { class Program { static void Main(string[] args) { var (animalCount, legCount) = IOUtils.Read2Ints(); // var tsuruCount = ((decimal)legCount - 4 * (decimal)animalCount) / (-2); // if (tsuruCount % 1 == 0 && tsuruCount >= 0) ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 23, 0, 16, 31, 74, 39, 199], ["-", 0, 16, 31, 23, 0, 16, 31, 74, 0, 25], ["-", 0, 16, 31, 23, 0, 16, 12, 16, 31, 203], ["-", 0, 16, 31, 23, 0, 16, 12, 16, 17, 48...
8
432
using System; using System.Linq; namespace Atcoder { class Program { public static void Main(string[] args) { long[] input = Console.ReadLine().Split(" ").Select(i => long.Parse(i)).ToArray(); if (4 * input[0] - input[1] >= 0 && ((4 * input[0] - input[1]) % 2) == 0) Console.Write("Yes"); el...
using System; using System.Linq; namespace Atcoder { class Program { public static void Main(string[] args) { long[] input = Console.ReadLine().Split(" ").Select(i => long.Parse(i)).ToArray(); if (4 * input[0] - input[1] >= 0 && ((4 * input[0] - input[1]) % 2) == 0 && (4 * input[0] - input[1]...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 16, 31, 16, 31, 203], ["+", 12, 23, 0, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 16, 31, 16, 31, 16, 12, 204, 205, 22], ["+", 31, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["+", 31, 16, 12, 204, 206, 207, 0, 28...
8
117
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace ABC170 { class B { static void Main(string[] args) { var XY = Console.ReadLine().Split().Select(long.Parse).ToArray(); // var CA = Enumerable.Repeat(0, (int)N).Select(_ => // Console.ReadLine().Split().Sel...
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace ABC170 { class B { static void Main(string[] args) { var XY = Console.ReadLine().Split().Select(long.Parse).ToArray(); // var CA = Enumerable.Repeat(0, (int)N).Select(_ => // Console.ReadLine().Split().Sel...
[["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 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...
8
143
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace AtCoder { public static class Ex { public static List<string> FastSort(this List<string> s) { s.Sort(StringComparer.OrdinalIgnoreCase); return s.ToList(); } public static void yesno(this bool b) { Console.WriteL...
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace AtCoder { public static class Ex { public static List<string> FastSort(this List<string> s) { s.Sort(StringComparer.OrdinalIgnoreCase); return s.ToList(); } public static void yesno(this bool b) { Console.WriteL...
[["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["-", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 35], ["-", 8, 1...
8
1,893
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ProblemB { static bool SAIKI = false; st...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ProblemB { static bool SAIKI = false; st...
[["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12...
8
1,460
using System; using System.Linq; namespace atcoder.abc170.c { class Program { static void Main(string[] args) { int[] inputArray = getIntParams(); int X = inputArray[0]; int N = inputArray[1]; int ret = 0; if (N == 0) { ret = X; } else { int[] paramArray = get...
using System; using System.Linq; namespace atcoder.abc170.c { class Program { static void Main(string[] args) { int[] inputArray = getIntParams(); int X = inputArray[0]; int N = inputArray[1]; int ret = 0; if (N == 0) { ret = X; } else { int[] paramArray = get...
[["-", 0, 57, 75, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 33], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]...
8
337
using System; using System.Collections.Generic; using System.Linq; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int x = sc.NextInt(); int n = sc.NextInt(); int[] p = sc.IntArray(); var hs = new HashSet<int>(); foreach (var i in p) { hs.Add(i)...
using System; using System.Collections.Generic; using System.Linq; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int x = sc.NextInt(); int n = sc.NextInt(); int[] p = n == 0 ? new int[0] : sc.IntArray(); var hs = new HashSet<int>(); foreach (var i i...
[["+", 0, 200, 0, 212, 0, 41, 15, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 60], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 101], ["+", 0, 200, 0, 212, 0, 41, 64, 227, 0, 228], ["+", 0, 212, 0, 41, 64, 227, 39, 224, 39, 199], ["+", 0, 41, 64, 227, 39, 224, 225, 22...
8
485
using System; class Program { static void Main(string[] args) {    string a = Console.ReadLine(); //標準入力 string[] aa = a.Split(' '); int X = int.Parse(aa[0]); int N = int.Parse(aa[1]); string b = Console.ReadLine(); //標準入力 string[] bb = b.Split(' '); int[] cc = new int[bb.Length]; fo...
using System; class Program { static void Main(string[] args) {    string a = Console.ReadLine(); //標準入力 string[] aa = a.Split(' '); int X = int.Parse(aa[0]); int N = int.Parse(aa[1]); if (N == 0) { Console.WriteLine("{0}", X); return; } string b = Console.ReadLine(); //標準入力 ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
261
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace AtCoder.ABC170 { public class Problem3 { public static void Main(string[] args) { var a = Console.ReadLine().Split(" "); var X = int.Parse(a[0]); var N = int.Parse(a[1]); if (N == 0) { ...
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace AtCoder.ABC170 { public class Problem3 { public static void Main(string[] args) { var a = Console.ReadLine().Split(" "); var X = int.Parse(a[0]); var N = int.Parse(a[1]); if (N == 0) { ...
[["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 19], ["+", 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, 0, 45]...
8
343
using System; using System.Linq; using System.Collections.Generic; namespace Atcoder { class Program { public static void Main(string[] args) { int[] input1 = Console.ReadLine().Split(" ").Select(i => int.Parse(i)).ToArray(); int[] input2 = { 0 }; if (input1[1] != 0) { input2 = Co...
using System; using System.Linq; using System.Collections.Generic; namespace Atcoder { class Program { public static void Main(string[] args) { int[] input1 = Console.ReadLine().Split(" ").Select(i => int.Parse(i)).ToArray(); int[] input2 = { 0 }; if (input1[1] != 0) { input2 = Co...
[["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["-", 0, 57, 75, 1, 0, 213, 63, 214, 205, 22], ["-", 0, 57, 75, 1, 0, 213, 63, 214, 0, 131], ["-", 0, 57, 75, 1, 0, 213, 63, 214, 141, 22], ["-", 0, 57, 75, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], [...
8
326
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOu...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOu...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 195, 8, 196, 0, 57, 15, 16...
8
287
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' ').Select(txt => int.Parse(txt)).ToList(); var X = inputs[0]; var N = inputs[1]; HashSet<int> candidates = new HashSet<int>(); if (...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' ').Select(txt => int.Parse(txt)).ToList(); var X = inputs[0]; var N = inputs[1]; HashSet<int> candidates = new HashSet<int>(); if (...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ...
8
282
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder170 { class ProgramC { static void Main(string[] args) { var input = Console.ReadLine(); var inputList = input.Split(" "); int.TryParse(inputList[0], out var X); int.TryParse(inputList[1], out var N...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder170 { class ProgramC { static void Main(string[] args) { var input = Console.ReadLine(); var inputList = input.Split(" "); int.TryParse(inputList[0], out var X); int.TryParse(inputList[1], out var N...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 241, 0, 111], ["+", 0, 57, 15, 241, 0, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 241, 0, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 241, 0, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 241, 0, 213, 3, 4,...
8
205
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace lean { class Program { static void Main() { int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int x = a[0]; int[] lis = new int[] {}; if (a[1] == 0) { Co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace lean { class Program { static void Main() { int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int x = a[0]; int[] lis = new int[] {}; if (a[1] == 0) { Co...
[["-", 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], ["-", 205, 213, 3, 4, 0, 28, 0, 227, 0, 228], ["-", 3, 4, 0, 28, 0, 227, 39, 224, 39, 199], ["-", 0, 28, 0, 227, 39, 224, 225, 226, 0, 70], ["-", 0, 28, 0, 227, 39, 224,...
8
242
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static System.Array; class Program { public static void Main() { var n = ReadLine().Split().Select(int.Parse).ToArray(); if (n[1] <= 1) { WriteLine(n[0]); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static System.Array; class Program { public static void Main() { var n = ReadLine().Split().Select(int.Parse).ToArray(); if (n[1] < 1) { WriteLine(n[0]); ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 10, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 20...
8
303
using System; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var arr = Console.ReadLine().Split().Select(int.Parse).ToArray(); var max = 10 * 10 * 10 * 10 * 10 * 10; var count = new int[max]; for (int i = 0; i <= n; i++...
using System; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var arr = Console.ReadLine().Split().Select(int.Parse).ToArray(); var max = arr.Max(); var count = new int[max + 1]; for (int i = 0; i < n; i++) { count...
[["-", 31, 16, 31, 16, 31, 16, 31, 16, 31, 203], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 48], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 48], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 212, 0, 16, 31, 16, 31, 16, 17, 48], ["-", 0, 212, 0, 16, 31, 16, 31, 16, ...
8
254
using System; using System.Collections.Generic; using System.Linq; class program { static void Main() { int n = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); bool[] table = new bool[1000001]; Array.Sort(a); if (a[0] == 1) { if (a[1] == 1...
using System; using System.Linq; class program { static void Main() { int n = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int amx = a.Max(); bool[] table = new bool[amx + 1]; Array.Sort(a); if (a[0] == 1) { if (n == 1) { Co...
[["-", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["+", 0, 200, 0, 212, 0, ...
8
228
using System; using System.Collections.Generic; using System.Linq; class program { static void Main() { int n = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); bool[] table = new bool[1000001]; Array.Sort(a); if (a[0] == 1) { if (a[1] == 1...
using System; using System.Collections.Generic; using System.Linq; class program { static void Main() { int n = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); bool[] table = new bool[1000001]; Array.Sort(a); if (a[0] == 1) { if (n == 1) {...
[["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 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, 0, 45], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, ...
8
228
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { //入力を保持する var N = int.Parse(Console.ReadLine()); var As = Console.ReadLine() .Split() .Select(e => int.Parse(e)) .OrderBy(e => e) ...
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { //入力を保持する var N = int.Parse(Console.ReadLine()); var As = Console.ReadLine() .Split() .Select(e => int.Parse(e)) .OrderBy(e => e) ...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["-", 0, 7, 8, 196, 0, 52, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 52, 15, 16, 12, 203]]
8
291
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { //入力を保持する var N = int.Parse(Console.ReadLine()); var As = Console.ReadLine() .Split() .Select(e => int.Parse(e)) .OrderBy(e => e) ...
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { //入力を保持する var N = int.Parse(Console.ReadLine()); var As = Console.ReadLine() .Split() .Select(e => int.Parse(e)) .OrderBy(e => e) ...
[["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 51, 250], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, ...
8
244
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { var inputArray = retreiveLongArray(); var inputCount = 1; // 不正な入力は処理しない if (inputArray.Length != inputCount) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { var inputArray = retreiveLongArray(); var inputCount = 1; // 不正な入力は処理しない if (inputArray.Length != inputCount) { ...
[["+", 31, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["+", 206, 207, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["-", 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, ...
8
416
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC170D { class Program { static void Main(string[] args) { var N = RInt; var A = RInts.OrderBy(x => x).ToList(); int max = 1001010; bool[] ok = n...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC170D { class Program { static void Main(string[] args) { var N = RInt; var A = RInts.OrderBy(x => x).ToList(); int max = 1001010; bool[] ok = n...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ...
8
1,261
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const char White = '.'; const char Black = '#'; const long Mod = 1000000007;...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const char White = '.'; const char Black = '#'; const long Mod = 1000000007;...
[["-", 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, 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], ["-", 8, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214...
8
503