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; namespace ABC104C { static class MainClass { public static void Main(string[] args) { string[] input1 = Console.ReadLine().Split(' '); int D = int.Parse(input1[0]); int G = int.Parse(input1[1]); var plst = new List<int>(); var c...
using System; using System.Collections.Generic; using System.Linq; namespace ABC104C { static class MainClass { public static void Main(string[] args) { string[] input1 = Console.ReadLine().Split(' '); int D = int.Parse(input1[0]); int G = int.Parse(input1[1]); var plst = new List<int>(); var c...
[["+", 15, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 23, 0, 16, 31, 23, 0, 25], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 67], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 12, 203]]
8
772
4
using System; using System.Linq; public class Hello { public static int D; public static int G; public static int[] S; public static int score = 0; public static int count = 0; public static void Main() { //入力受け取り int[] a = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); D = a...
using System; using System.Linq; public class Hello { public static int D; public static int G; public static int[] S; public static int score = 0; public static int count = 0; public static void Main() { //入力受け取り int[] a = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); D = a...
[["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 67], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 12, 203]]
8
384
2
using System.Collections.Generic; using System.Linq; using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var g = int.Parse(line[1]); var a = new int[n, 2]; for (int i = 0; i < n; i++) { line = Conso...
using System.Collections.Generic; using System.Linq; using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var g = int.Parse(line[1]); var a = new int[n, 2]; for (int i = 0; i < n; i++) { line = Conso...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]]
8
398
6
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 min = (long)1e9; for (int i = 0; i < (1 << D); i++) { long sc ...
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 min = (long)1e9; for (int i = 0; i < (1 << D); i++) { long sc ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
653
2
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; internal partial class Solver { public void Run() { var s = ns(); var mod = 1000000000 + 7; long A = 0; long AB = 0; long ABC = 0; int pattern = 1; foreach (var c in s) { ...
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; internal partial class Solver { public void Run() { var s = ns(); var mod = 1000000000 + 7; long A = 0; long AB = 0; long ABC = 0; long pattern = 1; foreach (var c in s) { ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
1,043
2
using System; using System.Linq; namespace A { class Program { static void Main(string[] args) { // Console.WriteLine("Hello World!"); var a = Console.ReadLine() .Split() .Select(int.Parse) .OrderByDescending(x => -x) .ToArray(); Console.Wr...
using System; using System.Linq; namespace A { class Program { static void Main(string[] args) { var a = Console.ReadLine().Split().Select(int.Parse).OrderBy(x => x).ToArray(); Console.WriteLine(a[2] - a[0]); } } }
[["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 218, 8, 241, 0, 33], ["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16,...
8
75
9
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, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203]]
8
722
2
using System; using System.Linq; public class Program { public static void Main() { var arr = ReadLib.ReadAsIntArray(); var sub = new int[] { arr[0] - arr[1], arr[1] - arr[2], arr[2] - arr[0] }; var abs = sub.Select(s => Math.Abs(2)).OrderByDescending(i => i).Skip(1).Sum(); Console.WriteLine(...
using System; using System.Linq; public class Program { public static void Main() { var arr = ReadLib.ReadAsIntArray(); var sub = new int[] { arr[0] - arr[1], arr[1] - arr[2], arr[2] - arr[0] }; var abs = sub.Select(s => Math.Abs(s)).OrderByDescending(i => i).Skip(1).Sum(); Console.WriteLine(...
[["-", 0, 218, 8, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 218, 8, 213, 3, 4, 0, 28, 0, 22]]
8
194
2
using System; namespace B___String_Rotation { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var t = Console.ReadLine(); for (var i = 0; i < s.Length - 1; i++) { if (s == t) { Console.WriteLine("Yes"); return; } s = s[s.Length - 1] + s.Subs...
using System; namespace B___String_Rotation { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var t = Console.ReadLine(); for (var i = 0; i < s.Length; i++) { if (s == t) { Console.WriteLine("Yes"); return; } s = s[s.Length - 1] + s.Substrin...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
112
2
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var T = Console.ReadLine(); for (var i = 0; i < S.Length; i++) { S = S[S.Length - 1].ToString() + S.Remove(S.Length - 2); if (S.SequenceEqual(T)) { Co...
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var T = Console.ReadLine(); for (var i = 0; i < S.Length; i++) { S = S[S.Length - 1].ToString() + S.Remove(S.Length - 1); if (S.SequenceEqual(T)) { Co...
[["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
120
2
using System; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { MainStream(); } static void MainStream() { char[] s = Console.ReadLine().ToCharArray(); char[] t = Console.ReadLine().ToCharArray(); if (Judge(s, t)) { Console.WriteLine("Yes"); } else { ...
using System; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { MainStream(); } static void MainStream() { char[] s = Console.ReadLine().ToCharArray(); char[] t = Console.ReadLine().ToCharArray(); if (Judge(s, t)) { Console.WriteLine("Yes"); } else { ...
[["-", 0, 7, 8, 196, 0, 57, 15, 241, 0, 111]]
8
257
1
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.IO; using System.Linq; using System.Diagnostics; using System.Globalization; using static System.Console; using static System.Math; namespace abc103_b { class Program { static void Main(string[] args) { var ...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.IO; using System.Linq; using System.Diagnostics; using System.Globalization; using static System.Console; using static System.Math; namespace abc103_b { class Program { static void Main(string[] args) { var ...
[["-", 0, 57, 75, 196, 0, 1, 0, 213, 63, 22], ["-", 75, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 75, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35]]
8
160
5
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtcoderTemplateForCSharp { public class Program { public static void Main(string[] args) { var s = Console.ReadLine(); var w = Console.ReadLine().Select(x => int.Parse(x.ToString()))....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtcoderTemplateForCSharp { public class Program { public static void Main(string[] args) { var s = Console.ReadLine(); var w = Console.ReadLine().Split().Select(x => int.Parse...
[["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 12, 22]]
8
132
6
using System; using System.Collections.Generic; using System.Text; class Solution { static void Main() { var s = Console.ReadLine(); var w = int.Parse(Console.ReadLine()); var buff = new StringBuilder(); for (int i = 0; i < s.Length; i += 3) { buff.Append(s[i]); } Console.WriteLine(bu...
using System; using System.Collections.Generic; using System.Text; class Solution { static void Main() { var s = Console.ReadLine(); var w = int.Parse(Console.ReadLine()); var buff = new StringBuilder(); for (int i = 0; i < s.Length; i += w) { buff.Append(s[i]); } Console.WriteLine(bu...
[["-", 0, 195, 8, 196, 0, 7, 26, 11, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 26, 11, 12, 22]]
8
93
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; static public string al = "abcdefghijklmnopqrstuvwxyz"; public static void Main() { // ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; static public string al = "abcdefghijklmnopqrstuvwxyz"; public static void Main() { // ...
[["+", 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, 48], ["+", 0, 28, 0, 16, 31, 16, 12, 23, 0, 25]]
8
1,213
4
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, 212, 0, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 12, 22]]
8
1,122
2
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; // using static System.Globalization.CultureInfo; class Program { static void Main(string[] args) { var nmd = Input.ar; var p = nmd[2] == 0 ? (double)1 / nmd[...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; // using static System.Globalization.CultureInfo; class Program { static void Main(string[] args) { var nmd = Input.ar; var p = nmd[2] == 0 ? ...
[["+", 75, 16, 12, 23, 0, 16, 31, 74, 0, 24], ["+", 75, 16, 12, 23, 0, 16, 31, 74, 39, 199], ["+", 75, 16, 12, 23, 0, 16, 31, 74, 0, 25]]
8
219
3
using System; using System.Collections.Generic; namespace AtCoder.Company.SoundHound { class c { static void Main(string[] args) { var line = Console.ReadLine().Trim(); var spl = line.Split(' '); var n = double.Parse(spl[0]); var m = double.Parse(spl[1]); var d = double.Parse(spl[2]...
using System; using System.Collections.Generic; namespace AtCoder.Company.SoundHound { class c { static void Main(string[] args) { var line = Console.ReadLine().Trim(); var spl = line.Split(' '); var n = double.Parse(spl[0]); var m = double.Parse(spl[1]); var d = double.Parse(spl[2]...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22]]
8
144
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 {...
[["-", 3, 4, 0, 28, 0, 16, 12, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 16, 12, 214, 141, 22]]
8
2,697
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using static Template; namespace SolveSpace { using static System.Console; using static System.Convert; using static System.Math; using Pi = Pair<int, int>; using Number = Syste...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using static Template; namespace SolveSpace { using static System.Console; using static System.Convert; using static System.Math; using Pi = Pair<int, int>; using Number = Syste...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22]]
8
2,435
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 Graph; // using DataStructure; class ...
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 Graph; // using DataStructure; class ...
[["-", 0, 209, 8, 201, 0, 231, 141, 232, 141, 22], ["+", 0, 209, 8, 201, 0, 231, 141, 232, 141, 22]]
8
2,851
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Convert; using static System.Math; using System.Text; using Pi = csat.Pair<int, int>; using PL = csat.Pair<long, int>; namespace csat { class Program { public static bool chmin<T>(ref ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Convert; using static System.Math; using System.Text; using Pi = csat.Pair<int, int>; using PL = csat.Pair<long, int>; namespace csat { class Program { public static bool chmin<T>(ref ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
2,675
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { List<int>[] E = new List<int>[N]; for (int i = 0; i < N;...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { List<int>[] E = new List<int>[N]; for (int i = 0; i < N;...
[["-", 0, 230, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 0, 230, 3, 4, 0, 28, 0, 204, 205, 22]]
8
2,619
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Convert; using static System.Math; // using static System.Globalization.CultureInfo; using System.Text; class Program { private static bool chmin<T>(ref T num, T val) where T : IC...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Convert; using static System.Math; // using static System.Globalization.CultureInfo; using System.Text; class Program { private static bool chmin<T>(ref T num, T val) where T : IC...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33]]
8
2,191
6
using System; class Program { static void Main(string[] args) { var num = Convert.ToInt32(Console.ReadLine()); if (num % 2 == 0) Console.WriteLine(num / 2); else Console.WriteLine(num * 2); } }
using System; class Program { static void Main(string[] args) { var num = Convert.ToInt32(Console.ReadLine()); if (num % 2 == 0) Console.WriteLine(num); else Console.WriteLine(num * 2); } }
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
59
2
using System; namespace A { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); if (N % 2 == 0) Console.WriteLine("N"); else Console.WriteLine(2 * N); } } }
using System; namespace A { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); if (N % 2 == 0) Console.WriteLine(N); else Console.WriteLine(2 * N); } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62]]
8
63
2
using System; class Program { static void Main() { int s = int.Parse(Console.ReadLine()); int a = 0; if (s % 2 == 0) { a = 2; } else { a = s * 2; } Console.WriteLine(a); } }
using System; class Program { static void Main() { int s = int.Parse(Console.ReadLine()); int a = 0; if (s % 2 == 0) { a = s; } else { a = s * 2; } Console.WriteLine(a); } }
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22]]
8
63
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionD { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionD { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95]]
8
206
3
using System; namespace B___Maximum_Difference { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var input = Console.ReadLine().Split(' '); var a = new int[n]; var b = 0; for (var i = 0; i < n; i++) { a[i] = int.Parse(input[i]); } for (var i ...
using System; namespace B___Maximum_Difference { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var input = Console.ReadLine().Split(' '); var a = new int[n]; var b = 0; for (var i = 0; i < n; i++) { a[i] = int.Parse(input[i]); } for (var i ...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
176
2
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; using static System.Console; using static System.Math; class Z { static void Main() => new K(); } class K { int F => int.Parse(Str); ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; using static System.Console; using static System.Math; class Z { static void Main() => new K(); } class K { int F => int.Parse(Str); ...
[["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217]]
8
421
5
using System; using System.Linq; public class B { static void Main(string[] args) { var inputs = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); Console.WriteLine(inputs.Max() - inputs.Min()); } }
using System; using System.Linq; public class B { static void Main(string[] args) { Console.ReadLine(); var inputs = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); Console.WriteLine(inputs.Max() - inputs.Min()); } }
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
66
6
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] AElem = Console.ReadLine().Split(' '); List<int> A = new List<int>(); for (int i = 0; i < N + 1; i++) { A.Add(int.Parse(AElem[i])); } A.Sort...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] AElem = Console.ReadLine().Split(' '); List<int> A = new List<int>(); for (int i = 0; i < N; i++) { A.Add(int.Parse(AElem[i])); } A.Sort(); ...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
144
2
using System; using System.Collections.Generic; using System.Linq; namespace Test { class MainClass { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var s = Console.ReadLine().Split(' '); var a = new int[100]; int maxval = -1; int minval = 101; for (int i = 0; i < n;...
using System; using System.Collections.Generic; using System.Linq; namespace Test { class MainClass { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var s = Console.ReadLine().Split(' '); var a = new int[100]; int maxval = -1; int minval = 1000000001; for (int i = 0;...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
152
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 atPra { class Class1 { static void Main() { var N = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(null); ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace atPra { class Class1 { static void Main() { var N = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(null); ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
209
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = int.Parse(Console.ReadLine()); var array = Console.ReadLine().Split(' '); var list = new List<long>(); for (var i = 1; i < array.Length + 1; i++) { var n = long.Par...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = int.Parse(Console.ReadLine()); var array = Console.ReadLine().Split(' '); var list = new List<long>(); for (var i = 1; i < array.Length + 1; i++) { var n = long.Par...
[["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 25]]
8
214
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp90 { class Program { static long N; static long[] A; static void Main(string[] args) { N = long.Parse(Console.ReadLine()); A = Console.ReadLine().Split().Select(long.P...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp90 { class Program { static long N; static long[] A; static void Main(string[] args) { N = long.Parse(Console.ReadLine()); A = Console.ReadLine().Split().Select(long.P...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
275
6
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Diagnostics; // var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); namespace AtCoderSolve { class Solve { const int mod = 1000000007; static void...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Diagnostics; // var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); namespace AtCoderSolve { class Solve { const int mod = 1000000007; static void...
[["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73]]
8
297
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Convert; using static System.Console; using static System.Math; class MainClass { static void Main(string[] args) { Answer(); } public static void Answer() {  var line = Console.ReadLine().Trim(); var N...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Convert; using static System.Console; using static System.Math; class MainClass { static void Main(string[] args) { Answer(); } public static void Answer() {  var line = Console.ReadLine().Trim(); var N...
[["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
291
2
using System; class Program { static void Main() { int s = int.Parse(Console.ReadLine()); int[] q = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); double a = 100000000000000; int c2 = 2, c1 = 1, c3 = 3; int n1 = q[0], n2 = 0, n3 = q[2] + q[1], n4 = 0; for (int i = 3; i < s; i++) ...
using System; class Program { static void Main() { int s = int.Parse(Console.ReadLine()); int[] q = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); double a = 100000000000000; int c2 = 2, c1 = 1, c3 = 3; double n1 = q[0], n2 = 0, n3 = q[2] + q[1], n4 = 0; for (int i = 3; i < s; i+...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199]]
8
315
4
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
455
4
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
1,367
2
using System; namespace ABC101A { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int i = 0; for (int a = 0; a < 4; a++) { int y = 0; y = y + i; if (s.Substring(y, 1) == "+") i = i + 1; else i = i - 1; } Console.WriteLine(i)...
using System; namespace ABC101A { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int i = 0; for (int a = 0; a < 4; a++) { int y = 0; y = y + a; if (s.Substring(y, 1) == "+") { i = i + 1; } else { i = i - 1; } } Consol...
[["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 46]]
8
104
6
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace FertiLib.Contest.B { static class Program { public static void Solve(Scanner cin) { int n = cin.ReadInt(); YesNo(n / n.ToString().Select(x => int.Parse(x.ToString())).Sum() == 0); ...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace FertiLib.Contest.B { static class Program { public static void Solve(Scanner cin) { int n = cin.ReadInt(); YesNo(n % n.ToString().Select(x => int.Parse(x.ToString())).Sum() == 0); ...
[["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 85], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 109]]
8
2,660
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(); } public static boo...
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(); } public static boo...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22]]
8
228
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp35 { class Program { static void Main(string[] args) { string S = Console.ReadLine(); // Sの桁数 int S_len = S.Length; int sum = 0; for (int i = 0; i < S_len; i++...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp35 { class Program { static void Main(string[] args) { string S = Console.ReadLine(); // Sの桁数 int S_len = S.Length; int sum = 0; for (int i = 0; i < S_len; i++...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
137
4
using System; using System.Linq; class Program { static void Main() { uint N = uint.Parse(Console.ReadLine()); uint n = N; uint sum = 0; while (n > 0) { sum += n % 10; n /= 10; } bool res = N % sum == 0; Console.WriteLine(res ? "YES" : "NO"); } }
using System; using System.Linq; class Program { static void Main() { uint N = uint.Parse(Console.ReadLine()); uint n = N; uint sum = 0; while (n > 0) { sum += n % 10; n /= 10; } bool res = N % sum == 0; Console.WriteLine(res ? "Yes" : "No"); } }
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
85
4
using System; namespace AtCoder { class Program { static void Main(string[] args) { int X = int.Parse(Console.ReadLine()); int Y = 0; int T = X; if (T > 0) { Y += T % 10; T = T / 10; } if (X % Y == 0) Console.WriteLine("Yes"); else Console.WriteLine("No"); } }...
using System; namespace AtCoder { class Program { static void Main(string[] args) { int X = int.Parse(Console.ReadLine()); int Y = 0; int T = X; while (T > 0) { Y += T % 10; T = T / 10; } if (X % Y == 0) Console.WriteLine("Yes"); else Console.WriteLine("No"); ...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89]]
8
93
2
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long s = 0; long NN = N; for (int i = 0; i < 9; i++) { s += NN % 10; NN /= 10; } if (N % s == 0) { Console.WriteLine...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long s = 0; long NN = N; for (int i = 0; i < 10; i++) { s += NN % 10; NN /= 10; } if (N % s == 0) { Console.WriteLin...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]]
8
111
2
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var s = n.ToString(); var sum = 0; for (int i = 0; i < s.Length; i++) { sum += int.Parse(s[i].ToString()); } if (sum % n == 0) Console.WriteLine("Yes"); else Cons...
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var s = n.ToString(); var sum = 0; for (int i = 0; i < s.Length; i++) { sum += int.Parse(s[i].ToString()); } if (n % sum == 0) Console.WriteLine("Yes"); else Cons...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]]
8
109
4
using System; namespace c { class MainClass { public static void Main(string[] args) { string[] NK = Console.ReadLine().Split(' '); string[] A = Console.ReadLine().Split(' '); int N = int.Parse(NK[0]); int K = int.Parse(NK[1]); if (K - 1 == 1) { Console.WriteLine(N - 1); } else { ...
using System; namespace c { class MainClass { public static void Main(string[] args) { string[] NK = Console.ReadLine().Split(' '); string[] A = Console.ReadLine().Split(' '); int N = int.Parse(NK[0]); int K = int.Parse(NK[1]); if (K - 1 == 1) { Console.WriteLine(N - 1); } else { ...
[["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35]]
8
140
6
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { //入力を受け取る var NK = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int N = NK[0]; int K = NK[1]; var A = Con...
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 NK = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int N = NK[0]; N = N - 1; int K = NK[1]; ...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
186
6
using System; class ProblemC { static void Main() { string[] s = Console.ReadLine().Split(' '); Console.ReadLine(); int N = int.Parse(s[0]); int K = int.Parse(s[1]); Console.WriteLine((N - 1) / (K - 1)); } }
using System; class ProblemC { static void Main() { string[] s = Console.ReadLine().Split(' '); Console.ReadLine(); int N = int.Parse(s[0]); int K = int.Parse(s[1]); Console.WriteLine((N - 2) / (K - 1) + 1); } }
[["-", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
81
4
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.IO; using System.Linq; using System.Diagnostics; using System.Globalization; using static System.Console; using static System.Math; namespace abc101_c { class Program { static void Main(string[] args) { int[...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.IO; using System.Linq; using System.Diagnostics; using System.Globalization; using static System.Console; using static System.Math; namespace abc101_c { class Program { static void Main(string[] args) { int[...
[["+", 0, 11, 12, 16, 12, 16, 12, 23, 0, 24], ["+", 12, 16, 12, 16, 12, 23, 0, 16, 17, 33], ["+", 12, 16, 12, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 11, 12, 16, 12, 16, 12, 23, 0, 25]]
8
276
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtcoderTemplateForCSharp { public class Program { public static void Main(string[] args) { var s = Console.ReadLine(); var n = int.Parse(s.Split(' ').First()); var k = int.Parse(s...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtcoderTemplateForCSharp { public class Program { public static void Main(string[] args) { var s = Console.ReadLine(); var n = int.Parse(s.Split(' ').First()); var k = int.Parse(s...
[["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 25]]
8
181
2
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int a = int.Parse(s[0]); int b = int.Parse(s[1]); string ss = Console.ReadLine(); a -= b; int buf = 1; while (a >= 0) { a -= b - 1; buf++; } ...
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int a = int.Parse(s[0]); int b = int.Parse(s[1]); string ss = Console.ReadLine(); a -= b; int buf = 1; while (a > 0) { a -= b - 1; buf++; } ...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47]]
8
108
2
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var n = ni(); var cands = new List<lon...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var n = ni(); var cands = new List<lon...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98]]
8
1,354
6
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) { // SolveA(args); // SolveB(args); // SolveC(args); SolveD(args); } static void SolveA(string[] args) { s...
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) { // SolveA(args); // SolveB(args); // SolveC(args); SolveD(args); } static void SolveA(string[] args) { s...
[["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22]]
8
676
6
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; using static System.Globalization.CultureInfo; class Program { static void Main(string[] args) { var nk = Array.ConvertAll(ReadLine().Split(' '), int.Parse); ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; using static System.Globalization.CultureInfo; class Program { static void Main(string[] args) { var nk = Array.ConvertAll(ReadLine().Split(' '), int.Parse); ...
[["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
162
2
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, 52, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 52, 8, 196, 0, 7, 15, 16, 12, 203]]
8
1,465
2
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 A, B; var word = Console.ReadLine().Split(' '); A = int.Parse(word[0]); B = int.Parse(word[1]); if (A ...
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 A, B; var word = Console.ReadLine().Split(' '); A = int.Parse(word[0]); B = int.Parse(word[1]); if (A ...
[["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 72], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 60], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22]]
8
132
6
using System; using System.Linq; namespace A { class Program { static void Main(string[] args) { var ab = Console.ReadLine().Split().Select(int.Parse).ToArray(); Console.WriteLine(ab.Max() >= 8 ? ":(" : "Yay!"); } } }
using System; using System.Linq; namespace A { class Program { static void Main(string[] args) { var ab = Console.ReadLine().Split().Select(int.Parse).ToArray(); Console.WriteLine(ab.Max() > 8 ? ":(" : "Yay!"); } } }
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47]]
8
72
2
using System; using System.Linq; class Program { static void Main(string[] args) { int a; int b; int[] imp = Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray(); a = imp[0]; b = imp[0]; string ans; if (a < 9 && b < 9) ans = "Yay!"; else ans = ":(";...
using System; using System.Linq; class Program { static void Main(string[] args) { int a; int b; int[] imp = Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray(); a = imp[0]; b = imp[1]; string ans; if (a < 9 && b < 9) ans = "Yay!"; else ans = ":(";...
[["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203]]
8
110
2
using System; namespace AtCoder { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int A = int.Parse(s[0]); int B = int.Parse(s[1]); if (A > 6 || B > 6) { Console.WriteLine(":("); } else Console.WriteLine("Yay!"); } } }
using System; namespace AtCoder { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int A = int.Parse(s[0]); int B = int.Parse(s[1]); if (A > 8 || B > 8) { Console.WriteLine(":("); } else Console.WriteLine("Yay!"); } } }
[["-", 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
97
4
using System; using System.Linq; public class c { public static void Main() { int[] AB = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); if (AB[0] > 8 || AB[1] > 8) Console.WriteLine(":("); else Console.WriteLine("Yay"); } }
using System; using System.Linq; public class c { public static void Main() { int[] AB = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); if (AB[0] > 8 || AB[1] > 8) Console.WriteLine(":("); else Console.WriteLine("Yay!"); } }
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
85
2
using System; namespace ABC100_A_Happy_Birthday { internal class Program { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); if (a <= 8 || b <= 8) { Console.WriteLine("Yay!"); } else { Co...
using System; namespace ABC100_A_Happy_Birthday { internal class Program { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); if (a <= 8 && b <= 8) { Console.WriteLine("Yay!"); } else { Co...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98]]
8
101
2
using System; namespace Csharp_Test { class Program { static void Main(string[] args) { string[] temp = Console.ReadLine().Split(' '); int A = int.Parse(temp[0]); int B = int.Parse(temp[1]); string ans = "Yay!"; if (A > 9 || B > 9) { ans = ":("; } Console.WriteLine(ans); } } }
using System; namespace Csharp_Test { class Program { static void Main(string[] args) { string[] temp = Console.ReadLine().Split(' '); int A = int.Parse(temp[0]); int B = int.Parse(temp[1]); string ans = "Yay!"; if (A > 8 || B > 8) { ans = ":("; } Console.WriteLine(ans); } } }...
[["-", 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
98
4
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var AB = ReadLine().Split().Select(int.Parse).ToArray(); var A = AB[0]; var B = AB[1]; WriteLine(A < 7 && B < 7 ? "Yay!" : ":("); } }
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var AB = ReadLine().Split().Select(int.Parse).ToArray(); var A = AB[0]; var B = AB[1]; WriteLine(A < 9 && B < 9 ? "Yay!" : ":("); } }
[["-", 0, 28, 0, 41, 15, 16, 31, 16, 12, 203], ["+", 0, 28, 0, 41, 15, 16, 31, 16, 12, 203], ["-", 0, 28, 0, 41, 15, 16, 12, 16, 12, 203], ["+", 0, 28, 0, 41, 15, 16, 12, 16, 12, 203]]
8
89
4
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var p = Console.ReadLine().Split(' '); long A = long.Parse(p[0]); long B = long.Parse(p[1]); if (A <= 8 || B <= 8) { Console.WriteLine("Yay!"); } else { Console.WriteL...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var p = Console.ReadLine().Split(' '); long A = long.Parse(p[0]); long B = long.Parse(p[1]); if (A <= 8 && B <= 8) { Console.WriteLine("Yay!"); } else { Console.WriteL...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98]]
8
105
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderTest001 { class Program { static void Main(string[] args) { new Program().Calc(); } void Calc() { // read string[] tmpStr = Console.ReadLine().Split(' '); int a = int.P...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderTest001 { class Program { static void Main(string[] args) { new Program().Calc(); } void Calc() { // read string[] tmpStr = Console.ReadLine().Split(' '); int a = int.P...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
297
2
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[] A = Console.ReadLine().Split(' ').Select(gg => int.Parse(gg)).ToArray(); int D = A[0]; int N = A[1]; int R = Convert.ToInt32(Math.Pow(100, D)); if (N == 100) { R += 1; ...
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[] A = Console.ReadLine().Split(' ').Select(gg => int.Parse(gg)).ToArray(); int D = A[0]; int N = A[1]; int R = Convert.ToInt32(Math.Pow(100, D)); if (N == 100) { N += 1; ...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22]]
8
132
2
using System; using System.Text; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int d = sc.NextInt(); int n = sc.NextInt(); long ans = n == 100 ? 101 : 100; for (int i = 0; i < d; i++) { ans *= 100; } Console.WriteLine(ans); } public s...
using System; using System.Text; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int d = sc.NextInt(); int n = sc.NextInt(); long ans = n == 100 ? 101 : n; for (int i = 0; i < d; i++) { ans *= 100; } Console.WriteLine(ans); } public sta...
[["-", 0, 198, 0, 200, 0, 212, 0, 41, 75, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 75, 22]]
8
417
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) { ...
[["-", 75, 57, 75, 196, 0, 57, 15, 16, 12, 203], ["+", 75, 57, 75, 196, 0, 57, 15, 16, 12, 203]]
8
1,127
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var D = sc.ReadInt(); var N = sc.ReadInt(); var k = (long)Math.Pow(100, D); var ans = k * N; if (D == 0 && N == 100) { ans++; } Console.WriteLine(ans); } static S...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var D = sc.ReadInt(); var N = sc.ReadInt(); var k = (long)Math.Pow(100, D); var ans = k * N; if (N == 100) { ans += k; } Console.WriteLine(ans); } static Scanner ...
[["-", 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, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22]]
8
1,063
7
using System; using System.Collections.Generic; using System.Linq; struct input { public long D; public long N; } class MainClass { static input input; public static void Main(string[] args) { var temp = Console.ReadLine().Split(' ').Select(long.Parse); input.D = temp.ElementAt(0); input.N = tem...
using System; using System.Collections.Generic; using System.Linq; struct input { public long D; public long N; } class MainClass { static input input; public static void Main(string[] args) { var temp = Console.ReadLine().Split(' ').Select(long.Parse); input.D = temp.ElementAt(0); input.N = tem...
[["-", 75, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 75, 57, 15, 16, 12, 16, 31, 16, 12, 203]]
8
196
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(...
[["-", 75, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 75, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
234
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; using Pair = System.Tuple<long, long>; /// <su...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; using Pair = System.Tuple<long, long>; /// <su...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
3,420
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp63 { class Program { static void Main(string[] args) { var st = Console.ReadLine().Split().Select(int.Parse).ToArray(); int D = st[0]; int N = st[1]; if (N % 100 !...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp63 { class Program { static void Main(string[] args) { var st = Console.ReadLine().Split().Select(int.Parse).ToArray(); int D = st[0]; int N = st[1]; if (N % 100 !...
[["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]]
8
133
2
using System; using System.Linq; namespace ABC { using System.Collections.Generic; #if USE_STUB using static Stub.Console; #else using static System.Console; #endif using static System.Math; public class Program { static void Main(string[] args) { var DN = ReadLine().Split().Select(int.Parse).ToArray(); var ...
using System; using System.Linq; namespace ABC { using System.Collections.Generic; #if USE_STUB using static Stub.Console; #else using static System.Console; #endif using static System.Math; public class Program { static void Main(string[] args) { var DN = ReadLine().Split().Select(int.Parse).ToArray(); var ...
[["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]]
8
121
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; class P { static void Main() { int d = ReadInt(); int n = ReadInt(); if (n != 100) Write(n); else Write(101); for (int i = 0; i < d; i++) Write(0); WriteLine(); } //以下標準出入力用のメソッド [Syst...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class P { static void Main() { int d = ReadInt(); int n = ReadInt(); if (n != 100) Write(n); else Write(101); for (int i = 0; i < 2 * d; i++) Write(0); WriteLine(); } //以下標準出入力用のメソッド [...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 48]]
8
1,269
2
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderBeginnerContest100 { class QB { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); long D = long.Parse(s[0]); long N = long.Parse(s[1]); long a = (long)Math.Pow(100, D) * N; if (D == 0 &...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderBeginnerContest100 { class QB { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); long D = long.Parse(s[0]); long N = long.Parse(s[1]); long a = (long)Math.Pow(100, D) * N; if (D == 0 &...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
165
4
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int d = int.Parse(input[0]); int N = int.Parse(input[1]); if (N == 100) N = 99; Console.WriteLine(Math.Pow(100, d) * N); // 文字列の入力 // string s = ...
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int d = int.Parse(input[0]); int N = int.Parse(input[1]); if (N == 100) N = 101; Console.WriteLine(Math.Pow(100, d) * N); // 文字列の入力 // string s =...
[["-", 8, 196, 0, 57, 64, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 12, 203]]
8
103
2
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Program { internal static void Main(string[] args) { int[] inp = ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); if (inp[1] == 100) { switch (inp[0]) { case 0: WriteLine(101);...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Program { internal static void Main(string[] args) { int[] inp = ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); if (inp[1] == 100) { switch (inp[0]) { case 0: WriteLine(101);...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
141
2
using System; class MainClass { static void Main() { string[] s = Console.ReadLine().Split(' '); int d = int.Parse(s[0]); int n = int.Parse(s[1]); if (n != 100) Console.WriteLine(n * Math.Pow(100, d)); else Console.WriteLine(n * Math.Pow(101, d)); } }
using System; class MainClass { static void Main() { string[] s = Console.ReadLine().Split(' '); int d = int.Parse(s[0]); int n = int.Parse(s[1]); if (n != 100) Console.WriteLine(n * Math.Pow(100, d)); else Console.WriteLine((n + 1) * Math.Pow(100, d)); } }
[["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["-", 0, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 16, 12, 213, 3, 4, 0, 28, 0, 203]]
8
97
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int D = int.Parse(s[0]); int N = int.Parse(s[1]); int ans; if (D == 0) { ans =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int D = int.Parse(s[0]); int N = int.Parse(s[1]); int ans; if (D == 0) { ans =...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203]]
8
179
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { private static string Read() { return Console.ReadLine(); } private static int ReadInt() { return int.Parse(Read()); } private static long ReadLong() { return long.Parse(Read()); } private ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { private static string Read() { return Console.ReadLine(); } private static int ReadInt() { return int.Parse(Read()); } private static long ReadLong() { return long.Parse(Read()); } private ...
[["-", 0, 212, 0, 41, 15, 23, 0, 16, 17, 60], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 17, 79]]
8
250
2
using System; using System.Collections.Generic; using System.Linq; class MainClass { public static void Main() { var str = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var d = str[0]; var n = str[1]; if (d == 0) { if (n != 100) Console.WriteLine(n); else { ...
using System; using System.Collections.Generic; using System.Linq; class MainClass { public static void Main() { var str = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var d = str[0]; var n = str[1]; if (d == 0) { if (n != 100) Console.WriteLine(n); else { ...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
174
2
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int D = int.Parse(str[0]); int N = int.Parse(str[1]); int ans = N; if (N == 100) { N += 1; } if (D == 1) { ans *= 100; } else if (D =...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int D = int.Parse(str[0]); int N = int.Parse(str[1]); int ans = N; if (N == 100) { ans += 1; } if (D == 1) { ans *= 100; } else if (D...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22]]
8
115
2
using System; using System.Linq; namespace abc100_b { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); int n = (int)Math.Pow(10, x[0]); Console.WriteLine(x[1] == 100 ? n * (x[1] + 1) : n * x[1]); } } }
using System; using System.Linq; namespace abc100_b { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); int n = (int)Math.Pow(100, x[0]); Console.WriteLine(x[1] == 100 ? n * (x[1] + 1) : n * x[1]); } } }
[["-", 0, 74, 51, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 74, 51, 213, 3, 4, 0, 28, 0, 203]]
8
101
2
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var DN = ReadLine().Split().Select(int.Parse).ToArray(); var D = DN[0]; var N = DN[1]; if (D == 0 && N != 100) WriteLine(N); else if (D == 0 && N == 100) ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var DN = ReadLine().Split().Select(int.Parse).ToArray(); var D = DN[0]; var N = DN[1]; if (D == 0 && N != 100) WriteLine(N); else if (D == 0 && N == 100) ...
[["-", 75, 57, 75, 57, 15, 16, 12, 16, 17, 79], ["+", 75, 57, 75, 57, 15, 16, 12, 16, 17, 60]]
8
157
2
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
[["-", 0, 210, 8, 196, 0, 52, 15, 16, 17, 79], ["-", 0, 210, 8, 196, 0, 52, 15, 16, 12, 203], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 12, 203], ["+", 0, 210, 8, 196, 0, 52, 15, 16, 17, 60], ["+", 0, 210, 8, 196, 0, 52, 15, 16, 12, 203]]
8
281
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp28 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int ans = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp28 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int ans = ...
[["-", 8, 196, 0, 52, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 31, 22]]
8
146
2
using System; using System.Collections.Generic; using System.Linq; #if !DEBUG using System.IO; #endif public class Program { public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); #endif #en...
using System; using System.Collections.Generic; using System.Linq; #if !DEBUG using System.IO; #endif public class Program { public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); #endif #en...
[["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 90]]
8
1,683
2
using System; using System.Collections.Generic; using System.Linq; struct input { public long N; public long M; } struct Cake { public long x; public long y; public long z; public Cake(long _x, long _y, long _z) { x = _x; y = _y; z = _z; } } class MainClass { static input input; public ...
using System; using System.Collections.Generic; using System.Linq; struct input { public long N; public long M; } struct Cake { public long x; public long y; public long z; public Cake(long _x, long _y, long _z) { x = _x; y = _y; z = _z; } } class MainClass { static input input; public ...
[["-", 8, 196, 0, 37, 0, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 37, 0, 16, 31, 16, 17, 72], ["-", 0, 218, 8, 196, 0, 37, 0, 16, 17, 72], ["+", 0, 218, 8, 196, 0, 37, 0, 16, 17, 33]]
8
785
8
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; private const long INFINITY = 9223372036854775807; public static void Main() { int N = NextInt(); int M = NextInt(); //各方向探索 long[] x = new long[N]; l...
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; private const long INFINITY = 9223372036854775807; public static void Main() { int N = NextInt(); int M = NextInt(); //各方向探索 long[] x = new long[N]; l...
[["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25]]
8
1,111
5
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; using System.Threading.Tasks; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } S...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; using System.Threading.Tasks; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } S...
[["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22]]
8
716
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProgrammingContest { class Writer : IDisposable { private readonly System.IO.TextWriter writer; private StringBuilder sb; private readonly bool isReactive; public Writer(string path) : this(new System.IO.StreamWrite...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProgrammingContest { class Writer : IDisposable { private readonly System.IO.TextWriter writer; private StringBuilder sb; private readonly bool isReactive; public Writer(string path) : this(new System.IO.StreamWrite...
[["+", 3, 4, 0, 28, 0, 218, 8, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 218, 8, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 218, 8, 74, 0, 25], ["-", 3, 4, 0, 28, 0, 218, 8, 241, 0, 203], ["+", 0, 28, 0, 218, 8, 74, 51, 241, 0, 250], ["-", 8, 196, 0, 57, 15, 16, 12, 241, 0, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 250]]
8
1,718
7
using System; using System.Linq; namespace A { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); Console.WriteLine(n > 999 ? "ABC" : "ABC"); } } }
using System; using System.Linq; namespace A { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); Console.WriteLine(n > 999 ? "ABD" : "ABC"); } } }
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222]]
8
58
2
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace ConsoleApp1 { class Program { static void Main(string[] args) { A(); } static void A() { var N = ReadInt(); if (N < 1000) Println($"ABC{N:000}"); else Println($"ABD{N-999:000}"); } s...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace ConsoleApp1 { class Program { static void Main(string[] args) { A(); } static void A() { var N = ReadInt(); if (N < 1000) Println("ABC"); else Println("ABD"); } static List<long> Rea...
[["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 295], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 45], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 22], ["-", 0, 28, 0, 283, 0, 284, 0, 298, 0, 102], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 46], ["-", 0, 28, 0, 283, 0, 284, 0, 16, 31, 22], ["-", 0, 28, 0...
8
671
16
using System; using static System.Console; class Program { public static void Main() { int n = int.Parse(ReadLine()); if (n < 100) { WriteLine("ABC"); } else { WriteLine("ABD"); } } }
using System; using static System.Console; class Program { public static void Main() { int n = int.Parse(ReadLine()); if (n < 1000) { WriteLine("ABC"); } else { WriteLine("ABD"); } } }
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]]
8
58
2
using System; namespace Murasa { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); String con = "AB"; if (N >= 1000) { N -= 999; Console.WriteLine(con + "D" + N); } else { Console.WriteLine(con + "C" + N); } } } }
using System; namespace Murasa { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); String con = "AB"; if (N >= 1000) { N -= 999; Console.WriteLine(con + "D"); } else { Console.WriteLine(con + "C"); } } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
84
4