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
change_count
int64
0
100
using System; using System.Collections.Generic; using System.Linq; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var r = Console.ReadLine() .Split() .Select(long.Parse) ...
using System; using System.Collections.Generic; using System.Linq; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var r = Console.ReadLine() .Split() .Select(long.Parse) ...
[["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29]]
8
179
3
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static AtCoderTemplate.MyExtensions; using static AtCoderTemplate.MyInputOutputs; using static AtCoderTemplate.MyNumericFunctions; using static AtCoderTemplate.MyAlgorithm; namespace AtCoderTemplate { public class Progra...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static AtCoderTemplate.MyExtensions; using static AtCoderTemplate.MyInputOutputs; using static AtCoderTemplate.MyNumericFunctions; using static AtCoderTemplate.MyAlgorithm; namespace AtCoderTemplate { public class Progra...
[["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
2,457
5
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Linq.Expressions; using static System.Console; using static System.Math; class Simple { int N; int[] A; void Solve() { // input N = io.Int; A = new in...
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Linq.Expressions; using static System.Console; using static System.Math; class Simple { int N; int[] A; void Solve() { // input N = io.Int; A = new in...
[["-", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 48]]
8
594
4
using System; using System.Collections.Generic; using System.Linq; class Program { static string InputPattern = "InputX"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("6"); WillReturn.Add("3 1 2 4 2 1"); // 2 ...
using System; using System.Collections.Generic; using System.Linq; class Program { static string InputPattern = "InputX"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("6"); WillReturn.Add("3 1 2 4 2 1"); // 2 ...
[["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 0, 287, 0, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 287, 0, 196, 0, 57, 15, 16, 17, 20]]
8
356
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] A = Array.ConvertAll(Console.ReadLine().Split(' '), new Converter...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] A = Array.ConvertAll(Console.ReadLine().Split(' '), new Converter...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 75, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 75, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
8
210
5
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // var HW = Console.ReadLine().Split().Select(a => // long.Parse(a)).ToArray(); var N = int.Parse(Console.ReadLine()); var S1 = Console.ReadLine(); var S2 = C...
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // var HW = Console.ReadLine().Split().Select(a => // long.Parse(a)).ToArray(); var N = int.Parse(Console.ReadLine()); var S1 = Console.ReadLine(); var S2 = C...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["-", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203]]
8
223
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class MakeARectangle { static void Main(string[] args) { // var sw = new System.Diagnostics.Stopwatch(); // sw.Start(); Console.ReadLine(); // 扱うデータの個数 LINQに関係なし var stick = Co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class MakeARectangle { static void Main(string[] args) { // var sw = new System.Diagnostics.Stopwatch(); // sw.Start(); Console.ReadLine(); // 扱うデータの個数 LINQに関係なし var stick = Co...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 31, 203], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 31, 203]]
8
321
2
using System; using System.Collections.Generic; using System.Diagnostics.Tracing; using System.Linq; using System.Net.NetworkInformation; using System.Runtime.CompilerServices; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Threading; using Extensions; using DS...
using System; using System.Collections.Generic; using System.Diagnostics.Tracing; using System.Linq; using System.Net.NetworkInformation; using System.Runtime.CompilerServices; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Threading; using Extensions; using DS...
[["+", 15, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 15, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 15, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 15, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
2,702
6
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Text; namespace Program { class MainClass { // C#Lover/////////////////////////////////////////////////// int N; string S1, S2; void...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Text; namespace Program { class MainClass { // C#Lover/////////////////////////////////////////////////// int N; string S1, S2; void...
[["-", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203]]
8
5,645
2
using System; using System.Linq; class GFG { public static void Main() { // var input = Console.ReadLine().Split(' '); // var x = int.Parse(input[0]); // var a = int.Parse(input[1]); // var b = int.Parse(input[2]); // var n = int.Parse(Console.ReadLine()); // var ss = str.ToCharArray().Orde...
using System; using System.Linq; class GFG { public static void Main() { // var input = Console.ReadLine().Split(' '); // var x = int.Parse(input[0]); // var a = int.Parse(input[1]); // var b = int.Parse(input[2]); // var n = int.Parse(Console.ReadLine()); // var ss = str.ToCharArray().Orde...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
112
2
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; void calc()...
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; void calc()...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]]
8
497
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace ConsoleApp3 { class Program { static void Main(string[] args) { string input = Console.ReadLine(); for (int i = 0; i < input.Length / 2; i++) { if (inp...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace ConsoleApp3 { class Program { static void Main(string[] args) { string input = Console.ReadLine(); for (int i = 0; i < (input.Length / 2); i++) { if (i...
[["+", 8, 196, 0, 7, 15, 16, 12, 23, 0, 24], ["+", 8, 196, 0, 7, 15, 16, 12, 23, 0, 25], ["+", 206, 207, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 12, 203], ["+", 206, 207, 0, 28, 0, 16, 12, 23, 0, 25]]
8
120
6
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) { string input = Console.ReadLine(); string revers = ""; for (int i = input.Length - 1; i <= 0; i--) { revers +...
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) { string input = Console.ReadLine(); string revers = ""; for (int i = input.Length - 1; i >= 0; i--) { revers +...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20]]
8
117
2
using System; namespace ABC070 { class MainClass { public static void Main(string[] args) { string N = Console.ReadLine(); for (int i = 0; 2 * i < N.Length; i++) { if (N[i] != N[N.Length - 1 - i]) { Console.WriteLine("No"); break; } } Console.WriteLine("Yes"); } } }
using System; namespace ABC070 { class MainClass { public static void Main(string[] args) { string N = Console.ReadLine(); for (int i = 0; 2 * i < N.Length; i++) { if (N[i] != N[N.Length - 1 - i]) { Console.WriteLine("No"); return; } } Console.WriteLine("Yes"); } } }
[["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38]]
8
92
2
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int c = int.Parse(input[2]); int d = int.Parse(input[3]); int ans = 0; ...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int c = int.Parse(input[2]); int d = int.Parse(input[3]); int ans = 0; ...
[["-", 15, 16, 31, 23, 0, 16, 31, 16, 17, 19], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 17, 18], ["-", 15, 16, 12, 23, 0, 16, 31, 16, 17, 19], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 17, 18], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
155
6
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace AtCoder.Contest.B { static class Program { public static void Solve(Scanner cin) { var (a, b, c, d) = cin.ReadValue<int, int, int, int>(); Console.WriteLine(Math.Max(0, Math.Min(b, d) ...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace AtCoder.Contest.B { static class Program { public static void Solve(Scanner cin) { var (a, b, c, d) = cin.ReadValue<int, int, int, int>(); Console.WriteLine(Math.Max(0, Math.Min(b, d) ...
[["-", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22]]
8
2,548
2
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var ABCD = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); var A = ABCD[0]; var B = ABCD[1]; var C = ABCD[2]; var D = ABCD[3]; var result = Math.Max(0, Math.Mi...
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var ABCD = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); var A = ABCD[0]; var B = ABCD[1]; var C = ABCD[2]; var D = ABCD[3]; var result = Math.Max(0, Math.Mi...
[["-", 0, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 16, 12, 213, 3, 4, 0, 28, 0, 22]]
8
126
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { // 入力 string[] sS = Console.ReadLine().Trim().Split(' '); int iA = int.Parse(sS[0]); int iB = int.Parse(sS[1]); int iC = int.Parse(sS[2]); int iD = int.Parse(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { // 入力 string[] sS = Console.ReadLine().Trim().Split(' '); int iA = int.Parse(sS[0]); int iB = int.Parse(sS[1]); int iC = int.Parse(sS[2]); int iD = int.Parse(...
[["-", 15, 16, 31, 16, 31, 16, 12, 16, 12, 22], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 12, 22]]
8
326
2
using System; using static System.Console; using static System.Math; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { string[] inputSplit = ReadLine().Split(' '); int A = int.Parse(inputSplit[0]); int B = int.Parse(inputSplit[1]); int C = int.Parse(inp...
using System; using static System.Console; using static System.Math; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { string[] inputSplit = ReadLine().Split(' '); int A = int.Parse(inputSplit[0]); int B = int.Parse(inputSplit[1]); int C = int.Parse(inp...
[["-", 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, 17, 33], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 22]]
8
183
4
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCorder { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } public void S...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCorder { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } public void S...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
569
2
using System; using System.Text; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Threading.Tasks; using System.IO; namespace ConsoleTest { class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush =...
using System; using System.Text; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Threading.Tasks; using System.IO; namespace ConsoleTest { class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush =...
[["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["-", 15, 16, 12, 23, 0, 16, 12, 16, ...
8
234
10
using System; using System.Linq; namespace ABC069_C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); var cntFour = 0; var cntTwo = 0; for (int i = 0; i < N; i++) { if (a[i] % 4 == 0) {...
using System; using System.Linq; namespace ABC069_C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); var cntFour = 0; var cntTwo = 0; for (int i = 0; i < N; i++) { if (a[i] % 4 == 0) {...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 18], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 19]]
8
163
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main() { Scanner cin = new Scanner(); int N = cin.Int(); int[] A = cin.ArrayInt(N); int odd = 0, num = 0; // odd:奇数の個数,num:4の倍数の個数 foreach (var x in A) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main() { Scanner cin = new Scanner(); int N = cin.Int(); int[] A = cin.ArrayInt(N); int odd = 0, num = 0; // odd:奇数の個数,num:4の倍数の個数 foreach (var x in A) ...
[["-", 0, 28, 0, 41, 15, 16, 31, 16, 17, 33], ["-", 0, 28, 0, 41, 15, 16, 31, 16, 12, 203], ["+", 0, 28, 0, 41, 15, 16, 12, 16, 17, 33], ["+", 0, 28, 0, 41, 15, 16, 12, 16, 12, 203]]
8
513
4
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { Console.ReadLine(); int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int other = 0; int multi2 = 0; int multi4 = 0; foreach (var i in a) { if (i % 2 == 0) { if (i ...
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { Console.ReadLine(); int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int other = 0; int multi2 = 0; int multi4 = 0; foreach (var i in a) { if (i % 2 == 0) { if (i ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19]]
8
158
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp11 { class Class68 { static void Main() { int N = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int count4 = a.Count(x =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp11 { class Class68 { static void Main() { int N = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int count4 = a.Count(x =...
[["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 48], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 16, 12, 16, 17, 85], ["+", 0, 200, 0, 212, 0, 16, 12, 16, 12, 203], ["+", 0, 28, 0, 41, 15, 16, 12, 16, 17, 85], ["+", 0, 28, 0, 41, 15, 16, 12, 16, 12, 203]]
8
149
6
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; // using static System.Globalization.CultureInfo; class Program { static void Main(string[] args) { var num = ToInt32(ReadLine()); var ar = Array.ConvertAll(R...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; // using static System.Globalization.CultureInfo; class Program { static void Main(string[] args) { var num = ToInt32(ReadLine()); var ar = Array.ConvertAll(R...
[["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 25]]
8
220
2
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; class Program { static void Main() { int n = C.NextInt(); int c4 = 0; int c0 = 0; for (int i = 0; i < n; i++) { int m = C.NextInt(); if (m % 4 == 0) c4++; if (m %...
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; class Program { static void Main() { int n = C.NextInt(); int c4 = 0; int c0 = 0; for (int i = 0; i < n; i++) { int m = C.NextInt(); if (m % 4 == 0) c4++; if (m %...
[["-", 0, 16, 12, 23, 0, 16, 12, 16, 17, 18], ["+", 12, 23, 0, 16, 12, 16, 31, 16, 17, 33], ["+", 12, 23, 0, 16, 12, 16, 31, 16, 12, 203], ["+", 0, 16, 12, 23, 0, 16, 12, 16, 17, 19]]
8
827
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { private int N; private int[] A; private void Scan() { var l = Console.ReadLine().Split(' '); N = int.Parse(l[0]); l = Console.ReadLine().Split(); A = new int[N]; for (int i = 0; i < N; i++) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { private int N; private int[] A; private void Scan() { var l = Console.ReadLine().Split(' '); N = int.Parse(l[0]); l = Console.ReadLine().Split(); A = new int[N]; for (int i = 0; i < N; i++) ...
[["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 20], ["-", 0, 1, 0, 11, 12, 16, 12, 16, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 20], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 22]]
8
257
4
using System; public class AtCoderFourAdjacent { public static void Main(String[] args) { int n = int.Parse(Console.ReadLine()); int[] arr = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int numDivisibleByFour = 0; int numOdd = 0; foreach (var e in arr) { if (e % 2 != 0) { ...
using System; public class AtCoderFourAdjacent { public static void Main(String[] args) { int n = int.Parse(Console.ReadLine()); int[] arr = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int numDivisibleByFour = 0; int numOdd = 0; foreach (var e in arr) { if (e % 2 != 0) { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
164
6
using System; using System.Linq; namespace arc080_a { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); int nottwo = 0; int two = 0; int four = 0; for (int i = 0; i < n; i++) { if (x...
using System; using System.Linq; namespace arc080_a { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); int nottwo = 0; int two = 0; int four = 0; for (int i = 0; i < n; i++) { if (x...
[["+", 0, 28, 0, 41, 15, 16, 31, 16, 17, 33], ["+", 0, 28, 0, 41, 15, 16, 31, 16, 12, 22], ["-", 0, 28, 0, 41, 15, 16, 12, 16, 12, 22], ["+", 0, 28, 0, 41, 15, 16, 12, 16, 12, 203]]
8
154
4
using System; using System.IO; using System.Linq; using System.Text; using System.Collections; using System.Collections.Generic; using System.Threading.Tasks; namespace ConsoleApplication1.CodeForces { public class LowerBoundSortedSet<T> : SortedSet<T> { private ComparerDecorator<T> _comparerDecorator; pri...
using System; using System.IO; using System.Linq; using System.Text; using System.Collections; using System.Collections.Generic; using System.Threading.Tasks; namespace ConsoleApplication1.CodeForces { public class LowerBoundSortedSet<T> : SortedSet<T> { private ComparerDecorator<T> _comparerDecorator; pri...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47]]
8
1,698
2
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace ARC080B { class Program { static void Solve() { var h = Input.NextInt(); var w = Input.NextInt(); var n = Input.NextInt(); var a = Input.NextInt(n); ...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace ARC080B { class Program { static void Solve() { var h = Input.NextInt(); var w = Input.NextInt(); var n = Input.NextInt(); var a = Input.NextInt(n); ...
[["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
903
2
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { public Solve() {} StringBuilder sb; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); Calc(); Console.Write(sb.ToString()); } void Calc() {...
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { public Solve() {} StringBuilder sb; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); Calc(); Console.Write(sb.ToString()); } void Calc() {...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 195, 8, 196, 0, 37, 0, 211, 0, 146], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 12, 203]]
8
1,556
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ziyuutyou { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); Console.WriteLine("Atcoder" + N); } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ziyuutyou { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); Console.WriteLine("ABC" + N); } } }
[["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222]]
8
64
2
using System; using System.Collections.Generic; namespace ABC068 { class Program { static void Main(string[] args) { // B var N = int.Parse(Console.ReadLine()); Console.WriteLine(BreakNumber.DivisionNum(N)); } } public class BreakNumber { public static int DivisionNum(int n) { var list = new Li...
using System; using System.Collections.Generic; namespace ABC068 { class Program { static void Main(string[] args) { // B var N = int.Parse(Console.ReadLine()); Console.WriteLine(BreakNumber.DivisionNum(N)); } } public class BreakNumber { public static int DivisionNum(int n) { var list = new Li...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
183
2
using System; using System.Linq; namespace ProgramingStydying { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var numMax = 0; var ans = 0; for (int m = 1; m <= n; m++) { var k = m; var num = 0; while (k % 2 == 0) { k = k / 2; ...
using System; using System.Linq; namespace ProgramingStydying { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var numMax = 0; var ans = 1; for (int m = 1; m <= n; m++) { var k = m; var num = 0; while (k % 2 == 0) { k = k / 2; ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
119
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Numerics; using static System.Console; using static System.Math; using static System.Array; class Program { public static void Main() { var n = int.Parse(ReadLine()); int i = 1; for (; i <= n; i <<= 1) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Numerics; using static System.Console; using static System.Math; using static System.Array; class Program { public static void Main() { var n = int.Parse(ReadLine()); int i = 1; for (; i + i <= n; i <<= 1) ...
[["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 12, 22]]
8
89
2
using System; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var res = 1; while (res < N) res *= 2; Console.WriteLine(res / 2); } }
using System; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var res = 1; while (res <= N) res *= 2; Console.WriteLine(res / 2); } }
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
56
2
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
1,138
2
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; namespace AtCoder { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int loop = 1; while (Math.Pow(2, loop) < N) { loop++; } Console.WriteLine(Mat...
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; namespace AtCoder { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int loop = 1; while (Math.Pow(2, loop) <= N) { loop++; } Console.WriteLine(Ma...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
94
2
using System; namespace AtCoder { static class Program { static void Main() { int N = int.Parse(Console.ReadLine()); int res = 1; for (int i = 0; i < N; i++) { if (res * 2 < N) res *= 2; else break; } Console.WriteLine(res); } } }
using System; namespace AtCoder { static class Program { static void Main() { int N = int.Parse(Console.ReadLine()); int res = 1; for (int i = 0; i < N; i++) { if (res * 2 <= N) res *= 2; else break; } Console.WriteLine(res); } } }
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
8
76
2
using System; namespace ABC068B { class Program { static void Main(string[] args) { int maxnum = 1; int maxcount = 1; int N = int.Parse(Console.ReadLine()); for (int i = 1; i <= N; i++) { int count = 0; int now = i; while (now % 2 == 0) { now /= 2; count++; } ...
using System; namespace ABC068B { class Program { static void Main(string[] args) { int maxnum = 1; int maxcount = 0; int N = int.Parse(Console.ReadLine()); for (int i = 1; i <= N; i++) { int count = 0; int now = i; while (now % 2 == 0) { now /= 2; count++; } ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
116
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int n = sc.NextInt(); int answer = 1; while (true) { if (answer >= n) { break; } answer *= 2; } Console.Write...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int n = sc.NextInt(); int answer = 1; while (true) { if (answer * 2 > n) { break; } answer *= 2; } Console.Wr...
[["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 47]]
8
375
4
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var max = 0; var ans = 0; for (var i = 1; i <= N; i++) { var tmp = i; var count = 0; while (tmp % 2 == 0...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var max = 0; var ans = 1; for (var i = 1; i <= N; i++) { var tmp = i; var count = 0; while (tmp % 2 == 0...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
124
2
using System; using System.Linq; using System.Collections.Generic; namespace Program { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int d = 0; for (d = 0; N != 0; d++) N >>= 1; Console.WriteLine($"{d-1}"); Console.ReadKey(); } } }
using System; using System.Linq; using System.Collections.Generic; namespace Program { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int d = 0; for (d = 0; N != 0; d++) N >>= 1; Console.WriteLine($"{1 << (d-1)}"); Console.ReadKey(); } } }
[["+", 0, 28, 0, 283, 0, 284, 0, 16, 31, 203], ["+", 0, 28, 0, 283, 0, 284, 0, 16, 17, 151], ["+", 0, 283, 0, 284, 0, 16, 12, 23, 0, 24], ["+", 0, 283, 0, 284, 0, 16, 12, 23, 0, 25]]
8
89
4
using System; class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var x = 1; while (x * 2 < n) { x *= 2; } Console.WriteLine(x); } }
using System; class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var x = 1; while (x * 2 <= n) { x *= 2; } Console.WriteLine(x); } }
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
58
2
using System; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); int m = 0, a = 0; for (int i = 1; i <= n; i++) { int t = Cnt(i); if (m < t) { m = t; a = i; } } Console.WriteLine(a); } static int Cnt(int n) { int cnt = 0; whi...
using System; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); int m = 0, a = 1; for (int i = 1; i <= n; i++) { int t = Cnt(i); if (m < t) { m = t; a = i; } } Console.WriteLine(a); } static int Cnt(int n) { int cnt = 0; whi...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
118
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { // 入力 string sS = Console.ReadLine().Trim(); int iN = int.Parse(sS); System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); sw.Start(); // 解析...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { // 入力 string sS = Console.ReadLine().Trim(); int iN = int.Parse(sS); System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); sw.Start(); // 解析...
[["+", 0, 200, 0, 212, 0, 230, 10, 229, 0, 203]]
8
222
1
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Globalization; using System.Diagnostics; using static System.Console; using Pair = System.Collections.Generic.KeyValuePair<int, int>; // using System.Numerics; class Program { static void Main() { // SetOut(new Strea...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Globalization; using System.Diagnostics; using static System.Console; using Pair = System.Collections.Generic.KeyValuePair<int, int>; // using System.Numerics; class Program { static void Main() { // SetOut(new Strea...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19], ["+", 8, 196, 0, 52, 8, 1, 0, 11, 12, 203], ["+", 0, 195, 8, 196, 0, 52, 8, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 90]]
8
421
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _068 { class Program { static void Main(string[] args) { int num = int.Parse(Console.ReadLine()); int ans = 1; int maxDivide2Cnt = 0; for (int i = 1; i < num; i++) { i...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _068 { class Program { static void Main(string[] args) { int num = int.Parse(Console.ReadLine()); int ans = 1; int maxDivide2Cnt = 0; for (int i = 1; i <= num; i++) { ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
155
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BreakNumber { class BreakNumber { static void Main(string[] args) { int intInputVal = int.Parse(Console.ReadLine()); // 標準入力 int[] intItems = { 2, 4, 8, 16, 32, 64 }; // 比較値 int intOutputVal = 0; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BreakNumber { class BreakNumber { static void Main(string[] args) { int intInputVal = int.Parse(Console.ReadLine()); // 標準入力 int[] intItems = { 2, 4, 8, 16, 32, 64 }; // 比較値 int intOutputVal = 1; ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
124
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int N = int.Parse(s); int i = 2; while (N > i) { i *= 2; } Console.WriteLine((i / 2).ToSt...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int N = int.Parse(s); int i = 2; while (N >= i) { i *= 2; } Console.WriteLine((i / 2).ToS...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20]]
8
93
2
using System.Collections.Generic; using System.Linq; using System; class Program { static void Main() { var line = Console.ReadLine(); int num = int.Parse(line); int maxNum = 1; while (maxNum * 2 < num) { maxNum *= 2; } Console.WriteLine(maxNum); } }
using System.Collections.Generic; using System.Linq; using System; class Program { static void Main() { var line = Console.ReadLine(); int num = int.Parse(line); int maxNum = 1; while (maxNum * 2 <= num) { maxNum *= 2; } Console.WriteLine(maxNum); } }
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
71
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { public static bool f = false, t = true; static void Main(string[] args) { int a = Read.Int(); for (int i = 0;; i++) { if (a <= Math.Pow(2, i)) { Console.WriteLine(Math.Pow(2, Math.Max(i - 1, ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { public static bool f = false, t = true; static void Main(string[] args) { int a = Read.Int(); for (int i = 0;; i++) { if (a < Math.Pow(2, i)) { Console.WriteLine(Math.Pow(2, Math.Max(i - 1, 0...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18]]
8
425
2
using System; namespace abc068_b { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int ret = 1; while (n > ret) ret *= 2; Console.WriteLine(ret); } } }
using System; namespace abc068_b { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int ret = 1; while (n >= ret * 2) ret *= 2; Console.WriteLine(ret); } } }
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 17, 48], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 12, 203]]
8
58
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { // 方針 // int[] n = inta(); var list1 = new List<i...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { // 方針 // int[] n = inta(); var list1 = new List<i...
[["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
981
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Convert; using static System.Console; using static System.Math; class MainClass { static void Main(string[] args) { Answer(new ConsoleInput(Console.In, ' ')); } public static void Answer(ConsoleInput cin) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Convert; using static System.Console; using static System.Math; class MainClass { static void Main(string[] args) { Answer(new ConsoleInput(Console.In, ' ')); } public static void Answer(ConsoleInput cin) { ...
[["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203]]
8
625
4
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { var nm = Console.ReadLine().Split(' '); var n = int.Parse(nm[0]); var m = int.Parse(nm[1]); var set = new HashSet<long>(); for (int i = 0; i < m; i++) { var ab = Console.ReadLine().Split(' ');...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { var nm = Console.ReadLine().Split(' '); var n = int.Parse(nm[0]); var m = int.Parse(nm[1]); var set = new HashSet<long>(); for (int i = 0; i < m; i++) { var ab = Console.ReadLine().Split(' ');...
[["-", 0, 28, 0, 16, 31, 23, 0, 16, 31, 203], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 31, 203]]
8
215
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main() { Scanner cin = new Scanner(); int N = cin.Int(); int M = cin.Int(); int[] a = new int[M]; int[] b = new int[M]; for (int i = 0; i < M; i++) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main() { Scanner cin = new Scanner(); int N = cin.Int(); int M = cin.Int(); int[] a = new int[M]; int[] b = new int[M]; for (int i = 0; i < M; i++) ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
603
6
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { int n = Cin.Ni(); int m = Cin.Ni(); HashSet<int> startSet = new HashSet<int>(); HashSet<int> goalSet = new HashSet<int>(); for (int i = 0; i < n; i++) { int a = Cin.Ni(); ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { int n = Cin.Ni(); int m = Cin.Ni(); HashSet<int> startSet = new HashSet<int>(); HashSet<int> goalSet = new HashSet<int>(); for (int i = 0; i < m; i++) { int a = Cin.Ni(); ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
331
2
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; namespace FertiLib.Contest.C { static class Program { public static void Solve(Scanner cin) { var (n, m) = cin.ReadValue<int, int>(); var (a, b) = cin.Read...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; namespace FertiLib.Contest.C { static class Program { public static void Solve(Scanner cin) { var (n, m) = cin.ReadValue<int, int>(); var (a, b) = cin.Read...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
3,625
2
using System; using System.Linq; using System.Collections.Generic; using static AtCoderer.Comfort; using static AtCoderer.Math; using static AtCoderer.Algorithm; using static System.Math; namespace AtCoderer { public class App { public static void Main(string[] args) { Solve(); Console.ReadKey(); } publi...
using System; using System.Linq; using System.Collections.Generic; using static AtCoderer.Comfort; using static AtCoderer.Math; using static AtCoderer.Algorithm; using static System.Math; namespace AtCoderer { public class App { public static void Main(string[] args) { Solve(); Console.ReadKey(); } publi...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22]]
8
1,903
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ARC79_C { class Program { static void Main(string[] args) { var s = Console.ReadLine().Split(); int n = int.Parse(s[0]); int m = int.Parse(s[1]); var a = new int [m][]; v...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ARC79_C { class Program { static void Main(string[] args) { var s = Console.ReadLine().Split(); int n = int.Parse(s[0]); int m = int.Parse(s[1]); var a = new int [m][]; v...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
294
2
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { int itemCount = int.Parse(Reader.ReadLine()); long[] tmp = Reader.ReadLine() .Split(' ') .Select(a => long.Parse(a)) ...
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { int itemCount = int.Parse(Reader.ReadLine()); long[] tmp = Reader.ReadLine() .Split(' ') .Select(a => long.Parse(a)) ...
[["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 12, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 16, 12, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 16, 12, 214, 141, 22], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258]]
8
442
6
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { long[] A; int N; public Solve() {} StringBuilder sb; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); Calc(); Console.Write(sb.ToString())...
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { long[] A; int N; public Solve() {} StringBuilder sb; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); Calc(); Console.Write(sb.ToString())...
[["-", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203]]
8
403
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; public static void Main() { // •ûj // var n = inta(); var a = longa(); va...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; public static void Main() { // •ûj // var n = inta(); var a = longa(); va...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18]]
8
1,224
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var K = sc.ReadInt(); var A = sc.ReadIntArray(N); var ok = true; if (A.Max() < K) { Console.WriteLine("IMPOSSIBLE"); return; } if (A.Conta...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var K = sc.ReadInt(); var A = sc.ReadIntArray(N); var ok = true; if (A.Max() < K) { Console.WriteLine("IMPOSSIBLE"); return; } if (A.Conta...
[["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 106], ["+", 0, 11, 12, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 11, 12, 16, 12, 16, 31, 16, 17, 109], ["+", 0, 11, 12, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 17, 60], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 12, 203]]
8
741
6
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; namespace Program { public static class AGC018A { static public int numberOfRandomCases = 0; static public void MakeTestCase(List<string> _input, List<string> _out...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; namespace Program { public static class AGC018A { static public int numberOfRandomCases = 0; static public void MakeTestCase(List<string> _input, List<string> _out...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]]
8
10,171
2
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 long n = long.Parse(input[0]); long k = long.Parse(input[1]); long[] n...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 long n = long.Parse(input[0]); long k = long.Parse(input[1]); long[] n...
[["+", 0, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 12, 16, 31, 16, 31, 23, 0, 25]]
8
244
2
using System; using System.Linq; class Program { static int GCM(int n, int m) { if (Math.Min(n, m) == 0) return Math.Max(n, m); if (Math.Max(n, m) % Math.Min(n, m) == 0) return Math.Max(n, m); return GCM(Math.Max(n, m) - Math.Min(n, m), Math.Min(n, m)); } static void Main() { int[] a; ...
using System; using System.Linq; class Program { static int GCM(int n, int m) { if (Math.Min(n, m) == 0) return Math.Max(n, m); if (Math.Max(n, m) % Math.Min(n, m) == 0) return Math.Min(n, m); return GCM(Math.Max(n, m) - Math.Min(n, m), Math.Min(n, m)); } static void Main() { int[] a; ...
[["-", 0, 57, 64, 37, 0, 213, 63, 214, 141, 22], ["+", 0, 57, 64, 37, 0, 213, 63, 214, 141, 22]]
8
285
2
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; using static util; using P = pair<int, int>; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpressi...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; using static util; using P = pair<int, int>; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpressi...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
4,277
4
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using Pair = System.Collections.Generic.KeyValuePair<int, int>; // using System.Numerics; // using static System.Math; class Program { static void Main() { // SetOut(new StreamWriter(OpenStandardOutpu...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using Pair = System.Collections.Generic.KeyValuePair<int, int>; // using System.Numerics; // using static System.Math; class Program { static void Main() { // SetOut(new StreamWriter(OpenStandardOutpu...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
614
2
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; using System.IO; class Program { static void Main() { new Magatro().Solve(); } } class Magatro { private int N, M; private i...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; using System.IO; class Program { static void Main() { new Magatro().Solve(); } } class Magatro { private int N, M; private i...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
401
2
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() { Queue<int>[] Q = new Queue<int>[N]; for (int i = 0; i < N; i++) { Q...
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() { Queue<int>[] Q = new Queue<int>[N]; for (int i = 0; i < N; i++) { Q...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22]]
8
877
4
using System; using System.Linq; using System.Collections.Generic; using System.Diagnostics; using Debug = System.Diagnostics.Trace; using SB = System.Text.StringBuilder; using System.Numerics; using static System.Math; namespace Program { public class Solver { Random rnd = new Random(); public void Solve() { v...
using System; using System.Linq; using System.Collections.Generic; using System.Diagnostics; using Debug = System.Diagnostics.Trace; using SB = System.Text.StringBuilder; using System.Numerics; using static System.Math; namespace Program { public class Solver { Random rnd = new Random(); public void Solve() { v...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]]
8
1,643
4
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int a = int.Parse(input[0]); int b = int.Parse(input[1]); if (a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0) { Console.WriteLine("Impos...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int a = int.Parse(input[0]); int b = int.Parse(input[1]); if (a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0) { Console.WriteLine("Possi...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
118
4
using System; using System.Collections; using System.Collections.Generic; using System.Text; using static MyIO; public class A { public static void Main() { int A = GetInt(); int B = GetInt(); Console.WriteLine((A % 3 == 0) || (B % 3 == 0) || ((A + B) % 3 == 0) ? "POSSIBLE" ...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using static MyIO; public class A { public static void Main() { int A = GetInt(); int B = GetInt(); Console.WriteLine((A % 3 == 0) || (B % 3 == 0) || ((A + B) % 3 == 0) ? "Possible" ...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
238
4
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main() { //入力 // int n = 100; /* long n = long.Parse(Console.ReadLine()); long[] input = new long[5]; for(int a = 0; a < 5; a++) { i...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main() { //入力 // int n = 100; /* long n = long.Parse(Console.ReadLine()); long[] input = new long[5]; for(int a = 0; a < 5; a++) { i...
[["+", 15, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["-", 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], ["+", 31, 16, 31, 23, 0, 213, 63, 214, 0, 131], ["+", 31, 16, 31, 23, 0, 213, 63, 214, 141, 22], ["+", 31, 16, 31, 23, 0, 213,...
8
118
9
using System; class Program { static void Main(string[] args) { var ab = Console.ReadLine().Split(' '); var a = int.Parse(ab[0]); var b = int.Parse(ab[1]); if (a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0) { Console.WriteLine("Possible"); } else { Console.WriteLine("Imossible"); }...
using System; class Program { static void Main(string[] args) { var ab = Console.ReadLine().Split(' '); var a = int.Parse(ab[0]); var b = int.Parse(ab[1]); if (a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0) { Console.WriteLine("Possible"); } else { Console.WriteLine("Impossible"); ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
107
2
using System; using System.Linq; using System.IO; using System.Collections.Generic; using System.Text; namespace AtCoder { public class Program { static int[] getKeys() { var Keys = Console.ReadLine().Split(' '); int N = Keys.Length; int[] Ns = new int[N]; for (int i = 0; i < N; i++) { Ns[i] = ...
using System; using System.Linq; using System.IO; using System.Collections.Generic; using System.Text; namespace AtCoder { public class Program { static int[] getKeys() { var Keys = Console.ReadLine().Split(' '); int N = Keys.Length; int[] Ns = new int[N]; for (int i = 0; i < N; i++) { Ns[i] = ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98]]
8
852
4
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) { // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); int b = int.Parse(input[0]); int c = i...
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) { // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); int b = int.Parse(input[0]); int c = i...
[["-", 15, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 15, 16, 31, 16, 12, 16, 31, 16, 31, 22]]
8
138
2
using System; using System.IO; class Program { static void Main(string[] args) { string[] input = System.Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); if (a % 3 == 0 || b % 3 == 0 || (a * b) % 3 == 0) { System.Console.WriteLine("Possible"); } else {...
using System; using System.IO; class Program { static void Main(string[] args) { string[] input = System.Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); if (a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0) { System.Console.WriteLine("Possible"); } else {...
[["-", 12, 16, 31, 16, 31, 23, 0, 16, 17, 48], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 72]]
8
120
2
using System; using System.Collections.Generic; using System.Linq; using static System.Math; class Program { public static void Main() { var input = Console.ReadLine().Split(); int n = int.Parse(input[0]); int k = int.Parse(input[1]); var input2 = Console.ReadLine().Split(); var l = new int[n]; ...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; class Program { public static void Main() { var input = Console.ReadLine().Split(); int n = int.Parse(input[0]); int k = int.Parse(input[1]); var input2 = Console.ReadLine().Split(); var l = new int[n]; ...
[["-", 12, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], [...
8
169
8
using System; using System.Linq; using System.IO; using System.Collections.Generic; using System.Text; namespace AtCoder { public class Program { static int[] getKeys() { var Keys = Console.ReadLine().Split(' '); int N = Keys.Length; int[] Ns = new int[N]; for (int i = 0; i < N; i++) { Ns[i] = ...
using System; using System.Linq; using System.IO; using System.Collections.Generic; using System.Text; namespace AtCoder { public class Program { static int[] getKeys() { var Keys = Console.ReadLine().Split(' '); int N = Keys.Length; int[] Ns = new int[N]; for (int i = 0; i < N; i++) { Ns[i] = ...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
861
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication32 { class Program { static void Main(string[] args) { int[] a = new int[2]; a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] b = new int[a[0]]; b = Console.ReadLine().Sp...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication32 { class Program { static void Main(string[] args) { int[] a = new int[2]; a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] b = new int[a[0]]; b = Console.ReadLine().Sp...
[["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22]]
8
160
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } static void Solve() { ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } static void Solve() { ...
[["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]]
8
1,139
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp69 { class Program { static void Main(string[] args) { string S = Console.ReadLine(); int len = S.Length; for (int i = 2; i <= len / 2; i += 2) { // Console.Write...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp69 { class Program { static void Main(string[] args) { string S = Console.ReadLine(); int len = S.Length; for (int i = 2; i < len; i += 2) { // Console.WriteLine(...
[["-", 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, 85], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
171
4
using System; namespace B___ss { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var count = 1; var str = ""; for (var i = s.Length - 1; i > 1; i--) { str = s.Remove(i, count); if (str.Length % 2 == 0 && str.Substring(0, str.Length / 2) == ...
using System; namespace B___ss { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var count = 1; var str = ""; for (var i = s.Length - 1; i > 0; i--) { str = s.Remove(i, count); if (str.Length % 2 == 0 && str.Substring(0, str.Length / 2) == ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]]
8
125
6
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { var s = Input.ScanStr(); for (int i = s.Length / 2; i >= 0; i--) if (s.Substring(0, i) == s.Substring(i, i)) { Out(i); return; } } static public void Out...
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { var s = Input.ScanStr(); for (int i = s.Length / 2 - 1; i >= 0; i--) if (s.Substring(0, i) == s.Substring(i, i)) { Out(i * 2); return; } } static public ...
[["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
804
4
using static System.Console; class Program { static void Main(string[] args) { var str = ReadLine(); for (var i = 0; i <= str.Length / 2; i++) { str = str.Substring(0, str.Length - 2); var s = str.Substring(0, str.Length / 2); if (s + s == str) { WriteLine(str.Length); break;...
using static System.Console; class Program { static void Main(string[] args) { var str = ReadLine(); for (var i = 0; i <= int.MaxValue; i++) { str = str.Substring(0, str.Length - 2); var s = str.Substring(0, str.Length / 2); if (s + s == str) { WriteLine(str.Length); break; ...
[["-", 0, 7, 15, 16, 12, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 205, 199], ["-", 0, 7, 15, 16, 12, 16, 31, 214, 141, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 85], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 141, 22]]
8
98
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC066B { class Program { static void Main(string[] args) { string S = Console.ReadLine(); int l = S.Length; if (l % 2 == 0) l -= 2; else l--; for (; l > 0;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC066B { class Program { static void Main(string[] args) { string S = Console.ReadLine(); int l = S.Length; if (l % 2 == 0) l -= 2; else l--; for (; l > 0;...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
8
148
2
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace atcorder2 { class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } static void Main...
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace atcorder2 { class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } static void Main...
[["-", 0, 74, 51, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 74, 51, 213, 3, 4, 0, 28, 0, 203], ["-", 31, 74, 51, 213, 3, 4, 0, 28, 0, 203], ["+", 31, 74, 51, 213, 3, 4, 0, 28, 0, 203]]
8
292
6
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { //入力を受け取る var N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); var ...
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { //入力を受け取る var N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); var ...
[["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
254
1
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 = ...
[["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
658
2
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main(string[] args) { var i = int.Parse(ReadLine()); var ast = ReadLine().Split(); var a = new int[i]; for (var j = 0; j < i; j++) { a[j] = int.Parse(ast[j]); } /...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main(string[] args) { var i = int.Parse(ReadLine()); var ast = ReadLine().Split(); var a = new int[i]; for (var j = 0; j < i; j++) { a[j] = int.Parse(ast[j]); } /...
[["-", 64, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73]]
8
234
5
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, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]]
8
3,047
2
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; using System.IO; class Program { static void Main() { new Magatro().Solve(); } } class Magatro { private const int Mod = (int)...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; using System.IO; class Program { static void Main() { new Magatro().Solve(); } } class Magatro { private const int Mod = (int)...
[["-", 8, 201, 0, 124, 0, 198, 39, 224, 39, 199], ["+", 8, 201, 0, 124, 0, 198, 39, 224, 39, 199], ["-", 0, 1, 0, 11, 12, 227, 39, 224, 39, 199], ["+", 0, 1, 0, 11, 12, 227, 39, 224, 39, 199]]
8
532
4
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-...
[["-", 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]]
8
1,828
4
using System; using System.Linq; using System.Collections.Generic; namespace Sample { class Sample { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int X = int.Parse(str[0]); int A = int.Parse(str[1]); int B = int.Parse(str[2]); if (B < A) { Console.WriteLine...
using System; using System.Linq; using System.Collections.Generic; namespace Sample { class Sample { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int X = int.Parse(str[0]); int A = int.Parse(str[1]); int B = int.Parse(str[2]); if (B <= A) { Console.WriteLin...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
142
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace A { class Program { public static void Main(string[] args) { var n = ReadLineIntSpilit(); var re = "safe"; if (n[1] > n[2]) { re = "delicious"; } else if (n[1] - n[2] <...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace A { class Program { public static void Main(string[] args) { var n = ReadLineIntSpilit(); var re = "safe"; if (n[1] - n[2] >= 0) { re = "delicious"; } else if (n[2] - n...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 12, 204, 206, 207, 0, ...
8
300
10