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.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace FertiLib.Contest.C { static class Program { public static void Solve(Scanner cin) { var (i, o, t, j, l, s, z) = cin.ReadValue<long, long, long, long, long, long, long>(); lon...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace FertiLib.Contest.C { static class Program { public static void Solve(Scanner cin) { var (i, o, t, j, l, s, z) = cin.ReadValue<long, long, long, long, long, long, long>(); lon...
[["-", 0, 212, 0, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 212, 0, 16, 12, 16, 31, 16, 31, 22]]
8
2,740
2
using System; using System.IO; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Diagnostics; using static System.Math; using MethodImplAttribute = System.Runtime.CompilerServices.MethodImplAttr...
using System; using System.IO; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Diagnostics; using static System.Math; using MethodImplAttribute = System.Runtime.CompilerServices.MethodImplAttr...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]]
8
228
2
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; // using Debug; // using static System.Globalization.CultureInfo; using System.Text; class Program { static void Main(string[] args) { Solve(); // WriteLine(So...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; // using Debug; // using static System.Globalization.CultureInfo; using System.Text; class Program { static void Main(string[] args) { Solve(); // WriteLine(So...
[["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22]]
8
635
2
using System; using System.Collections.Generic; using System.Linq; class Program { const int mod = 1000000007; const long o = 1; static void Main() { Sc sc = new Sc(); int[] a = sc.Ia; long b = a[1], c = a[1]; c += (a[0] & -2) + (a[3] & -2) + (a[4] & -2); if (a[0] % 2 == 1 && a[3] % 2 == 1 && ...
using System; using System.Collections.Generic; using System.Linq; class Program { const int mod = 1000000007; const long o = 1; static void Main() { Sc sc = new Sc(); long[] a = sc.La; long b = a[1], c = a[1]; c += (a[0] & -2) + (a[3] & -2) + (a[4] & -2); if (a[0] % 2 == 1 && a[3] % 2 == 1 &&...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22]]
8
423
4
using System; using System.Collections.Generic; using System.Linq; namespace Test { class Program { static void Main(string[] args) { long[] x = Console.ReadLine().Split().Select(long.Parse).ToArray(); long ret = x[1]; long[] a = new long[] { x[0], x[3], x[4] }; long aret = 0; aret += a[0] / 2 * ...
using System; using System.Collections.Generic; using System.Linq; namespace Test { class Program { static void Main(string[] args) { long[] x = Console.ReadLine().Split().Select(long.Parse).ToArray(); long ret = x[1]; long[] a = new long[] { x[0], x[3], x[4] }; long aret = 0; aret += a[0] / 2 * ...
[["-", 3, 4, 0, 28, 0, 23, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 23, 0, 16, 12, 203]]
8
246
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Threading; using Pair = System.Collections.Generic.KeyValuePair<int, int>; class Program { public Program() {} static void Main(string[] args) { new Program().prog(); } Scanner cin; const int...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Threading; using Pair = System.Collections.Generic.KeyValuePair<int, int>; class Program { public Program() {} static void Main(string[] args) { new Program().prog(); } Scanner cin; const int...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
556
8
using System; using System.Text; using System.Collections.Generic; class Solve { public Solve() {} StringBuilder sb; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); Calc(); Console.Write(sb.ToString()); } void Calc() { string[] str =...
using System; using System.Text; using System.Collections.Generic; class Solve { public Solve() {} StringBuilder sb; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); Calc(); Console.Write(sb.ToString()); } void Calc() { string[] str =...
[["-", 0, 28, 0, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 12, 22]]
8
245
2
using System; using System.Collections.Generic; using System.Text; using System.Linq; class Program { public void Proc() { Reader.IsDebug = false; long[] inpt = Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray(); // I, O, T, J, L, S, Z this.ICount = inpt[0]; this.OCount =...
using System; using System.Collections.Generic; using System.Text; using System.Linq; class Program { public void Proc() { Reader.IsDebug = false; long[] inpt = Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray(); // I, O, T, J, L, S, Z this.ICount = inpt[0]; this.OCount =...
[["-", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22]]
8
377
2
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpression, ...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpression, ...
[["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 48], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 203]]
8
3,009
4
using System; namespace abc050A { class MainClass { public static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int A = int.Parse(str[0]); string B = (str[1]); int C = int.Parse(str[2]); if (B == "+") Console.WriteLine(A + C); else Console.WriteLine(A + C);...
using System; namespace abc050A { class MainClass { public static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int A = int.Parse(str[0]); string B = (str[1]); int C = int.Parse(str[2]); if (B == "+") Console.WriteLine(A + C); else Console.WriteLine(A - C);...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33]]
8
101
2
using System; using static System.Console; using static System.Math; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Template { static void Main(string[] args) { var data = IO.ReadStrArr(); if (data[1] == "+") WriteLine(int...
using System; using static System.Console; using static System.Math; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Template { static void Main(string[] args) { var data = IO.ReadStrArr(); if (data[1] == "+") WriteLine(int...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
304
4
using System; using System.Linq; class Program { static void Main(string[] args) { var AopB = Console.ReadLine().Split(' ').ToList(); Console.WriteLine(AopB[1] == "+" ? int.Parse(AopB[0]) + int.Parse(AopB[1]) : int.Parse(AopB[0]) - int.Parse(AopB[1])); } }
using System; using System.Linq; class Program { static void Main(string[] args) { var AopB = Console.ReadLine().Split(' ').ToList(); Console.WriteLine(AopB[1] == "+" ? int.Parse(AopB[0]) + int.Parse(AopB[2]) : int.Parse(AopB[0]) - int.Parse(AopB[2])); } }
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
97
4
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var input = Console.ReadLine().Split(' ').ToList(); if (input[1] == "+") { Console.WriteLine(int.Parse(input[0]) + int.Parse(input[2])); } else { Console.WriteLine(int.Parse(input[0]) + int....
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var input = Console.ReadLine().Split(' ').ToList(); if (input[1] == "+") { Console.WriteLine(int.Parse(input[0]) + int.Parse(input[2])); } else { Console.WriteLine(int.Parse(input[0]) - int....
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33]]
8
112
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, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 16, 31, 213, 3, 4, 0, 28, 0, 203]]
8
623
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var divide = new String[] { "dream", "dreamer", "erase", "eraser" }; // 入力 String input = Console.ReadLine(); String inputR = new String(input.Reverse().ToArray()); var divideR = ne...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var divide = new String[] { "dream", "dreamer", "erase", "eraser" }; // 入力 String input = Console.ReadLine(); String inputR = new String(input.Reverse().ToArray()); var divideR = ne...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
264
2
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, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
308
4
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; class Program { static void Main(string[] args) { var s = Console.ReadLine(); var reg = new Regex("^(dream|dreamer|erase|eraser)+$"); if (reg.IsMatch(s)) { Console.WriteLine("YES"); } else {...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; class Program { static void Main(string[] args) { var s = Console.ReadLine(); var reg = new Regex("^(dream|dreamer|erase|eraser)+$"); if (reg.IsMatch(s)) { 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
908
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var S = sc.ReadStr(); S = new string(S.Reverse().ToArray()); var dream = new string("dream".Reverse().ToArray()); var dreamer = new string("dreamer".Reverse().ToArray()); var erase...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var S = sc.ReadStr(); S = new string(S.Reverse().ToArray()); var dream = new string("dream".Reverse().ToArray()); var dreamer = new string("dreamer".Reverse().ToArray()); var erase...
[["-", 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
802
4
using System; using System.Text; public class A { public static void Main() { StringBuilder sb = new StringBuilder(Console.ReadLine()); sb.Replace("eracer", ""); sb.Replace("erace", ""); sb.Replace("dreamer", ""); sb.Replace("dream", ""); if (sb.ToString() == "") { Console.WriteLine("YE...
using System; using System.Text; public class A { public static void Main() { StringBuilder sb = new StringBuilder(Console.ReadLine()); sb.Replace("eraser", ""); sb.Replace("erase", ""); sb.Replace("dreamer", ""); sb.Replace("dream", ""); if (sb.ToString() != "") { Console.WriteLine("NO...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79]]
8
116
10
using System; using System.Collections; using System.Collections.Generic; namespace 練習問題 { class Program { static void Main(string[] args) { List<int> pattern = new List<int>(); var sw = new System.Diagnostics.Stopwatch(); string s = ""; debug Debug = new debug(); if (args.Length == 0) { De...
using System; using System.Collections; using System.Collections.Generic; namespace 練習問題 { class Program { static void Main(string[] args) { List<int> pattern = new List<int>(); var sw = new System.Diagnostics.Stopwatch(); string s = ""; debug Debug = new debug(); if (args.Length == 0) { De...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
1,140
6
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[] n = Console.ReadLine().Split().Select(int.Parse).ToArr...
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[] n = Console.ReadLine().Split().Select(int.Parse).ToArr...
[["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
309
2
using System; namespace oasobi { static class MainClass { public static void Main() { string S = Console.ReadLine(); string firstreplaced = S.Replace("dream", "A").Replace("erase", "T"); string secondreplaced = firstreplaced.Replace("Aer", "G").Replace("Tr", "C"); string final = secondrepl...
using System; namespace oasobi { static class MainClass { public static void Main() { string S = Console.ReadLine(); string firstreplaced = S.Replace("dream", "A").Replace("erase", "T"); string secondreplaced = firstreplaced.Replace("Aer", "G").Replace("Tr", "C"); string final = secondreplac...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
158
4
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; namespace AtCoderSolve { class Solve { const int mod = 1000000007; const int INF = 2147483647; const long SINF = 9223372036854775807; // static int N; st...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; namespace AtCoderSolve { class Solve { const int mod = 1000000007; const int INF = 2147483647; const long SINF = 9223372036854775807; // static int N; st...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["-", 8, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 8, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
446
4
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { class Program { static void Main(string[] args) { var cin = new Scanner(); var s = cin.next(); var words = new string[] { ...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { class Program { static void Main(string[] args) { var cin = new Scanner(); var s = cin.next(); var words = new string[] { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
1,261
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC049C_Daydream { class Program { static void Main(string[] args) { char[] c = Console.ReadLine().ToArray(); Array.Reverse(c); string s = new string(c); string[] words = new ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC049C_Daydream { class Program { static void Main(string[] args) { char[] c = Console.ReadLine().ToArray(); Array.Reverse(c); string s = new string(c); string[] words = new ...
[["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29]]
8
225
2
namespace AtCoder.ABC.C049 { using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.IO; using AtCoder.ABC.IO; public class C049 { public void Solve(Parser parser, Printer printer) { char[] s = parser.Scan().ToArray(); Array.Reverse(s); ...
namespace AtCoder.ABC.C049 { using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.IO; using AtCoder.ABC.IO; public class C049 { public void Solve(Parser parser, Printer printer) { char[] s = parser.Scan().ToArray(); Array.Reverse(s); ...
[["-", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["-", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222]]
8
1,117
4
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { static void Main(string[] args) { string s = Console.ReadLine(); while (s.Length >= 5) { int pos = s.Length; string ss = s.Substring(pos - 5, 5); ...
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { static void Main(string[] args) { string s = Console.ReadLine(); while (s.Length >= 5) { int pos = s.Length; string ss = s.Substring(pos - 5, 5); ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
268
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Beg049C { class Program { static void Main(string[] args) { var dividers = new string[4] { "dream", "dreamer", "erase", "eraser" }; var s = Console.ReadLine(); var n = s.Length; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Beg049C { class Program { static void Main(string[] args) { var dividers = new string[4] { "dream", "dreamer", "erase", "eraser" }; var s = Console.ReadLine(); var n = s.Length; ...
[["-", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["-", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222]]
8
201
4
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // 文字列の入力 var s = Console.ReadLine(); var targetList = new List<string>() { "dream", "dreamer", "erase", "eraser" }; // 逆さから読むとかぶらない・・・ s = string.Join("", s.Reverse()); ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // 文字列の入力 var s = Console.ReadLine(); var targetList = new List<string>() { "dream", "dreamer", "erase", "eraser" }; // 逆さから読むとかぶらない・・・ s = string.Join("", s.Reverse()); ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
227
4
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace NotFounds { public class Program { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenSta...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace NotFounds { public class Program { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenSta...
[["-", 0, 57, 64, 196, 0, 1, 0, 213, 63, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
718
5
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; #if !DEBUG using System.IO; #endif public class Program { public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var sw = new StreamWriter(Console.OpenStan...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; #if !DEBUG using System.IO; #endif public class Program { public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var sw = new StreamWriter(Console.OpenStan...
[["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
3,396
6
using System; using System.Linq; using System.Collections.Generic; using System.Text; using static System.Console; using static System.Math; class Program { static void Main(string[] args) { string s = ReadLine(); WriteLine(s.Replace("eraser", "") .Replace("erase", "") ...
using System; using System.Linq; using System.Collections.Generic; using System.Text; using static System.Console; using static System.Math; class Program { static void Main(string[] args) { string s = ReadLine(); WriteLine(s.Replace("eraser", "") .Replace("erase", "") ...
[["-", 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
110
4
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { string s = Console.ReadLine(); int i = 0; while (i < s.Length) { string subs = s.Substring(i, 5); if (subs == "dream") { i += 5; if (i < s.Length - 2 && s.Substring(i, 2) == "er"...
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { string s = Console.ReadLine(); int i = 0; while (i < s.Length - 4) { string subs = s.Substring(i, 5); if (subs == "dream") { i += 5; if (i < s.Length - 1 && s.Substring(i, 2) == ...
[["+", 8, 196, 0, 52, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 12, 203], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["-", 0, 23, 0, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 23, 0, 16, 31, 16, 12, 16, 12, 203], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17,...
8
211
8
using System; namespace arc065_a { class Program { static void Main(string[] args) { char[] a = Console.ReadLine().ToCharArray(); Array.Reverse(a); string s = new string(a); bool ret = true; while (s.Length != 0 && ret) { string x = s.Substring(0, 5); if (x == "maerd") s = s.S...
using System; namespace arc065_a { class Program { static void Main(string[] args) { char[] a = Console.ReadLine().ToCharArray(); Array.Reverse(a); string s = new string(a); bool ret = true; while (s.Length != 0 && ret) { string x = s.Substring(0, 5); if (x == "maerd") s = s.S...
[["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
212
6
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var input = Console.ReadLine().Split(' ').Select(x => x.Substring(1, 1)).ToList(); Console.WriteLine(input[0] + input[1] + input[2]); } }
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var input = Console.ReadLine().Split(' ').Select(x => x.Substring(0, 1)).ToList(); Console.WriteLine(input[0] + input[1] + input[2]); } }
[["-", 0, 218, 8, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 218, 8, 213, 3, 4, 0, 28, 0, 203]]
8
80
2
using System; using System.Collections.Generic; class Program { static string InputPattern = "Input3"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("AtCoder Beginner Contest"); // ABC } else if (InputPattern == "I...
using System; using System.Collections.Generic; class Program { static string InputPattern = "InputX"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("AtCoder Beginner Contest"); // ABC } else if (InputPattern == "I...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]]
8
199
2
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.B { static class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = ...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.B { static class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = ...
[["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]]
8
498
2
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { public class Solver { public void Solve() { var cin = new Scanner(); var a = cin.nextLong(); var b = cin.nextLong(); v...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { public class Solver { public void Solve() { var cin = new Scanner(); var a = cin.nextLong(); var b = cin.nextLong(); v...
[["-", 0, 41, 15, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]]
8
591
4
using System; using System.Collections.Generic; using System.Linq; using static AtCoder.Io; namespace AtCoder { class Program { static void Main() { var abx = ReadLongArray(); var a = abx[0]; var b = abx[1]; var x = abx[2]; Console.WriteLine($"{b / x - (a - 1) / x}"); } } public static class Io...
using System; using System.Collections.Generic; using System.Linq; using static AtCoder.Io; namespace AtCoder { class Program { static void Main() { var abx = ReadLongArray(); var a = abx[0]; var b = abx[1]; var x = abx[2]; Console.WriteLine($"{b / x - a / x + (a % x == 0 ? 1 : 0)}"); } } publi...
[["+", 0, 284, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 284, 0, 16, 31, 16, 12, 16, 17, 85], ["+", 0, 284, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 28, 0, 283, 0, 284, 0, 16, 17, 72], ["-", 0, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 17, 109], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 12, 22]...
8
251
14
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp8 { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); long a = long.Parse(input[0]); long b = long.Parse(input[1]); long x...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp8 { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); long a = long.Parse(input[0]); long b = long.Parse(input[1]); long x...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]]
8
143
2
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; public class Program { public static void Main() { string[] s = Console.ReadLine().Split(' '); long a = long.Parse(s[0]); long b = long.Parse(s[1]); long x = long.Parse(s[2]); long ans = 0; ans = ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; public class Program { public static void Main() { string[] s = Console.ReadLine().Split(' '); long a = long.Parse(s[0]); long b = long.Parse(s[1]); long x = long.Parse(s[2]); long ans = 0; ans = ...
[["-", 12, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 12, 203], ["-", 12, 16, 12, 23, 0, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]]
8
132
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test { class Program { static void Main(string[] args) { String[] str = Console.ReadLine().Split(' '); long A = long.Parse(str[0]); long B = long.Parse(str[1]); long X = long....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test { class Program { static void Main(string[] args) { String[] str = Console.ReadLine().Split(' '); long A = long.Parse(str[0]); long B = long.Parse(str[1]); long X = long....
[["+", 0, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 16, 12, 23, 0, 16, 31, 23, 0, 25]]
8
152
4
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() { Console.WriteLine(B / X - A / X + (B % X == 0 ? 1 : 0)); } long A, B, X; ...
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() { Console.WriteLine(B / X - A / X + (A % X == 0 ? 1 : 0)); } long A, B, X; ...
[["-", 12, 23, 0, 41, 15, 16, 31, 16, 31, 22], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 31, 22]]
8
348
2
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass { static void Main() { var nx = ReadLine().Split().Select(int.Parse).ToArray(); int N = nx[0]; long x = nx[1]; var r = ReadLine().Split().Select(long.Parse).ToArra...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass { static void Main() { var nx = ReadLine().Split().Select(int.Parse).ToArray(); int N = nx[0]; long x = nx[1]; var r = ReadLine().Split().Select(long.Parse).ToArra...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
207
4
using System; using System.Diagnostics; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main() { string[] cin = Console.ReadLine().Split(); long n = long.Parse(cin[0]); long x = long.Parse(cin[1]); long[] a = Console.ReadLine().Split().Select(i => l...
using System; using System.Diagnostics; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main() { string[] cin = Console.ReadLine().Split(); long n = long.Parse(cin[0]); long x = long.Parse(cin[1]); long[] a = Console.ReadLine().Split().Select(i => l...
[["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 20]]
8
252
2
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; class Program { static void Main() { var input = Console.ReadLine(); var equal = input[0] == input[input.Length - 1]; var even = input.Length % 2 == 0; Console.WriteLine(eq...
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; class Program { static void Main() { var input = Console.ReadLine(); var equal = input[0] == input[input.Length - 1]; var even = input.Length % 2 == 0; Console.WriteLine(eq...
[["-", 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
95
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; class Myon { static Scanner cin; public Myon() {} public static int Main() { // Console.SetOut(new Printer(Console.OpenStandardOutput())); cin = new...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; class Myon { static Scanner cin; public Myon() {} public static int Main() { // Console.SetOut(new Printer(Console.OpenStandardOutput())); cin = new...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
507
2
using System; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Collections.Generic; using System.Diagnostics; using System.Numerics; using Enu = System.Linq.Enumerable; public class Program { static readonly int Mod = (int)1e9 + 7; public void Solve() { ...
using System; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Collections.Generic; using System.Diagnostics; using System.Numerics; using Enu = System.Linq.Enumerable; public class Program { static readonly int Mod = (int)1e9 + 7; public void Solve() { ...
[["+", 31, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 16, 31, 23, 0, 25]]
8
935
2
using System; using System.Linq; //リストの使用 using System.Collections.Generic; class Program { static void Main() { long n = long.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。 long[][] nums = new long [2 * n][]; //座標と種類 long memo = 0; long answer = 1; long mod = 1000000007; for (long i = 0; ...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; class Program { static void Main() { long n = long.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。 long[][] nums = new long [2 * n][]; //座標と種類 long memo = 0; long answer = 1; long mod = 1000000007; for (long i = 0; ...
[["-", 0, 57, 64, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 108], ["-", 0, 57, 64, 1, 0, 11, 12, 16, 17, 33], ["-", 0, 57, 64, 1, 0, 11, 12, 16, 12, 203]]
8
307
8
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() { int cnt = 0; bool[] used = new bool[N]; for (int j = 30; j >= 0; j--)...
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() { int cnt = 0; bool[] used = new bool[N]; for (int j = 30; j >= 0; j--)...
[["-", 15, 16, 12, 16, 31, 23, 0, 16, 17, 67], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 17, 109], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 17, 151], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 12, 203], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25]]
8
554
6
using System; using System.Linq; namespace relay_a { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); Console.WriteLine(x[0] * x[1] / (x[0] + x[1])); } } }
using System; using System.Linq; namespace relay_a { class Program { static void Main(string[] args) { double[] x = Console.ReadLine().Split().Select(double.Parse).ToArray(); Console.WriteLine(x[0] * x[1] / (x[0] + x[1])); } } }
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]]
8
80
4
using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.Numerics; namespace contest { class contest { static void Main(string[] args) { string s = Console.ReadLine(); var cp = s.Reverse().ToArray(); bool ok = true; for (int i = 0; i < s.Length; i...
using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.Numerics; namespace contest { class contest { static void Main(string[] args) { string s = Console.ReadLine(); var cp = s.Reverse().ToArray(); bool ok = true; for (int i = 0; i < s.Length; i...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
220
4
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() { var ca = S.ToCharArray(); Array.Reverse(ca); int N = ca.Length; fo...
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() { var ca = S.ToCharArray(); Array.Reverse(ca); int N = ca.Length; fo...
[["-", 75, 57, 64, 1, 0, 11, 12, 252, 0, 253], ["+", 75, 57, 64, 1, 0, 11, 12, 252, 0, 253]]
8
445
4
using System; using System.Collections.Generic; namespace relay_c { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); long x = (long)Math.Pow(2, n); LinkedList<int> a = new LinkedList<int>(); for (long i = 0; i < x; i++) a.AddLast(int.Parse(Console.ReadLin...
using System; using System.Collections.Generic; namespace relay_c { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); long x = (long)Math.Pow(2, n); LinkedList<int> a = new LinkedList<int>(); for (long i = 0; i < x; i++) a.AddLast(int.Parse(Console.ReadLin...
[["+", 0, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22]]
8
171
2
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Text; public class Program { public void Proc() { Reader.IsDebug = false; int[] inpt = Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); this.CupCount = inpt[0]; ...
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Text; public class Program { public void Proc() { Reader.IsDebug = false; int[] inpt = Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); this.CupCount = inpt[0]; ...
[["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
817
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long h = sc.NextLong(); long w = sc.NextLong(); string answer = ""; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long h = sc.NextLong(); long w = sc.NextLong(); string answer = ""; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { ...
[["-", 205, 23, 0, 74, 51, 23, 0, 16, 12, 22], ["+", 205, 23, 0, 74, 51, 23, 0, 16, 12, 22], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 31, 22]]
8
441
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, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 212, 0, 74, 51, 23, 0, 16, 12, 22], ["+", ...
8
1,262
12
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(...
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
1,596
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, 230, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 230, 3, 4, 0, 28, 0, 16, 12, 203]]
8
1,609
2
using System; using System.Linq; class Program { static long mod = (long)1e9 + 1; static void Main() { int[] inputs = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = inputs[0], M = inputs[1]; if (N > M) { Console.WriteLine(0); return; } long[,,] dp = new long[M + ...
using System; using System.Linq; class Program { static long mod = (long)1e9 + 7; static void Main() { int[] inputs = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = inputs[0], M = inputs[1]; if (N > M) { Console.WriteLine(0); return; } long[,,] dp = new long[M + ...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
346
2
using System; using System.Text; using System.Collections.Generic; class Solve { int H, W; string[,] s; public Solve() {} StringBuilder sb; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); Read(); Calc(); Console.Write(sb.ToString());...
using System; using System.Text; using System.Collections.Generic; class Solve { int H, W; string[,] s; public Solve() {} StringBuilder sb; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); Read(); Calc(); Console.Write(sb.ToString());...
[["-", 0, 16, 31, 74, 51, 23, 0, 16, 31, 22], ["+", 0, 16, 31, 74, 51, 23, 0, 16, 31, 22]]
8
298
4
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using static System.Console; using static System.Math; //using CS_Contest.Graph; using CS_Contest.Loop; using CS_Contest.Utils; using static Nakov.IO.Cin; using static CS_Contest.IO.IO; using static CS_Contest...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using static System.Console; using static System.Math; //using CS_Contest.Graph; using CS_Contest.Loop; using CS_Contest.Utils; using static Nakov.IO.Cin; using static CS_Contest.IO.IO; using static CS_Contest...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
1,930
2
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { int m = Console.ReadLine().Split().Select(int.Parse).ToArray()[1]; int[] a = Console.ReadLine().Split().Select(int.Parse).OrderBy(x => x).ToArray(); int[] moda = new int[m]; int[] paircount = new ...
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { int m = Console.ReadLine().Split().Select(int.Parse).ToArray()[1]; int[] a = Console.ReadLine().Split().Select(int.Parse).OrderBy(x => x).ToArray(); int[] moda = new int[m]; int[] paircount = new ...
[["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
342
2
using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.Numerics; namespace contest { class contest { static void Main(string[] args) { var num = Console.ReadLine().Split().Select(int.Parse).ToArray(); var card = Console.ReadLine().Split().Select(int.Parse...
using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.Numerics; namespace contest { class contest { static void Main(string[] args) { var num = Console.ReadLine().Split().Select(int.Parse).ToArray(); var card = Console.ReadLine().Split().Select(int.Parse...
[["+", 75, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 75, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
578
2
using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; using System.Numerics; using System.Threading.Tasks; using System.Text.RegularExpressions; using Debug = System.Diagnostics.Debug; using System.Runtime.CompilerServices; using static System.M...
using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; using System.Numerics; using System.Threading.Tasks; using System.Text.RegularExpressions; using Debug = System.Diagnostics.Debug; using System.Runtime.CompilerServices; using static System.M...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38]]
8
359
6
using System; using System.Text; using System.Linq; using System.Collections.Generic; public class Program { public void Proc() { Reader.IsDebug = false; int[] inpt = Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); this.H = inpt[0]; this.W = inpt[1]; StringBuilder mp = ...
using System; using System.Text; using System.Linq; using System.Collections.Generic; public class Program { public void Proc() { Reader.IsDebug = false; int[] inpt = Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); this.H = inpt[0]; this.W = inpt[1]; StringBuilder mp = ...
[["-", 31, 23, 0, 16, 12, 23, 0, 16, 31, 203], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 31, 203], ["-", 0, 212, 0, 16, 12, 23, 0, 16, 31, 203], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 31, 203]]
8
683
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC037A { class Program { static void Main(string[] args) { string[] n = Console.ReadLine().Split(' '); int a = int.Parse(n[0]); int b = int.Parse(n[1]); int c = int.Parse(n[1...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC037A { class Program { static void Main(string[] args) { string[] n = Console.ReadLine().Split(' '); int a = int.Parse(n[0]); int b = int.Parse(n[1]); int c = int.Parse(n[2...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
172
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp44 { class Program { static void Main(string[] args) { var s = Console.ReadLine().Split(',').Select(int.Parse).ToArray(); Array.Sort(s); if (s[0] + s[1] == s[2]) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp44 { class Program { static void Main(string[] args) { var s = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); Array.Sort(s); if (s[0] + s[1] == s[2]) { ...
[["-", 205, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 205, 213, 3, 4, 0, 28, 0, 252, 0, 253]]
8
120
2
using System; using System.Collections.Generic; using System.Linq; using static AtCoder.Io; namespace AtCoder { class Program { static void Main() { var abc = ReadIntArray(); Console.WriteLine(abc.Sum() / 2 == abc.Max() ? "Yes" : "No"); } } public static class Io { public static string ReadString() => Co...
using System; using System.Collections.Generic; using System.Linq; using static AtCoder.Io; namespace AtCoder { class Program { static void Main() { var abc = ReadIntArray(); Console.WriteLine(abc.Sum() == abc.Max() * 2 ? "Yes" : "No"); } } public static class Io { public static string ReadString() => Co...
[["-", 0, 28, 0, 41, 15, 16, 31, 16, 17, 85], ["-", 0, 28, 0, 41, 15, 16, 31, 16, 12, 203], ["+", 0, 28, 0, 41, 15, 16, 12, 16, 17, 48], ["+", 0, 28, 0, 41, 15, 16, 12, 16, 12, 203]]
8
233
4
using System; using System.Linq; using static System.Console; class program { static void Main() { var input = ReadLine().Split(' ').Select(s => int.Parse(s)).ToList(); input.Sort(); var sorted = input; if (sorted[0] + sorted[1] == sorted[2]) { WriteLine("yes"); } else { WriteLine("...
using System; using System.Linq; using static System.Console; class program { static void Main() { var input = ReadLine().Split(' ').Select(s => int.Parse(s)).ToList(); input.Sort(); var sorted = input; if (sorted[0] + sorted[1] == sorted[2]) { WriteLine("Yes"); } else { WriteLine("...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
102
2
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var abc = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToList(); abc.Sort(); Console.WriteLine(abc[2] == abc[0] + abc[1] ? "YES" : "NO"); } } }
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var abc = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToList(); abc.Sort(); Console.WriteLine(abc[2] == abc[0] + abc[1] ? "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
93
4
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var abc = Console.ReadLine().Split(); var a = int.Parse(abc[0]); var b = int.Parse(abc[1]); var c = int.Parse(abc[2]); if (b + c == a || a + c == b || b + c...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var abc = Console.ReadLine().Split(); var a = int.Parse(abc[0]); var b = int.Parse(abc[1]); var c = int.Parse(abc[2]); if (b + c == a || a + c == b || b + a...
[["-", 0, 57, 15, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 22]]
8
125
2
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList(); input.Sort((x, y) => y - x); if (input[0] == input[1] + input[2]) { Console.WriteLine("YES"); } else { ...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList(); input.Sort((a, b) => b - a); if (input[0] == input[1] + input[2]) { Console.WriteLine("Yes"); } else { ...
[["-", 0, 28, 0, 218, 54, 55, 0, 220, 141, 22], ["+", 0, 28, 0, 218, 54, 55, 0, 220, 141, 22], ["-", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 218, 8, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 12, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 21...
8
113
12
using System; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var nums = new int[3]; for (var i = 0; i < 3; i++) { nums[i] = Convert.ToInt32(input[i]); } Array.Sort(nums); var result = nums[0] + nums[1] == nums[2] ? "YES" : "NO"; Console....
using System; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var nums = new int[3]; for (var i = 0; i < 3; i++) { nums[i] = Convert.ToInt32(input[i]); } Array.Sort(nums); var result = nums[0] + nums[1] == nums[2] ? "Yes" : "No"; Console....
[["-", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["-", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222]]
8
114
4
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace AtCoder { class MainClass { public static void Main(string[] args) { new MainClass().solve(); } Scanner cin = new Scanner(); int a, b, c; void so...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace AtCoder { class MainClass { public static void Main(string[] args) { new MainClass().solve(); } Scanner cin = new Scanner(); int a, b, c; void so...
[["-", 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
547
4
using System; using System.Linq; public class Test { public static void Main() { string[] str = Console.ReadLine().Split(' '); int a, b, c; a = int.Parse(str[0]); b = int.Parse(str[1]); c = int.Parse(str[2]); if (a == b + c || b == a + c || c == a + b) { Console.WriteLine("YES"); } ...
using System; using System.Linq; public class Test { public static void Main() { string[] str = Console.ReadLine().Split(' '); int a, b, c; a = int.Parse(str[0]); b = int.Parse(str[1]); c = int.Parse(str[2]); if (a == b + c || b == a + c || c == a + b) { Console.WriteLine("Yes"); } ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC047A { class Program { static void Main(string[] args) { int a, b, c, d; string[] input = Console.ReadLine().Split(' '); a = int.Parse(input[0]); b = int.Parse(input[1]); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC047A { class Program { static void Main(string[] args) { float a, b, c, d; string[] input = Console.ReadLine().Split(' '); a = int.Parse(input[0]); b = int.Parse(input[1]);...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
158
2
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; namespace atcorder2 { class Program { public static long Read() { return long.Parse(ReadLine()); } public static long[] Reads() { return ReadLine().Split().Select(long.Parse).ToArray(); } publ...
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; namespace atcorder2 { class Program { public static long Read() { return long.Parse(ReadLine()); } public static long[] Reads() { return ReadLine().Split().Select(long.Parse).ToArray(); } publ...
[["-", 64, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 64, 1, 0, 11, 12, 213, 63, 214, 141, 22]]
8
421
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int w = sc.NextInt(); int h = sc.NextInt(); int n = sc.NextInt(); bool[,] map = new bool[w, h]; for (int i = 0; i < n; i++) { int...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int w = sc.NextInt(); int h = sc.NextInt(); int n = sc.NextInt(); bool[,] map = new bool[w, h]; for (int i = 0; i < n; i++) { int...
[["-", 8, 254, 0, 239, 0, 57, 15, 16, 17, 47], ["+", 8, 254, 0, 239, 0, 57, 15, 16, 17, 20]]
8
604
4
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { int[] WHN = Console.ReadLine().Split().Select(int.Parse).ToArray(); int xuplim = WHN[1]; int xdnlim = 0; int yuplim = WHN[0]; int ydnlim = 0; int[][] xyas = new int[WHN[2]][] ...
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { int[] WHN = Console.ReadLine().Split().Select(int.Parse).ToArray(); int xuplim = WHN[0]; int xdnlim = 0; int yuplim = WHN[1]; int ydnlim = 0; int[][] xyas = new int[WHN[2]][] ...
[["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203]]
8
253
4
using System; using System.Linq; public class Hello { public static void Main() { int[] nums = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int W = nums[0]; int H = nums[1]; int N = nums[2]; int minX = 0; int minY = 0; int maxX = Int32.MaxValue; int maxY = Int32.MaxValu...
using System; using System.Linq; public class Hello { public static void Main() { int[] nums = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int W = nums[0]; int H = nums[1]; int N = nums[2]; int minX = 0; int minY = 0; int maxX = W; int maxY = H; for (int i = 0; i ...
[["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22]]
8
266
8
// // using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { var line = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var w = line[0]; var h = line[1]; var n = line[2]; var a1 = 0; var a2 = w; var a3 = 0; var a4 ...
// // using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { var line = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var w = line[0]; var h = line[1]; var n = line[2]; var a1 = 0; var a2 = w; var a3 = 0; var a4 ...
[["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22]]
8
278
2
using System; using System.Linq; class Program { static void Main(string[] args) { int W = cin.ni(); int H = cin.ni(); int N = cin.ni(); int right = W; int left = 0; int top = H; int bottom = 0; for (int i = 0; i < N; i++) { int x = cin.ni(); int y = cin.ni(); int ...
using System; using System.Linq; class Program { static void Main(string[] args) { int W = cin.ni(); int H = cin.ni(); int N = cin.ni(); int right = W; int left = 0; int top = H; int bottom = 0; for (int i = 0; i < N; i++) { int x = cin.ni(); int y = cin.ni(); int ...
[["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22]]
8
391
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication19 { class Program { static void Main(string[] args) { var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); if (a[0] != a[1] && a[1] != a[2] && a[0] != a[1]) Console.WriteLine(3)...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication19 { class Program { static void Main(string[] args) { var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); if (a[0] != a[1] && a[1] != a[2] && a[0] != a[2]) Console.WriteLine(3)...
[["-", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]]
8
204
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); string s = sc.Next(); string t = "CODEFESTIVAL201"; long answer = 0; for (int i = 0; i < 16; i++) { if (s[i] != t[i]) { answe...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); string s = sc.Next(); string t = "CODEFESTIVAL2016"; long answer = 0; for (int i = 0; i < 16; i++) { if (s[i] != t[i]) { answ...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]]
8
395
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; namespace CF2016B_A { class Program { static string a = "CODEFESTIVAL2016"; static int ans; static void Main(string[] args) { var t = ReadLine(); for (int i = 0;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; namespace CF2016B_A { class Program { static string a = "CODEFESTIVAL2016"; static int ans; static void Main(string[] args) { var t = ReadLine(); for (int i = 0;...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79]]
8
141
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long n = sc.NextLong(); long a = sc.NextLong(); long b = sc.NextLong(); string s = sc.Next(); long count = 0; long order = 1; fo...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long n = sc.NextLong(); long a = sc.NextLong(); long b = sc.NextLong(); string s = sc.Next(); long count = 0; long order = 1; fo...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
510
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; namespace CF2016B_B { class Program { static int N, A, B; static int a, b; static void Main(string[] args) { var t = scan; N = t[0]; A = t[1]; B = t[2];...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; namespace CF2016B_B { class Program { static int N, A, B; static int a, b; static void Main(string[] args) { var t = scan; N = t[0]; A = t[1]; B = t[2];...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95]]
8
259
1
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Threading; using Pair = System.Collections.Generic.KeyValuePair<int, int>; class Program { public Program() {} static void Main(string[] args) { new Program().prog(); } Scanner cin; const int M...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Threading; using Pair = System.Collections.Generic.KeyValuePair<int, int>; class Program { public Program() {} static void Main(string[] args) { new Program().prog(); } Scanner cin; const int M...
[["-", 64, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 18]]
8
604
2
using System; using System.Linq; //リストの使用 using System.Collections.Generic; class Program { static void Main() { long answer = 0; string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 long w = long.Parse(input[0]); long h = long.Parse(input[1]); long wMemo = h + 1; ...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; class Program { static void Main() { long answer = 0; string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 long w = long.Parse(input[0]); long h = long.Parse(input[1]); long wMemo = h + 1; ...
[["-", 205, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["-", 205, 204, 206, 207, 0, 28, 0, 16, 17, 72]]
8
332
4
using System; using System.Collections.Generic; using System.Linq; using System.IO; class Program { const int M = 1000000007; const double eps = 1e-9; static int[] dd = { 0, 1, 0, -1, 0 }; static void Main() { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; var sc...
using System; using System.Collections.Generic; using System.Linq; using System.IO; class Program { const int M = 1000000007; const double eps = 1e-9; static int[] dd = { 0, 1, 0, -1, 0 }; static void Main() { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; var sc...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
2,916
4
using System; using System.Collections.Generic; using System.Linq; using System.IO; class Program { const int M = 1000000007; const double eps = 1e-9; static int[] dd = { 0, 1, 0, -1, 0 }; static void Main() { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; var sc...
using System; using System.Collections.Generic; using System.Linq; using System.IO; class Program { const int M = 1000000007; const double eps = 1e-9; static int[] dd = { 0, 1, 0, -1, 0 }; static void Main() { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; var sc...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106]]
8
2,343
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace b { class Program { static void Main(string[] args) { int[] nk = Console.ReadLine().Split().Select(int.Parse).ToArray(); int n = nk[0]; int k = nk[1]; int[] l = new int[26]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace b { class Program { static void Main(string[] args) { int[] nk = Console.ReadLine().Split().Select(int.Parse).ToArray(); int n = nk[0]; int k = nk[1]; int[] l = new int[26]; ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]]
8
706
2
using System; using System.Collections.Generic; namespace agc005_a { class Program { static void Main(string[] args) { string s = Console.ReadLine(); Stack<char> stack = new Stack<char>(); for (int i = 0; i < s.Length; i++) { if (s[i] == 'S') { stack.Push('S'); } else { if (st...
using System; using System.Collections.Generic; namespace agc005_a { class Program { static void Main(string[] args) { string s = Console.ReadLine(); Stack<char> stack = new Stack<char>(); for (int i = 0; i < s.Length; i++) { if (s[i] == 'S') { stack.Push('S'); } else { if (st...
[["+", 75, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 75, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 12, 215], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203]]
8
156
4
using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int cnt = 0; int cnt_max = 0; for (int i = 0; i < s.Length; i++) { if (s[i] == 'T') { cnt++; } else { cnt--; } cnt_max = Math.Max(cnt, cnt_max); } Console.Wr...
using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int cnt = 0; int cnt_max = 0; for (int i = 0; i < s.Length; i++) { if (s[i] == 'T') { cnt++; } else { cnt--; } cnt_max = Math.Max(cnt, cnt_max); } Console.Wr...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
95
2
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static long n = long.Parse(Console.ReadLine()); // long.Parseはstringをlongに変換。 static long[] nums = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); static long[] po...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static long n = long.Parse(Console.ReadLine()); // long.Parseはstringをlongに変換。 static long[] nums = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); static long[] po...
[["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73]]
8
537
5
using System; class Program { static void Main(string[] args) { // 整数の入力 String a = Console.ReadLine(); //出力 Console.WriteLine(a.Insert(3, " ")); } }
using System; class Program { static void Main(string[] args) { // 整数の入力 String a = Console.ReadLine(); //出力 Console.WriteLine(a.Insert(4, " ")); } }
[["-", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203]]
8
45
2
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics.Contracts; using System.IO; using System.Linq; using System.Numerics; using System.Xml.Schema; using System.Threading; using System.Diagnostics.CodeAnalysis; namespace AtCoder { public static class Ex { public stati...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics.Contracts; using System.IO; using System.Linq; using System.Numerics; using System.Xml.Schema; using System.Threading; using System.Diagnostics.CodeAnalysis; namespace AtCoder { public static class Ex { public stati...
[["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
1,973
4
using System; namespace CF2016qA { class C { static void Main(string[] args) { string s = Console.ReadLine(); int K = int.Parse(Console.ReadLine()); char[] res = new char[s.Length]; for (int i = 0; i < s.Length; i++) { int x = 26 - (s[i] - 'a'); if (x <= K) { res[i] = 'a'; ...
using System; namespace CF2016qA { class C { static void Main(string[] args) { string s = Console.ReadLine(); int K = int.Parse(Console.ReadLine()); char[] res = new char[s.Length]; for (int i = 0; i < s.Length; i++) { int x = 26 - (s[i] - 'a'); if (x <= K) { res[i] = 'a'; ...
[["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
168
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CF2016A_C { class Program { static char[] all = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's'...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CF2016A_C { class Program { static char[] all = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's'...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
356
6