buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { var inputArray = retreiveLongArray(); var inputCount = 1; // 不正な入力は処理しない if (inputArra...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { var inputArray = retreiveLongArray(); var inputCount = 1; // 不正な入力は処理しない if (inputArra...
[["-", 8, 196, 0, 1, 0, 11, 12, 41, 64, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 41, 64, 203]]
8
778
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } ...
[["-", 8, 196, 0, 1, 0, 11, 12, 41, 64, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 41, 64, 203], ["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117]]
8
1,483
using System; using System.Collections.Generic; using System.Linq; public static class Bits { public static int PopCount(this int bits) { bits = (bits & 0x55555555) + (bits >> 1 & 0x55555555); bits = (bits & 0x33333333) + (bits >> 2 & 0x33333333); bits = (bits & 0x0f0f0f0f) + (bits >> 4 & 0x0f0f0f0f); ...
using System; using System.Collections.Generic; using System.Linq; public static class Bits { public static int PopCount(this int bits) { bits = (bits & 0x55555555) + (bits >> 1 & 0x55555555); bits = (bits & 0x33333333) + (bits >> 2 & 0x33333333); bits = (bits & 0x0f0f0f0f) + (bits >> 4 & 0x0f0f0f0f); ...
[["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 11, 12, 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]]
8
521
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string X = Console.ReadLine(); int ct = 0; int[] A = new int[N]; for (var i = 0; i < X.Length; i++) { int s = int.Parse(X.Substring(i, 1)); if (s == ...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string X = Console.ReadLine(); int ct = 0; int[] A = new int[N]; for (var i = 0; i < X.Length; i++) { int s = int.Parse(X.Substring(i, 1)); if (s == ...
[["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
647
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; using System.Diagnostics; using static System.Math; using static System.Array; using static AtCoder.Sc_out; using static AtCoder.To...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; using System.Diagnostics; using static System.Math; using static System.Array; using static AtCoder.Sc_out; using static AtCoder.To...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
2,915
using System; using System.Collections.Generic; using System.Linq; using System.IO; using SB = System.Text.StringBuilder; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; using static System.Math; using pair = Pair<long, long>; class Prog...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using SB = System.Text.StringBuilder; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; using static System.Math; using pair = Pair<long, long>; class Prog...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 11, 12, 214, 141, 22]]
8
1,621
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { // ABC031.D(); Aising2020.E(); } class Aising2020 { public static void A() { var L = Read.Int(); var R = Read.Int(); var D = Read.Int(); Co...
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { // ABC031.D(); Aising2020.E(); } class Aising2020 { public static void A() { var L = Read.Int(); var R = Read.Int(); var D = Read.Int(); Co...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
6,596
using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { int n = int.Parse(ReadLine()); if (n % 1000 == 0) { WriteLine(n / 1000); } else { WriteLine(n - n % 1000); } } }
using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { int n = int.Parse(ReadLine()); if (n % 1000 == 0) { WriteLine(0); } else { WriteLine(1000 - n % 1000); } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203]]
8
77
using System; class A { static void Main() { var a = int.Parse(Console.ReadLine()); while (a >= 1000) a -= 1000; Console.WriteLine(a == 1000 ? 1000 - a : 0); } }
using System; class A { static void Main() { var a = int.Parse(Console.ReadLine()); while (a >= 1000) a -= 1000; Console.WriteLine(a == 0 ? 0 : 1000 - a); } }
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 64, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["-", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["-", 0, 213, 3, 4, 0, 28, 0, 41, 75, 203]]
8
53
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace A { class Program { static void Main(string[] args) { string line = Console.ReadLine(); // tstring[] strs = line.Split(' '); int N = int.Parse(line); Console.WriteLine(1000...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace A { class Program { static void Main(string[] args) { string line = Console.ReadLine(); // tstring[] strs = line.Split(' '); int N = int.Parse(line); Console.WriteLine((100...
[["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
79
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine() ?? throw new InvalidOperationException()); var result = n % 1000; if (...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine() ?? throw new InvalidOperationException()); var result = n % 1000; if (...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203]]
8
94
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public const long DpInf = 99999999999999; public static void Main(string[] args) { var p = Console.ReadLine().ToInt(); Console.WriteLine(p + p * p * p * p *...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public const long DpInf = 99999999999999; public static void Main(string[] args) { var p = Console.ReadLine().ToInt(); Console.WriteLine(p + p * p + p * p *...
[["-", 0, 16, 12, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]]
8
275
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(" "); var N = int.Parse(input[0]); var M = int.Parse(input[1]); var K = int.Parse(input[2]); var ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(" "); var N = int.Parse(input[0]); var M = int.Parse(input[1]); var K = int.Parse(input[2]); var ...
[["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29]]
8
371
using System; class C { static int[] Read() => Array.ConvertAll(Console.ReadLine().Split(), int.Parse); static void Main() { int[] n = Read(), a = Read(), b = Read(), c = new int[n[0] + 1], d = new int[n[1] + 1]; int s = 0, j = n[1]; for (int i = 1; i...
using System; class C { static long[] Read() => Array.ConvertAll(Console.ReadLine().Split(), long.Parse); static void Main() { long[] n = Read(), a = Read(), b = Read(), c = new long[n[0] + 1], d = new long[n[1] + 1]; long s = 0, j = n[1]; for (int ...
[["-", 0, 235, 8, 201, 0, 195, 39, 224, 39, 199], ["+", 0, 235, 8, 201, 0, 195, 39, 224, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 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, 227, 3...
8
245
using System; using System.Linq; namespace AtCoder.Abcdef { public class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); // Input int array int[] inputArray = ...
using System; using System.Linq; namespace AtCoder.Abcdef { public class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); // Input int array int[] inputArray = ...
[["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199]]
8
307
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...
[["-", 75, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["-", 75, 57, 64, 196, 0, 1, 0, 223, 0, 68], ["-", 0, 57, 75, 57, 64, 196, 0, 1, 0, 35]]
8
654
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; using System.Numerics; namespace abc172 { class Program { static void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); if (File.Exists("in...
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; using System.Numerics; namespace abc172 { class Program { static void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); if (File.Exists("in...
[["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
731
// // ABC172C // URL : https://atcoder.jp/contests/abc172/tasks/abc172_c // using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.IO.Pipes; namespace AtCoder.ABC172C { class Solver { public static readonly long MOD_CONST = 1000000007; //(long)...
// // ABC172C // URL : https://atcoder.jp/contests/abc172/tasks/abc172_c // using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.IO.Pipes; namespace AtCoder.ABC172C { class Solver { public static readonly long MOD_CONST = 1000000007; //(long)...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47]]
8
1,054
using System; using System.Collections.Generic; using System.Linq; namespace Contest { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); var n = input[0]; var m = input[1]; var k = input[2]; input = Console.ReadLine().Split()....
using System; using System.Collections.Generic; using System.Linq; namespace Contest { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); var n = input[0]; var m = input[1]; var k = input[2]; input = Console.ReadLine().Split()....
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
8
440
using System; using System.Linq; namespace ConsoleApp3 { internal class Program { private static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); Console.WriteLine(Enumerable.Range(1, n).Sum(x => x * GetAllOfSum(n / x))); } private static long GetAllOfSum(int n) { return n * (n + 1) / ...
using System; using System.Linq; namespace ConsoleApp3 { internal class Program { private static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); Console.WriteLine( Enumerable.Range(1, n).Sum(x => x * GetAllOfSum((long)n / x))); } private static decimal GetAllOfSum(decimal n) {...
[["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199]]
8
92
using System; namespace ABC172Test { class Program { static void Main() { int N = int.Parse(Console.ReadLine().Trim()); long result = 0; result = abc172_f2(N); Console.WriteLine(result); } static int abc172_f2(int k) { int sum = 0; for (int i = 1; i <= k; i++) { int max = k / i; ...
using System; namespace ABC172Test { class Program { static void Main() { int N = int.Parse(Console.ReadLine().Trim()); long result = 0; result = abc172_f2(N); Console.WriteLine(result); } static long abc172_f2(int k) { long sum = 0; for (int i = 1; i <= k; i++) { int max = k / i; ...
[["-", 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, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
117
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; const double eps = 1e-...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; const double eps = 1e-...
[["+", 12, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 17, 72]]
8
1,807
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; public class Hello { public static void Main() { // Your code here! // var n = int.Parse(Console.ReadLine()); // string str = Console.ReadLine(); string str = Console.ReadLine(); string...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; public class Hello { public static void Main() { // Your code here! // var n = int.Parse(Console.ReadLine()); // string str = Console.ReadLine(); string str = Console.ReadLine(); string...
[["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["-", 75, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 75, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
94
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace AtCoder.Abc { /// <summary> /// https://atcoder.jp/contests/abc172/tasks/abc172_b /// </summary> class A_171_αlphabet { public static void Main...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace AtCoder.Abc { /// <summary> /// https://atcoder.jp/contests/abc172/tasks/abc172_b /// </summary> class A_171_αlphabet { public static void Main...
[["-", 15, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 15, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 57, 15, 213, 3, 4, 0, 28, 0, 22], ["+", 15, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
150
using System; using System.Linq; namespace fightx { class Program { static void Main(string[] args) { /* int[] NK = Console.ReadLine().Split(" ").Select(int.Parse).ToArray(); int[] PN = Console.ReadLine().Split(" ").Select(int.Parse).ToArray(); Array.Sort(PN); int ans = 0; for (int a = 0; a <...
using System; using System.Linq; namespace fightx { class Program { static void Main(string[] args) { /* int[] NK = Console.ReadLine().Split(" ").Select(int.Parse).ToArray(); int[] PN = Console.ReadLine().Split(" ").Select(int.Parse).ToArray(); Array.Sort(PN); int ans = 0; for (int a = 0; a <...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
78
using System; using System.Linq; using System.Collections.Generic; using E = System.Linq.Enumerable; public class Program { public static void Main() { var a = Console.ReadLine()[0]; Console.WriteLine(char.IsLower(a) ? 'A' : 'a'); } }
using System; using System.Linq; using System.Collections.Generic; using E = System.Linq.Enumerable; public class Program { public static void Main() { var a = Console.ReadLine()[0]; Console.WriteLine(char.IsLower(a) ? 'a' : 'A'); } }
[["-", 3, 4, 0, 28, 0, 41, 64, 252, 0, 253], ["+", 3, 4, 0, 28, 0, 41, 64, 252, 0, 253], ["-", 3, 4, 0, 28, 0, 41, 75, 252, 0, 253], ["+", 3, 4, 0, 28, 0, 41, 75, 252, 0, 253]]
8
69
using System; using System.Collections.Generic; class Program { static void Main() { string S = Console.ReadLine(); if (S == "A" || S == "B" || S == "C" || S == "D" || S == "E" || S == "F" || S == "G" || S == "H" || S == "I" || S == "J" || S == "K" || S == "L" || S == "M" || S == "N" || S ==...
using System; using System.Collections.Generic; class Program { static void Main() { string S = Console.ReadLine(); if (S == "A" || S == "B" || S == "C" || S == "D" || S == "E" || S == "F" || S == "G" || S == "H" || S == "I" || S == "J" || S == "K" || S == "L" || S == "M" || S == "N" || S ==...
[["-", 0, 57, 15, 16, 12, 16, 12, 5, 0, 222], ["+", 0, 57, 15, 16, 12, 16, 12, 5, 0, 222]]
8
211
using System; using System.Text; using System.Collections.Generic; using System.Linq; using System.IO; namespace AtCoder.A { public class Program { public static void Main(string[] args) { var s = r(); if (Char.IsUpper(s[0])) { P("A"); return; } P("B"); } private ...
using System; using System.Text; using System.Collections.Generic; using System.Linq; using System.IO; namespace AtCoder.A { public class Program { public static void Main(string[] args) { var s = r(); if (Char.IsUpper(s[0])) { P("A"); return; } P("a"); } private ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
294
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc141/tasks/abc141_a public class QuestionA { public static void Main(string[] args) { var sw =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc141/tasks/abc141_a public class QuestionA { public static void Main(string[] args) { var sw =...
[["-", 0, 230, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 230, 3, 4, 0, 28, 0, 5, 0, 222]]
8
147
using System; using System.Linq; namespace ProblemA { class Program { static void Main() { string ch = Console.ReadLine(); if (ch[0] > 'A' && ch[0] < 'Z') { Console.WriteLine("A"); } else { Console.WriteLine("a"); } } public static int GetInt() => int.Parse(Console.ReadLine()); pu...
using System; using System.Linq; namespace ProblemA { class Program { static void Main() { string ch = Console.ReadLine(); if (ch[0] >= 'A' && ch[0] <= 'Z') { Console.WriteLine("A"); } else { Console.WriteLine("a"); } } public static int GetInt() => int.Parse(Console.ReadLine()); ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19]]
8
219
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; static void Main(string[] args) { var a = Read().ToCharArray(); if (Char.IsUpper(a[0]))...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; static void Main(string[] args) { var a = Read().ToCharArray(); if (Char.IsUpper(a[0]))...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
418
using System; using System.Linq; namespace workspace { class Program { static void Main() { var tmp = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToList(); var N = tmp[0]; var K = tmp[1]; var price = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToList(); price.Sort(...
using System; using System.Linq; namespace workspace { class Program { static void Main() { var tmp = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToList(); var N = tmp[0]; var K = tmp[1]; var price = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToList(); price.Sort(...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
146
using System; using System.Linq; public class Program { public static void Main() { int[] numbers = Console.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); int[] prices = Console.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); Console.WriteLine(prices.OrderBy(a => a...
using System; using System.Linq; public class Program { public static void Main() { int[] numbers = Console.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); int[] prices = Console.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); Console.WriteLine(prices.OrderBy(a => a...
[["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["+", 205, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73]]
8
112
using System; using System.Linq; class name { static void Main() { int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] b = Console.ReadLine().Split().Select(int.Parse).ToArray(); for (int i = 0; i < b.Length - 1; i++) { // 下から上に順番に比較します for (int j = b.Length - 1; j > i; j...
using System; using System.Linq; class name { static void Main() { int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] b = Console.ReadLine().Split().Select(int.Parse).ToArray(); for (int i = 0; i < b.Length - 1; i++) { // 下から上に順番に比較します for (int j = b.Length - 1; j > i; j...
[["-", 8, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 204, 205, 22]]
8
196
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC173D { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] Ainput = Console.ReadLine().Split(' '); long[] A = new long[N]; for...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC173D { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] Ainput = Console.ReadLine().Split(' '); long[] A = new long[N]; for...
[["+", 206, 207, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 206, 207, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 85]]
8
245
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Numerics; public class MainClass { public const long Giri = 1000000007; public const long DpInf = 99999999999999; public static void Main(string[] args) { var n = Console.ReadLine().ToInt(); var a = Input()...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Numerics; public class MainClass { public const long Giri = 1000000007; public const long DpInf = 99999999999999; public static void Main(string[] args) { var n = Console.ReadLine().ToInt(); var a = Input()...
[["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 22], ["+", 64, 196, 0, 57, 75, 196, 0, 1, 0, 35]]
8
662
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, 213, 63, 214, 205, 214, 205, 273, 0, 274], ["+", 0, 37, 0, 213, 63, 214, 205, 214, 205, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 214, 205, 273, 0, 274]]
8
1,009
using System; class Program { const int TYPE_NUM = 26; static void Main(string[] args) { int i, j; int d = int.Parse(Console.ReadLine()); int[] c = new int[TYPE_NUM + 1]; int[,] s = new int[d + 1, TYPE_NUM + 1]; string[] strInput = Console.ReadLine().Split(' '); for (i = 1; i <= TYPE_NUM...
using System; class Program { const int TYPE_NUM = 26; static void Main(string[] args) { int i, j; int d = int.Parse(Console.ReadLine()); int[] c = new int[TYPE_NUM + 1]; int[,] s = new int[d + 1, TYPE_NUM + 1]; string[] strInput = Console.ReadLine().Split(' '); for (i = 1; i <= TYPE_NUM...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
338
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { int a = int.Parse(ReadLine()); a = a * a + a * a * a + a; WriteLine("{0},a"); } } }
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { int a = int.Parse(ReadLine()); a = a * a + a * a * a + a; WriteLine("{0}", a); } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
85
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder.Abc171 { public class ModularCombinationFixedK { int k; long mod; long[] combination; public ModularCombinationFixedK(int maxN, int k, long mod) { combination = new long[maxN + 1]; this.k = k; this...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder.Abc171 { public class ModularCombinationFixedK { int k; long mod; long[] combination; public ModularCombinationFixedK(int maxN, int k, long mod) { combination = new long[maxN + 1]; this.k = k; this...
[["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25]]
8
440
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...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
2,583
using System; class A { static void Main() => Console.WriteLine(360 / Gcd(180, int.Parse(Console.ReadLine()))); static int Gcd(int a, int b) { for (int r; (r = a % b) > 0; a = b, b = r) ; return b; } }
using System; class A { static void Main() => Console.WriteLine(360 / Gcd(360, int.Parse(Console.ReadLine()))); static int Gcd(int a, int b) { for (int r; (r = a % b) > 0; a = b, b = r) ; return b; } }
[["-", 0, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 16, 12, 213, 3, 4, 0, 28, 0, 203]]
8
75
using System; namespace takahashikun { class Program { static void Main(string[] args) { string inX = Console.ReadLine(); int X = int.Parse(inX); int K = 1; while (!(K * X >= 360 && K * X % 360 == 0)) K++; Console.WriteLine(X); } } }
using System; namespace takahashikun { class Program { static void Main(string[] args) { string inX = Console.ReadLine(); int X = int.Parse(inX); int K = 1; while (!(K * X >= 360 && K * X % 360 == 0)) K++; Console.WriteLine(K); } } }
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
75
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; namespace AtCoder { public static class Ex { public static List<string> FastSort(this List<string> s) { s.Sort(StringComparer.OrdinalIgnoreCase); return s.ToList(); } public static void yesno(this b...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; namespace AtCoder { public static class Ex { public static List<string> FastSort(this List<string> s) { s.Sort(StringComparer.OrdinalIgnoreCase); return s.ToList(); } public static void yesno(this b...
[["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 12, 22], ["+", 31, 23, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 31, 23, 0, 16, 31, 16, 12, 16, 12, 22]]
8
2,044
using System; using System.Linq; using System.Collections.Generic; using Debug = System.Diagnostics.Trace; using SB = System.Text.StringBuilder; using static System.Math; using static Program.IO.Scanner; using Number = System.Int64; using System.Numerics; #region IO namespace Program.IO { using System.IO; using Sys...
using System; using System.Linq; using System.Collections.Generic; using Debug = System.Diagnostics.Trace; using SB = System.Text.StringBuilder; using static System.Math; using static Program.IO.Scanner; using Number = System.Int64; using System.Numerics; #region IO namespace Program.IO { using System.IO; using Sys...
[["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
1,684
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { public const ulong mod = 1000000007; static void Main(string[] args) { var x = Console.ReadLine().Split().Select(int.Parse).ToArray(); var ans = 0; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { public const ulong mod = 1000000007; static void Main(string[] args) { var x = Console.ReadLine().Split().Select(int.Parse).ToArray(); var ans = 0; ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]]
8
162
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var x = Console.ReadLine().Split().Select(int.Parse).ToArray(); for (int i = 0; i < 5; i++) { if (x[i] == 0) { Console.WriteLine(i); break; } } } } }
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var x = Console.ReadLine().Split().Select(int.Parse).ToArray(); for (int i = 0; i < 5; i++) { if (x[i] == 0) { Console.WriteLine(i + 1); break; } } } } }
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
87
using System; namespace q1 { class q2 { static void Main() { string[] x = Console.ReadLine().Split(); int[] kazu = new int[5]; for (int gokai = 0; gokai < 5; gokai++) { kazu[gokai] = int.Parse(x[gokai]); } for (int y = 0; y < 5; y++) { if (kazu[y] == 0) { Console.WriteLine(y); ...
using System; namespace q1 { class q2 { static void Main() { string[] x = Console.ReadLine().Split(); int[] kazu = new int[5]; for (int gokai = 0; gokai < 5; gokai++) { kazu[gokai] = int.Parse(x[gokai]); } for (int y = 0; y < 5; y++) { if (kazu[y] == 0) { Console.WriteLine(y + ...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
112
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc170/tasks/abc170_a class A_FiveVariables_170 { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc170/tasks/abc170_a class A_FiveVariables_170 { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( ...
[["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
165
using System; class Program { static void Main(string[] args) { // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); int i = 1; foreach (string str in input) { if (str == "0") { Console.WriteLine(i); break; } } } }
using System; class Program { static void Main(string[] args) { // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); int i = 1; foreach (string str in input) { if (str == "0") { Console.WriteLine(i); break; } i++; } } }
[["+", 0, 210, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 210, 8, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 210, 8, 196, 0, 1, 0, 35]]
8
70
using System; namespace AtCoder { public class Program { static void Main(string[] args) { int target = 0; string[] input = Console.ReadLine().Split(' '); int[] nums = new int[5]; for (int i = 0; i < 5; i++) { nums[i] = int.Parse(input[i]); } for (int i = 0; i < 5; i++) { if (nums...
using System; namespace AtCoder { public class Program { static void Main(string[] args) { int target = 0; string[] input = Console.ReadLine().Split(' '); int[] nums = new int[5]; for (int i = 0; i < 5; i++) { nums[i] = int.Parse(input[i]); } for (int i = 0; i < 5; i++) { if (nums...
[["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
126
using System.Linq; using static System.Console; class Program { static void Main(string[] args) { var a = ReadLine().Split(" "); for (int i = 0; i < a.Length; i++) { if (a[i] == "0") { WriteLine(i); return; } } return; } }
using System.Linq; using static System.Console; class Program { static void Main(string[] args) { var a = ReadLine().Split(" "); for (int i = 0; i < a.Length; i++) { if (a[i] == "0") { WriteLine(i + 1); return; } } return; } }
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
80
using System; using System.Linq; class A { static void Main() { Console.WriteLine(Console.ReadLine().Split().ToList().IndexOf("0")); } }
using System; using System.Linq; class A { static void Main() { Console.WriteLine(Console.ReadLine().Split().ToList().IndexOf("0") + 1); } }
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
45
using System; using System.Globalization; using System.IO; using System.Text; public class Program { public static void Main(string[] args) { var stdin = Console.OpenStandardInput(); var ss = new StreamScanner(stdin); var p = new Program(); p.solve(ss); stdin.Close(); } private void solve(St...
using System; using System.Globalization; using System.IO; using System.Text; public class Program { public static void Main(string[] args) { var stdin = Console.OpenStandardInput(); var ss = new StreamScanner(stdin); var p = new Program(); p.solve(ss); stdin.Close(); } private void solve(St...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 213, 3, 4, 0, 28, 0, 241, 0, 29]]
8
531
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class { static void Main(string[] args) { var x = RL<int>(); for (var i = 0; i < x.Length; i++) { if (x[i] == 0) { Console.Write(i); return; } } } static T[] RL<T>() ...
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class { static void Main(string[] args) { var x = RL<int>(); for (var i = 0; i < x.Length; i++) { if (x[i] == 0) { Console.Write(i + 1); return; } } } static T[] RL<T>(...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
318
using System; namespace aziz { class Program { static void Main(string[] args) { String[] X = Console.ReadLine().Split(' '); int X1 = int.Parse(X[0]); int X2 = int.Parse(X[1]); int X3 = int.Parse(X[2]); int X4 = int.Parse(X[3]); int X5 = int.Parse(X[4]); for (int i = 0; i < X.Length; i++)...
using System; namespace aziz { class Program { static void Main(string[] args) { String[] X = Console.ReadLine().Split(' '); int X1 = int.Parse(X[0]); int X2 = int.Parse(X[1]); int X3 = int.Parse(X[2]); int X4 = int.Parse(X[3]); int X5 = int.Parse(X[4]); for (int i = 0; i < X.Length; i++)...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
143
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc141/tasks/abc141_a public class QuestionA { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc141/tasks/abc141_a public class QuestionA { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
152
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { decimal[] a = Console.ReadLine().Split(" ").Select(x => decimal.Parse(x)).ToArray(); decimal res = 0; for (int i = 1; i <= a.Le...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { decimal[] a = Console.ReadLine().Split(" ").Select(x => decimal.Parse(x)).ToArray(); decimal res = 0; for (int i = 1; i < a.Len...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
118
using System; namespace AtCoder { public static class AtCoder { public static void Main() { var input = Console.ReadLine().Split(' '); for (int i = 0; i < 5; i++) { if (input[0] == "0") { Console.WriteLine(i + 1); return; } } return; } } }
using System; namespace AtCoder { public static class AtCoder { public static void Main() { var input = Console.ReadLine().Split(' '); for (int i = 0; i < 5; i++) { if (input[i] == "0") { Console.WriteLine(i + 1); return; } } return; } } }
[["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22]]
8
79
using System; using System.Text; using System.Collections.Generic; using System.Linq; using System.IO; namespace AtCoder.XXX.A { public class Program { public static void Main(string[] args) { var datas = cr(); var cnt = 0; foreach (var data in datas) { if (data == 0) { P(cnt)...
using System; using System.Text; using System.Collections.Generic; using System.Linq; using System.IO; namespace AtCoder.XXX.A { public class Program { public static void Main(string[] args) { var datas = cr(); var cnt = 0; foreach (var data in datas) { if (data == 0) { P(cnt ...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
298
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace B { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace B { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
201
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { public const ulong mod = 1000000007; static void Main(string[] args) { var xy = Console.ReadLine().Split().Select(int.Parse).ToArray(); var maxleg =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { public const ulong mod = 1000000007; static void Main(string[] args) { var xy = Console.ReadLine().Split().Select(int.Parse).ToArray(); var maxleg =...
[["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]]
8
206
using System; class IDONTKNOWCSHARP { public static void Main() { string[] values = Console.ReadLine().Split( new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); int num = int.Parse(values[0]); int leg = int.Parse(values[1]); int count = 0; while (num > count) { if (4 ...
using System; class IDONTKNOWCSHARP { public static void Main() { string[] values = Console.ReadLine().Split( new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); int num = int.Parse(values[0]); int leg = int.Parse(values[1]); int count = 0; while (num >= count) { if (4...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20]]
8
123
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(" "); var X = int.Parse(input[0]); var Y = int.Parse(input[1]); var result = "No"; for (int i = 1; i <= X; i++) { var turu = i; va...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(" "); var X = int.Parse(input[0]); var Y = int.Parse(input[1]); var result = "No"; for (int i = 0; i <= X; i++) { var turu = i; va...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
138
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication4 { class Program { static void Main(string[] args) { int[] vals = Console.ReadLine().Split(' ').Select(tmp => int.Parse(tmp)).ToArray(); int flag = 0; f...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication4 { class Program { static void Main(string[] args) { int[] vals = Console.ReadLine().Split(' ').Select(tmp => int.Parse(tmp)).ToArray(); int flag = 0; f...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
161
using System; using System.Diagnostics; using System.Linq; namespace ConsoleApp1 { class Program { static void print(string s) { Console.WriteLine(s); } static string scan() { return Console.ReadLine(); } static void Main(string[] args) { int x, y; string[] lineArray = scan().Split(" "); x = int.Pa...
using System; using System.Diagnostics; using System.Linq; namespace ConsoleApp1 { class Program { static void print(string s) { Console.WriteLine(s); } static string scan() { return Console.ReadLine(); } static void Main(string[] args) { int x, y; string[] lineArray = scan().Split(" "); x = int.Pa...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
170
using System; namespace q1 { class q2 { static void Main() { string[] x = Console.ReadLine().Split(); int a = int.Parse(x[0]); int b = int.Parse(x[1]); if (a * 2 <= b && b <= a * 4) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } } }
using System; namespace q1 { class q2 { static void Main() { string[] x = Console.ReadLine().Split(); int a = int.Parse(x[0]); int b = int.Parse(x[1]); if (a * 2 <= b && b <= a * 4 && b % 2 == 0) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } } }
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 109], ["+", 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, 203]]
8
96
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderExamCS { class Program { static void Main(string[] args) { string tmp = Console.ReadLine(); string[] tmpSplit = tmp.Split(); int[] tmpInt = new int[2]; for (int i = 0; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderExamCS { class Program { static void Main(string[] args) { string tmp = Console.ReadLine(); string[] tmpSplit = tmp.Split(); int[] tmpInt = new int[2]; for (int i = 0; ...
[["-", 0, 57, 75, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 7, 15, 16, 17, 19]]
8
245
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { string[] vs = (Console.ReadLine().Split(' ')); int X = Convert.ToInt32(vs[0]); int Y = Convert.ToInt32(vs[1]); bool a = false; for...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { string[] vs = (Console.ReadLine().Split(' ')); int X = Convert.ToInt32(vs[0]); int Y = Convert.ToInt32(vs[1]); bool a = false; for...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
160
using System; using System.Collections.Generic; namespace test { class MainClass { public static void Main(string[] args) { string[] lines = Console.ReadLine().Split(' '); int x = int.Parse(lines[0]); int y = int.Parse(lines[1]); for (int i = 0; i < x + 1; i++) { if (i * 2 + (x - i) * 4 == y)...
using System; using System.Collections.Generic; namespace test { class MainClass { public static void Main(string[] args) { string[] lines = Console.ReadLine().Split(' '); int x = int.Parse(lines[0]); int y = int.Parse(lines[1]); for (int i = 0; i < x + 1; i++) { if (i * 2 + (x - i) * 4 == y)...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
133
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B { class Program { static void Main(string[] args) { string line = Console.ReadLine(); string[] strs = line.Split(' '); int X = int.Parse(strs[0]); int Y = int.Parse(strs[1])...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B { class Program { static void Main(string[] args) { string line = Console.ReadLine(); string[] strs = line.Split(' '); int X = int.Parse(strs[0]); int Y = int.Parse(strs[1])...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 109], ["+", 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, 203]]
8
132
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace AtCoder { public class ABC { static public void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); Solve(args); Console...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace AtCoder { public class ABC { static public void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); Solve(args); Console...
[["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 15, 16, 31, 16, 12, 16, 31, 16, 31, 22]]
8
244
using System; class Program { static bool _trigger; static void Main() { var line = Console.ReadLine(); var _line = line.Split(" "); int x = int.Parse(_line[0]); int y = int.Parse(_line[1]); for (int i = 0; i < x; i++) { if (i * 2 + (x - i) * 4 == y) { _trigger = true; } ...
using System; class Program { static bool _trigger; static void Main() { var line = Console.ReadLine(); var _line = line.Split(" "); int x = int.Parse(_line[0]); int y = int.Parse(_line[1]); for (int i = 0; i < x + 1; i++) { if (i * 2 + (x - i) * 4 == y) { _trigger = true; ...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
123
using System; class Program { static void Main() { String[] inline = Console.ReadLine().Split(' '); long x = long.Parse(inline[0]); long y = long.Parse(inline[1]); String ans = "No"; if (x % 2 == 0 && x * 4 >= y && x * 2 <= y) { ans = "Yes"; } Console.WriteLine(ans); } }
using System; class Program { static void Main() { String[] inline = Console.ReadLine().Split(' '); long x = long.Parse(inline[0]); long y = long.Parse(inline[1]); String ans = "No"; if (y % 2 == 0 && x * 4 >= y && x * 2 <= y) { ans = "Yes"; } Console.WriteLine(ans); } }
[["-", 15, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 31, 22]]
8
100
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main() { string[] inputs = Console.ReadLine().Split(" "); int legsSum = int.Parse(inputs[1]); int animals = int.Parse(inputs[0]); bool possible = false; for...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main() { string[] inputs = Console.ReadLine().Split(" "); int legsSum = int.Parse(inputs[1]); int animals = int.Parse(inputs[0]); bool possible = false; for...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]]
8
150
using System; namespace B { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(" "); int X = int.Parse(input[0]); int Y = int.Parse(input[1]); string ans = "No"; for (int k = 1; k < 100; k++) { for (int t = 1; t < 100; t++) if (k + t == X && ...
using System; namespace B { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(" "); int X = int.Parse(input[0]); int Y = int.Parse(input[1]); string ans = "No"; for (int k = 0; k <= 100; k++) { for (int t = 0; t <= 100; t++) if (k + t == X &...
[["-", 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, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
138
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { //入力を保持する var input = Console.ReadLine().Split().Select(e => int.Parse(e)).ToArray(); //鶴のカウントとして控えておく var c = input[0]; var legs = input[1]; //亀は0匹スタートとする int t = 0; for...
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { //入力を保持する var input = Console.ReadLine().Split().Select(e => int.Parse(e)).ToArray(); //鶴のカウントとして控えておく var c = input[0]; var legs = input[1]; //亀は0匹スタートとする int t = 0; for...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
142
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design; using System.IO.Compression; using System.Linq; using System.Numerics; using System.Text; using Console = System.Console; namespace Atcoder { class Program { private const long C...
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design; using System.IO.Compression; using System.Linq; using System.Numerics; using System.Text; using Console = System.Console; namespace Atcoder { class Program { private const long C...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
177
using System.Collections.Generic; using static System.Console; class Program { static void Main(string[] args) { var a = ReadLine().Split(" "); var x = int.Parse(a[0]); var y = int.Parse(a[1]); for (int i = 0; i <= x; i++) { var legs = 0; legs = 4 * i + 2 * (x - i); if (legs == y) ...
using System.Collections.Generic; using static System.Console; class Program { static void Main(string[] args) { var a = ReadLine().Split(" "); var x = int.Parse(a[0]); var y = int.Parse(a[1]); for (int i = 0; i <= x; i++) { var legs = 0; legs = 4 * i + 2 * (x - i); if (legs == y) ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
127
using System; class Program { static void Main(string[] args) { string[] In = Console.ReadLine().Split(' '); int x = int.Parse(In[0]); int y = int.Parse(In[1]); bool flag = false; for (int i = 0; i <= 25; i++) // 4本 { int j = x - i; // 2本 int sum = 4 * i + 2 * j; if (sum == ...
using System; class Program { static void Main(string[] args) { string[] In = Console.ReadLine().Split(' '); int x = int.Parse(In[0]); int y = int.Parse(In[1]); bool flag = false; for (int i = 0; i <= 25; i++) // 4本 { int j = x - i; // 2本 int sum = 4 * i + 2 * j; if (sum == ...
[["+", 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, 20], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
140
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var x = int.Parse(line[0]); var y = int.Parse(line[1]); Console.WriteLine(getAns(x, y)); } static string getAns(int x, int y) { for (int c = 0; c <= 100; c++) { var t = x...
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var x = int.Parse(line[0]); var y = int.Parse(line[1]); Console.WriteLine(getAns(x, y)); } static string getAns(int x, int y) { for (int c = 0; c <= x; c++) { var t = x -...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
135
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); int[] tempArray = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).T...
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); int[] tempArray = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).T...
[["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 15, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 17, 20]]
8
183
using System; using System.ComponentModel; using System.Security.Cryptography.X509Certificates; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string[] line = Console.ReadLine().Split(' '); int goukei = int.Parse(line[0]); int ashigoukei = int.Parse(line[1]); //全部鶴だった場合の足の数...
using System; using System.ComponentModel; using System.Security.Cryptography.X509Certificates; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string[] line = Console.ReadLine().Split(' '); int goukei = int.Parse(line[0]); int ashigoukei = int.Parse(line[1]); //全部鶴だった場合の足の数...
[["-", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22]]
8
169
using System; namespace AtCoder.Abc { class QuestionB { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); var sp = Console.ReadLine().Split(' '); var x = int.Parse(sp[0]); ...
using System; namespace AtCoder.Abc { class QuestionB { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); var sp = Console.ReadLine().Split(' '); var x = int.Parse(sp[0]); ...
[["+", 15, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 15, 16, 12, 16, 31, 16, 31, 23, 0, 25]]
8
147
using System; using System.Linq; namespace AtCoder.Abc { class QuestionB { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); // 整数配列の入力 var inputLongArray = Console.Re...
using System; using System.Linq; namespace AtCoder.Abc { class QuestionB { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); // 整数配列の入力 var inputLongArray = Console.Re...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]]
8
198
using System; namespace atcoder { class Atcoder170 { static void Main(string[] args) { string[] input = Console.ReadLine().Split(" "); int a = Int32.Parse(input[0]); int b = Int32.Parse(input[1]); if (b % 2 == 1) { Console.WriteLine("No"); return; } if (a == (b * 2) || a == (b *...
using System; namespace atcoder { class Atcoder170 { static void Main(string[] args) { string[] input = Console.ReadLine().Split(" "); int a = Int32.Parse(input[0]); int b = Int32.Parse(input[1]); if (b % 2 == 1) { Console.WriteLine("No"); return; } if (b == (a * 2) || b == (a *...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 15, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 15, 16, 12, 16, 12, 23, 0, 16, 31, 22...
8
179
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int h = int.Parse(input[0]); int f = int.Parse(input[1]); if (h * 2 > f || h * 4 < f) { Console.WriteLine("No"); } else { Console.WriteLine("Yes"); } } }
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int h = int.Parse(input[0]); int f = int.Parse(input[1]); if (h * 2 > f || h * 4 < f || f % 2 != 0) { Console.WriteLine("No"); } else { Console.WriteLine("Yes"); } } }
[["+", 0, 195, 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, 109], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
99
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = INP(); int num = TOI(input[0]); int sousuu = TOI(input[1]); if (sousuu % 2 == 1) { CWL("NO"); return; } if (sousuu > num * 4) { CWL("NO"); ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = INP(); int num = TOI(input[0]); int sousuu = TOI(input[1]); if (sousuu % 2 == 1) { CWL("No"); return; } if (sousuu > num * 4) { CWL("No"); ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
382
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; using System.Numerics; namespace abc170 { class Program { static void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); if (File.Exists("in...
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; using System.Numerics; namespace abc170 { class Program { static void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); if (File.Exists("in...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
311
using System; class p { static void Main() { string[] ipt = Console.ReadLine().Split(' '); int X = int.Parse(ipt[0]); int Y = int.Parse(ipt[1]); bool result = false; for (int i = 0; i < X; i++) { if (((i * 4) + ((X - i) * 2)) == Y) { result = true; break; } } Co...
using System; class p { static void Main() { string[] ipt = Console.ReadLine().Split(' '); int X = int.Parse(ipt[0]); int Y = int.Parse(ipt[1]); bool result = false; for (int i = 0; i <= X; i++) { if (((i * 4) + ((X - i) * 2)) == Y) { result = true; break; } } C...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
124
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; public class Contestant { public static void Main(string[] args) { checked { var /*XY*/ (X, Y) = (Int(), Int()); for (int i = 0; i <= X; i++) { var legs = i * 2 + (X - 1) * 4; ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; public class Contestant { public static void Main(string[] args) { checked { var /*XY*/ (X, Y) = (Int(), Int()); for (int i = 0; i <= X; i++) { var legs = i * 2 + (X - i) * 4; ...
[["-", 0, 16, 12, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 12, 22]]
8
271
using System; using System.Collections.Generic; using System.Linq; public class GFG { public static void Main() { var input = Console.ReadLine().Split(' '); var tot = int.Parse(input[0]); var legs = int.Parse(input[1]); for (int i = 1; i <= 100; i++) { for (int j = 1; j <= 100; j++) { ...
using System; using System.Collections.Generic; using System.Linq; public class GFG { public static void Main() { var input = Console.ReadLine().Split(' '); var tot = int.Parse(input[0]); var legs = int.Parse(input[1]); for (int i = 0; i <= 100; i++) { for (int j = 0; j <= 100; j++) { ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
148
using System; using System.Linq; class Program { static void Main(string[] args) { int[] xy = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int x = xy[0]; int y = xy[1]; for (int i = 1; i <= x; i++) { if (2 * i + 4 * (x - i) == y) { Console.WriteLine("Yes");...
using System; using System.Linq; class Program { static void Main(string[] args) { int[] xy = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int x = xy[0]; int y = xy[1]; for (int i = 0; i <= x; i++) { if (2 * i + 4 * (x - i) == y) { Console.WriteLine("Yes");...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
127
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; static void Main(string[] args) { var r = ReadSplit(); var x = r[0].Int(); var y = ...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; static void Main(string[] args) { var r = ReadSplit(); var x = r[0].Int(); var y = ...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]]
8
484
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int x = int.Parse(input[0]); int y = int.Parse(input[1]); for (int i = 0; i <= x; i++) { int j = x - i; if (i * 2 + j * 4 == y) { Console.WriteLine("YES"); retu...
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int x = int.Parse(input[0]); int y = int.Parse(input[1]); for (int i = 0; i <= x; i++) { int j = x - i; if (i * 2 + j * 4 == y) { Console.WriteLine("Yes"); retu...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
119
using System; class Class3 { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int X = int.Parse(input[0]); int Y = int.Parse(input[1]); string result = "Yes"; if ((4 * X - Y) < 0 || ((4 * X - Y) % 2) > 1) { result = "No"; } if ((-2 * X + Y) < 0 ||...
using System; class Class3 { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int X = int.Parse(input[0]); int Y = int.Parse(input[1]); string result = "Yes"; if ((4 * X - Y) < 0 || ((4 * X - Y) % 2) >= 1) { result = "No"; } if ((-2 * X + Y) < 0 |...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20]]
8
146
using System; class Program { static void Main(string[] args) { string[] strInput = Console.ReadLine().Split(' '); ; int x = int.Parse(strInput[0]); int y = int.Parse(strInput[1]); int tsuru, kame; if (y % 2 != 0) { Console.WriteLine("NO"); return; } kame = y / 2 - x; ...
using System; class Program { static void Main(string[] args) { string[] strInput = Console.ReadLine().Split(' '); ; int x = int.Parse(strInput[0]); int y = int.Parse(strInput[1]); int tsuru, kame; if (y % 2 != 0) { Console.WriteLine("No"); return; } kame = y / 2 - x; ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
176
using System; namespace ABC170B { class Program { static void Main(string[] args) { var t = Console.ReadLine().Trim().Split(' '); int X = int.Parse(t[0]); int Y = int.Parse(t[1]); bool f = false; for (int i = 0; i < 101; i++) { if (i * 2 + (X - i) * 4 == Y) { f = true; break...
using System; namespace ABC170B { class Program { static void Main(string[] args) { var t = Console.ReadLine().Trim().Split(' '); int X = int.Parse(t[0]); int Y = int.Parse(t[1]); bool f = false; for (int i = 0; i < 101; i++) { if (i * 2 + (X - i) * 4 == Y && X - i >= 0) { f = true;...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
136
using System; namespace ForAtcoder { class Program { static void Main(string[] args) { var arg = Console.ReadLine().Split(" "); var x = long.Parse(arg[0]); var y = long.Parse(arg[1]); for (var i = 1; i <= 100; i++) { for (var j = 1; j <= 100; j++) { if (i + j == x && 2 * i + 4 * j == y)...
using System; namespace ForAtcoder { class Program { static void Main(string[] args) { var arg = Console.ReadLine().Split(" "); var x = long.Parse(arg[0]); var y = long.Parse(arg[1]); for (var i = 0; i <= 100; i++) { for (var j = 0; j <= 100; j++) { if (i + j == x && 2 * i + 4 * j == y)...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
150
using System; using System.Collections.Generic; using System.Linq; namespace PaizaTest { class Program { static void Main(string[] args) { var xy = Console.ReadLine().Split().Select(int.Parse).ToList(); var headCount = xy[0]; var footCount = xy[1]; // 亀の数を増やしながら数える var result = "No"; for ...
using System; using System.Collections.Generic; using System.Linq; namespace PaizaTest { class Program { static void Main(string[] args) { var xy = Console.ReadLine().Split().Select(int.Parse).ToList(); var headCount = xy[0]; var footCount = xy[1]; // 亀の数を増やしながら数える var result = "No"; for ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
8
137