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; public class Test { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var s = Console.ReadLine(); if (n % 2 != 0) { Console.WriteLine("No"); return; } var a = s.Substring(0, n / 2); var b = s.Substring(n / 2 + 1); if (a == b) { ...
using System; public class Test { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var s = Console.ReadLine(); if (n % 2 != 0) { Console.WriteLine("No"); return; } var a = s.Substring(0, n / 2); var b = s.Substring(n / 2); if (a == b) { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
121
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProCon { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); char[] inputs = Console.ReadLine().ToArray(); string retStr = "Yes"; if (N =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProCon { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); char[] inputs = Console.ReadLine().ToArray(); string retStr = "Yes"; if (N =...
[["+", 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, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
168
6
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var n = int.Parse(Console.ReadLine()); var s = Console.ReadLine(); if (n % 2 != 0) { Console.WriteLine("NO"); return; } var m = n / 2; for (int i = 0; i < m; i++) { if (s[...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var n = int.Parse(Console.ReadLine()); var s = Console.ReadLine(); if (n % 2 != 0) { Console.WriteLine("No"); return; } var m = n / 2; for (int i = 0; i < m; i++) { if (s[...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
129
6
using System; namespace ConsoleApp2 { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); int b = a / 2; string input = Console.ReadLine(); string Lword = input.Substring(0, b); string Rword = input.Substring(b - 1, b); if (a % 2 != 0) { Console.W...
using System; namespace ConsoleApp2 { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); int b = a / 2; string input = Console.ReadLine(); string Lword = input.Substring(0, b); string Rword = input.Substring(b, b); if (a % 2 != 0) { Console.WriteL...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
129
2
using System; namespace CSharp { class Program { public static void Main() { var N = int.Parse(Console.ReadLine()); var S = Console.ReadLine(); if (N % 2 > 0) { Console.WriteLine("No"); return; } Console.WriteLine( S.Substring(0, N / 2) == S.Substring(N / 2, N / 2 - 1) ? "Yes...
using System; namespace CSharp { class Program { public static void Main() { var N = int.Parse(Console.ReadLine()); var S = Console.ReadLine(); if (N % 2 > 0) { Console.WriteLine("No"); return; } Console.WriteLine( S.Substring(0, N / 2) == S.Substring(N / 2, N / 2) ? "Yes" :...
[["-", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
102
2
using System; namespace B { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); if (N % 2 != 0) { Console.WriteLine("No"); return; } string T1 = S.Substring(0, (N / 2)); string T2 = S.Substring(N / 2, N / 2); ...
using System; namespace B { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); if (N % 2 != 0) { Console.WriteLine("No"); return; } string T1 = S.Substring(0, N / 2); string T2 = S.Substring(N / 2, N / 2); f...
[["-", 0, 213, 3, 4, 0, 28, 0, 23, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 23, 0, 25], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 85], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
150
4
using System; class Program { static void Main(string[] args) { string str = Console.ReadLine(); // string[] str = Console.ReadLine().Split(' // ');//2つ以上のスペース区切り入力の取得 string str = "<>>><<><<<<<>>><"; int N = Int32.Parse(str); string S = Console.ReadLine(); // string[] strA = Console.ReadLine...
using System; class Program { static void Main(string[] args) { string str = Console.ReadLine(); // string[] str = Console.ReadLine().Split(' // ');//2つ以上のスペース区切り入力の取得 string str = "<>>><<><<<<<>>><"; int N = Int32.Parse(str); string S = Console.ReadLine(); // string[] strA = Console.ReadLine...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]]
8
131
2
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
538
2
using System; namespace abc145 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); if (N != 1 && S.Substring(0, N / 2) == S.Substring(N / 2, N / 2)) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } ...
using System; namespace abc145 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); if (N != 1 && N % 2 == 0 && S.Substring(0, N / 2) == S.Substring(N / 2, N / 2)) { Console.WriteLine("Yes"); } else { Console.Wr...
[["+", 15, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 15, 16, 31, 16, 12, 16, 31, 16, 17, 109], ["+", 15, 16, 31, 16, 12, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98]]
8
98
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) { int N = int.Parse(Console.ReadLine()); String S = Console.ReadLine(); if (N % 2 != 0) { Console.WriteLine("N...
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) { int N = int.Parse(Console.ReadLine()); String S = Console.ReadLine(); if (N % 2 != 0) { Console.WriteLine("N...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]]
8
147
2
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
1,359
2
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static _20200411.abc145_c.Cin; using static _20200411.abc145_c.Util; using Pair = _20200411.abc145_c.VTuple<long, long>; /// <summary> /// abc145 /// C - Average Length /// https://atcoder.jp/contests/abc145/tasks/abc145...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static _20200411.abc145_c.Cin; using static _20200411.abc145_c.Util; using Pair = _20200411.abc145_c.VTuple<long, long>; /// <summary> /// abc145 /// C - Average Length /// https://atcoder.jp/contests/abc145/tasks/abc145...
[["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72]]
8
3,838
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] x = new int[N], y = new int[N]; double total = 0, result; for (int i = 0; i < N; i++) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] x = new int[N], y = new int[N]; double total = 0, result; for (int i = 0; i < N; i++) { ...
[["-", 3, 4, 0, 28, 0, 16, 31, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 204, 205, 22]]
8
238
2
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] x = new int[n]; int[] y = new int[n]; for (int i = 0; i < n; i++) { string[] input = Console.ReadLine().Split(' '); x[i] = int.Parse(input[0]); ...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] x = new int[n]; int[] y = new int[n]; for (int i = 0; i < n; i++) { string[] input = Console.ReadLine().Split(' '); x[i] = int.Parse(input[0]); ...
[["-", 0, 28, 0, 16, 31, 16, 12, 23, 0, 24], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["-", 0, 28, 0, 16, 31, 16, 12, 23, 0, 25], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 203]]
8
228
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC145D { class Program { static void Main(string[] args) { string[] XY = Console.ReadLine().Split(' '); long X = long.Parse(XY[0]); long Y = long.Parse(XY[1]); long ans = 1; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC145D { class Program { static void Main(string[] args) { string[] XY = Console.ReadLine().Split(' '); long X = long.Parse(XY[0]); long Y = long.Parse(XY[1]); long ans = 1; ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20]]
8
444
4
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 List<List<int>> l = new List<List<int>>(); static void Main(string[] args) { var r = ReadSplit(); var x = r[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 List<List<int>> l = new List<List<int>>(); static void Main(string[] args) { var r = ReadSplit(); var x = r[0]....
[["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18]]
8
739
4
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static _20200331.Abc145_D.Cin; using static _20200331.Abc145_D.Util; using Pair = _20200331.Abc145_D.VTuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<long>>; using Syst...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static _20200331.Abc145_D.Cin; using static _20200331.Abc145_D.Util; using Pair = _20200331.Abc145_D.VTuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<long>>; using Syst...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203]]
8
3,842
4
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 XY = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); long X = XY[0]; long Y = XY[1]; if (((2...
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 XY = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); long X = XY[0]; long Y = XY[1]; if (((2...
[["-", 15, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["-", 0, 57, 15, 16, 12, 23, 0, 16, 17, 47], ["+", 0, 57, 15, 16, 12, 23, 0, 16, 17, 20]]
8
441
4
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { #if DEBUG // MyDebugger.MakeTestCase("../TextFile2.txt"); return; MyDebugger.Test(process, "../TextFile1.txt"); #else object r...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { #if DEBUG // MyDebugger.MakeTestCase("../TextFile2.txt"); return; MyDebugger.Test(process, "../TextFile1.txt"); #else object r...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18]]
8
386
4
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC145D { class Program { public static void Solve(Input input) { var x = input.NextInt(); var y = input.NextInt(); if ((x + y) % 3 != 0) {...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC145D { class Program { public static void Solve(Input input) { var x = input.NextInt(); var y = input.NextInt(); if ((x + y) % 3 != 0) {...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22]]
8
1,832
4
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC145E { class Program { static void Main(string[] args) { var N = RInt; var T = RInt; int[] A = new int[N]; int[] B = new int[N]; for (int i...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC145E { class Program { static void Main(string[] args) { var N = RInt; var T = RInt; int[] A = new int[N]; int[] B = new int[N]; for (int i...
[["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203]]
8
1,000
4
using System; public class Program { private int N, T; private Pair[] AB; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); T = sc.NextInt(); AB = new Pair[N]; for (int i = 0; i < N; i++) { AB[i] = new Pair(sc.NextInt(), sc.NextInt()); } Array.Sort(AB, (a, b) => ...
using System; public class Program { private int N, T; private Pair[] AB; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); T = sc.NextInt(); AB = new Pair[N]; for (int i = 0; i < N; i++) { AB[i] = new Pair(sc.NextInt(), sc.NextInt()); } Array.Sort(AB, (a, b) => ...
[["-", 8, 213, 3, 4, 0, 28, 0, 214, 141, 22], ["+", 8, 213, 3, 4, 0, 28, 0, 214, 141, 22]]
8
762
2
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
[["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203]]
8
2,281
8
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var n = ni(); var t = ni(); var a = new int[n]; var b = new int[n]; for (int i = 0; i < n; i++) { ...
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var n = ni(); var t = ni(); var a = new int[n]; var b = new int[n]; for (int i = 0; i < n; i++) { ...
[["-", 0, 218, 8, 213, 63, 214, 205, 204, 205, 22], ["+", 0, 218, 8, 213, 63, 214, 205, 204, 205, 22], ["-", 8, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 8, 213, 3, 4, 0, 28, 0, 204, 205, 22]]
8
1,109
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long n = sc.NextLong(); long answer = n / 2; Console.WriteLine(answer); } class Scanner { private string[] _line; private int _ind...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long n = sc.NextLong(); long answer = (n + 1) / 2 - 1; Console.WriteLine(answer); } class Scanner { private string[] _line; privat...
[["+", 0, 212, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 212, 0, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
357
6
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; class Program { static void Main(string[] args) { string str = Console.ReadLine(); // string[] str = Console.ReadLine().Split(' // ');//2つ以上のスペース区切り入力の取得 string str = "<>>><<><<<<<>>><"; decimal A = Int6...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; class Program { static void Main(string[] args) { string str = Console.ReadLine(); // string[] str = Console.ReadLine().Split(' // ');//2つ以上のスペース区切り入力の取得 string str = "<>>><<><<<<<>>><"; decimal A = Int6...
[["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
101
4
using System; class test { static void Main() { Int64 num1 = Int64.Parse(Console.ReadLine()); if ((num1 % 2) == 1) { Console.Write(((num1 - 1) / 2)); } else { Console.Write((num1 / 2)); } } }
using System; class test { static void Main() { Int64 num1 = Int64.Parse(Console.ReadLine()) - 1; if ((num1 % 2) == 1) { Console.Write(((num1 - 1) / 2)); } else { Console.Write((num1 / 2)); } } }
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
69
2
using System; using System.Linq; using System.Collections.Generic; using System.Collections; namespace Algorithm { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); n /= 2; if (n % 2 == 0) n--; Console.WriteLine(n); } } }
using System; using System.Linq; using System.Collections.Generic; using System.Collections; namespace Algorithm { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var ans = n / 2; if (n % 2 == 0) ans--; Console.WriteLine(ans); } } }
[["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 90], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 8, 196, 0, 57, 64, 1, 0, 223, 0, 22], ["+", 8, 196, 0, 57, 64, 1, 0, 223, 0, 22], ...
8
75
9
using System; namespace AtCoderWorkspace { public class Class142_1 { public static void Main(string[] args) { var inputs = Console.ReadLine().Split(' '); int n = 0; int.TryParse(inputs[0], out n); bool isGusu = n % 2 == 0; int split = n / 2; if (!isGusu) { split++; } float resu...
using System; namespace AtCoderWorkspace { public class Class142_1 { public static void Main(string[] args) { var inputs = Console.ReadLine().Split(' '); int n = 0; int.TryParse(inputs[0], out n); bool isGusu = n % 2 == 0; int split = n / 2; if (!isGusu) { split++; } float resu...
[["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25]]
8
102
3
using System; class p { static void Main() { int N = int.Parse(Console.ReadLine()); double d = double.Parse(N.ToString()); Console.WriteLine((N % 2 == 0) ? ((d / 2) / d) : (((d / 2) + 1) / d)); } }
using System; class p { static void Main() { int N = int.Parse(Console.ReadLine()); double d = double.Parse(N.ToString()); Console.WriteLine((N % 2 == 0) ? ((N / 2) / d) : (((N / 2) + 1) / d)); } }
[["-", 64, 23, 0, 16, 31, 23, 0, 16, 31, 22], ["+", 64, 23, 0, 16, 31, 23, 0, 16, 31, 22], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 31, 22], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 31, 22]]
8
79
4
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; class Program { static long mod = 1000000007; // static long mod =998244353; static int[] ans; static void Main(string[] args) { char[] cs = new char[] { ' ' }; // char[] cs = new char[] { ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; class Program { static long mod = 1000000007; // static long mod =998244353; static int[] ans; static void Main(string[] args) { char[] cs = new char[] { ' ' }; // char[] cs = new char[] { ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22]]
8
459
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static int N; static void INPUT() { N = NextInt(); } static void OUT() { var a = N / 2; Console.WriteLine((float)(a)...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static int N; static void INPUT() { N = NextInt(); } static void OUT() { var a = N / 2 + N % 2; Console.WriteLine((f...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 200, 0, 212, 0, 16, 12, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 12, 16, 17, 109], ["+", 0, 200, 0, 212, 0, 16, 12, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203]]
8
434
6
using System; class ProgramA { static void Main(string[] args) { string input = Console.ReadLine(); int a = int.Parse(input); double b = (double)((a / 2 + 1) / a); if (a % 2 == 0) Console.WriteLine("0.5"); else Console.WriteLine(b); } }
using System; class ProgramA { static void Main(string[] args) { string input = Console.ReadLine(); int a = int.Parse(input); double b = (double)(a / 2 + 1) / (double)a; if (a % 2 == 0) Console.WriteLine("0.5"); else Console.WriteLine(b); } }
[["-", 0, 74, 51, 23, 0, 16, 31, 23, 0, 24], ["-", 0, 212, 0, 74, 51, 23, 0, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 51, 22]]
8
80
5
using System; using System.Linq; namespace Sample { class Sample { static void Main(string[] args) { string[] str1 = Console.ReadLine().Split(' '); int N = int.Parse(str1[0]); int K = int.Parse(str1[1]); int ans = 0; string[] str2 = Console.ReadLine().Split(' '); int[] height = str2.Select(int...
using System; using System.Linq; namespace Sample { class Sample { static void Main(string[] args) { string[] str1 = Console.ReadLine().Split(' '); int N = int.Parse(str1[0]); int K = int.Parse(str1[1]); int ans = 0; string[] str2 = Console.ReadLine().Split(' '); int[] height = str2.Select(int...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
149
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner cin = new Scaner(); write wr = new write()...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner cin = new Scaner(); write wr = new write()...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
960
2
using System; using System.Linq; using System.Collections.Generic; using System.Text; public class AtCoderC { static void Main() { int n = int.Parse(Console.ReadLine()); Tuple<int, int>[] students = new Tuple<int, int>[n]; { var line = Console.ReadLine(); var words = line.Split(' '); f...
using System; using System.Linq; using System.Collections.Generic; using System.Text; public class AtCoderC { static void Main() { int n = int.Parse(Console.ReadLine()); Tuple<int, int>[] students = new Tuple<int, int>[n]; { var line = Console.ReadLine(); var words = line.Split(' '); f...
[["-", 3, 4, 0, 28, 0, 218, 8, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 12, 214, 141, 22], ["+", 0, 16, 12, 23, 0, 16, 31, 214, 141, 22], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 12, 203], ["+", ...
8
205
8
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; using Number = System.Int32; namespace Program { public class Solver { Random rnd = new Random();...
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; using Number = System.Int32; namespace Program { public class Solver { Random rnd = new Random();...
[["+", 8, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 8, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
890
2
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp3 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var list = Console.ReadLine() .Split() .Select((order, index) => new { Order = order, Number = in...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp3 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var list = Console.ReadLine() .Split() .Select((order, index) => new { Order = int.Parse(or...
[["+", 0, 218, 8, 312, 0, 213, 63, 214, 205, 199], ["+", 0, 218, 8, 312, 0, 213, 63, 214, 0, 131], ["+", 0, 218, 8, 312, 0, 213, 63, 214, 141, 22], ["+", 0, 218, 8, 312, 0, 213, 3, 4, 0, 24], ["+", 0, 218, 8, 312, 0, 213, 3, 4, 0, 25]]
8
122
5
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderWorkspace { public static class Class142_3 { private struct Hi { public int Order; public int Number; } private static List<Hi> _hos = new List<Hi>(); public static void Main(string[] args) { var inputs = Console.Re...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderWorkspace { public static class Class142_3 { private struct Hi { public int Order; public int Number; } private static List<Hi> _hos = new List<Hi>(); public static void Main(string[] args) { var inputs = Console.Re...
[["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
249
2
using System; using System.Linq; using System.Collections.Generic; // Gluttony namespace E { class Program { static long Solve(int n, long k, List<long> a, List<long> f) { a.Sort(); f.Sort(); f.Reverse(); var scores = a.Zip(f, (ai, fi) => new { ai, fi }); var max = scores.Select(s => s.ai * s.fi)....
using System; using System.Linq; using System.Collections.Generic; // Gluttony namespace E { class Program { static long Solve(int n, long k, List<long> a, List<long> f) { a.Sort(); f.Sort(); f.Reverse(); var scores = a.Zip(f, (ai, fi) => new { ai, fi }); var max = scores.Select(s => s.ai * s.fi)....
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203]]
8
364
3
using System; using System.Linq; using System.Collections.Generic; class ProgramE { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int n = int.Parse(input[0]); long k = long.Parse(input[1]); long[] eat = new long[n]; long[] food = new long[n]; long[] sec = new...
using System; using System.Linq; using System.Collections.Generic; class ProgramE { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int n = int.Parse(input[0]); long k = long.Parse(input[1]); long[] eat = new long[n]; long[] food = new long[n]; long[] sec = new...
[["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 19]]
8
429
2
using System; using System.Linq; namespace E { class Program { static long[] A; static long[] F; static long K; static void Main(string[] args) { var NK = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var N = (int)NK[0]; K = NK[1]; A = Array.ConvertAll(Console.ReadLine().Split(' ...
using System; using System.Linq; namespace E { class Program { static long[] A; static long[] F; static long K; static void Main(string[] args) { var NK = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var N = (int)NK[0]; K = NK[1]; A = Array.ConvertAll(Console.ReadLine().Split(' ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203]]
8
332
3
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; using Number = System.Int32; namespace Program { public class Solver { Random rnd = new Random();...
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; using Number = System.Int32; namespace Program { public class Solver { Random rnd = new Random();...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22]]
8
1,766
2
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; static List<int>[] li;...
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; static List<int>[] li;...
[["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 204, 2...
8
1,399
7
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { var inputArray = retreiveLongArray(); var inputCount = 2; // 不正な入力は処理しない if (inputArray.Length != inputCount) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { var inputArray = retreiveLongArray(); var inputCount = 2; // 不正な入力は処理しない if (inputArray.Length != inputCount) { ...
[["-", 0, 200, 0, 212, 0, 41, 75, 241, 0, 33], ["-", 0, 200, 0, 212, 0, 41, 75, 241, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 75, 203]]
8
310
3
using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Security.Cryptography.X509Certificates; namespace atcorder { class Program { static void Main(string[] args) { int[] intArray = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int ...
using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Security.Cryptography.X509Certificates; namespace atcorder { class Program { static void Main(string[] args) { int[] intArray = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int ...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 85], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 16, 12, 16, 17, 48], ["-", 3, 4, 0, 28, 0, 16, 12, 16, 12, 203]]
8
148
6
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.A { class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.A { class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }...
[["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]]
8
483
2
using System; namespace ABC143A { public class EmptyClass { public static void Main(string[] args) { int[] inp = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int x = inp[1] * 2; Console.WriteLine(x >= inp[0] ? 0 : x); } } }
using System; namespace ABC143A { public class EmptyClass { public static void Main(string[] args) { int[] inp = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int x = inp[1] * 2; Console.WriteLine(x >= inp[0] ? 0 : inp[0] - x); } } }
[["+", 0, 28, 0, 41, 75, 16, 31, 204, 205, 22], ["+", 0, 41, 75, 16, 31, 204, 206, 207, 0, 70], ["+", 75, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 41, 75, 16, 31, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 17, 33]]
8
77
5
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC143A { class Program { static void Main(string[] args) { int A, B; var word = Console.ReadLine().Split(' '); A = int.Parse(word[0]); B = int.Parse(word[1]); if (A < B *...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC143A { class Program { static void Main(string[] args) { int A, B; var word = Console.ReadLine().Split(' '); A = int.Parse(word[0]); B = int.Parse(word[1]); if (A <= B ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
136
2
using System; using System.Linq; namespace A { class Program { static void Main(string[] args) { int[] input = new int[2]; input = Console.ReadLine().Split().Select(i => Convert.ToInt32(i)).ToArray(); int ans = input[0] - (2 * input[1]); if (ans <= 0) { Console.WriteLine(ans); } els...
using System; using System.Linq; namespace A { class Program { static void Main(string[] args) { int[] input = new int[2]; input = Console.ReadLine().Split().Select(i => Convert.ToInt32(i)).ToArray(); int ans = input[0] - (2 * input[1]); if (ans >= 0) { Console.WriteLine(ans); } els...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
108
4
using System; class p { static void Main() { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); Console.WriteLine(Math.Min(0, A - (B * 2))); } }
using System; class p { static void Main() { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); Console.WriteLine(Math.Max(0, A - (B * 2))); } }
[["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]]
8
78
2
using System; using System.Collections.Generic; using System.Linq; public class AtCoderB { static void Main() { int n = int.Parse(Console.ReadLine()); int[] ds = new int[n]; { var line = Console.ReadLine(); var words = line.Split(' '); for (int i = 0; i < n; i++) { ds[i] = int....
using System; using System.Collections.Generic; using System.Linq; public class AtCoderB { static void Main() { int n = int.Parse(Console.ReadLine()); int[] ds = new int[n]; { var line = Console.ReadLine(); var words = line.Split(' '); for (int i = 0; i < n; i++) { ds[i] = int....
[["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
164
2
using System; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] d = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int sum = 0; for (int i = 0; i < n - 1; i++) { for (int j = i + 1; j < n; j++) {...
using System; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] d = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int sum = 0; for (int i = 0; i < n - 1; i++) { for (int j = i + 1; j < n; j++) {...
[["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 17, 48]]
8
136
2
using System; using System.Linq; namespace CSharp { class Program { public static void Main() { var N = int.Parse(Console.ReadLine()); var d = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var result = 0; for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { result +...
using System; using System.Linq; namespace CSharp { class Program { public static void Main() { var N = int.Parse(Console.ReadLine()); var d = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var result = 0; for (int i = 0; i < N; i++) { for (int j = i + 1; j < N; j++) { resu...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
121
4
using System; using System.Collections.Generic; using System.Linq; namespace Contest { class ABC { static void Main() { Solve(); } private static void Solve() { int N = int.Parse(Console.ReadLine()); int[] INPUT = Console.ReadLine().Split().Select(int.Parse).ToArray(); int res = 0; for (int i = 0;...
using System; using System.Collections.Generic; using System.Linq; namespace Contest { class ABC { static void Main() { Solve(); } private static void Solve() { int N = int.Parse(Console.ReadLine()); int[] INPUT = Console.ReadLine().Split().Select(int.Parse).ToArray(); int res = 0; for (int i = 0;...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22]]
8
152
2
using System; namespace B___TAKOYAKI_FESTIVAL_2019 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] D = Console.ReadLine().Split(' '); int energy = 0; for (int i = 0; i < D.Length; i++) { for (int j = i + 1; j < D.Length; j++) { energy ...
using System; namespace B___TAKOYAKI_FESTIVAL_2019 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] D = Console.ReadLine().Split(' '); int energy = 0; for (int i = 0; i < D.Length; i++) { for (int j = i + 1; j < D.Length; j++) { energy ...
[["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48]]
8
126
2
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder.Abc { internal class QuestionB { public static void Main(string[] args) { // 整数の入力 int n = int.Parse(Console.ReadLine()); // 整数配列の入力 var dArray = Console.ReadLine().Split(' ').Select(i => int.Parse(i)); ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder.Abc { internal class QuestionB { public static void Main(string[] args) { // 整数の入力 int n = int.Parse(Console.ReadLine()); // 整数配列の入力 var dArray = Console.ReadLine().Split(' ').Select(i => int.Parse(i)); ...
[["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 108]]
8
290
2
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; class Program { // static long mod = 1000000007; static long mod = 998244353; static void Main(string[] args) { char[] cs = new char[] { ' ' }; // char[] cs = new char[] { ' ', ',' }; //...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; class Program { // static long mod = 1000000007; static long mod = 998244353; static void Main(string[] args) { char[] cs = new char[] { ' ' }; // char[] cs = new char[] { ' ', ',' }; //...
[["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38]]
8
666
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Text; using System.Diagnostics; using static util; using P = pair<int, int>; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) {...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Text; using System.Diagnostics; using static util; using P = pair<int, int>; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) {...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18]]
8
4,139
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using static Template; using static System.Console; using static System.Convert; using static System.Math; using Pi = Pair<int, int>; using Number = System.Int64; class Solver {...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using static Template; using static System.Console; using static System.Convert; using static System.Math; using Pi = Pair<int, int>; using Number = System.Int64; class Solver {...
[["-", 0, 57, 15, 16, 31, 16, 12, 214, 205, 199], ["+", 0, 57, 15, 16, 31, 16, 12, 214, 205, 199]]
8
2,673
2
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { var S = Console.ReadLine(); var ans = new long[S.Length + 1]; for (var i = 0; i < S.Length; i++) { if (S[i] == '<') { ans[i + 1] = ans[i] + 1; ...
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { var S = Console.ReadLine(); var ans = new long[S.Length + 1]; for (var i = 0; i < S.Length; i++) { if (S[i] == '<') { ans[i + 1] = ans[i] + 1; ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20]]
8
174
2
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Runtime.ExceptionServices; using System.Security; using System.Threading; using System.Xml.Serialization; namespace AtCoderCs { class Program { const int mod = 1000000007; static...
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Runtime.ExceptionServices; using System.Security; using System.Threading; using System.Xml.Serialization; namespace AtCoderCs { class Program { const int mod = 1000000007; static...
[["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25]]
8
738
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
[["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203]]
8
1,051
2
using System; namespace agc040a { class Program { static void Main(string[] args) { var S = Console.ReadLine(); long ans = 0; int[] A = new int[S.Length + 1]; int[] B = new int[S.Length + 1]; int countL = 0; int countR = 0; for (int i = 0; i < S.Length; i++) { if (S[i] == '<') { ...
using System; namespace agc040a { class Program { static void Main(string[] args) { string S = Console.ReadLine(); long ans = 0; int[] A = new int[S.Length + 1]; int[] B = new int[S.Length + 1]; int countL = 0; int countR = 0; for (int i = 0; i < S.Length; i++) { if (S[i] == '<') { ...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
218
4
using System; namespace agc040a { class Program { static void Main(string[] args) { string S = Console.ReadLine(); long ans = 0; int[] A = new int[S.Length + 1]; int[] B = new int[S.Length + 1]; int countL = 0; int countR = 0; for (int i = 0; i < S.Length; i++) { if (S.Substring(i, ...
using System; namespace agc040a { class Program { static void Main(string[] args) { string S = Console.ReadLine(); long ans = 0; int[] A = new int[S.Length + 1]; int[] B = new int[S.Length + 1]; int countL = 0; int countR = 0; for (int i = 0; i < S.Length; i++) { if (S.Substring(i, ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
226
2
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { string s = ReadLineStr(); int length = s.Length; long[] rtnArr = new long[length + 1]; string wk = ""; int cnt = 0; for (int i = 0; i...
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { string s = ReadLineStr(); int length = s.Length; long[] rtnArr = new long[length + 1]; string wk = ""; int cnt = 0; for (int i = 0; i...
[["-", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 33], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["-", 64, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["-", 64, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98]]
8
1,244
6
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder { public class ABC { static long mod = 1000000007; // 10^9+7 static void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenSta...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder { public class ABC { static long mod = 1000000007; // 10^9+7 static void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenSta...
[["-", 64, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 106]]
8
932
4
using System; using System.Linq; using System.Collections.Generic; using System.Collections; namespace Algorithm { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var counter = new List<int>(); var cur = S[0]; var count = 1; for (var i = 1; i < S.Length; i++) { ...
using System; using System.Linq; using System.Collections.Generic; using System.Collections; namespace Algorithm { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var counter = new List<int>(); var cur = S[0]; var count = 1; for (var i = 1; i < S.Length; i++) { ...
[["-", 206, 207, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 205, 22], ["-", 206, 207, 0, 28, 0, 16, 31, 214, 141, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 141, 22]]
8
428
4
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 AGC040B { 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 AGC040B { static public int numberOfRandomCases = 0; static public void MakeTestCase(List<string> _input, List<string> _out...
[["+", 0, 200, 0, 212, 0, 16, 12, 213, 63, 22], ["+", 0, 212, 0, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 212, 0, 16, 12, 213, 3, 4, 0, 21], ["+", 0, 212, 0, 16, 12, 213, 3, 4, 0, 25]]
8
9,907
5
using System; namespace AtCoder { class Program { static void Main(string[] args) { string[] n = Console.ReadLine().Split(); int a = int.Parse(n[0]); int b = int.Parse(n[1]); if (a < 10 || b < 10) { Console.WriteLine(a * b); } else { Console.WriteLine(-1); } } } }
using System; namespace AtCoder { class Program { static void Main(string[] args) { string[] n = Console.ReadLine().Split(); int a = int.Parse(n[0]); int b = int.Parse(n[1]); if (a < 10 && b < 10) { Console.WriteLine(a * b); } else { Console.WriteLine(-1); } } } }
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98]]
8
95
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc144_a { class Program { static void Main(string[] args) { string[] N = Console.ReadLine().Split(' '); int A = int.Parse(N[0]); int B = int.Parse(N[0]); if (A <= 9 && B <= ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc144_a { class Program { static void Main(string[] args) { string[] N = Console.ReadLine().Split(' '); int A = int.Parse(N[0]); int B = int.Parse(N[1]); if (A <= 9 && B <= ...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
128
2
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG MyDebugger.Test(process, "../TextFile1....
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG MyDebugger.Test(process, "../TextFile1....
[["-", 0, 195, 8, 196, 0, 57, 64, 37, 0, 22], ["+", 8, 196, 0, 57, 64, 37, 0, 241, 0, 33], ["+", 8, 196, 0, 57, 64, 37, 0, 241, 0, 203]]
8
184
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp11 { class Class1 { static void Main() { string[] S = Console.ReadLine().Split(); int A = int.Parse(S[0]); int B = int.Parse(S[1]); int ans; if (A < 10 & B < 1...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp11 { class Class1 { static void Main() { string[] S = Console.ReadLine().Split(); int A = int.Parse(S[0]); int B = int.Parse(S[1]); int ans; if (!(A < 10 & B <...
[["+", 0, 195, 8, 196, 0, 57, 15, 241, 0, 111], ["+", 8, 196, 0, 57, 15, 241, 0, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 241, 0, 23, 0, 25]]
8
115
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC144A { class Program { static void Main(string[] args) { int a, b, c, d; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC144A { class Program { static void Main(string[] args) { int a, b, c, d; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98]]
8
131
2
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 Program { void Solve() { var A = io.Int; var B = io.Int; if (A <= 10 && B ...
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 Program { void Solve() { var A = io.Int; var B = io.Int; if (A < 10 && B <...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18]]
8
362
4
using System; class Program { static void Main(string[] args) { // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); int b = int.Parse(input[0]); int c = int.Parse(input[1]); if (b > 10 && c > 10) { //出力 Console.WriteLine(-1); } else { //出力 Console.WriteLin...
using System; class Program { static void Main(string[] args) { // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); int b = int.Parse(input[0]); int c = int.Parse(input[1]); if (b > 9 || c > 9) { //出力 Console.WriteLine(-1); } else { //出力 Console.WriteLine(...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
97
6
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main() { var l = ReadLine(); if (10 < l[0] || 10 < l[1]) { Console.WriteLine("-1"); } else { Console.WriteLine(l[0] * l[1]); } } static List<int> ReadLine() { var l...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main() { var l = ReadLine(); if (9 < l[0] || 9 < l[1]) { Console.WriteLine("-1"); } else { Console.WriteLine(l[0] * l[1]); } } static List<int> ReadLine() { var lin...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 203], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 203]]
8
132
4
using System; namespace AtCoder { class Program { static void Main(string[] args) { string input; int a, b; int result; input = Console.ReadLine(); Int32.TryParse(input.Split(' ')[0], out a); Int32.TryParse(input.Split(' ')[1], out b); if (a > 10 || b > 10) result = -1; else ...
using System; namespace AtCoder { class Program { static void Main(string[] args) { string input; int a, b; int result; input = Console.ReadLine(); Int32.TryParse(input.Split(' ')[0], out a); Int32.TryParse(input.Split(' ')[1], out b); if (a >= 10 || b >= 10) result = -1; else ...
[["-", 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, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20]]
8
114
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _1027_buginner_A { class Program { static void Main(string[] args) { int result; String[] inputNum = Console.ReadLine().Split(' '); int numA = int.Parse(inputNum[0]); int num...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _1027_buginner_A { class Program { static void Main(string[] args) { int result; String[] inputNum = Console.ReadLine().Split(' '); int numA = int.Parse(inputNum[0]); int num...
[["-", 0, 57, 15, 16, 31, 23, 0, 16, 17, 106], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 98], ["-", 0, 57, 15, 16, 12, 23, 0, 16, 17, 106], ["+", 0, 57, 15, 16, 12, 23, 0, 16, 17, 98]]
8
146
4
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得 int A = int.Parse(str[0]); int B = int.Parse(str[1]); // string[] strHeight = Console.ReadLine().Split(' // ');//2つ以上のスペース区...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得 int A = int.Parse(str[0]); int B = int.Parse(str[1]); // string[] strHeight = Console.ReadLine().Split(' // ');//2つ以上のスペース区...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20]]
8
136
4
namespace AtCoder.ABC.A144 { using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.IO; using AtCoder.ABC.IO; public class Quest { public object Solve(Parser parser) { int a = parser.Integer(); int b = parser.Integer(); if (a > 10 ||...
namespace AtCoder.ABC.A144 { using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.IO; using AtCoder.ABC.IO; public class Quest { public object Solve(Parser parser) { int a = parser.Integer(); int b = parser.Integer(); if (a > 9 || ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
999
4
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Globalization; using System.Numerics; using System.Text.RegularExpressions; // byte 255 int<2147483647 ≒ 2 * 10^9 long < 9223372036854775807 ≒ 9 * 10^18 // decimal 29桁 class Myo...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Globalization; using System.Numerics; using System.Text.RegularExpressions; // byte 255 int<2147483647 ≒ 2 * 10^9 long < 9223372036854775807 ≒ 9 * 10^18 // decimal 29桁 class Myo...
[["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 18]]
8
1,412
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Collections; static class Extensions { public static int ToInt(this string s) => int.Parse(s); public static long ToLong(this string s) => long.Pars...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Collections; static class Extensions { public static int ToInt(this string s) => int.Parse(s); public static long ToLong(this string s) => long.Pars...
[["-", 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, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 213, 63, 214, 205, 236, 237, 238, 0, 199], ["+", 0, 213, 63, 214, 205, 236, 237, 238, 0, 199]]
8
1,284
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 ABC000A { 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 ABC000A { static public int numberOfRandomCases = 0; static public void MakeTestCase(List<string> _input, List<string> _out...
[["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 22]]
8
9,711
2
using System; using static System.Console; class Program { public static void Main() { int n = int.Parse(ReadLine()); string s = ReadLine(); int res = 0; int[,] dp = new int[n + 1, n + 1]; for (int i = n - 1; i >= 0; i--) { for (int j = n - 1; j > i; j--) { if (s[i] == s[j]) ...
using System; using static System.Console; class Program { public static void Main() { int n = int.Parse(ReadLine()); string s = ReadLine(); int res = 0; int[,] dp = new int[n + 1, n + 1]; for (int i = n - 1; i >= 0; i--) { for (int j = n - 1; j > i; j--) { if (s[i] == s[j]) ...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
173
2
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); #if DEBUG ReadLi...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); #if DEBUG ReadLi...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
679
2
using System; using System.Collections.Generic; using System.Linq; namespace Contest { class Program { static void Main() { int n = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); long ans = 0; for (int i = 0; i < n; i++) { for (int j = i + 1; j < n; j++) { if (s[i] != s[j...
using System; using System.Collections.Generic; using System.Linq; namespace Contest { class Program { static void Main() { int n = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); long ans = 0; for (int i = 0; i < n; i++) { for (int j = i + 1; j < n; j++) { if (s[i] != s[j...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]]
8
214
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using static System.Math; using static System.Array; using static AtCoder.IO_ShortCut; using static AtCoder.Tool; using static AtCoder.ModInt; namespace AtCoder { class A...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using static System.Math; using static System.Array; using static AtCoder.IO_ShortCut; using static AtCoder.Tool; using static AtCoder.ModInt; namespace AtCoder { class A...
[["-", 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,329
5
using System; using System.Linq; namespace Sample { class Sample { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); Console.WriteLine(Math.Pow(2, 3)); } } }
using System; using System.Linq; namespace Sample { class Sample { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); Console.WriteLine(Math.Pow(N, 3)); } } }
[["-", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22]]
8
55
2
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { var N = int.Parse(Console.ReadLine()); if (N == 1) { Console.WriteLine(1); } else if (N == 2) { Console.WriteLine(8); } else { Console.WriteLine(27); } } }
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { var N = int.Parse(Console.ReadLine()); if (N == 1) { Console.WriteLine(1); } else if (N == 2) { Console.WriteLine(8); } else { Console.WriteLine(N * N * N); } } }
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
82
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; Func cin2; void calc() { cin = new...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; Func cin2; void calc() { cin = new...
[["-", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203]]
8
706
4
using System; namespace ABC140B { class Program { static void Main(string[] args) { int aa = int.Parse(Console.ReadLine()); int[] b = new int[aa + 1]; int[] c = new int[aa]; int[] d = new int[aa + 1]; int v = 0; int x = 0; var a = Console.ReadLine().Split(' '); var ab = Console.ReadLi...
using System; namespace ABC140B { class Program { static void Main(string[] args) { int aa = int.Parse(Console.ReadLine()); int[] b = new int[aa + 1]; int[] c = new int[aa]; int[] d = new int[aa + 1]; int v = 0; int x = 0; var a = Console.ReadLine().Split(' '); var ab = Console.ReadLi...
[["+", 12, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["+", 206, 207, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 206, 207, 0, 28, 0, 204, 206, 207, 0, 73]]
8
288
5
using System; using System.Collections.Generic; using System.Linq; public class AtCoderB { static void Main() { int n = int.Parse(Console.ReadLine()); int[] dish = new int[n]; { var line = Console.ReadLine(); var words = line.Split(' '); for (int i = 0; i < n; i++) { dish[i] = ...
using System; using System.Collections.Generic; using System.Linq; public class AtCoderB { static void Main() { int n = int.Parse(Console.ReadLine()); int[] dish = new int[n]; { var line = Console.ReadLine(); var words = line.Split(' '); for (int i = 0; i < n; i++) { dish[i] = ...
[["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 33], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 0, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 0, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
309
4
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { int n = ReadLineInt(); int[] aList = ReadLineIntArray(); int[] bList = ReadLineIntArray(); int[] cList = ReadLineIntArray(); int rtn = 0;...
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { int n = ReadLineInt(); int[] aList = ReadLineIntArray(); int[] bList = ReadLineIntArray(); int[] cList = ReadLineIntArray(); int rtn = 0;...
[["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
623
4
using System; using System.Collections; using System.Collections.Generic; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] a = new int[n]; int[] b = new int[n]; int[] c = new int[n - 1]; string[] s = Console.ReadLine().Split(); for (int i = 0; i <...
using System; using System.Collections; using System.Collections.Generic; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] a = new int[n]; int[] b = new int[n]; int[] c = new int[n - 1]; string[] s = Console.ReadLine().Split(); for (int i = 0; i <...
[["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203]]
8
302
2
using System; using System.Linq; namespace B_Buffet { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] A = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int[] B = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int[...
using System; using System.Linq; namespace B_Buffet { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] A = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int[] B = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int[...
[["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
213
2
using System; class Program { static void Main(string[] args) { // 入力文字列を取得 int n = int.Parse(Console.ReadLine()); string[] aArrayStr = Console.ReadLine().Split(' '); string[] bArrayStr = Console.ReadLine().Split(' '); string[] cArrayStr = Console.ReadLine().Split(' '); // A列を数値に変換 int[] ...
using System; class Program { static void Main(string[] args) { // 入力文字列を取得 int n = int.Parse(Console.ReadLine()); string[] aArrayStr = Console.ReadLine().Split(' '); string[] bArrayStr = Console.ReadLine().Split(' '); string[] cArrayStr = Console.ReadLine().Split(' '); // A列を数値に変換 int[] ...
[["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
300
2
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace atcoder { class test { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] A = Console.ReadLine().Split(' '); string[] B = Console.ReadLine().Split(' '); string[] C = Co...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace atcoder { class test { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] A = Console.ReadLine().Split(' '); string[] B = Console.ReadLine().Split(' '); string[] C = Co...
[["-", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
347
4
using System; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { int number = int.Parse(Console.ReadLine()); int[] cuisine = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] satisfaction = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[]...
using System; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { int number = int.Parse(Console.ReadLine()); int[] cuisine = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] satisfaction = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[]...
[["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
201
4
using System; using System.Linq; public class Program { public static void Main() { int N = int.Parse(Console.ReadLine().Trim()); int[] A = Console.ReadLine() .Trim() .Split(' ') .Select(x => int.Parse(x)) .ToArray(); int[] B = Conso...
using System; using System.Linq; public class Program { public static void Main() { int N = int.Parse(Console.ReadLine().Trim()); int[] A = Console.ReadLine() .Trim() .Split(' ') .Select(x => int.Parse(x)) .ToArray(); int[] B = Conso...
[["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33]]
8
211
1