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.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { int[] inpt = Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); this.CandleCount = inpt[0]; this.FireCount = inpt[1]; this.Candl...
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { int[] inpt = Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); this.CandleCount = inpt[0]; this.FireCount = inpt[1]; this.Candl...
[["+", 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, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21],...
8
420
using System; using System.Collections.Generic; using System.Text; namespace AtTest.ABC_107 { class D { static void Main(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { long n = ReadLong(); int[] array = ReadInts(); int[] sorted = ne...
using System; using System.Collections.Generic; using System.Text; namespace AtTest.ABC_107 { class D { static void Main(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { long n = ReadLong(); int[] array = ReadInts(); int[] sorted = ne...
[["-", 0, 52, 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, 196, 0, 52, 8, 196, 0, 197, 0, 35], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29]...
8
1,125
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C_Skip { class Program { static void Main(string[] args) { string[] NX = Console.ReadLine().Split(' '); int N = int.Parse(NX[0]); int X = int.Parse(NX[1]); List<int> num = ne...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C_Skip { class Program { static void Main(string[] args) { string[] NX = Console.ReadLine().Split(' '); int N = int.Parse(NX[0]); int X = int.Parse(NX[1]); List<int> num = ne...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
341
using System; using System.Collections.Generic; public class Operation { private int sY, sX, tY, tX; public Operation(int a, int b, int c, int d) { sY = a; sX = b; tY = c; tX = d; } public void print() { Console.WriteLine("{0} {1} {2} {3}", sY, sX, tY, tX); } } public class D { public st...
using System; using System.Collections.Generic; public class Operation { private int sY, sX, tY, tX; public Operation(int a, int b, int c, int d) { sY = a; sX = b; tY = c; tX = d; } public void print() { Console.WriteLine("{0} {1} {2} {3}", sY, sX, tY, tX); } } public class D { public 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], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22], ["+...
8
452
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; using System.Text; namespace ABC109 { class Program { static void Main(string[] args) { var H = RInt; var W = RInt; int[,] a = new int[H, W]; for (int i = 0...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; using System.Text; namespace ABC109 { class Program { static void Main(string[] args) { var H = RInt; var W = RInt; int[,] a = new int[H, W]; for (int i = 0...
[["-", 31, 16, 31, 16, 31, 16, 31, 204, 205, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 204, 205, 22], ["-", 31, 16, 31, 16, 31, 16, 12, 204, 205, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 204, 205, 22], ["-", 0, 16, 31, 16, 31, 16, 12, 204, 205, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 16, 1...
8
1,517
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
[["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 7, 26, 241, 0, 22], ["+", 8, 196, 0, 57, 75, 196, 0, 7, 0, 25], ["+", 0, 57, 75, 196, 0, 7, 8, 196, 0, 45], ["+", 75, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 75, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 15, 16, 31, 16, 31, 204, 205, 204, 205, 22], ["...
8
1,450
using System.Linq; using System.Collections.Generic; using System; public class P { public int x { get; set; } public int nx { get; set; } public int y { get; set; } public int ny { get; set; } } public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); v...
using System.Linq; using System.Collections.Generic; using System; public class P { public int x { get; set; } public int nx { get; set; } public int y { get; set; } public int ny { get; set; } } public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); v...
[["-", 8, 196, 0, 7, 15, 16, 31, 16, 17, 48], ["-", 8, 196, 0, 7, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
464
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; class Myon { public Myon() {} public static int Main() { cin = new Scanner(); new Myon().calc(); return 0; } static Scanner cin; struct stat...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; class Myon { public Myon() {} public static int Main() { cin = new Scanner(); new Myon().calc(); return 0; } static Scanner cin; struct stat...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
888
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using static util; using P = pair<int, int>; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpress...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using static util; using P = pair<int, int>; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpress...
[["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
2,179
using System; using System.Collections.Generic; using System.Linq; using System.IO; // using System.Text; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; // using System.Numerics; // using static System.Math; // using pair = Pair<int, int...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; // using System.Numerics; // using static System.Math; // using pair = Pair<int, int>; ...
[["+", 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], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198,...
8
616
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; // using static System.Linq.Enumerable; using static System.Console; using static AtCoder.Util; using static AtCoder.Cin; using static System.Math; using static AtCoder.MyMath; using stati...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; // using static System.Linq.Enumerable; using static System.Console; using static AtCoder.Util; using static AtCoder.Cin; using static System.Math; using static AtCoder.MyMath; using stati...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 18], ["-", 0, 212, 0, 230, 39, 236, 2...
8
4,590
using System; using System.Text; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Threading.Tasks; using System.IO; class Solve { const int mod = 1000000007; static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlu...
using System; using System.Text; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Threading.Tasks; using System.IO; class Solve { const int mod = 1000000007; static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlu...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, ...
8
126
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace ABC108A { class Class1 { static void Main() { Console.WriteLine("sga"); var K = int.Parse(Console.ReadLine()); if (K % 2 == 0) {...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace ABC108A { class Class1 { static void Main() { var K = int.Parse(Console.ReadLine()); if (K % 2 == 0) { Console.WriteLine((K / ...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201...
8
130
using System; namespace Atcoder { public class Program { public static void Main(string[] args) { int b = int.Parse(Console.ReadLine()); if (b % 2 == 0) { Console.WriteLine(Math.Pow((double)b, 2)); } else { Console.WriteLine((b - 1) * (b + 1) / 4); } } } }
using System; namespace Atcoder { public class Program { public static void Main(string[] args) { int b = int.Parse(Console.ReadLine()); if (b % 2 == 0) { Console.WriteLine(b * b / 4); } else { Console.WriteLine((b - 1) * (b + 1) / 4); } } } }
[["-", 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], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 0, 25], ["+", 3, 4, 0...
8
87
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { var t = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }), number => int.Parse(number)); var x1 = t[0]; var y1 = t[1]; var x2 = t[2]; var y2 = t[3]; var...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { var t = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }), number => int.Parse(number)); var x1 = t[0]; var y1 = t[1]; var x2 = t[2]; var y2 = t[3]; var...
[["-", 0, 57, 75, 57, 75, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 31, 22], ["-", 0, 57, 75, 57, 75, 57, 15, 16, 12, 22], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 12, 22], ["-", 75, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 75, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["-", 75, 57, 64, 196, 0, 57, 15, 16, 12,...
8
429
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Program { public static Scanner input; static void Main() { input = new Scanner(); doubl...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Program { public static Scanner input; static void Main() { input = new Scanner(); doubl...
[["+", 31, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 16, 31, 23, 0, 25], ["+", 31, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 16, 12, 23, 0, 25], ["+", 0, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 16, 12, 23, 0, 25], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+...
8
902
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace MyProgram { public class Program { public static void Main(string[] args) { int[] n = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int x1 = n[0]; int y1 = n[1]; int x2 = n[2];...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace MyProgram { public class Program { public static void Main(string[] args) { int[] n = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int x1 = n[0]; int y1 = n[1]; int x2 = n[2];...
[["-", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["-", 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], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 1...
8
159
#pragma warning disable using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Diagnostics; using System.Numerics; using System.Collections; static class MainClass { public static void Main() { var...
#pragma warning disable using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Diagnostics; using System.Numerics; using System.Collections; static class MainClass { public static void Main() { var...
[["+", 0, 283, 0, 284, 0, 16, 31, 16, 17, 72], ["+", 0, 283, 0, 284, 0, 16, 31, 16, 12, 22], ["-", 0, 283, 0, 284, 0, 16, 31, 16, 12, 22], ["-", 0, 28, 0, 283, 0, 284, 0, 16, 17, 33], ["-", 0, 283, 0, 284, 0, 16, 31, 16, 31, 22], ["-", 0, 283, 0, 284, 0, 16, 31, 16, 17, 33], ["+", 0, 283, 0, 284, 0, 16, 31, 16, 17, 33]...
8
1,299
using System; namespace Atcoder { public class Program { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int x1 = int.Parse(input[0]); int y1 = int.Parse(input[1]); int x2 = int.Parse(input[2]); int y2 = int.Parse(input[3]); int x3; int x4; int...
using System; namespace Atcoder { public class Program { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int x1 = int.Parse(input[0]); int y1 = int.Parse(input[1]); int x2 = int.Parse(input[2]); int y2 = int.Parse(input[3]); int x3 = x2 - (y2 - y1); ...
[["-", 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, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 31, 16, 31, 16, 31, 16, 12, 252, 0, 104], ["+", 31, 16, 31, 16, 31, 16, 12, 5, ...
8
171
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' '); var N = int.Parse(inputs[0]); var K = int.Parse(inputs[1]); var num = 0; if (K % 2 == 0) { var harf = 0; for (var i = 1;...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' '); var N = long.Parse(inputs[0]); var K = long.Parse(inputs[1]); long num = 0; if (K % 2 == 0) { long harf = 0; for (var i ...
[["-", 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, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 64, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 1, 0, 11, 12, 16,...
8
242
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int N = int.Parse(input[0]); int K = int.Parse(input[1]); int num = N / K; double ans = Math.Pow(num, 3); if (K % 2 == 0) { n...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int N = int.Parse(input[0]); int K = int.Parse(input[1]); int num = N / K; long ans = (long)Math.Pow(num, 3); if (K % 2 == 0) { ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["+", 64, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["+", 64, 196, 0, 1, 0, 11, 12, 74, 39, 19...
8
130
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var line = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = line[0], K = line[1]; var dict = new Dictionary<long, long>(); dict[K] = 0; for (...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var line = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = line[0], K = line[1]; var dict = new Dictionary<long, long>(); dict[K] = 0; for (...
[["+", 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, 241, 0, 111], ["+", 15, 16, 31, 241, 0, 213, 63, 214, 205, 22], ["+", 15, 16, 31, 241, 0, 213, 63, 214, 0, 131], ["+", 15, 16, 31, 241, 0, 213, 63, 214, 141, 22], ["+", 15, 16, 31, 241, 0, 213, 3, 4,...
8
219
using System; using System.Diagnostics; using System.IO; using System.Linq; namespace AtCoder { class Practice { static void Main() => CustomMain(); static void Solve() { int N, K; ReadMulti(out N, out K); long divisible = N / K; if (IsOdd(K)) { WriteAnswer(Math.Pow(divisible, 3)); } el...
using System; using System.Diagnostics; using System.IO; using System.Linq; namespace AtCoder { class Practice { static void Main() => CustomMain(); static void Solve() { int N, K; ReadMulti(out N, out K); long d = N / K; if (IsOdd(K)) { WriteAnswer(d * d * d); } else { long h = N...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 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], ["-", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22], ["-...
8
762
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; public static void Main() { int N = NextInt(); int K = NextInt(); if (K % 2 == 1) { int e = (int)Math.Floor(N / (K + .0)); Console.WriteLine(Math.Po...
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; public static void Main() { int N = NextInt(); int K = NextInt(); if (K % 2 == 1) { int e = (int)Math.Floor(N / (K + .0)); long ans = (long)Math.Pow...
[["-", 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], ["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 64, 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, ...
8
454
using System; using System.Linq; using System.Text.RegularExpressions; namespace abc108_c { class program { static void Main(string[] args) { int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = input[0]; int K = input[1]; long ans = 0; if (K % 2 == 0) { K /= 2; ...
using System; using System.Linq; using System.Text.RegularExpressions; namespace abc108_c { class program { static void Main(string[] args) { long[] input = Console.ReadLine().Split().Select(long.Parse).ToArray(); long N = input[0]; long K = input[1]; long ans = 0; if (K % 2 == 0) { K /= 2;...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 57, 64, 196, 0, 7, 1...
8
315
using System; using System.Linq; public class Hello { public static void Main() { // Your code here! int[] input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int N = input[0]; int K = input[1]; int count1 = 0; int count2 = 0; int sum = 0; // Kの倍数である数値の...
using System; using System.Linq; public class Hello { public static void Main() { // Your code here! int[] input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int N = input[0]; int K = input[1]; int count1 = 0; int count2 = 0; long sum = 0; // Kの倍数である数値...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 25]]
8
185
using System; public class C { public static void Main() { string[] args = Console.ReadLine().Split(' '); int n = Int32.Parse(args[0]); int k = Int32.Parse(args[1]); int num = n / k; long result = num * num * num; if (k % 2 == 0) { num = 0; for (int i = 1; i <= n; i++) { ...
using System; public class C { public static void Main() { string[] args = Console.ReadLine().Split(' '); long n = Int64.Parse(args[0]); long k = Int64.Parse(args[1]); long num = n / k; long result = num * num * num; if (k % 2L == 0L) { num = 0L; for (long i = 1L; i <= n; i++) ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15...
8
134
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var k = int.Parse(line[1]); if (k % 2 == 0) { var k2 = k / 2; var a0 = n / k; var a1 = (n - k2) / k + 1; var w1 = (long)Math.Pow(a0,...
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var k = int.Parse(line[1]); if (k % 2 == 0) { var k2 = k / 2; var a0 = n / k; int a1; if (n - k2 >= 0) a1 = (n - k2) / k + 1...
[["-", 64, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 57, 64, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 16, ...
8
167
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var k = int.Parse(line[1]); if (k % 2 == 0) { var k2 = k / 2; var a0 = 0; var a1 = 0; for (int i = 1; i <= n; i++) { if (i %...
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var k = int.Parse(line[1]); if (k % 2 == 0) { var k2 = k / 2; var a0 = 0; var a1 = 0; for (int i = 1; i <= n; i++) { if (i %...
[["-", 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, 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], ["+", 0, 200, 0, 212, 0, 16, 31,...
8
200
using System; public class AtCoder { public static void Main() { string[] s; s = Console.ReadLine().Trim().Split(' '); double n, k; n = double.Parse(s[0]); k = double.Parse(s[1]); double x = Math.Floor(n / k); double y = Math.Floor(n / k - 0.5) + 1; double z; if (k % 2 == 1) { ...
using System; public class AtCoder { public static void Main() { string[] s; s = Console.ReadLine().Trim().Split(' '); double n, k; n = double.Parse(s[0]); k = double.Parse(s[1]); double x = Math.Floor(n / k); double y = Math.Floor(n / k - 0.5) + 1; long z; if (k % 2 == 1) { ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 64, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["+", 64, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["+", 64, 196, 0, 1, 0, 11, 12, 74, 0, 25], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 39, 199], [...
8
151
using System; namespace Atcoder { public class Program { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int k = int.Parse(input[1]); if (k % 2 != 0) { int x = k; int b = 0; while (x <= n) { b++; ...
using System; namespace Atcoder { public class Program { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int k = int.Parse(input[1]); if (k % 2 != 0) { int x = k; int b = 0; while (x <= n) { b++; ...
[["+", 0, 28, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 0, 25], ["+", 8, 196, 0, 1, 0, 11, 12, 23, 0, 24], ["+", 8, 196, 0, 1, 0, 11, 12, 23, 0, 25], ["+", 0, 16, 31, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 16, 31, 16, 31, 16, 31, 74, 39, 199], ["+", 0...
8
193
using System; class Program { static void Main() { long[] s = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); long ans = 0; long q = 0; if ((s[1] & 1) == 0) { q = (s[0] - (s[1] / 2)) / s[1] + 1; ans += q * q * q; } if (s[0] >= s[1]) { q = s[0] / s[1]; ans += q...
using System; class Program { static void Main() { long[] s = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); long ans = 0; long q = 0; if ((s[1] & 1) == 0 && s[1] / 2 <= s[0]) { q = (s[0] - (s[1] / 2)) / s[1] + 1; ans += q * q * q; } if (s[0] >= s[1]) { q = s[0] / ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 15, 16, 12, 16, 31, 16, 31, 204, 205, 22], ["+", 12, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 16, 12, 16, 31...
8
141
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Math; using static System.Console; class Program { static void Main() { int[] NK = ReadIntN(); int N = NK[0]; int K = NK[1]; long ans = 0...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Math; using static System.Console; class Program { static void Main() { long[] NK = ReadLongN(); long N = NK[0]; long K = NK[1]; long ans ...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0...
8
893
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; #if !DEBUG using System.IO; #endif public class Program { public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var sw = new StreamWriter(Console.OpenStan...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; #if !DEBUG using System.IO; #endif public class Program { public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var sw = new StreamWriter(Console.OpenStan...
[["+", 0, 212, 0, 41, 15, 23, 0, 16, 31, 22], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 17, 18], ["+", 0, 41, 15, 23, 0, 16, 12, 23, 0, 24], ["+", 15, 23, 0, 16, 12, 23, 0, 16, 31, 22], ["+", 15, 23, 0, 16, 12, 23, 0, 16, 17, 85], ["+", 15, 23, 0, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 41, 15, 23, 0, 16, 12, 23, 0, 25], ["+",...
8
3,242
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace AtCoder_Project_CSharp { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var t = Console.ReadLine(); var ss = s; for (int i = 0; i < s.Length; i++) { Console...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace AtCoder_Project_CSharp { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var t = Console.ReadLine(); var ss = s; for (int i = 0; i < s.Length; i++) { if (ss ...
[["-", 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
143
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace ConsoleApplication1 { internal static class Program { public static void Main(string[] args) { Solve(Console.OpenStandardInput(), Console.OpenStan...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace ConsoleApplication1 { internal static class Program { public static void Main(string[] args) { Solve(Console.OpenStandardInput(), Console.OpenStan...
[["-", 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
654
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; using static System.Console; class Program { internal static void Main(string[] args) { var S = ReadLine(); var T = ReadLine(); for (int i = 0; i < S.Length; i++) { var ans = true; var idx = 0; fo...
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; using static System.Console; class Program { internal static void Main(string[] args) { var S = ReadLine(); var T = ReadLine(); for (int i = 0; i < S.Length; i++) { var ans = true; var idx = 0; va...
[["+", 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, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 20...
8
166
using System; using System.Linq; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; class Program { static void Main(string[] args) { WriteLine(ReadLineParseIntArray().Select(x => x - 1).Sum()); } static int[] Read...
using System; using System.Linq; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; class Program { static void Main(string[] args) { ReadLine(); WriteLine(ReadLineParseIntArray().Select(x => x - 1).Sum()); } s...
[["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 0, 235, 8, 201, 0, 195, 0, 251, 0, 115], ["+", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 0, 208, 0, 235, 8, 201, 0, 195, 141, 22], ["+...
8
104
using System; using System.Collections; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.IO; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Security.Permissions; using System.Text; using static System.Console; using static System.Math; using sta...
using System; using System.Collections; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.IO; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Security.Permissions; using System.Text; using static System.Console; using static System.Math; using sta...
[["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 12...
8
3,571
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; using Pair = System.Tuple<long, long>; /// <su...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; using Pair = System.Tuple<long, long>; /// <su...
[["-", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["-", 0, 210, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 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]...
8
3,654
using System; using System.Collections.Generic; using System.Linq; namespace D { class Program { static void Main(string[] args) { int[] NM = Console.ReadLine().Split().Select(i => Convert.ToInt32(i)).ToArray(); List<Tuple<int, int>> req = Enumerable.Range(0, NM[1]) ...
using System; using System.Collections.Generic; using System.Linq; namespace D { class Program { static void Main(string[] args) { int[] NM = Console.ReadLine().Split().Select(i => Convert.ToInt32(i)).ToArray(); int ans = 0; int edge = NM[0] + 1; Enumerable.Range(0, NM[1]) .Select(i =...
[["-", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["-", 0, 198, 39, 236, 237, 238, 0, 236, 141, 22], ["-", 39, 236, 237, 238, 0, 236, 237, 238, 0, 18], ["-", 39, 236, 237, 238, 0, 236, 237, 238, 0, 21], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198...
8
215
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace ABC103D { class Program { static void Solve() { var n = Input.NextInt(); var m = Input.NextInt(); var list = new List<Tuple<int, int>>(); for (int i = 0...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace ABC103D { class Program { static void Solve() { var n = Input.NextInt(); var m = Input.NextInt(); var list = new List<Tuple<int, int>>(); for (int i = 0...
[["-", 0, 28, 0, 218, 8, 16, 31, 214, 141, 22], ["+", 0, 28, 0, 218, 8, 16, 31, 214, 141, 22], ["-", 0, 28, 0, 218, 8, 16, 12, 214, 141, 22], ["+", 0, 28, 0, 218, 8, 16, 12, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 214, 205, 204, 205, 22], ["-", 0, 212, 0, 214, 205, 204, 206, 207, 0, 70], ["-", 0, 212, 0, 214, 205, 204,...
8
869
using System; using System.Linq; //リストの使用 using System.Collections.Generic; class Program { static void Main() { int answer = 0; int lastPosition = -1; string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 int n = int.Parse(input[0]); int m = int.Parse(input[1]); ...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; class Program { static void Main() { int answer = 0; int lastPosition = -1; string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 int n = int.Parse(input[0]); int m = int.Parse(input[1]); ...
[["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 21], ["+", 0, 28, 0, 218, 54, 55, 0, 220, 141, 22], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 25], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25]...
8
256
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.IO; namespace Contest { class Scanner { private string[] line = new string[0]; private int index = 0; public string Next() { if (line.Length <= index) { line = Console.ReadLin...
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.IO; namespace Contest { class Scanner { private string[] line = new string[0]; private int index = 0; public string Next() { if (line.Length <= index) { line = Console.ReadLin...
[["-", 205, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 205, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 1, 0, 11, 12, 214, 205, 204, 205, 22], ["+", 0, 11, 12, 214, 205, 204, 206, ...
8
716
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { var N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var l = 0; var r = 0; var count = 0; while (r < N) { if (A[l] == A...
using System; using System.Linq; using System.Collections.Generic; public class Hello { public static void Main() { var N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var l = 0; var r = 0; var count = 0; while (r < N) { if (A[l] ...
[["-", 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, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 0, 11, 12, ...
8
145
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace workspace { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] an = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int ans ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace workspace { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] an = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int ans ...
[["+", 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], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 0, 131], ["+", 206, 207, 0, 28, 0, 16, 31, 2...
8
218
using System; using System.Linq; namespace AGC026_A { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); var cnt = 0; for (int i = 0; i < n - 1; i++) { if (a[i] == a[i + 1]) { cnt++; ...
using System; using System.Linq; namespace AGC026_A { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); var cnt = 0; for (int i = 0; i < n - 1; i++) { if (a[i] == a[i + 1]) { cnt++; ...
[["+", 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
110
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { for (; T > 0; T--) { Read(); var chk = Check(); Console.Wri...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { for (; T > 0; T--) { Read(); var chk = Check(); Console.Wri...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 37, 0, 38], ["-", 8, 196, 0, 57, 64, 37, 0, 211, 0, 147],...
8
564
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoundHound_Inc { class Program { static void Main(string[] args) { int a, b, c, d, f; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]);...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoundHound_Inc { class Program { static void Main(string[] args) { int a, b, c, d, f; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]);...
[["+", 0, 57, 15, 16, 31, 241, 0, 23, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 0, 57, 15, 16, 12, 23, 0, 241, 0, 111], ["+", 15, 16, 12, 23, 0, 241, 0, 23, 0, 24], ["+", 15, 16, 12, 23, 0, 241, 0, 23, 0, 25], ["+", 75, 57, 15, 16, 31, 241, 0, 23, 0, 25], ["+", 0, 57, 75, 57, 15, 16, 12, 23, 0, 24], ["...
8
180
using System; namespace ProCon_ { class Program { static void Main(string[] args) { string input = ""; input = Console.ReadLine(); char[] li = new char[input.Length]; li = input.ToCharArray(); bool judge = li[0] == 'A'; int count_C = 0; for (int i = 2; i < input.Length - 1; i++) { if...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProCon_ { class Program { static void Main(string[] args) { string input = ""; input = Console.ReadLine(); char[] li = new char[input.Length]; li = input.ToCharArray(); bo...
[["+", 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
195
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var S = Console.ReadLine(); if (!S.StartsWith("A")) { Console.WriteLine("WA"); return; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var S = Console.ReadLine(); // 条件を順番に潰していく。 // WAの条件に引っかかった時点で出力し、最後まで残ったものがACになる。 // Aから始まる...
[["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["-", 0, 16, 12, 23, 0, 16, 31, 214, 205, 22], ["-", 0, 16, 12, 23, 0, 16, 31, 214, 0, 131], ["-", 0, 16, 12, 23, 0, 16, 31, 214, 141, 22], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 17, 33], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25], ["+", ...
8
241
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var S = Console.ReadLine(); if (!S.StartsWith("A")) { Console.WriteLine("WA"); return; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var S = Console.ReadLine(); // 条件を順番に潰していく。 // WAの条件に引っかかった時点で出力し、最後まで残ったものがACになる。 // Aから始まる...
[["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["-", 0, 16, 12, 23, 0, 16, 31, 214, 205, 22], ["-", 0, 16, 12, 23, 0, 16, 31, 214, 0, 131], ["-", 0, 16, 12, 23, 0, 16, 31, 214, 141, 22], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 17, 33], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25], ["+", ...
8
241
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; namespace AIZUproject08 { // 128B /*class Data { public int ID { get; set; } public string Name { get; set; } public int Evaluation { get; set; } } class Program { s...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; namespace AIZUproject08 { // 128B /*class Data { public int ID { get; set; } public string Name { get; set; } public int Evaluation { get; set; } } class Program { s...
[["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["-", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["-", 64, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 64, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["-", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46...
8
300
using System; using System.Collections.Generic; using System.Linq; namespace ABC099 { class Program { static void Main(string[] args) { List<string> list = new List<string>(); while (true) { string line = Console.ReadLine(); if (line == null) break; list.Add(line); } var str...
using System; using System.Collections.Generic; using System.Linq; namespace ABC099 { class Program { static void Main(string[] args) { List<string> list = new List<string>(); while (true) { string line = Console.ReadLine(); if (line == null) break; list.Add(line); } var str...
[["+", 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, 210, 0, 266], ["+", 8, 201, 0, 195, 8, 196, 0, 210,...
8
241
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; class Program { static void Main() { string S = Console.ReadLine(); bool ans = false; if (S.StartsWith("A", StringComparison.Ordinal)) { if (S.S...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; class Program { static void Main() { string S = Console.ReadLine(); bool ans = false; if (S.StartsWith("A", StringComparison.Ordinal)) { if (S.S...
[["-", 64, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 31, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 60], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, ...
8
393
using System; using System.Linq; public class Program { static void Main() { var s = Console.ReadLine(); if (s.Substring(0, 1) == "A" && char.IsLower(s[1])) { var buf = s.Substring(2).ToCharArray(); if (buf.Where(x => x == 'C').Count() == 1) { if (buf.Where(x => x != 'C').All(x => char.Is...
using System; using System.Linq; public class Program { static void Main() { var s = Console.ReadLine(); if (s.Substring(0, 1) == "A" && char.IsLower(s[1])) { var buf = s.Substring(2).ToCharArray(); if (buf.Last() != 'C' && buf.Where(x => x == 'C').Count() == 1) { if (buf.Where(x => x != ...
[["+", 15, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 15, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 15, 16, 31, 16, 31, 213, 3, 4, 0, 25], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 16, 31, 16, 12, 252, 0, 104], ["+", 0, 57, 15, 16, 31, 16, 12, 252, 0, 253], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 1...
8
142
using System; namespace ABC104_B_AcCepted { internal class Program { public static void Main(string[] args) { string s = Console.ReadLine(); string[] sArr = new string[s.Length]; for (int i = 0; i < s.Length; i++) { sArr[i] = s.Substring(i, 1); } int countC = 0; int appearC = 0; b...
using System; namespace ABC104_B_AcCepted { internal class Program { public static void Main(string[] args) { string s = Console.ReadLine(); string[] sArr = new string[s.Length]; for (int i = 0; i < s.Length; i++) { sArr[i] = s.Substring(i, 1); } int countC = 0; int appearC = 0; b...
[["-", 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], ["-", 64, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
231
using System; namespace abc104_b { class Program { static void Main(string[] args) { string s = Console.ReadLine(); bool ret = true; if (s[0] != 'A') ret = false; int count = 0; for (int i = 2; i < s.Length - 1; i++) if (s[i] == 'C') count++; if (count != 1) ret = fa...
using System; namespace abc104_b { class Program { static void Main(string[] args) { string s = Console.ReadLine(); bool ret = true; if (s[0] != 'A') ret = false; int count = 0; for (int i = 2; i < s.Length - 1; i++) if (s[i] == 'C') count++; if (count != 1) ret = fa...
[["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 45], ["-", 0, 7, 8, 57, 15, 16, 31, 252, 0, 104], ["-", 0, 7, 8, 57, 15, 16, 31, 252, 0, 253], ["-", 8, 196, 0, 7, 8, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 104], ["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["+...
8
157
using System; using System.Linq; public class Hello { public static void Main() { var S = Console.ReadLine(); if (S[0] == 'A' && S[2] == 'C' && S.Count(s => s == 'C') == 1) { for (var i = 0; i < S.Length; i++) { if (i == 0 || i == 2) { continue; } else { if (char.IsUp...
using System; using System.Linq; public class Hello { public static void Main() { var S = Console.ReadLine(); if (S[0] == 'A' && S.Substring(2, S.Length - 3).Contains('C') && S.Count(c => c == 'C') == 1) { for (var i = 0; i < S.Length; i++) { if (i == 0 || S[i] == 'C') { contin...
[["-", 31, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 31, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 60], ["+", 12, 213, 63, 214...
8
148
using System; using System.Runtime.Remoting.Contexts; namespace Contest { class Scanner { private string[] line = new string[0]; private int index = 0; public string Next() { if (line.Length <= index) { line = Console.ReadLine().Split(' '); index = 0; } var res = line[index]; index++...
using System; using System.Runtime.Remoting.Contexts; namespace Contest { class Scanner { private string[] line = new string[0]; private int index = 0; public string Next() { if (line.Length <= index) { line = Console.ReadLine().Split(' '); index = 0; } var res = line[index]; index++...
[["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 95], ["+", 0, 57, 75, 57, 64, 196, 0, 1, 0, 35], ["+", 64, 196, 0, 57, 75, 57, 64, 196, 0, 46], ["+", 0, 57, 64, 196, 0, 57, 75, 57, 0, 95], ["+", 64, 196, 0, 57, 75, 57, 75, 196, 0, 45], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 0, 13...
8
505
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC104 { class Program { static void Main(string[] args) { // 65 90 67 string s = Console.ReadLine(); string subs = ""; string ans = "AC"; int flag = 0; if (s.Substrin...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC104 { class Program { static void Main(string[] args) { // 65 90 67 string s = Console.ReadLine(); string subs = ""; string ans = "AC"; int flag = 0; if (s.Substrin...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 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...
8
251
using System; public class Hello { public static void Main() { var s = Console.ReadLine().Trim(); Console.WriteLine(check(s) ? "AC" : "WA"); } public static bool check(string s) { var sL = s.Length; if (s[0] != 'A') return false; var s2 = s.Substring(2, sL - 3); var a = s2.Length - ...
using System; public class Hello { public static void Main() { var s = Console.ReadLine().Trim(); Console.WriteLine(check(s) ? "AC" : "WA"); } public static bool check(string s) { var sL = s.Length; if (s[0] != 'A') return false; var s2 = s.Substring(2, sL - 3); var a = s2.Length - ...
[["-", 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, 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, 213, 3, 4, 0, 28, 0, 5, ...
8
172
using System; namespace AtCoder.Problems { public class ProblemAbc079C { public static void Main(string[] args) { var s = new Solve079C(); s.Solve(); } public class Scanner { private string[] _s; private int _i; private readonly char[] _separators = new char[] { ' ' }; ...
using System; namespace AtCoder.Problems { public class ProblemAbc079C { public static void Main(string[] args) { var s = new Solve079C(); s.Solve(); } public class Scanner { private string[] _s; private int _i; private readonly char[] _separators = new char[] { ' ' }; ...
[["-", 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, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35]...
8
767
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Competition { public class Program { static string abcd = ""; static void Main(string[] args) { var dg = Console.ReadLine().Split(' '); var D = int.Parse(dg[0]); var G = long.Pa...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Competition { public class Program { static void Main(string[] args) { var dg = Console.ReadLine().Split(' '); var D = int.Parse(dg[0]); var G = long.Parse(dg[1]); long[] p = ...
[["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 62], ["-", 8, 201, 0, 235, 8, 201, 0, 124, 0, 35], ["-", 0, 235, 8, 201, 0, 195, 0, 251, 0, 115], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, ...
8
391
using System; using System.Linq; using System.Collections.Generic; using static System.Math; using static System.Console; using System.Text; class Program { static void Main(string[] args) { solve(); } static Scanner cin; static int D; static int G; static int[] p; static int[] c; static void input() { ...
using System; using System.Linq; using System.Collections.Generic; using static System.Math; using static System.Console; using System.Text; class Program { static void Main(string[] args) { solve(); } static Scanner cin; static int D; static int G; static int[] p; static int[] c; static void input() { ...
[["+", 8, 196, 0, 7, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 19], ["+", 0, 7, 15, 16, 31, 16, 12, 204, 205, 22], ["+", 15, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 16, 12, 204, 206, 207, 0, 73], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17...
8
715
using System; using System.Collections.Generic; using System.Linq; class Procon { public Procon() {} static void Main(string[] agrs) { new Procon().Do(); } Scanner cin; int D; long G; long[] p; long[] c; public void Do() { cin = new Scanner(); D = cin.nextInt(); G = cin.nextLong(); p...
using System; using System.Collections.Generic; using System.Linq; class Procon { public Procon() {} static void Main(string[] agrs) { new Procon().Do(); } Scanner cin; int D; long G; long[] p; long[] c; public void Do() { cin = new Scanner(); D = cin.nextInt(); G = cin.nextLong(); p...
[["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 22], ["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+...
8
845
using System; using System.Linq; using System.Collections.Generic; class Cmondai { static void Main() { var dg = Console.ReadLine().Split(' ').Select(x => Int64.Parse(x)).ToArray(); var D = (int)dg[0]; var G = dg[1]; var list = new List<long[]>(); for (int i = 0; i < D; ++i) { var p...
using System; using System.Linq; using System.Collections.Generic; class Cmondai { static void Main() { var dg = Console.ReadLine().Split(' ').Select(x => Int64.Parse(x)).ToArray(); var D = (int)dg[0]; var G = dg[1]; var list = new List<long[]>(); for (int i = 0; i < D; ++i) { var p...
[["+", 31, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 31, 23, 0, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 31, 22], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 17, 72], ["+"...
8
395
using System; class Program { static int[] p; static int[] c; static int G; static int D; static void Main(string[] args) { var dg = Console.ReadLine().Split(' '); D = int.Parse(dg[0]); G = int.Parse(dg[1]); p = new int[D]; c = new int[D]; for (int i = 0; i < D; i++) { var s = ...
using System; class Program { static int[] p; static int[] c; static int G; static int D; static void Main(string[] args) { var dg = Console.ReadLine().Split(' '); D = int.Parse(dg[0]); G = int.Parse(dg[1]); p = new int[D]; c = new int[D]; for (int i = 0; i < D; i++) { var s = ...
[["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 2...
8
461
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int D = int.Parse(s[0]); int G = int.Parse(s[1]); List<int[]> list = new Li...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int D = int.Parse(s[0]); int G = int.Parse(s[1]); List<int[]> list = new Li...
[["+", 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, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, ...
8
376
using System; using System.Linq; namespace abc104_c { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); Tuple<int, int>[] arr = new Tuple<int, int>[x[0]]; for (int i = 0; i < x[0]; i++) { int[] a = Console.ReadLine().Split().Select(i...
using System; using System.Linq; namespace abc104_c { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); Tuple<int, int>[] arr = new Tuple<int, int>[x[0]]; for (int i = 0; i < x[0]; i++) { int[] a = Console.ReadLine().Split().Select(i...
[["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 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,...
8
338
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { public struct Pair { public int x, y; public Pair(int x, int y) { this.x = x; this.y = y; } } public static void Solve() { string S = NextString(); int N = S.Length; lon...
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { public struct Pair { public int x, y; public Pair(int x, int y) { this.x = x; this.y = y; } } public static void Solve() { string S = NextString(); int N = S.Length; lon...
[["+", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 0, 210, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 210, 8, 196, 0, 1, 0, 35]]
8
661
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string str = Console.ReadLine(); long[] S = new long[str.Length]; long t = 1; long At = 0; long Bt = 0; long Ct = 0; long b = 1; long Ab = 0; long Bb = 0; long Cb = 0; for (var...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string str = Console.ReadLine(); long[] S = new long[str.Length]; long t = 1; long At = 0; long Bt = 0; long Ct = 0; for (var i = 0; i < str.Length; i++) { if (str.Substring(i, 1) == "A"...
[["-", 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
224
using System; public class Hello { public static int MOD = 1000000007; public static void Main() { var s = Console.ReadLine().Trim(); var sL = s.Length; var a1 = new int[sL]; var q1 = new int[sL]; var c2 = new int[sL]; var q2 = new int[sL]; var ca1 = 0; var cc2 = 0; var cq1 = 0;...
using System; public class Hello { public static int MOD = 1000000007; public static void Main() { var s = Console.ReadLine().Trim(); var sL = s.Length; var a1 = new int[sL]; var q1 = new int[sL]; var c2 = new int[sL]; var q2 = new int[sL]; var ca1 = 0; var cc2 = 0; var cq1 = 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, 20], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25]]
8
569
using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; using System.Linq; class P { static int mod = 1000000007; static void Main() { string s = Console.ReadLine(); int n = s.Length; int[,] count = new int[n + 1, 4]; for (int i = 1; i <= n; i++) { count[i,...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; using System.Linq; class P { static int mod = 1000000007; static void Main() { string s = Console.ReadLine(); int n = s.Length; int[,] count = new int[n + 1, 4]; for (int i = 1; i <= n; i++) { count[i,...
[["+", 8, 201, 0, 195, 8, 196, 0, 246, 0, 247], ["+", 0, 195, 8, 196, 0, 246, 8, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 246, 8, 196, 0, 46], ["+", 0, 195, 8, 196, 0, 246, 0, 248, 0, 249], ["+", 8, 196, 0, 246, 0, 248, 8, 196, 0, 45], ["+", 0, 246, 0, 248, 8, 196, 0, 37, 0, 38], ["+", 0, 246, 0, 248, 8, 196, 0, 37, 0, 20...
8
1,413
using System; using System.Collections.Generic; namespace Contest { class Scanner { private string[] line = new string[0]; private int index = 0; public string Next() { if (line.Length <= index) { line = Console.ReadLine().Split(' '); index = 0; } var res = line[index]; index++; ...
using System; using System.Collections.Generic; namespace Contest { class Scanner { private string[] line = new string[0]; private int index = 0; public string Next() { if (line.Length <= index) { line = Console.ReadLine().Split(' '); index = 0; } var res = line[index]; index++; ...
[["+", 0, 16, 31, 23, 0, 16, 31, 74, 0, 24], ["+", 31, 23, 0, 16, 12, 213, 3, 4, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25]]
8
1,065
using System; using System.Collections.Generic; using System.Linq; using System.Security.Policy; using System.Web; namespace Competitive { internal class Solution { public string S; public long[] B, C, BC, ABC, T; public void Run() { S = Console.ReadLine(); int L = S.Length; B = new long[S.Length + ...
using System; using System.Collections.Generic; using System.Linq; using System.Security.Policy; using System.Web; namespace Competitive { internal class Solution { public string S; public long[] B, C, BC, ABC, T; public void Run() { S = Console.ReadLine(); int L = S.Length; B = new long[S.Length + ...
[["+", 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, 132], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]]
8
750
using System; using System.Collections.Generic; using System.Linq; namespace ziyuutyou { class Program { static void Main(string[] args) { var str = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var list = new List<int>(); var sum = 0; for (var x = 0; x < str.Count(); x++) { lis...
using System; using System.Collections.Generic; using System.Linq; namespace ziyuutyou { class Program { static void Main(string[] args) { var str = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var list = new List<int>(); var sum = 0; for (var x = 0; x < str.Count(); x++) { lis...
[["+", 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
119
using System; using System.Diagnostics; using System.IO; using System.Linq; namespace AtCoder { class Practice { static void Main() => CustomMain(); static void Solve() { var a = ReadIntArray(); Array.Sort(a); var ans = a[0] - a[1]; ans += a[2] - a[1]; WriteAnswer(ans); } static void Cus...
using System; using System.Diagnostics; using System.IO; using System.Linq; namespace AtCoder { class Practice { static void Main() => CustomMain(); static void Solve() { var a = ReadIntArray(); Array.Sort(a); var ans = Math.Abs(a[0] - a[1]); ans += Math.Abs(a[2] - a[1]); WriteAnswer(ans); ...
[["+", 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, 25], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0...
8
727
using System; namespace AtCoder.ABC103 { public class A { public static void Solve() { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int c = int.Parse(input[2]); int min = 0; int x, y, z; x = Math.Abs(a - b); ...
using System; using System.Numerics; namespace Atcoder.ABC103 { public class A { public static void Solve() { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int c = int.Parse(input[2]); int max = 0; int x, y, z; ...
[["+", 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], ["-", 36, 36, 0, 208, 0, 209, 141, 232, 234, 22], ["+", 36, 36, 0, 208, 0, 20...
8
180
using System; using System.Linq; using System.Collections.Generic; using static System.Math; public class Program { public static void Main(string[] args) { List<int> task = Console.ReadLine().Split().Select(int.Parse).OrderBy(x => x).ToList(); int answer = 0; for (int i = 0; i < task.Count() - ...
using System; using System.Linq; using System.Collections.Generic; using static System.Math; public class Program { public static void Main(string[] args) { List<int> task = Console.ReadLine().Split().Select(int.Parse).OrderBy(x => x).ToList(); int answer = 0; for (int i = 0; i < task.Count() - ...
[["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
120
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var T = Console.ReadLine(); var ret = false; for (int i = T.Lengt...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var T = Console.ReadLine(); var ret = false; for (int i = T.Leng...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 200, 0, 212, 0, 16, 31, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 214, 0...
8
167
using System; using System.Linq; namespace B.String_Rotation { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var T = Console.ReadLine(); bool ans = false; for (int i = 0; i < S.Length; i++) { S = string.Concat(S.Last(), S); S = S.Remove(S.L...
using System; using System.Linq; namespace B.String_Rotation { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var T = Console.ReadLine(); bool ans = false; for (int i = 0; i < S.Length; i++) { S = string.Concat(S.Last(), S); S = S.Remove(S.L...
[["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 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, 12, 41, 0, 101], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64,...
8
123
using System; using System.Collections.Generic; namespace ABC103_B_String_Rotation { internal class Program { public static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); List<string> rollS = new List<string>(); bool matchStr = false; for (int i = 0; i ...
using System; using System.Collections.Generic; namespace ABC103_B_String_Rotation { internal class Program { public static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); List<string> rollS = new List<string>(); bool matchStr = false; for (int i = 0; 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, 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
257
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication9 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int count = 0; for (int i = 1; i < N; i++...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication9 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int count = 0; for (int i = 1; i <= N; i+...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 4...
8
160
using System; using System.Numerics; namespace study11 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int caunto = 0; int ans = 0; for (int a = 1; a <= N; a++) for (int b = 1; b <= N; b++) if (a % b == 0) { caunto++; if (ca...
using System; using System.Numerics; namespace study11 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int caunto = 0; int ans = 0; for (int a = 1; a <= N; a += 2) { caunto = 0; for (int b = 1; b <= a; b++) { if (a % b == 0) cau...
[["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 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, 8, 196, 0, 45], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 19...
8
112
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp62 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int type_A = 0; //〇×〇×〇×△型を探す for (int k = 1; k <= N; k += 2) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp62 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int type_A = 0; //〇×〇×〇×△型を探す for (int k = 1; k <= N; k += 2) { ...
[["-", 31, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["-", 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, 16, 31, 16, 31, 16, 31, 5, 0, ...
8
386
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace atcorder1 { class MainClass { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } public static vo...
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace atcorder1 { class MainClass { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } public static vo...
[["-", 0, 57, 75, 57, 75, 57, 15, 16, 12, 203], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 12, 203], ["+", 0, 57, 75, 57, 75, 57, 75, 57, 0, 121], ["+", 0, 57, 75, 57, 75, 57, 75, 57, 0, 24], ["+", 75, 57, 75, 57, 75, 57, 15, 16, 31, 22], ["+", 75, 57, 75, 57, 75, 57, 15, 16, 17, 18], ["+", 75, 57, 75, 57, 75, 57, 15, 16, 12...
8
181
using System; using System.IO; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Runtime.CompilerServices; using System.Runtime.In...
using System; using System.IO; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Runtime.CompilerServices; using System.Runtime.In...
[["-", 0, 28, 0, 41, 75, 41, 15, 16, 12, 203], ["+", 0, 28, 0, 41, 75, 41, 15, 16, 12, 203], ["-", 0, 41, 75, 41, 75, 41, 15, 16, 12, 203], ["+", 0, 41, 75, 41, 75, 41, 15, 16, 12, 203], ["+", 75, 41, 75, 41, 75, 41, 15, 16, 31, 22], ["+", 75, 41, 75, 41, 75, 41, 15, 16, 17, 18], ["+", 75, 41, 75, 41, 75, 41, 15, 16, 1...
8
130
using System; using System.Collections.Generic; class c { static void Main() { int n = int.Parse(Console.ReadLine()); var list = new List<int> { 105, 135, 165, 195 }; int ans = 0; for (int i = 0; i <= n; i++) { if (list.Contains(i)) ans++; } Console.WriteLine(ans); } }
using System; using System.Linq; using System.Collections.Generic; class c { static void Main() { int n = int.Parse(Console.ReadLine()); var list = new List<int> { 105, 135, 165, 189, 195 }; int ans = 0; for (int i = 0; i <= n; i++) { if (list.Contains(i)) ans++; } Console.WriteL...
[["+", 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], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["+", 0, 200, 0, 212, 0, 230, 10, 229, 0, 21], ["+", 0, 200, 0, 212, 0, 2...
8
93
using System; class MainClass { public static void Main(string[] args) { int cnt = 0; int ans = 0; int num = int.Parse(Console.ReadLine()); for (int i = 0; i < num; i++) { if (i % 2 == 1) { for (int j = 1; j < num; j++) { if (i % j == 0) { cnt++; if (cnt...
using System; class MainClass { public static void Main(string[] args) { int cnt = 0; int ans = 0; int num = int.Parse(Console.ReadLine()); for (int i = 1; i <= num; i++) { if (i % 2 == 1) { cnt = 0; for (int j = 1; j <= i; j++) { if (i % j == 0) { cnt++; ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+"...
8
116
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main(string[] args) { var num = int.Parse(ReadLine()); int count = 0; if (105 <= num) ++count; if (135 <= num) ++count; if (165 <= num) ++count; if (18...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main(string[] args) { var num = int.Parse(ReadLine()); int count = 0; if (105 <= num) ++count; if (135 <= num) ++count; if (165 <= num) ++count; if (18...
[["+", 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, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 241, 0, 29], ...
8
94
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); if (n < 104) { Console.WriteLine(0); goto end; } if (n == 105) { Console.WriteLine(1); goto end; } var res = 1; for (int i = 106; i <= n; i++) { if (i...
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); if (n <= 104) { Console.WriteLine(0); goto end; } if (n <= 106) { Console.WriteLine(1); goto end; } var res = 1; for (int i = 107; i <= n; i += 2) { v...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 2...
8
150
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { int inpt = int.Parse(Reader.ReadLine()); int ans = 0; for (int i = 105; i <= inpt; i++) { if (YakusuCount(i) == 8) { ans++; } } ...
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { int inpt = int.Parse(Reader.ReadLine()); int ans = 0; for (int i = 105; i <= inpt; i++) { if (i % 2 == 0) { continue; } if (Yakusu...
[["+", 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, 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
286
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22]...
8
206
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.C { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var S = ReadText(...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.C { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var S = ReadText(...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 104], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-",...
8
430
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 104], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
536
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Co...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Co...
[["-", 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], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 31, 213, 63, 214, 205, 213, 63,...
8
1,135
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var S = Console.ReadLine(); var K = long.Parse(Console.ReadLine()); var count = 0; while (S[count] == '1') { count++; } if (count >= K) { Consol...
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var S = Console.ReadLine(); var K = long.Parse(Console.ReadLine()); int count = 0; while (count < S.Length && S[count] == '1') { count++; } if (count ...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 16, 31, 16, 12, 214, 205, 22], ["+", 0, 52, 15, 16, 31, 16, 12, 214, 0, 131], ["+", 0, 52, 15, 16, 31, 16, 12, 214...
8
107
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using System.Diagnostics; using ll=System.Int64; using static Contest_C.Lib_IO; using static Contest_C.Lib_Minifunc; public static class Contest_C { public static ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using System.Diagnostics; using ll=System.Int64; using static Contest_C.Lib_IO; using static Contest_C.Lib_Minifunc; public static class Contest_C { public static ...
[["-", 0, 196, 0, 7, 8, 196, 0, 246, 0, 247], ["-", 0, 7, 8, 196, 0, 246, 8, 196, 0, 45], ["-", 8, 196, 0, 246, 8, 196, 0, 1, 0, 35], ["-", 0, 7, 8, 196, 0, 246, 8, 196, 0, 46], ["-", 0, 7, 8, 196, 0, 246, 0, 248, 0, 249], ["-", 8, 196, 0, 246, 0, 248, 8, 196, 0, 45], ["-", 0, 248, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8...
8
3,034
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; using Pair = System.Tuple<long, long>; /// <su...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; using Pair = System.Tuple<long, long>; /// <su...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45...
8
3,504