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.Linq; namespace c { class Program { static void Main(string[] args) { int MOD_NUMBER = 1000000007; int item_cnt = getIntParam(); long[] items = getLongParams(); long sum = 0; long answer = 0; for (int i = 0; i < item_cnt; i++) { sum += items[i]; } fo...
using System; using System.Linq; namespace c { class Program { static void Main(string[] args) { long MOD_NUMBER = 1000000007; int item_cnt = getIntParam(); long[] items = getLongParams(); long sum = 0; long answer = 0; for (int i = 0; i < item_cnt; i++) { sum += items[i]; sum ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, ...
8
278
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; class Program { static void Main(string[] args) { var mod = 1000000007; var N = int.Parse(Console.ReadLine()); var A = new List<decimal>(); var line = Console.ReadLine().Sp...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; class Program { static void Main(string[] args) { checked { var mod = 1000000007; var N = int.Parse(Console.ReadLine()); var A = new List<long>(); var line = Co...
[["+", 8, 201, 0, 195, 8, 196, 0, 287, 0, 292], ["+", 0, 195, 8, 196, 0, 287, 0, 196, 0, 45], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0,...
8
236
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace QuestionC { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] aStrings = Console.ReadLine().Split(' '); List<double> aList = new Li...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace QuestionC { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] aStrings = Console.ReadLine().Split(' '); List<decimal> aList = new L...
[["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, ...
8
209
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder177 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long[] A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).To...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder177 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long[] A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).To...
[["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["-", 8, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], [...
8
245
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder177 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long[] A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).To...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder177 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long[] A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).To...
[["+", 0, 11, 12, 23, 0, 16, 12, 23, 0, 24], ["-", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 12, 23, 0, 16, 12, 23, 0, 16, 12, 22], ["+", 0, 11, 12, 23, 0, 16, 12, 23, 0, 25], ["+", 8, 196, 0, 1, 0, 11, 12, 23, 0, 25], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0,...
8
169
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class ABC177C { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); int[] a = new int[n]; long mod...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class ABC177C { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); long[] a = new long[n]; long...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, ...
8
227
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; using System.Threading; internal partial class Solver { public void Run() { var n = ni(); v...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; using System.Threading; internal partial class Solver { public void Run() { var n = ni(); v...
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 31, 203], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 48], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 48], ["-", 0, 16, 31, 16, 12, 213, 63, 214, 205, 22], ["-", 0, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["-", 0, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["-", 0, 16, 31, 16, 12, 213, 3, 4...
8
1,354
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Security.AccessControl; using System.Text; using System.Threading.Tasks; namespace AtCoder177 { class Program { static void Main(string[] args) { QC(); } static void QA() { string[] splited = Console.ReadLin...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Security.AccessControl; using System.Text; using System.Threading.Tasks; namespace AtCoder177 { class Program { static void Main(string[] args) { QC(); } static void QA() { string[] splited = Console.ReadLin...
[["+", 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, 18], ["+", 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
412
using System; using System.Linq; namespace AtCoderTutorial { public class AtCoder176 { public static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long[] AN = Console.ReadLine().Split(' ').Select(_ => long.Parse(_)).ToArray(); long modNum = (long)Math.Pow(10, 9) + 7; lo...
using System; using System.Linq; namespace AtCoderTutorial { public class AtCoder176 { public static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long[] AN = Console.ReadLine().Split(' ').Select(_ => long.Parse(_)).ToArray(); long modNum = (long)Math.Pow(10, 9) + 7; lo...
[["+", 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, 18], ["+", 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], ["+", 0, 57,...
8
196
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Linq.Expressions; using System.Diagnostics.Tracing; namespace Main { class Program { static void Main(string[] args) { //ここから // int n=ReadInt(); // string[] str = Console.ReadLine().Split(' '); ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Linq.Expressions; using System.Diagnostics.Tracing; namespace Main { class Program { static void Main(string[] args) { //ここから // int n=ReadInt(); // string[] str = Console.ReadLine().Split(' '); ...
[["+", 8, 196, 0, 7, 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, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 0, 57, ...
8
436
namespace AtCoder { 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 MOD = 1000000007; var N = int.Parse(System.Console.ReadLine()); var A = System.Console.ReadLine() ...
namespace AtCoder { 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 MOD = 1000000007; var N = int.Parse(System.Console.ReadLine()); var A = System.Console.ReadLine() ...
[["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 109], ["-", 3, 4, 0, 28, 0, 218, 8, 16, 12, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 109], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["-", 0...
8
592
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace ABC177 { using static Ex; public class Solve { public static void Main(string[] args) { new ABC_C(); } } public class ABC_A { public ABC_A() { var (d, t, s) = ReadLongArray().ToTpl3(); var b = (s * t >= d...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace ABC177 { using static Ex; public class Solve { public static void Main(string[] args) { new ABC_C(); } } public class ABC_A { public ABC_A() { var (d, t, s) = ReadLongArray().ToTpl3(); var b = (s * t >= d...
[["-", 0, 263, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 0, 263, 8, 196, 0, 1, 0, 11, 12, 22], ["-", 8, 201, 0, 263, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8,...
8
1,186
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace contest_Csharp { class Program { public static (long m, long s)[,] dp; public static long mod; static void Main(string[] args) { checked { var sw = new System.IO.StreamWriter( ...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace contest_Csharp { class Program { public static (long m, long s)[,] dp; public static long mod; static void Main(string[] args) { checked { var sw = new System.IO.StreamWriter( ...
[["+", 0, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 17, 109], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 12, 22], ["+", 31, 23, 0, 16, 12, 16, 31, 23, 0, 25], ["+", 0, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 3, ...
8
293
using System; using System.Collections; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Collections.Generic; using System.Threading.Tasks; class Program { // Main static void Main(string[] args) { //読み込む int N = int.Parse(Console.ReadLine()); lo...
using System; using System.Collections; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Collections.Generic; using System.Threading.Tasks; class Program { // Main static void Main(string[] args) { //読み込む int N = int.Parse(Console.ReadLine()); lo...
[["+", 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, 196, 0, 45]...
8
256
using System; using System.Linq; namespace C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var A = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var MOD = 1000000007L; var sum = A.Sum(); sum %= MOD; var result = 0L; for (int i =...
using System; using System.Linq; namespace C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var A = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var MOD = 1000000007L; var sum = A.Sum(); sum %= MOD; var result = 0L; for (int 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, 18], ["+", 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
134
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC177C { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] Ainput = Console.ReadLine().Split(' '); long[] A = new long[N]; lon...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC177C { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] Ainput = Console.ReadLine().Split(' '); long[] A = new long[N]; lon...
[["+", 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
235
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { //出力の都度更新をやめる var sw = new StreamWriter(Console.OpenStandardOutput()) ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { //出力の都度更新をやめる var sw = new StreamWriter(Console.OpenStandardOutput()) ...
[["+", 8, 201, 0, 195, 8, 196, 0, 287, 0, 292], ["+", 0, 195, 8, 196, 0, 287, 0, 196, 0, 45], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+"...
8
416
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[] aa = sc.LongArray(); ModInt answer = new ModInt(0); long[] sums = new long[n]; sums[0] = aa[0]; for ...
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[] aa = sc.LongArray(); ModInt answer = new ModInt(0); ModInt[] sums = new ModInt[n]; sums[0] = aa[0]; ...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 22], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 230, 0, 228], ["-", 0, 1, 0, 11, 12, 16, 31, 230, 39, 22], ["-", 0, 11, 12, 16, 31, 230, 3, 4,...
8
759
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System; class Program { #region Reader static string ReadStr => Console.ReadLine(); static string[] ReadStrs => Console.ReadLine().Split(' '); static int ReadInt => Convert.ToInt32(Console.ReadLine()...
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System; class Program { #region Reader static string ReadStr => Console.ReadLine(); static string[] ReadStrs => Console.ReadLine().Split(' '); static int ReadInt => Convert.ToInt32(Console.ReadLine()...
[["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["+", 0, 1, ...
8
339
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; using System; namespace AtCoder { class Program { private static long mod = 1000000007; static void Main(string[] args) { var n = int.Parse(ReadLine()); var line = ReadLine...
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; using System; namespace AtCoder { class Program { private static long mod = 1000000007; static void Main(string[] args) { var n = int.Parse(ReadLine()); var line = ReadLine...
[["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 0, 1, 0, 11, 12, 16, 31, 204, 205, 22], ["-", 0, 11, 12, 16, 31, 204, 206, 207, 0, 70], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 11, 12, 16, 31, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48],...
8
208
using System; using System.Collections.Generic; using System.Linq; namespace ProgramingStudying2 { class Program { static void Main(string[] args) { var nm = Console.ReadLine().Split().Select(int.Parse).ToArray(); var n = nm[0]; var m = nm[1]; var G = new List<List<int>>(); for (int i = 0; i < ...
using System; using System.Collections.Generic; using System.Linq; namespace ProgramingStudying2 { class Program { static void Main(string[] args) { var nm = Console.ReadLine().Split().Select(int.Parse).ToArray(); var n = nm[0]; var m = nm[1]; if (m == 0) { Console.WriteLine(1); return; ...
[["+", 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
338
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.InteropServices.ComTypes; class Program { static void Main(string[] args) { var inp = arrInt(); int n = inp[0]; int m = inp[1]; var fMap = mapInt(m); UnionFind uni = new UnionFind(...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.InteropServices.ComTypes; class Program { static void Main(string[] args) { var inp = arrInt(); int n = inp[0]; int m = inp[1]; var fMap = mapInt(m); UnionFind uni = new UnionFind(...
[["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 8, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["-", 0, 235, 8, 201, 0, 124, 0, 251, 0, 259], ["-", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["+", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["-...
8
830
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp3 { internal class Class2 { private static void Main(string[] args) { try { var nm = Console.ReadLine().Split(" ").Select(int.Parse).ToArray(); var n = nm[0]; var m = nm[1]; var lookup = Hoge(m).Distin...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp3 { internal class Class2 { private static void Main(string[] args) { var nm = Console.ReadLine().Split(" ").Select(int.Parse).ToArray(); var n = nm[0]; var m = nm[1]; var lookup = Hoge(m).Distinct().ToLookup(x =>...
[["-", 8, 201, 0, 195, 8, 196, 0, 246, 0, 247], ["-", 0, 195, 8, 196, 0, 246, 8, 196, 0, 45], ["+", 8, 201, 0, 195, 8, 196, 0, 246, 0, 247], ["+", 0, 195, 8, 196, 0, 246, 8, 196, 0, 45], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 218, 8, 214...
8
435
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; using System; namespace AtCoder { class Program { private static long mod = 1000000007; static void Main(string[] args) { // var n = int.Parse(ReadLine()); var line = ReadL...
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; using System; namespace AtCoder { class Program { private static long mod = 1000000007; static void Main(string[] args) { // var n = int.Parse(ReadLine()); var line = ReadL...
[["+", 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, 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, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+"...
8
372
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; using static Atcoder.IO; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandar...
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; using static Atcoder.IO; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandar...
[["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 225, 226, 0, 16, 31, 213, 63, 214, 205, 22], ["-", 225, 226, 0, 16, 31, 213, 6...
8
863
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Reflection.Metadata; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; using System.Text.RegularExpres...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Reflection.Metadata; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; using System.Text.RegularExpres...
[["+", 0, 210, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 64, 196, 0, 210, 8, 196, 0, 57, 0, 25], ["+", 0, 210, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, ...
8
3,671
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace Tasks { public class E { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Consol...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace Tasks { public class E { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Consol...
[["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 64, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46], ["+", 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, 213, 63, 214, 205,...
8
715
using System; using System.Collections.Generic; using System.Linq; namespace E { class Program { static List<int> min_factor = new List<int>(); static void Main(string[] args) { var n = Int32.Parse(Console.ReadLine()); var a = Console.ReadLine().Split(" ").Select(s => Int32.Parse(s)).ToList(); min_fac...
using System; using System.Collections.Generic; using System.Linq; namespace E { class Program { static List<int> min_factor = new List<int>(); static void Main(string[] args) { var n = Int32.Parse(Console.ReadLine()); var a = Console.ReadLine().Split(" ").Select(s => Int32.Parse(s)).ToList(); min_fac...
[["-", 0, 11, 12, 230, 3, 4, 0, 28, 0, 203], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 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, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 1, 0, 213...
8
441
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; using N = System.Int64; static class Program { static public void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); ...
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; using N = System.Int64; static class Program { static public void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); ...
[["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["+", 206, 207, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["+", 0, 28, 0, 204, 206, 207...
8
1,066
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { ABC177.E(); } class ABC177 { public static void A() { var D = Read.Long(); var T = Read.Long(); var S = Read.Long(); Console.WriteLine(S * T >= D ? "Y...
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { ABC177.E(); } class ABC177 { public static void A() { var D = Read.Long(); var T = Read.Long(); var S = Read.Long(); Console.WriteLine(S * T >= D ? "Y...
[["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12,...
8
4,396
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; using System.Threading; internal partial class Solver { public static long Gcd(long s, long t) { r...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; using System.Threading; internal partial class Solver { public static long Gcd(long s, long t) { r...
[["+", 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], ["+", 8, 196, 0, 1, 0, 11, 12, 211, 0, 146], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["-...
8
1,567
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System; class Program { #region Reader static string ReadStr => Console.ReadLine(); static string[] ReadStrs => Console.ReadLine().Split(' '); static int ReadInt => Convert.ToInt32(Console.ReadLine()...
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System; class Program { #region Reader static string ReadStr => Console.ReadLine(); static string[] ReadStrs => Console.ReadLine().Split(' '); static int ReadInt => Convert.ToInt32(Console.ReadLine()...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, ...
8
641
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using System.IO; class readint { public readint(out int i) { i = int.Parse(Console.ReadLine()); } public readint(out int a, out int b) { int[] sp = Console....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using System.IO; class readint { public readint(out int i) { i = int.Parse(Console.ReadLine()); } public readint(out int a, out int b) { int[] sp = Console....
[["-", 75, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["-", 31, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["-", 206, 207, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["-", 206, 207, 0, 28, 0, 204, 206, 207, 0, 73], ["-", 0, 1, 0, 11, 31, 204, 206,...
8
5,700
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; public static class P { public static void Mai...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; public static class P { public static void Mai...
[["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, ...
8
773
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; using System.Threading; internal partial class Solver { public void Run() { var h = ni(); v...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; using System.Threading; internal partial class Solver { public void Run() { var h = ni(); v...
[["-", 0, 28, 0, 288, 0, 28, 0, 241, 0, 203], ["+", 0, 28, 0, 288, 0, 28, 0, 241, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+",...
8
5,213
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { Console.WriteLine(Scanner.Integer() % 1000); } // 以下ユーティリティー static readonly StreamScanner Scanner = ...
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var price = Scanner.Integer(); while (price > 0) { price -= 1000; } Console.WriteLine(-price);...
[["-", 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, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, ...
8
725
// // ABC173A // URL : https://atcoder.jp/contests/abc173/tasks/abc173_a // using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; namespace AtCoder.Template.ABC173A { class Solver { public static readonly long MOD_CONST = 1000000007; //(long)Math.Pow(10, 9...
// // ABC173A // URL : https://atcoder.jp/contests/abc173/tasks/abc173_a // using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; namespace AtCoder.Template.ABC173A { class Solver { public static readonly long MOD_CONST = 1000000007; //(long)Math.Pow(10, 9...
[["-", 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, 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,...
8
930
using System; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { string[] input = Read(); int n = int.Parse(input[0]); Write(n % 1000); } static string[] Read() { return Console.ReadLine().Split(' '); } static void Write(object o) { Console.Writ...
using System; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { string[] input = Read(); int n = int.Parse(input[0]); Write(n % 1000 == 0 ? 0 : 1000 - n % 1000); } static string[] Read() { return Console.ReadLine().Split(' '); } static void Wri...
[["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 64, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 31, 203], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 17, 33], ["+", 0, 28, 0,...
8
102
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class Util { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { int N = ri(); Console.WriteLine(N % 10000 % 1000); Console.ReadLine()...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class Util { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { int N = ri(); int i = 0; while (i * 1000 < N) { 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], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0,...
8
306
using System; using System.Collections.Generic; // using System.Linq; // using System.Numerics; class Program { static void Main(string[] args) { var input = INP(); long N = TOL(input[0]); long result = N; for (int i = 0; i < 100; i++) { if (result < 1000) { CWL(result); return...
using System; using System.Collections.Generic; // using System.Linq; // using System.Numerics; class Program { static void Main(string[] args) { var input = INP(); long N = TOL(input[0]); long pay = 0; for (int i = 0; i < 20; i++) { if (pay >= N) { CWL(pay - N); return; ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 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], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31,...
8
347
using System; using System.Collections.Generic; using System.Linq; using static Scanner; class Program { static void Main() => new Program().Solve(); public void Solve() { int n = ReadInt(); Console.WriteLine(-n % 1000 + 1000); } } static class Scanner { static Queue<string> que = new Queue<string>()...
using System; using System.Collections.Generic; using System.Linq; using static Scanner; class Program { static void Main() => new Program().Solve(); public void Solve() { int n = ReadInt(); int x = -n % 1000; if (x < 0) x += 1000; Console.WriteLine(x); } } static class Scanner { static...
[["-", 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, 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, ...
8
323
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.Text.RegularExpressions; using System.Threading; using System.Threadin...
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.Text.RegularExpressions; using System.Threading; using System.Threadin...
[["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 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, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 17,...
8
181
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;...
[["+", 0, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 0, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 0, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 287, 0, 196, 0, 1, 0, 35]]
8
249
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ProblemA { static bool SAIKI = false; st...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ProblemA { static bool SAIKI = false; st...
[["-", 8, 196, 0, 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, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, ...
8
1,517
using System; class B { static void Main() { int c = 0, w = 0, t = 0, r = 0; for (int i = 0; i < int.Parse(Console.ReadLine()); i++) { var b = Console.ReadLine(); if (b == "AC") c++; if (b == "WA") w++; if (b == "TLE") t++; if (b == "RE") r++; ...
using System; class B { static void Main() { var a = int.Parse(Console.ReadLine()); int c = 0, w = 0, t = 0, r = 0; for (int i = 0; i < a; i++) { var b = Console.ReadLine(); if (b == "AC") c++; if (b == "WA") w++; if (b == "TLE") t++; if (b == "RE") ...
[["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 63, 214, ...
8
150
public class Hello { public static void Main() { // Your code here! var line = int.Parse(System.Console.ReadLine()); string[] answer = { "AC", "WA", "TLE", "RE" }; int[] numbers = new int[4]; for (var i = 0; i < line; i++) { var data = System.Console.ReadLine(); for (var j = 0; j < n...
public class Hello { public static void Main() { // Your code here! var line = int.Parse(System.Console.ReadLine()); string[] answer = { "AC", "WA", "TLE", "RE" }; int[] numbers = new int[4]; for (var i = 0; i < line; i++) { var data = System.Console.ReadLine(); for (var j = 0; j < n...
[["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 17, 72], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 222]]
8
171
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static AtCoderTemplate.MyLibrary; namespace AtCoderTemplate { class Program { static void Main(string[] args) { string str; str = Consol...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static AtCoderTemplate.MyLibrary; namespace AtCoderTemplate { class Program { static void Main(string[] args) { string str; str = Consol...
[["-", 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
267
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 1...
8
518
using System; namespace _20200725_M_SOLUTIONS_プロコンオープン_2020 { class Program { static void Main(string[] args) { int a; a = int.Parse(Console.ReadLine()); //標準入力 if (400 <= a && a < 599) { Console.WriteLine(8); } else if (600 <= a && a < 799) { Console.WriteLine(7); } else if (800 <= a...
using System; namespace _20200725_M_SOLUTIONS_プロコンオープン_2020 { class Program { static void Main(string[] args) { int a; a = int.Parse(Console.ReadLine()); //標準入力 if (400 <= a && a <= 599) { Console.WriteLine(8); } else if (600 <= a && a <= 799) { Console.WriteLine(7); } else if (800 <=...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 18], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 17, 19], ["-", 75, 57, 75, 57, 15, 16, 12, 16, 17, 18], ["+", 75, 57, 75, 57, 15, 16, 12, 16, 17, 19]]
8
198
using System; using System.IO.Pipes; using System.Linq; using System.Runtime.InteropServices; class name { static void Main() { int[] magic = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] kaisu = Console.ReadLine().Split().Select(int.Parse).ToArray(); int and = 0; int ans = 0; fo...
using System; using System.IO.Pipes; using System.Linq; using System.Runtime.InteropServices; class name { static void Main() { int[] magic = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] kaisu = Console.ReadLine().Split().Select(int.Parse).ToArray(); int and = 0; int ans = 0; fo...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 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, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 1...
8
269
using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; 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 K = int.Pa...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; 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 K = int.Pa...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["...
8
222
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; public class MainClass { public static void Main(string[] args) { #if DEBUG var inputs = new[] { @" 7 2 5 3 ", @" 7 4 2 3 ", @" ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; public class MainClass { public static void Main(string[] args) { #if DEBUG var inputs = new[] { @" 7 2 5 3 ", @" 7 4 2 3 ", @" ...
[["-", 8, 196, 0, 287, 0, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 287, 0, 196, 0, 57, 0, 24], ["-", 0, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 0, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 0, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 287, 0, 196, 0, 57, 15, 16, 17, 106], ["-", 0, 196, 0, 57, 15, 16, 12, 16, 31, 2...
8
2,152
using System; using System.Linq; using System.ComponentModel; using System.Collections.Generic; namespace ConsoleApp1 { public class Class { static void Main(string[] args) { var (N, K) = ReadValue<long, long>(); var A = ulongArray; ulong sum = A[0] * A[K - 1]; for (var i = 0; i < N - K; i++) { ...
using System; using System.Linq; using System.ComponentModel; using System.Collections.Generic; namespace ConsoleApp1 { public class Class { static void Main(string[] args) { var (N, K) = ReadValue<long, long>(); var A = longArray; for (var i = 0; i < N - K; i++) { if (A[i] < A[K + i]) { Co...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 200, 0, 212, 0, 16, 31, 204, 205, 22], ["-", 0, 212, 0, 16, 31, 204, 206, 20...
8
906
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string line = Console.ReadLine(); string[] split = line.Split(' '); int n = Int32.Parse(split[0]); int ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string line = Console.ReadLine(); string[] split = line.Split(' '); int n = Int32.Parse(split[0]); int ...
[["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 85], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ...
8
286
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.nextInt(); var k = cin.nextInt(); var...
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.nextInt(); var k = cin.nextInt(); var...
[["-", 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, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22...
8
683
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Reflection.Emit; class Program { const string Yes = "Yes"; const string No = "No"; const char White = '.'; const char Black = '#'; ...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Reflection.Emit; class Program { const string Yes = "Yes"; const string No = "No"; const char White = '.'; const char Black = '#'; ...
[["-", 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, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, ...
8
382
using System; using System.Linq; class D { static void Main() { int N = int.Parse(Console.ReadLine()); var A = (Console.ReadLine()).Split(' ').Select(s => long.Parse(s)).ToArray(); var Sum = 1000L; var Stock = 0L; for (int i = 0; i < N - 1; i++) { if (A[i + 1] < A[i]) { Su...
using System; using System.Linq; class D { static void Main() { int N = int.Parse(Console.ReadLine()); var A = (Console.ReadLine()).Split(' ').Select(s => long.Parse(s)).ToArray(); var Sum = 1000L; var Stock = 0L; for (int i = 0; i < N - 1; i++) { if (A[i + 1] < A[i]) { Su...
[["-", 75, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 64, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 31, ...
8
197
using System; using System.Linq; using System.Collections.Generic; using System.Text; // for StringBuilder class c { static void Main() { int n = int.Parse(Console.ReadLine()); var a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse).ToList(); a.Add(0); var listA = new List<int>(); var list...
using System; using System.Linq; using System.Collections.Generic; using System.Text; // for StringBuilder class c { static void Main() { int n = int.Parse(Console.ReadLine()); var a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse).ToList(); a.Add(0); var listA = new List<int>(); var list...
[["+", 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, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0...
8
305
using System; using System.Linq; using System.ComponentModel; using System.Collections.Generic; namespace ConsoleApp1 { public class Class { static void Main(string[] args) { var N = ReadValue<long>(); var A = longArray; long tmp = 0; long money = 1000; for (var i = 0; i < N - 1; i++) { if ...
using System; using System.Linq; using System.ComponentModel; using System.Collections.Generic; namespace ConsoleApp1 { public class Class { static void Main(string[] args) { var N = ReadValue<long>(); var A = longArray; long tmp = 0; long money = 1000; for (var i = 0; i < N - 1; i++) { if ...
[["+", 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, 20], ["+", 64, 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,...
8
900
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; using System; namespace AtCoder { class Program { private static long mod = 1000000007; static void Main(string[] args) { var n = int.Parse(ReadLine()); var line = ReadLine...
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; using System; namespace AtCoder { class Program { private static long mod = 1000000007; static void Main(string[] args) { var n = int.Parse(ReadLine()); var line = ReadLine...
[["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
305
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace MSOL2020F { class Program { static void Main(string[] args) { var N = RInt; List<Pos> U = new List<Pos>(); List<Pos> D = new List<Pos>(); List<Pos...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace MSOL2020F { class Program { static void Main(string[] args) { var N = RInt; List<Pos> U = new List<Pos>(); List<Pos> D = new List<Pos>(); List<Pos...
[["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 0, 210, 8, 196, 0, 57, 64, 116, 0, 117], ["-", 0, 210, 8, 196, 0, 57, 64, 116, 0, 35], ["+", 0, 210, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 210, 8, 196, 0, 57, 64, 196, 0, 46]]
8
2,611
using System; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { string[] input = Read(); int l = int.Parse(input[0]); int r = int.Parse(input[1]); int d = int.Parse(input[2]); int ld = l / d; int rd = (r - 1) / d; Write(ld - rd); } ...
using System; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { string[] input = Read(); int l = int.Parse(input[0]); int r = int.Parse(input[1]); int d = int.Parse(input[2]); int ld = (l - 1) / d; int rd = r / d; Write(rd - ld); } ...
[["+", 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, 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], ["...
8
146
using System; namespace SoloLearn { class Program { static void Main(string[] args) { string S = "cupofcoffee"; string T = "cupofhottea"; int count = 0; for (int i = 0; i < S.Length; i++) { if (S[i] != T[i]) count++; } Console.Write(count); } } }
using System; namespace SoloLearn { class Program { static void Main(string[] args) { string S = Console.ReadLine(); string T = Console.ReadLine(); int count = 0; for (int i = 0; i < S.Length; i++) { if (S[i] != T[i]) count++; } Console.Write(count); } } }
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 62], ["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 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, 0, 2...
8
81
using System; using System.Collections.Generic; namespace abc172_c { class Program { static void Main(string[] args) { var N = CIn.ReadInt(); var M = CIn.ReadInt(); var K = CIn.ReadInt(); var A = CIn.ReadIntArray(N); var B = CIn.ReadIntArray(M); var sumA = new long[N + 1]; var sumB = new ...
using System; using System.Collections.Generic; namespace abc172_c { class Program { static void Main(string[] args) { var N = CIn.ReadInt(); var M = CIn.ReadInt(); var K = CIn.ReadInt(); var A = CIn.ReadIntArray(N); var B = CIn.ReadIntArray(M); var sumA = new long[N + 1]; var sumB = new ...
[["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 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], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["-", ...
8
582
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; private static long max = 999999999999; static void Main(string[] args) { var r = ReadSplit(); var n = r[0]...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; private static long max = 999999999999; static void Main(string[] args) { var r = ReadSplit(); var n = r[0]...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 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, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, ...
8
679
using System; using System.Linq; namespace ABC172 { class C { static void Main(string[] args) { // var CA = Enumerable.Repeat(0, (int)N).Select(_ => // Console.ReadLine().Split().Select(long.Parse).ToArray()).ToArray(); var NMK = Console.ReadLine().Split().Select(long.Parse).ToArray(); var A = Consol...
using System; using System.Linq; namespace ABC172 { class C { static void Main(string[] args) { // var CA = Enumerable.Repeat(0, (int)N).Select(_ => // Console.ReadLine().Split().Select(long.Parse).ToArray()).ToArray(); var NMK = Console.ReadLine().Split().Select(long.Parse).ToArray(); var A = Consol...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 17, 19], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 12, 22]...
8
359
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static int[] A, B; static int N, M, K; static void INPUT() { N = NextInt(); M = NextInt(); K = NextInt(); A ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static int[] A, B; static int N, M, K; static void INPUT() { N = NextInt(); M = NextInt(); K = NextInt(); A ...
[["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 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, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8,...
8
647
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; namespace C_ABC172 { class MainClass { static long[] s, a, b; public static void Main(string[] args) { s = Array.ConvertAll(ReadLine().Split().ToArray(), long.Parse); a = Array.Conver...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; namespace C_ABC172 { class MainClass { static long[] s, a, b; public static void Main(string[] args) { s = Array.ConvertAll(ReadLine().Split().ToArray(), long.Parse); a = Array.Conver...
[["-", 0, 57, 64, 196, 0, 1, 0, 213, 63, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 64, 196, 0, 57,...
8
826
using static System.Math; using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var m = int.Parse(line[1]); var k = long.Parse(line[2]); line = Console.ReadLine().Trim().Split(' '); var a = Array.Conver...
using static System.Math; using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var m = int.Parse(line[1]); var k = long.Parse(line[2]); line = Console.ReadLine().Trim().Split(' '); var a = Array.Conver...
[["-", 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, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21],...
8
362
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace ABC172 { using static Ex; public class Solve { public static void Main(string[] args) { new ABC_C(); } } public class ABC_A { public ABC_A() { var a = ReadInt; (a + a * a + a * a * a).Cw(); } } public c...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace ABC172 { using static Ex; public class Solve { public static void Main(string[] args) { new ABC_C(); } } public class ABC_A { public ABC_A() { var a = ReadInt; (a + a * a + a * a * a).Cw(); } } public c...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, 8...
8
1,220
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC172_C { class Program { static void Main(string[] args) { int[] nmk = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); List<int> a = Console.ReadLine().Split(' ').Select(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC172_C { class Program { static void Main(string[] args) { int[] nmk = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); List<int> a = Console.ReadLine().Split(' ').Select(...
[["-", 0, 7, 8, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 223, 0, 29], ["-", 0, 7, 8, 196, 0, 52, 15, 16, 17, 98], ["-", 8, 196, 0, 52, 15...
8
301
using System; using System.Collections.Generic; using System.Linq; namespace C { class Program { static void Main(string[] args) { string[] input_1 = (Console.ReadLine()).Split(" "); int N = int.Parse(input_1[0]); int M = int.Parse(input_1[1]); long K = long.Parse(input_1[2]); string[] input_2 =...
using System; using System.Collections.Generic; using System.Linq; namespace C { class Program { static void Main(string[] args) { string[] input_1 = (Console.ReadLine()).Split(" "); int N = int.Parse(input_1[0]); int M = int.Parse(input_1[1]); long K = long.Parse(input_1[2]); string[] input_2 =...
[["-", 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], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196...
8
383
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder.Abc172 { class C { public static void Main() { var k = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).Last(); var a = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); var b...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder.Abc172 { class C { public static void Main() { var k = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).Last(); var a = ("0 " + Console.ReadLine()) .Split(' ') .Select(x => ...
[["+", 63, 214, 205, 213, 63, 214, 205, 23, 0, 24], ["+", 63, 214, 205, 23, 0, 16, 31, 5, 0, 62], ["+", 63, 214, 205, 23, 0, 16, 31, 5, 0, 222], ["+", 205, 213, 63, 214, 205, 23, 0, 16, 17, 72], ["+", 63, 214, 205, 213, 63, 214, 205, 23, 0, 25], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 12, 213, 3, 4, 0, 28, 0,...
8
298
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; using System.Collections; namespace debug { class main { static void Main(string[] args) { //問題クラスを展開 ProgramC a = new ProgramC(); a.main(); //実行する } } // ABC170 class ProgramA { public void m...
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; using System.Collections; namespace debug { class main { static void Main(string[] args) { //問題クラスを展開 ProgramC a = new ProgramC(); a.main(); //実行する } } // ABC170 class ProgramA { public void m...
[["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7...
8
775
using System; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int m = int.Parse(input[1]); int k = int.Parse(input[2]); int[] a = new int[n]; int[] b = new int[m...
using System; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int m = int.Parse(input[1]); int k = int.Parse(input[2]); int[] a = new int[n]; int[] b = new int[m...
[["-", 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, 16, 31, 16, 31, 213, 63, 214, 205, 22], ["-", 0, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["-", 0, 16, 31, 16, 31, 213, 63, 214, 1...
8
430
using System; using System.Collections.Generic; using System.Linq; public class Solution { static int BinSearchIndex(long v, long[] list) { int minRange = 0; int maxRange = list.Count(); while (minRange != maxRange) { var center = (minRange + maxRange) / 2; if (list[center] < v) { min...
using System; using System.Collections.Generic; using System.Linq; public class Solution { static int BinSearchIndex(long v, long[] list) { int minRange = 0; int maxRange = list.Count(); while (minRange != maxRange) { var center = (minRange + maxRange) / 2; if (list[center] < v) { min...
[["+", 63, 214, 205, 213, 63, 214, 205, 227, 0, 228], ["+", 205, 213, 63, 214, 205, 227, 39, 224, 39, 199], ["+", 63, 214, 205, 227, 39, 224, 225, 226, 0, 70], ["+", 63, 214, 205, 227, 39, 224, 225, 226, 0, 203], ["+", 63, 214, 205, 227, 39, 224, 225, 226, 0, 73], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+"...
8
380
using System; class program { static void Main() { int n = int.Parse(Console.ReadLine()); ulong ans = 0; for (int i = 1; i <= n; i++) { ans += (ulong)(i * ((n / i) + 1) * (n / i) / 2); } Console.WriteLine(ans); } }
using System; class program { static void Main() { ulong n = ulong.Parse(Console.ReadLine()); ulong ans = 0; for (ulong i = 1; i <= n; i++) { ans += i * ((n / i) + 1) * (n / i) / 2; } Console.WriteLine(ans); } }
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 12...
8
83
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template...
[["-", 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, 37, 0, 38], ...
8
2,757
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() { var sw = new StreamWriter(Consol...
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() { var sw = new StreamWriter(Consol...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], [...
8
2,580
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template...
[["+", 31, 23, 0, 16, 31, 16, 31, 204, 205, 22], ["+", 0, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 17, 140], ["+", 31, 23, 0, 16, 31, 16, 12, 204, 205, 22], ["+", 0, 16, 31, 16, 12, 204, 2...
8
1,703
using System; using CompLib.Util; public class Program { private int N; private long[] A; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); A = sc.LongArray(); long other = 0; for (int i = 2; i < N; i++) { other ^= A[i]; } // xorが0だと後手勝ち // 非0だと先手 // A_...
using System; using CompLib.Util; public class Program { private int N; private long[] A; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); A = sc.LongArray(); long other = 0; for (int i = 2; i < N; i++) { other ^= A[i]; } // xorが0だと後手勝ち // 非0だと先手 // A_...
[["+", 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, 47], ["+", 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, ...
8
635
using System; public class Solve { static void Main(string[] args) { var value = Console.ReadLine(); if (value[0] < 'A') Console.WriteLine("a"); else Console.WriteLine("A"); } }
using System; public class Solve { static void Main(string[] args) { var value = Console.ReadLine(); if (value[0] < 'a') Console.WriteLine("A"); else Console.WriteLine("a"); } }
[["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
58
using System; using System.IO; using System.Collections.Generic; using System.Linq; namespace AtCoder.Contest.A { static class Program { public static void Solve(Scanner cin) { var s = cin.Read(); if (s[0] >= 'A') Console.WriteLine("A"); else Console.WriteLine("a"); } p...
using System; using System.IO; using System.Collections.Generic; using System.Linq; namespace AtCoder.Contest.A { static class Program { public static void Solve(Scanner cin) { var s = cin.Read(); if (s[0] >= 'a') Console.WriteLine("a"); else Console.WriteLine("A"); } p...
[["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
2,454
using System; namespace ConsoleApp2 { class Program { static void Main(string[] args) { int s = Console.Read(); if (('A' <= s) && (s <= 'Z')) { Console.WriteLine("A"); } else if (('a' <= s) && (s <= 'a')) { Console.WriteLine("a"); } } } }
using System; namespace ConsoleApp2 { class Program { static void Main(string[] args) { int s = Console.Read(); if (('A' <= s) && (s <= 'Z')) { Console.Write('A'); } else if (('a' <= s) && (s <= 'z')) { Console.Write('a'); } } } }
[["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 104], ["-", 15, 16, 12, 23, 0, 16, 12, 252, 0, 253], ["+", 15, 16, 12, 23, 0, 16, 12, 252, 0, 253]]
8
90
using System; namespace AtCoder { class Program { static void Main(string[] args) { var a = Console.ReadLine(); var A = a.ToLower(); if (a == A) { Console.WriteLine(a.ToUpper()); } else { Console.WriteLine(A); } } } }
using System; namespace AtCoder { class Program { static void Main(string[] args) { var a = Console.ReadLine(); var A = a.ToLower(); if (a == A) { Console.WriteLine("a"); } else { Console.WriteLine("A"); } } } }
[["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
69
using System; namespace Contest { class Program { static void Main(string[] args) { var a = Console.ReadLine(); if (Char.IsUpper(a[0])) { Console.WriteLine(a.ToLower()); } else { Console.WriteLine(a.ToUpper()); } } } }
using System; namespace Contest { class Program { static void Main(string[] args) { var a = Console.ReadLine(); if (Char.IsUpper(a[0])) { Console.WriteLine("A"); } else { Console.WriteLine("a"); } } } }
[["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
70
using System; using System.Text; using static ConsoleReader; class Program { static void Main(string[] args) { var a = Read<char>(); char result; if (char.IsLower(a)) result = char.ToUpper(a); else result = char.ToLower(a); Console.WriteLine(result); } } public static class IntExte...
using System; using System.Text; using static ConsoleReader; class Program { static void Main(string[] args) { var a = Read<char>(); char result; if (char.IsLower(a)) result = 'a'; else result = 'A'; Console.WriteLine(result); } } public static class IntExtentions { public static...
[["-", 64, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 64, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["-", 64, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["-", 64, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 57, 64, 1, 0, 11, 12, 252, 0, 104], ["-", 64, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["-", 75, 1, 0, 11, 12, 213, 63, 214, 205, 1...
8
369
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; class Program { static void Main(string[] args) { // 入力 string[] sS = System.Console.ReadLine().Trim().Split(' '); int iN = int.Parse(sS[0]); sS = System.Console.ReadLine().Trim().Split(' '); int...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; class Program { static void Main(string[] args) { // 入力 string[] sS = System.Console.ReadLine().Trim().Split(' '); int iN = int.Parse(sS[0]); sS = System.Console.ReadLine().Trim().Split(' '); int...
[["-", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["-", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["-", 0, 1, 0, 213, 63, 214, 205, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62...
8
271
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); string[] line = Console.ReadLine().Trim().Split(' '); var a = Array.ConvertAll(line, int.Parse); var count = 0; for (int i = 0; i < n / 2; i += 2) if (a[i] % 2 == 1) count++;...
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); string[] line = Console.ReadLine().Trim().Split(' '); var a = Array.ConvertAll(line, int.Parse); var count = 0; for (int i = 0; i < n; i++) if (i % 2 == 0 && a[i] % 2 == 1) c...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 85], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 8, 196, 0, 7, 26, 11, 0, 202, 0, 107], ["-", 0, 195, 8, 196, 0, 7, 26, 11, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 8, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 8, 57, 15, 16, 31, 16, 31, 16, 17, 109],...
8
113
using System; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } public static void Solve() { long N = l...
using System; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } public static void Solve() { long N = l...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 218, 8, 16, 31, 16, 31, 16, 17, 109], ["-", 0, 218, 8, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 28, 0, 218, 8, 16, 3...
8
161
using System; using System.Collections.Generic; // using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; private static long max = 999999999999; static void Main(string[] args) { var n = Read...
using System; using System.Collections.Generic; // using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; private static long max = 999999999999; static void Main(string[] args) { var n = Read...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 60], ["+", 75, 57, 15, 16, 31, 16, 31, 16, 17, 79], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 31, 22], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 79], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 12, 22], ...
8
1,386
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace AtCoder.C { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace AtCoder.C { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object G...
[["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16...
8
509
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace AtCoder { class Program { private static void Main(string[] args) { var n = Scanner.Integer(); var values = Enumerable.Range(1, n).Select(Check).Select(x => x.ToString(...
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace AtCoder { class Program { private static void Main(string[] args) { var n = Scanner.Integer(); var values = Enumerable.Range(1, n).Select(Check).Select(x => x.ToString(...
[["+", 0, 57, 64, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 57, 64, 196, 0, 57, 75, 57, 0, 24], ["+", 75, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 75, 57, 15, 16, 31, 16, 31, 16, 17, 60], ["+", 75, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 106], ["+", 75, 57, 15, 16, 31, 16, 12, 16, 31...
8
1,296
using System; using System.Text; using System.Collections.Generic; using System.Collections; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { // var NX = Console.ReadLine().Split(' ').Select(x => // long.Parse(x)).ToArray(); var L = long.Parse(Console.Re...
using System; using System.Text; using System.Collections.Generic; using System.Collections; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { // var NX = Console.ReadLine().Split(' ').Select(x => // long.Parse(x)).ToArray(); var L = long.Parse(Console.Re...
[["+", 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, 47], ["+", 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
555
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Numerics; using System.IO; using System.Net; using System.Diagnostics; using System.Runtime.InteropServices.WindowsRuntime; using System.Runtime.Remoting; namespace Practice { class Program { static void Main(string[] ...
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Numerics; using System.IO; using System.Net; using System.Diagnostics; using System.Runtime.InteropServices.WindowsRuntime; using System.Runtime.Remoting; namespace Practice { class Program { static void Main(string[] ...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 1...
8
3,123
using System; //毎回PopCount求めると時間足りない.. // 110100110(2)=422(10)とするとPC=5 //なのでほかのPCは3(1->0)か4(0->1)になる //早い段階であまりだけ取ることが計算量を減らすためのポイント class Program { static void Main() { int n = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); int[] X = new int[n]; for (int i = 0; i < n; i++) { X[i]...
using System; //毎回PopCount求めると時間足りない.. // 110100110(2)=422(10)とするとPC=5 //なのでほかのPCは3(1->0)か4(0->1)になる //早い段階であまりだけ取ることが計算量を減らすためのポイント class Program { static void Main() { int n = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); int[] X = new int[n]; for (int i = 0; i < n; i++) { X[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, 19], ["+", 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, 116, 0, 117], ["+", 0, 7,...
8
459
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.Aising_2020 { class D { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.Aising_2020 { class D { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["+", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 60], ["+", 75, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 75, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["+", 75, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 25], ["+", 0, 57, 75, 196, 0, 57, 64, 196, 0,...
8
791
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int n = sc.NextInt(); string s = sc.Next(); int count = s.Where(c => c == '1').Count(); if (count == 0) { for (int i = 0; i < n; i++) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int n = sc.NextInt(); string s = sc.Next(); int count = s.Where(c => c == '1').Count(); if (count == 0) { for (int i = 0; i < n; 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, 79], ["+", 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], ["+", 0, 7, ...
8
856
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace contest_Csharp { class Program { static void Main(string[] args) { checked { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; C...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace contest_Csharp { class Program { static void Main(string[] args) { checked { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; C...
[["+", 8, 196, 0, 57, 75, 57, 15, 16, 31, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 60], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 17, 33], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 25], ["+", 75, 57, 64, 1, 0, 213, 63, 214, 205, 22...
8
644
using System; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { int[] func = new int[200001]; int[] popcount = new int[200001]; for (int i = 1; i < 200001; i++) { popcount[i] = popcount[i / 2] + i % 2; int buf = i % popcount[i]; func[...
using System; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { int[] func = new int[200001]; int[] popcount = new int[200001]; for (int i = 1; i < 200001; i++) { popcount[i] = popcount[i / 2] + i % 2; int buf = i % popcount[i]; func[...
[["-", 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, 57, 64, 1, 0, 11, 31, 204, 205, 22]...
8
617