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; public static class Prg { public static Scanner sc = new Scanner(); public static void Main() { var n = sc.NextDouble(); var r = (int)Math.Sqrt(n); Console.WriteLine(r); } } public static class Extension { public static IEnumerable...
using System; using System.Collections.Generic; using System.Linq; public static class Prg { public static Scanner sc = new Scanner(); public static void Main() { var n = sc.NextDouble(); var r = (int)Math.Sqrt(n); Console.WriteLine(r * r); } } public static class Extension { public static IEnumer...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
364
2
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static _20200312.Cin; using static _20200312.Util; using Pair = _20200312.VTuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<long>>; using System.Text; namespace _202003...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static _20200312.Cin; using static _20200312.Util; using Pair = _20200312.VTuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<long>>; using System.Text; namespace _202003...
[["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
2,594
4
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Library; using static Library.Input; namespace AtCoderTemplate { class ProgramC { static void Main() { int N = NextInt; var a = LongList.OrderBy(x => x).ToArray(); var b = LongList.OrderBy(y => ...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Library; using static Library.Input; namespace AtCoderTemplate { class ProgramC { static void Main() { int N = NextInt; var a = LongList.OrderBy(x => x).ToArray(); var b = LongList.OrderBy(y => ...
[["-", 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], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
1,614
5
using System; using System.Collections.Generic; using System.Linq; namespace MyProgram { class AtCoder { static void Main() { var N = long.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var B = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); ...
using System; using System.Collections.Generic; using System.Linq; namespace MyProgram { class AtCoder { static void Main() { var N = long.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var B = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); ...
[["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
471
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()); this.PartsTop = Reader.ReadLine() .Split(' ') .Select(a => long.Pa...
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()); this.PartsTop = Reader.ReadLine() .Split(' ') .Select(a => long.Pa...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258]]
8
599
4
using System; class Program { static void Main(string[] args) { // セル数の合計 int N_num = int.Parse(Console.ReadLine()); int cell_sum = N_num * 2; // 塗りつぶすセル数 int A_Math = int.Parse(Console.ReadLine()); // 解答マス数 int answer = cell_sum - A_Math; //出力 Console.WriteLine(answer); } }
using System; class Program { static void Main(string[] args) { // セル数の合計 int N_num = int.Parse(Console.ReadLine()); int cell_sum = N_num * N_num; // 塗りつぶすセル数 int A_Math = int.Parse(Console.ReadLine()); // 解答マス数 int answer = cell_sum - A_Math; //出力 Console.WriteLine(answer); } }
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]]
8
71
2
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static void Main(string[] args) { try { Solve.Answer(); } catch (Exception ex) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static void Main(string[] args) { try { Solve.Answer(); } catch (Exception ex) { ...
[["+", 0, 57, 15, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 57, 15, 16, 31, 16, 31, 74, 0, 25]]
8
630
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderB { static void Main() { var sc = new Scanner(); int n = sc.NextInt(); int k = sc.NextInt(); int answer = 0; for (int i = 0; i < n; i++) { int x = sc.NextInt(); answer += Math.M...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderB { static void Main() { var sc = new Scanner(); int n = sc.NextInt(); int k = sc.NextInt(); int answer = 0; for (int i = 0; i < n; i++) { int x = sc.NextInt(); answer += Math.M...
[["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25]]
8
402
6
using System; public class Hello { public static void Main() { int N = int.Parse(Console.ReadLine()); int K = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(' '); int[] num = new int[N]; int cnt = 0; for (int x = 0; x < N; x++) { num[x] = int.Parse(input[x]); ...
using System; public class Hello { public static void Main() { int N = int.Parse(Console.ReadLine()); int K = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(' '); int[] num = new int[N]; int cnt = 0; for (int x = 0; x < N; x++) { num[x] = int.Parse(input[x]); ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
8
158
2
using System; using System.Linq; namespace ProgramingStydying { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); var a = input[0]; var b = input[1]; var c = input[2]; var d = input[3]; var e = input[4]; var f = input[5];...
using System; using System.Linq; namespace ProgramingStydying { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); var a = input[0]; var b = input[1]; var c = input[2]; var d = input[3]; var e = input[4]; var f = input[5];...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98]]
8
332
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 ABC074C { 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 ABC074C { static public int numberOfRandomCases = 0; static public void MakeTestCase(List<string> _input, List<string> _out...
[["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 250]]
8
10,232
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, 197, 0, 198, 0, 200, 0, 212, 0, 250], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 250]]
8
1,220
3
using System; using System.Collections.Generic; class MainClass { public static void Main(string[] args) { var _ = LnInts(); var A = _[0]; var B = _[1]; var C = _[2]; var D = _[3]; var E = _[4]; var F = _[5]; var X = new HashSet<int>(); var Y = new HashSet<int>(); var maxCon =...
using System; using System.Collections.Generic; class MainClass { public static void Main(string[] args) { var _ = LnInts(); var A = _[0]; var B = _[1]; var C = _[2]; var D = _[3]; var E = _[4]; var F = _[5]; var X = new HashSet<int>(); var Y = new HashSet<int>(); var maxCon =...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
635
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int a = sc.NextInt(); int b = sc.NextInt(); int c = sc.NextInt(); int d = sc.NextInt(); int e = sc.NextInt(); int f = sc.NextInt(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int a = sc.NextInt(); int b = sc.NextInt(); int c = sc.NextInt(); int d = sc.NextInt(); int e = sc.NextInt(); int f = sc.NextInt(); ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
8
649
2
using System; using System.Linq; namespace ConsoleApp95 { class Program { static void Main(string[] args) { var st = Console.ReadLine().Split().Select(int.Parse).ToArray(); int A = st[0]; int B = st[1]; int C = st[2]; int D = st[3]; int E = st[4]; int F = st[5]; int ans_overall = 0; ...
using System; using System.Linq; namespace ConsoleApp95 { class Program { static void Main(string[] args) { var st = Console.ReadLine().Split().Select(int.Parse).ToArray(); int A = st[0]; int B = st[1]; int C = st[2]; int D = st[3]; int E = st[4]; int F = st[5]; int ans_overall = 0; ...
[["-", 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
314
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.CompilerServices; using ll = System.Int64; public class Contest { static void Swap1<T>(ref T a, ref T b) { T t = a; a = b; b = t; } static void Swap2<T>(ref T a, ref T b) where T : ICompa...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.CompilerServices; using ll = System.Int64; public class Contest { static void Swap1<T>(ref T a, ref T b) { T t = a; a = b; b = t; } static void Swap2<T>(ref T a, ref T b) where T : ICompa...
[["-", 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
2,632
3
using System; using System.Linq; using System.Collections.Generic; using static System.Math; using static System.Console; using System.Text; class Program { static void Main(string[] args) { solve(); } static Scanner cin; static int A, B, C, D, E, F; static void input() { cin = new Scanner(); A = cin.n...
using System; using System.Linq; using System.Collections.Generic; using static System.Math; using static System.Console; using System.Text; class Program { static void Main(string[] args) { solve(); } static Scanner cin; static int A, B, C, D, E, F; static void input() { cin = new Scanner(); A = cin.n...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
649
6
using System; class Program { static void Main(string[] args) { var str = Console.ReadLine().Split(); var A = int.Parse(str[0]); var B = int.Parse(str[1]); var C = int.Parse(str[2]); var D = int.Parse(str[3]); var E = int.Parse(str[4]); var F = int.Parse(str[5]); var max_s = 0; v...
using System; class Program { static void Main(string[] args) { var str = Console.ReadLine().Split(); var A = int.Parse(str[0]); var B = int.Parse(str[1]); var C = int.Parse(str[2]); var D = int.Parse(str[3]); var E = int.Parse(str[4]); var F = int.Parse(str[5]); var max_s = 0; v...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
8
329
2
using System; using System.Collections; using System.Collections.Generic; using System.Text; public class C { public static void Main() { string[] args = Console.ReadLine().Split(' '); int A = Int32.Parse(args[0]); int B = Int32.Parse(args[1]); int C = Int32.Parse(args[2]); int D = Int32.Parse(ar...
using System; using System.Collections; using System.Collections.Generic; using System.Text; public class C { public static void Main() { string[] args = Console.ReadLine().Split(' '); int A = Int32.Parse(args[0]); int B = Int32.Parse(args[1]); int C = Int32.Parse(args[2]); int D = Int32.Parse(ar...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]]
8
387
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC_C { class C074 { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int A = int.Parse(s[0]), B = int.Parse(s[1]), C = int.Parse(s[2]); int D = int.P...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC_C { class C074 { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int A = int.Parse(s[0]), B = int.Parse(s[1]), C = int.Parse(s[2]); int D = int.P...
[["-", 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
326
3
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace AtTest.C_Challenge { class ABC_074 { static void Main(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { int[] vals = ReadInts(); float density = ...
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace AtTest.C_Challenge { class ABC_074 { static void Main(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { int[] vals = ReadInts(); float density = ...
[["+", 0, 200, 0, 212, 0, 16, 31, 204, 205, 22], ["+", 0, 212, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 212, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
561
5
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; class Simple { int A, B, C, D, E, F; void Solve() { // input A = io.Int; B = io.Int; C = io.Int; D = io.Int; ...
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; class Simple { int A, B, C, D, E, F; void Solve() { // input A = io.Int; B = io.Int; C = io.Int; D = io.Int; ...
[["+", 31, 16, 31, 23, 0, 41, 64, 16, 17, 48], ["+", 31, 16, 31, 23, 0, 41, 64, 16, 12, 22]]
8
554
2
using System; class ABC074D { static public void Main(string[] args) { int A, B, C, D, E, F; string[] vals = Console.ReadLine().Split(' '); A = int.Parse(vals[0]); B = int.Parse(vals[1]); C = int.Parse(vals[2]); D = int.Parse(vals[3]); E = int.Parse(vals[4]); F = int.Parse(vals[5]); ...
using System; class ABC074D { static public void Main(string[] args) { int A, B, C, D, E, F; string[] vals = Console.ReadLine().Split(' '); A = int.Parse(vals[0]); B = int.Parse(vals[1]); C = int.Parse(vals[2]); D = int.Parse(vals[3]); E = int.Parse(vals[4]); F = int.Parse(vals[5]); ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]]
8
364
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { ...
[["-", 0, 57, 64, 1, 0, 11, 12, 16, 12, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 22]]
8
756
2
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...
[["-", 206, 207, 0, 28, 0, 16, 31, 204, 205, 22], ["-", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 28, 0, 16, 31, 204, 206, 207, 0, 73], ["-", 205, 204, 206, 207, 0, 28, 0, 16, 17, 109], ["-", 205, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 31, 204, 205, 204, 206,...
8
837
7
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC073A { class Program { static void Main(string[] args) { int n; n = int.Parse(Console.ReadLine()); if (n % 10 == 9 || n / 10 == 9) Console.WriteLine("YES"); else ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC073A { class Program { static void Main(string[] args) { int n; n = int.Parse(Console.ReadLine()); if (n % 10 == 9 || n / 10 == 9) Console.WriteLine("Yes"); else ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
101
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Math; using static System.Console; using static CS_Contest.Utils; using System.IO; // using static CS_Contest.Library; namespace CS_Contest { using Li = List<int>; using LLi = List<Li...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Math; using static System.Console; using static CS_Contest.Utils; using System.IO; // using static CS_Contest.Library; namespace CS_Contest { using Li = List<int>; using LLi = List<Li...
[["-", 8, 196, 0, 57, 64, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 57, 64, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 57, 75, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 57, 75, 1, 0, 213, 63, 22]]
8
1,356
4
using System; using System.Linq; using System.Collections.Generic; class Dmondai { static void Main() { var N = Int32.Parse(Console.ReadLine()); var a = Console.ReadLine() .Split(' ') .Select(x => Int32.Parse(x)) .OrderBy(x => x) .ToArray(); ...
using System; using System.Linq; using System.Collections.Generic; class Cmondai { static void Main() { var N = Int32.Parse(Console.ReadLine()); var a = Console.ReadLine() .Split(' ') .Select(x => Int32.Parse(x)) .OrderBy(x => x) .ToArray(); ...
[["-", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203]]
8
151
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Practice { class Program { static void Main(string[] args) { string szLine = Console.ReadLine(); szLine = Console.ReadLine(); string[] szArr = szLine.Split(' '); int[] arr = n...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Practice { class Program { static void Main(string[] args) { string szLine = Console.ReadLine(); szLine = Console.ReadLine(); string[] szArr = szLine.Split(' '); int[] arr = n...
[["-", 39, 224, 225, 226, 0, 16, 31, 214, 205, 22], ["-", 39, 224, 225, 226, 0, 16, 31, 214, 0, 131], ["-", 39, 224, 225, 226, 0, 16, 31, 214, 141, 22], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 31, 203]]
8
190
4
using System; using System.Collections.Generic; using System.Linq; namespace ABC072C { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] a = Console.ReadLine().Split(' ').Select(b => int.Parse(b)).ToArray(); Dictionary<int, int> dic = new Dictionary<int, int>...
using System; using System.Collections.Generic; using System.Linq; namespace ABC072C { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] a = Console.ReadLine().Split(' ').Select(b => int.Parse(b)).ToArray(); Dictionary<int, int> dic = new Dictionary<int, int>...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
217
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace atcoder { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace atcoder { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(...
[["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203]]
8
196
2
using System; using System.Collections.Generic; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { Solve(); } private const int MOD = 1000000007; static void Solve() { var n = ReadAndParseInt(); var p = ReadAndParseIntArr(); int ans = 0; for (int i = 0; i <...
using System; using System.Collections.Generic; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { Solve(); } private const int MOD = 1000000007; static void Solve() { var n = ReadAndParseInt(); var p = ReadAndParseIntArr(); int ans = 0; for (int i = 0; i <...
[["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
1,127
3
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var w = new int[n + 1]; string[] line = Console.ReadLine().Trim().Split(' '); var count = 0; for (int i = 0; i < n; i++) w[i + 1] = int.Parse(line[i]); for (int i = 1; i < n; i++...
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var w = new int[n + 1]; string[] line = Console.ReadLine().Trim().Split(' '); var count = 0; for (int i = 0; i < n; i++) w[i + 1] = int.Parse(line[i]); for (int i = 1; i <= n; i+...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 57, 15, 16, 12, 16, 12, 16, 17, 33], ["-", 0, 57, 15, 16, 12, 16, 12, 16, 12, 203]]
8
226
6
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { long n = long.Parse(Console.ReadLine()); // long.Parseはstringをlongに変換。 long[] nums = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); long answer =...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { long n = long.Parse(Console.ReadLine()); // long.Parseはstringをlongに変換。 long[] nums = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); long answer =...
[["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
121
2
using System; using System.Linq; using System.Collections.Generic; using Debug = System.Diagnostics.Trace; using SB = System.Text.StringBuilder; // using System.Numerics; using static System.Math; using Number = System.Int64; namespace Program { public class Solver { Random rnd = new Random(0); public void Solve() ...
using System; using System.Linq; using System.Collections.Generic; using Debug = System.Diagnostics.Trace; using SB = System.Text.StringBuilder; // using System.Numerics; using static System.Math; using Number = System.Int64; namespace Program { public class Solver { Random rnd = new Random(0); public void Solve() ...
[["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 52, 0, 89], ["+", 3, 4, 0, 28, 0, 283, 0, 284, 0, 46], ["+", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296], ["+", 3, 4, 0, 28, 0, 283, 0, 284, 0, 45], ["+", 3, 4, 0, 28, 0, 283, 0, 284, 0, 22]]
8
1,259
6
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { ...
[["-", 0, 57, 75, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 22]]
8
911
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, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 16, 12, 16, 31, 16, 31, 204, 205, 22]]
8
248
6
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { AGC019.A(); } class AGC019 { public static void A() { var Q = Read.Int(); var H = Read.Int(); var S = Read.Int(); var D = Read.Int(); var N = R...
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { AGC019.A(); } class AGC019 { public static void A() { var Q = Read.Long(); var H = Read.Long(); var S = Read.Long(); var D = Read.Long(); var N...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
1,273
10
using System; namespace agc019a { class Program { static void Main(string[] args) { int[] read = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int divByOne = Math.Min(2 * read[0], read[1]); divByOne = Math.Min(2 * divByOne, read[2]); int divByTwo = read[3]; int N = int.Parse(Console.Re...
using System; namespace agc019a { class Program { static void Main(string[] args) { int[] read = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int divByOne = Math.Min(2 * read[0], read[1]); divByOne = Math.Min(2 * divByOne, read[2]); int divByTwo = read[3]; long N = long.Parse(Console....
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
143
4
using System; using System.Collections.Generic; using static System.Console; class Program { static void Main() { var q = NextInt(); var h = NextInt(); var s = NextInt(); var d = NextInt(); var n = NextInt(); foreach (var v in new int[] { 4 * q, 2 * h }) { s = Math.Min(s, v); } ...
using System; using System.Collections.Generic; using static System.Console; class Program { static void Main() { var q = NextInt(); var h = NextInt(); var s = NextInt(); var d = NextInt(); var n = (long)NextInt(); foreach (var v in new int[] { 4 * q, 2 * h }) { s = Math.Min(s, v); ...
[["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25]]
8
225
3
using System; class AGC019A { static public void Main(string[] args) { int Q, H, S, D; int N; string[] vals = Console.ReadLine().Split(' '); Q = int.Parse(vals[0]); H = int.Parse(vals[1]); S = int.Parse(vals[2]); D = int.Parse(vals[3]); N = int.Parse(Console.ReadLine()); int cost...
using System; class AGC019A { static public void Main(string[] args) { int Q, H, S, D; int N; string[] vals = Console.ReadLine().Split(' '); Q = int.Parse(vals[0]); H = int.Parse(vals[1]); S = int.Parse(vals[2]); D = int.Parse(vals[3]); N = int.Parse(Console.ReadLine()); long cos...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199]]
8
261
8
using System; using System.Collections.Generic; using System.Linq; class Solution { static void Main() { var size = new int[] { 1, 2, 4, 8 }; var costs = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int n = int.Parse(Console.ReadLine()) * 4; for (int i = 0; i < 3; i++) { if (cost...
using System; using System.Collections.Generic; using System.Linq; class Solution { static void Main() { var size = new int[] { 1, 2, 4, 8 }; var costs = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); long n = long.Parse(Console.ReadLine()) * 4; for (int i = 0; i < 3; i++) { if (co...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 212, 0, 16, 31, 213, 63, 214, 205, 199], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 205, 199]]
8
201
6
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { ...
[["-", 0, 57, 64, 1, 0, 11, 12, 16, 12, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 203]]
8
933
2
using System; public class a { public static void Main() { int[] xab = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); Console.WriteLine( Math.Abs(xab[0] - xab[1]) > Math.Abs(xab[0] - xab[2]) ? "A" : "B"); } }
using System; public class a { public static void Main() { int[] xab = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); Console.WriteLine( Math.Abs(xab[0] - xab[1]) < Math.Abs(xab[0] - xab[2]) ? "A" : "B"); } }
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18]]
8
83
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int x = sc.NextInt(); int a = sc.NextInt(); int b = sc.NextInt(); string answer = Math.Abs(x - a) >= Math.Abs(x - b) ? "A" : "B"; Conso...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int x = sc.NextInt(); int a = sc.NextInt(); int b = sc.NextInt(); string answer = Math.Abs(x - a) <= Math.Abs(x - b) ? "A" : "B"; Conso...
[["-", 0, 200, 0, 212, 0, 41, 15, 16, 17, 20], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 19]]
8
397
2
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray(); Console.WriteLine((s[1] - s[0]) > (s[2] - s[0]) ? "B" : "A"); } }
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray(); Console.WriteLine(Math.Abs(s[1] - s[0]) > Math.Abs(s[2] - s[0]) ? "B" : "A");...
[["+", 0, 41, 15, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 41, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 41, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 41, 15, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 41, 15, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 41, 15, 16, 12, 213, 63, 214, 141, 22]]
8
89
6
// optional using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; public static class Program { public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var sw = new StreamWriter(Consol...
// optional using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; public static class Program { public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var sw = new StreamWriter(Consol...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18]]
8
7,311
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace At { class Program { static void Main(string[] args) { var input = ReadInts(); var A = Math.Abs(input[0] - input[1]); var B = Math.Abs(input[2] - input[1]...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace At { class Program { static void Main(string[] args) { var input = ReadInts(); var A = Math.Abs(input[0] - input[1]); var B = Math.Abs(input[0] - input[2]...
[["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]]
8
291
6
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...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18]]
8
121
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Practice { class Program { static void Main(string[] args) { SolveA(); // SolveB(); // SolveC(); // SolveD(); } private const long MOD = 1000000007; static void SolveA() { var o = ReadAndParseIn...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Practice { class Program { static void Main(string[] args) { SolveA(); // SolveB(); // SolveC(); // SolveD(); } private const long MOD = 1000000007; static void SolveA() { var o = ReadAndParseIn...
[["-", 0, 200, 0, 212, 0, 41, 15, 16, 17, 47], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 18]]
8
428
2
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using static System.Math; public class Hello { public static void Main() { string[] input = ReadLine().Split(' '); int n = int.Parse(input[0]); int m = int.Parse(input[1]); int b = int.Parse(input[2]); ...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using static System.Math; public class Hello { public static void Main() { string[] input = ReadLine().Split(' '); int n = int.Parse(input[0]); int m = int.Parse(input[1]); int b = int.Parse(input[2]); ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]]
8
132
2
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int x = int.Parse(input[0]); int a = int.Parse(input[1]); int b = int.Parse(input[2]); int xa, xb; if (x < a) xa = a - x; else xa = x - a; if (x < b) xb...
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int x = int.Parse(input[0]); int a = int.Parse(input[1]); int b = int.Parse(input[2]); int xa, xb; if (x < a) xa = a - x; else xa = x - a; if (x < b) xb...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 0, 57, 64, 1, 0, 213, 3, 4, 0, 21], ["-", 64, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 57, 75, 1, 0, 213, 3, 4, 0, 21], ["-", 75, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
147
8
using System; using System.Linq; namespace abc071_a { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); Console.WriteLine(Math.Abs(x[0] - x[1]) > Math.Abs(x[0] - x[2]) ? "A" :...
using System; using System.Linq; namespace abc071_a { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); Console.WriteLine(Math.Abs(x[0] - x[1]) < Math.Abs(x[0] - x[2]) ? "A" :...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18]]
8
96
2
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { // int N = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); for (int i = 0; i < 26; i++) { if (!s.Contains(char.ConvertFromUtf32('a' + i))) { Console.WriteLine(char.ConvertFromUtf3...
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { // int N = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); for (int i = 0; i < 26; i++) { if (!s.Contains(char.ConvertFromUtf32('a' + i))) { Console.WriteLine(char.ConvertFromUtf3...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
100
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var S = sc.ReadStr(); var table = new bool[26]; foreach (var c in S) { var i = (int)c - (int)'a'; table[i] = true; } if (table.All(t => t)) { Console.WriteLine("N...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var S = sc.ReadStr(); var table = new bool[26]; foreach (var c in S) { var i = (int)c - (int)'a'; table[i] = true; } if (table.All(t => t)) { Console.WriteLine("N...
[["-", 12, 74, 51, 23, 0, 16, 31, 252, 0, 253], ["+", 12, 74, 51, 23, 0, 16, 31, 252, 0, 253], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
8
1,128
4
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { public Solve() {} StringBuilder sb; ReadData re; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); re = new ReadData(); Calc(); Console.W...
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { public Solve() {} StringBuilder sb; ReadData re; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); re = new ReadData(); Calc(); Console.W...
[["-", 0, 28, 0, 16, 31, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 16, 31, 204, 205, 22]]
8
2,192
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() { long tot = 0; int v = 0; for (int i = 0; i < N; i++) { tot += B...
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() { long tot = 0; int v = 0; for (int i = 0; i < N; i++) { tot += B...
[["-", 8, 57, 64, 1, 0, 11, 12, 204, 205, 22], ["+", 8, 57, 64, 1, 0, 11, 12, 204, 205, 22]]
8
742
6
using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; public static class TemplateExtension { public static X[] MakeArray<X>(this int count, Func<in...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; public static class TemplateExtension { public static X[] MakeArray<X>(this int count, Func<in...
[["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 37, 0, 213, 63, 214, 141, 22], ["-", 0, 28, 0, 218, 8, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 37, 0, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 218, 8, 213, 3, 4, 0, 25]]
8
1,047
6
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { string w = Input.ScanStr(); Console.WriteLine(w.Substring(0, 4) == "YAKI" ? "Yes" : "No"); } } static class Input { static public int ScanInt() { return int.Parse(Console.ReadLine(...
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { string w = Input.ScanStr(); Console.WriteLine(w.Length >= 4 && w.Substring(0, 4) == "YAKI" ? "Yes" : "No"); } } sta...
[["+", 0, 41, 15, 16, 31, 16, 31, 214, 141, 22], ["+", 0, 28, 0, 41, 15, 16, 31, 16, 17, 20], ["+", 0, 28, 0, 41, 15, 16, 31, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 98], ["+", 15, 16, 12, 16, 31, 213, 63, 214, 205, 22], ["+", 15, 16, 12, 16, 31, 213, 63, 214, 0, 131]]
8
596
6
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) { string a = Console.ReadLine(); if (a.Length < 4) { Console.WriteLine("No"); } else if (a.Substring(0, 4) == "YAKI") { ...
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) { string a = Console.ReadLine(); if (a.Length < 4) { Console.WriteLine("No"); } else if (a.Substring(0, 4) == "YAKI") { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
424
4
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; // using System.Numerics; //comment out if AOJ using System.Text; using Problem = Tmp.Problem; using MyIO; #pragma warning disable // for AOJ namespace Tmp { class Problem : IDispo...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; // using System.Numerics; //comment out if AOJ using System.Text; using Problem = Tmp.Problem; using MyIO; #pragma warning disable // for AOJ namespace Tmp { class Problem : IDispo...
[["+", 0, 57, 15, 16, 31, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 15, 16, 12, 16, 31, 213, 63, 214, 205, 22], ["+", 15, 16, 12, 16, 31, 213, 63, 214, 0, 131]]
8
1,207
6
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { public Solve() {} StringBuilder sb; ReadData re; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); re = new ReadData(); Calc(); Console.W...
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { public Solve() {} StringBuilder sb; ReadData re; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); re = new ReadData(); Calc(); Console.W...
[["-", 0, 57, 15, 16, 12, 16, 12, 252, 0, 253], ["+", 0, 57, 15, 16, 12, 16, 12, 252, 0, 253]]
8
1,743
2
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static void Main() { var (N, M, K) = ReadTuple<int, int, int>(); int sum = 0; for (int i = 0; i <= N; i++) { for (int j = 0; j <= M; j++) { ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static void Main() { var (N, M, K) = ReadTuple<int, int, int>(); int sum = 0; for (int i = 0; i <= N; i++) { for (int j = 0; j <= M; j++) { ...
[["+", 12, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 12, 16, 31, 23, 0, 16, 12, 22]]
8
743
2
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace MSL001 { // public class A //{ // public static void Main(string[] args) // { // var c = new ConsoleInput(Console.In); // var S = c.Read; // var A = c.ReadLong; // var B = c.ReadLong; // ...
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace MSL001 { // public class A //{ // public static void Main(string[] args) // { // var c = new ConsoleInput(Console.In); // var S = c.Read; // var A = c.ReadLong; // var B = c.ReadLong; // ...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
572
8
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 // var s = Console.ReadLine(); // var n = int.Parse(Console.ReadLine()); int[] nmk = Console.ReadLine().Split().Select(int.Parse).ToA...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 // var s = Console.ReadLine(); // var n = int.Parse(Console.ReadLine()); int[] nmk = Console.ReadLine().Split().Select(int.Parse).ToA...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22]]
8
197
4
using System; class c { static void Main() { var nmk = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int n = nmk[0], m = nmk[1], k = nmk[2]; bool judge = false; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { if ((n - i) * (m - j) + i * j == k) judge = tr...
using System; class c { static void Main() { var nmk = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int n = nmk[0], m = nmk[1], k = nmk[2]; bool judge = false; for (int i = 0; i <= n; i++) { for (int j = 0; j <= m; j++) { if ((n - i) * (m - j) + i * j == k) judge = ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
134
4
using System; using System.Linq; namespace AtCoder { class Program { public static void Main() { int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int n = input[0]; int m = input[1]; int k = input[2]; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { ...
using System; using System.Linq; namespace AtCoder { class Program { public static void Main() { int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int n = input[0]; int m = input[1]; int k = input[2]; for (int i = 0; i <= n; i++) { for (int j = 0; j <= m; j++) { ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
151
4
using System; using System.Linq; namespace CF2017qA { class B { static void Main(string[] args) { // input int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = input[0]; int M = input[1]; int K = input[2]; for (int i = 0; i < N; i++) { for (int j = 0; j < M; j+...
using System; using System.Linq; namespace CF2017qA { class B { static void Main(string[] args) { // input int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = input[0]; int M = input[1]; int K = input[2]; for (int i = 0; i <= N; i++) { for (int j = 0; j <= M; ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
152
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCorder { public class Program { static void Main(string[] args) { var nmk = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int n = nmk[0]; int m = nmk[1]; int k = nmk[2]; for (int i = 1;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCorder { public class Program { static void Main(string[] args) { var nmk = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int n = nmk[0]; int m = nmk[1]; int k = nmk[2]; for (int i = 0;...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
173
4
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Diagnostics; using System.Text; using System.Threading.Tasks; using System.Runtime.CompilerServices; using static System.Math; class P { static void Main() { int[] nmk = Console.ReadLine().Spli...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Diagnostics; using System.Text; using System.Threading.Tasks; using System.Runtime.CompilerServices; using static System.Math; class P { static void Main() { int[] nmk = Console.ReadLine().Spli...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
181
4
using System; using System.Linq; namespace code_festival_2017_quala_b { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); bool ret = false; for (int i = 0; i < x[0]; i++) { for (int j = 0; j < x[1]; j++) { if ((x[0] - i) * j ...
using System; using System.Linq; namespace code_festival_2017_quala_b { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); bool ret = false; for (int i = 0; i <= x[0]; i++) { for (int j = 0; j <= x[1]; j++) { if ((x[0] - i) * ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
144
4
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 { //////////////////////////////////////////////////////////// int N, M, K; int[,] G; 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 { //////////////////////////////////////////////////////////// int N, M, K; int[,] G; void...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
8,331
4
using System; using System.Collections.Generic; using System.Linq; class Solution { static void Main() { var vals = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int n = vals[0]; int m = vals[1]; int k = vals[2]; for (int i = 0; i <= n; i++) { for (int j = 0; j <= m; j++) { ...
using System; using System.Collections.Generic; using System.Linq; class Solution { static void Main() { var vals = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int n = vals[0]; int m = vals[1]; int k = vals[2]; for (int i = 0; i <= n; i++) { for (int j = 0; j <= m; j++) { ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["-", 0, 200, 0, 212, 0, 16, 12, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 16, 12, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["...
8
172
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; namespace AtCoder { class Program { #region Reserve static int cin() { return cin(-1); } static int cin(int D) { string s = Console.ReadLine(); if (strin...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; namespace AtCoder { class Program { #region Reserve static int cin() { return cin(-1); } static int cin(int D) { string s = Console.ReadLine(); if (strin...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
426
4
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { int[] inpt = Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); this.RowCount = inpt[0]; this.ColCount = inpt[1]; this.Target = i...
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { int[] inpt = Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); this.RowCount = inpt[0]; this.ColCount = inpt[1]; this.Target = i...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199]]
8
350
6
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...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
482
4
using System; using System.Collections.Generic; using System.Text; namespace AtTest._400Problems_remain_ { class CF2017Final_C { static void Main(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { int[] hw = ReadInts(); int h = hw[0]; i...
using System; using System.Collections.Generic; using System.Text; namespace AtTest._400Problems_remain_ { class CF2017Final_C { static void Main(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { int[] hw = ReadInts(); int h = hw[0]; i...
[["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22]]
8
505
2
static class Program { static void Main() { var sqSide = int.Parse(System.Console.ReadLine()); var white = int.Parse(System.Console.ReadLine()); var sq = sqSide * sqSide; System.Console.WriteLine(sq); } }
static class Program { static void Main() { var sqSide = int.Parse(System.Console.ReadLine()); var white = int.Parse(System.Console.ReadLine()); var sq = sqSide * sqSide; System.Console.WriteLine(sq - white); } }
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
60
2
using System; class Program2 { static void Main(string[] args) { int i = int.Parse(Console.ReadLine()); Console.WriteLine(i ^ 2 - int.Parse(Console.ReadLine())); } }
using System; class Program2 { static void Main(string[] args) { int i = int.Parse(Console.ReadLine()); Console.WriteLine(i * i - int.Parse(Console.ReadLine())); } }
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 140], ["-", 3, 4, 0, 28, 0, 16, 12, 16, 31, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22]]
8
52
4
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().Split(' '); int[] nums = new int[input.Length]; for (int i = 0; i < input.Lengt...
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().Split(' '); int[] nums = new int[input.Length]; for (int i = 0; i < input.Lengt...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]]
8
206
2
using System; using System.Collections.Generic; using System.Text; using System.Linq; class Program { void solve() { string[] str = Console.ReadLine().Split(' '); int A = int.Parse(str[0]); int B = int.Parse(str[1]); int C = int.Parse(str[2]); int D = int.Parse(str[3]); if (A < B) A = ...
using System; using System.Collections.Generic; using System.Text; using System.Linq; class Program { void solve() { string[] str = Console.ReadLine().Split(' '); int A = int.Parse(str[0]); int B = int.Parse(str[1]); int C = int.Parse(str[2]); int D = int.Parse(str[3]); if (A < C) A = ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 196, 0, 57, 64, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 12, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["+...
8
186
12
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.ints(); int sum = 0; for (int i = 1; i <= 100; i++) { if (a[0] <= i && i < a[1] && a[2] <= i && i < a[3]) {...
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.ints(); int sum = 0; for (int i = 1; i <= 100; i++) { if (a[0] < i && i <= a[1] && a[2] < i && i <= a[3]) {...
[["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["-", 15, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17...
8
442
8
// // ABC070C // URL : https://atcoder.jp/contests/abc070/tasks/abc070_c // using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; namespace AtCoder { class ABC070C { static void Main(string[] args) { preprocess(); // 整数の入力 long N = long.Parse(Console.Read...
// // ABC070C // URL : https://atcoder.jp/contests/abc070/tasks/abc070_c // using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; namespace AtCoder { class ABC070C { static void Main(string[] args) { preprocess(); // 整数の入力 long N = long.Parse(Console.Read...
[["-", 8, 196, 0, 37, 0, 16, 31, 23, 0, 24], ["-", 0, 37, 0, 16, 31, 23, 0, 16, 17, 48], ["-", 0, 37, 0, 16, 31, 23, 0, 16, 12, 22], ["-", 8, 196, 0, 37, 0, 16, 31, 23, 0, 25], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 17, 48], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 12, 22]]
8
536
6
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 var n = int.Parse(Console.ReadLine()); ulong[] t = new ulong[n]; for (int i = 0; i < n; i++) { t[i] = ulong.Parse(Console.ReadL...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 var n = int.Parse(Console.ReadLine()); ulong[] t = new ulong[n]; for (int i = 0; i < n; i++) { t[i] = ulong.Parse(Console.ReadL...
[["-", 8, 196, 0, 37, 0, 16, 31, 16, 17, 48], ["-", 8, 196, 0, 37, 0, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 17, 48], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 12, 22]]
8
239
4
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()); long ret = 0; for (int i = 0; i < N; i++) { var input = long.Parse(Console.ReadLine()); ...
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()); long ret = 0; for (int i = 0; i < N; i++) { var input = long.Parse(Console.ReadLine()); ...
[["+", 8, 196, 0, 37, 0, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 16, 12, 213, 3, 4, 0, 25]]
8
198
2
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { //[summary]C - Multiple Clocks int n = int.Parse(Console.ReadLine()); var t = ReadLines(n); long lcm = t[0]; var math = new MyMath(); for (int i = 1; i < ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { //[summary]C - Multiple Clocks int n = int.Parse(Console.ReadLine()); var t = ReadLines(n); long lcm = t[0]; var math = new MyMath(); for (int i = 1; i < ...
[["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22]]
8
773
2
using System; public class Hello { static long GCM(long a, long b) { long A = Math.Max(a, b); long B = Math.Min(a, b); while (A % B != 0) { long C = A % B; A = B; B = C; } return B; } static long LCM(long a, long b) { long A = Math.Max(a, b); long B = Math.Min(a, b);...
using System; public class Hello { static long GCM(long a, long b) { long A = Math.Max(a, b); long B = Math.Min(a, b); while (A % B != 0) { long C = A % B; A = B; B = C; } return B; } static long LCM(long a, long b) { long A = Math.Max(a, b); long B = Math.Min(a, b);...
[["-", 8, 196, 0, 37, 0, 16, 31, 16, 17, 48], ["-", 8, 196, 0, 37, 0, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 17, 48], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 12, 22]]
8
228
4
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 { struct P { public int index; public List<int> ad; public Dictionary<int, int> weights; ...
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 { struct P { public int index; public List<int> ad; public Dictionary<int, int> weights; ...
[["-", 15, 241, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 241, 0, 204, 206, 207, 0, 28, 0, 22]]
8
546
2
using System; class Program { static void Main(string[] args) { string str = Console.ReadLine(); Console.WriteLine(str[0].ToString() + str.Length.ToString() + str[str.Length - 1].ToString()); } }
using System; class Program { static void Main(string[] args) { string str = Console.ReadLine(); Console.WriteLine(str[0].ToString() + (str.Length - 2).ToString() + str[str.Length - 1].ToString()); } }
[["+", 31, 16, 12, 213, 63, 214, 205, 23, 0, 24], ["+", 12, 213, 63, 214, 205, 23, 0, 16, 17, 33], ["+", 12, 213, 63, 214, 205, 23, 0, 16, 12, 203], ["+", 31, 16, 12, 213, 63, 214, 205, 23, 0, 25]]
8
62
4
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp3 { class Program { static void Main(string[] args) { var input = Console.ReadLine(); var Length = input.Length.ToString(); Console.WriteLine(input[0] + Length + input[input.Length - 1]); } } }
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp3 { class Program { static void Main(string[] args) { var input = Console.ReadLine(); var Length = (input.Length - 2).ToString(); Console.WriteLine(input[0] + Length + input[input.Length - 1]); } } }
[["+", 0, 212, 0, 213, 63, 214, 205, 23, 0, 24], ["+", 0, 213, 63, 214, 205, 23, 0, 16, 17, 33], ["+", 0, 213, 63, 214, 205, 23, 0, 16, 12, 203], ["+", 0, 212, 0, 213, 63, 214, 205, 23, 0, 25]]
8
75
4
using System; class Program { static void Main() { string s = Console.ReadLine(); Console.WriteLine( s[0] + (s.Length - 2) + s[s.Length - 1]); // WriteLineをWriteとすると、改行なしで出力。 } }
using System; class Program { static void Main() { string s = Console.ReadLine(); Console.WriteLine( "" + s[0] + (s.Length - 2) + s[s.Length - 1]); // WriteLineをWriteとすると、改行なしで出力。 } }
[["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 62], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 17, 72]]
8
51
4
using System; class Program { static void Main() { string s = Console.ReadLine(); Console.WriteLine( s[0] + (s.Length - 2) + s[s.Length - 1]); // WriteLineをWriteとすると、改行なしで出力。 } }
using System; class Program { static void Main() { string s = Console.ReadLine(); Console.WriteLine( s[0] + (s.Length - 2).ToString() + s[s.Length - 1]); // WriteLineをWriteとすると、改行なしで出力。 } }
[["+", 0, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0, 25]]
8
51
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program2 { static void Main(string[] args) { string s = Console.ReadLine(); int i = s.Length - 2; string res = s[0] + i.ToString() + s[1]; Console.Write(res); } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program2 { static void Main(string[] args) { string s = Console.ReadLine(); int i = s.Length - 2; string res = s[0] + i.ToString() + s[s.Length - 1]; Console.Write(res); } }
[["+", 206, 207, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 0, 131], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 141, 22], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33]]
8
86
4
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[] a = sc.IntArray(); int x4 = a.Where(num => num % 4 == 0).Count(); int x2 = a.Where(num => num % 2 == 0).Count() ...
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[] a = sc.IntArray(); int x4 = a.Where(num => num % 4 == 0).Count(); int x2 = a.Where(num => num % 2 == 0).Count() ...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
446
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Swap<T>(ref T a, ref T b) { T temp = a; a = b; b = temp; } static void Main() { ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Swap<T>(ref T a, ref T b) { T temp = a; a = b; b = temp; } static void Main() { ...
[["+", 0, 213, 63, 214, 205, 23, 0, 16, 17, 106], ["+", 63, 214, 205, 23, 0, 16, 12, 16, 31, 22], ["+", 63, 214, 205, 23, 0, 16, 12, 16, 17, 20], ["+", 205, 23, 0, 16, 12, 16, 12, 16, 31, 22], ["+", 205, 23, 0, 16, 12, 16, 12, 16, 17, 85], ["+", 205, 23, 0, 16, 12, 16, 12, 16, 12, 203]]
8
1,214
6
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static cp; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Program { // public static cp alg; static void Main() { var alg = new cp();...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static cp; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Program { // public static cp alg; static void Main() { var alg = new cp();...
[["-", 10, 198, 0, 200, 0, 212, 0, 252, 0, 253], ["+", 10, 198, 0, 200, 0, 212, 0, 252, 0, 253], ["-", 8, 196, 0, 7, 15, 16, 12, 252, 0, 253], ["+", 8, 196, 0, 7, 15, 16, 12, 252, 0, 253], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203]]
8
1,006
6
using System; class Problem { public static void Main() { var n = Console.ReadLine(); var arr = new bool[26]; foreach (var c in n) arr[c - 'a'] = true; for (var i = 0; i < arr.Length; i++) { if (!arr[i]) { Console.WriteLine($"{'a' + i}"); return; } } Console....
using System; class Problem { public static void Main() { var n = Console.ReadLine(); var arr = new bool[26]; foreach (var c in n) arr[c - 'a'] = true; for (var i = 0; i < arr.Length; i++) { if (!arr[i]) { Console.WriteLine($"{Convert.ToChar('a' + i)}"); return; } ...
[["+", 0, 283, 0, 284, 0, 213, 63, 214, 205, 22], ["+", 0, 283, 0, 284, 0, 213, 63, 214, 0, 131], ["+", 0, 283, 0, 284, 0, 213, 63, 214, 141, 22], ["+", 0, 283, 0, 284, 0, 213, 3, 4, 0, 24], ["+", 0, 283, 0, 284, 0, 213, 3, 4, 0, 25]]
8
105
5
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/////////////////////////////////////////////////// string S; void Solve() { ...
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/////////////////////////////////////////////////// string S; void Solve() { ...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]]
8
5,527
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { string S = Console.ReadLine(); bool[] found = new bool[26]; // found[0] = a for (int i = 0; i < S.Length; i++) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { string S = Console.ReadLine(); bool[] found = new bool[26]; // found[0] = a for (int i = 0; i < S.Length; i++) { ...
[["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38]]
8
158
2
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; class Test { public static void Main() { var n = int.Parse(Console.ReadLine()); var arr = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); Array.Sort(arr, (x, y) => { retu...
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; class Test { public static void Main() { var n = int.Parse(Console.ReadLine()); var arr = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); Array.Sort(arr, (x, y) => { retu...
[["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
199
3