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; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); var a = int.Parse(str[0]); var b = int.Parse(str[1]); var ab = a / b; Console.WriteLine(ab); } }
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); var a = int.Parse(str[0]); var b = int.Parse(str[1]); float ab = 1.0f * a / b; Console.WriteLine(ab); } }
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 250], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 48]]
8
83
4
using System; using static System.Console; using System.Linq; class Program { static void Main(string[] args) { int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); WriteLine(a[0] / a[1]); } }
using System; using static System.Console; using System.Linq; class Program { static void Main(string[] args) { int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); WriteLine((float)a[0] / a[1]); } }
[["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25]]
8
68
3
using System; using System.Linq; public class c { public static void Main() { int[] TX = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); double ans = TX[0] / TX[1]; Console.WriteLine(ans); } }
using System; using System.Linq; public class c { public static void Main() { double[] TX = Console.ReadLine().Split(' ').Select(double.Parse).ToArray(); double ans = TX[0] / TX[1]; Console.WriteLine(ans); } }
[["-", 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
70
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 input = Console.ReadLine().Split(' ').Select(int.Parse); var t = input.ElementAt(0); ...
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 input = Console.ReadLine().Split(' ').Select(int.Parse); var t = input.ElementAt(0); ...
[["-", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["-", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 16, 12, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 12, 74, 0, 25]]
8
102
5
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Collections; namespace AtCoder { class Program { static void Main(string[] args) { var ir = new Resolver(new ConsoleReader()); Console.WriteLine(ir.Resolve()); } } public class Resolver { ...
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Collections; namespace AtCoder { class Program { static void Main(string[] args) { var ir = new Resolver(new ConsoleReader()); Console.WriteLine(ir.Resolve()); } } public class Resolver { ...
[["-", 8, 201, 0, 124, 0, 198, 39, 224, 39, 199], ["+", 8, 201, 0, 124, 0, 198, 39, 224, 39, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199]]
8
215
4
using System; using System.Linq; namespace ABC117_A { class Program { static void Main(string[] args) { var TX = Console.ReadLine().Split().Select(int.Parse).ToArray(); Console.WriteLine(TX[0] / TX[1]); } } }
using System; using System.Linq; namespace ABC117_A { class Program { static void Main(string[] args) { var TX = Console.ReadLine().Split().Select(double.Parse).ToArray(); Console.WriteLine(TX[0] / TX[1]); } } }
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]]
8
66
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, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22]]
8
269
2
// Undone using System; using System.Linq; using System.Collections.Generic; using System.Collections; public class Program { public static void Main() { int[] line = ReadIntArray(); if (line.Max() * 2 < line.Sum()) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } pri...
// Undone using System; using System.Linq; using System.Collections.Generic; using System.Collections; public class Program { public static void Main() { ReadLine(); int[] line = ReadIntArray(); if (line.Max() * 2 < line.Sum()) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); ...
[["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 208, 0, 235, 8, 201, 0, 195, 141, 22], ["+", 0, 208, 0, 235, 8, 201, 0, 195, 141, 22]]
8
361
6
using System; using System.Collections.Generic; namespace CompetitiveProgramming { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] list = Console.ReadLine().Split(); int sum = 0; int max = 0; for (var i = 0; i < n; i++) { int useNum = int.P...
using System; using System.Collections.Generic; namespace CompetitiveProgramming { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] list = Console.ReadLine().Split(); int sum = 0; int max = 0; for (var i = 0; i < n; i++) { int useNum = int.P...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]]
8
144
2
using System; namespace AtCoder0205 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] s = Console.ReadLine().Split(' '); int total = 0; int max = 0; int x = 0; for (int i = 0; i < N; i++) { x = int.Parse(s[i]); total += x; ...
using System; namespace AtCoder0205 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] s = Console.ReadLine().Split(' '); int total = 0; int max = 0; int x = 0; for (int i = 0; i < N; i++) { x = int.Parse(s[i]); total += x; ...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22]]
8
138
2
using System; using System.Linq; using System.IO; using System.Collections.Generic; using System.Text; namespace AtCoder { public class Program { static int[] getKeys() { var Keys = Console.ReadLine().Split(' '); int N = Keys.Length; int[] Ns = new int[N]; for (int i = 0; i < N; i++) { Ns[i] = ...
using System; using System.Linq; using System.IO; using System.Collections.Generic; using System.Text; namespace AtCoder { public class Program { static int[] getKeys() { var Keys = Console.ReadLine().Split(' '); int N = Keys.Length; int[] Ns = new int[N]; for (int i = 0; i < N; i++) { Ns[i] = ...
[["+", 8, 196, 0, 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
548
6
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Collections; namespace AtCoder { class Program { static void Main(string[] args) { var ir = new Resolver(new ConsoleReader()); Console.WriteLine(ir.Resolve()); } } public class Resolver { ...
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Collections; namespace AtCoder { class Program { static void Main(string[] args) { var ir = new Resolver(new ConsoleReader()); Console.WriteLine(ir.Resolve()); } } public class Resolver { ...
[["-", 3, 4, 0, 28, 0, 218, 8, 241, 0, 203], ["+", 3, 4, 0, 28, 0, 218, 8, 241, 0, 22]]
8
267
2
using System; using System.Collections.Generic; using System.Linq; namespace Q2 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var l = Console.ReadLine() .Split(' ') .Select(s => int.Parse(s)) .OrderByDescending(i => ...
using System; using System.Collections.Generic; using System.Linq; namespace Q2 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var l = Console.ReadLine() .Split(' ') .Select(s => int.Parse(s)) .OrderByDescending(i => ...
[["-", 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
128
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; using System.Numerics; namespace PaizaSkillCheck { public class Program { public static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] lin...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; using System.Numerics; namespace PaizaSkillCheck { public class Program { public static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] lin...
[["-", 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
175
4
using System; using System.Collections.Generic; using System.Linq; namespace MyProgram { class AtCoder { static void Main() { var A = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); long N = A[0]; long M = A[1]; var X = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); if ...
using System; using System.Collections.Generic; using System.Linq; namespace MyProgram { class AtCoder { static void Main() { var A = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); long N = A[0]; long M = A[1]; var X = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); if ...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
216
2
using System; using System.Linq; namespace Streamline { class Program { static void Main(string[] args) { var nm = Console.ReadLine().Split().Select(int.Parse); var input = Console.ReadLine().Split().Select(int.Parse).OrderBy(i => i).ToArray(); int fullLenght = input[input.Length - 1] - input[0];...
using System; using System.Linq; namespace Streamline { class Program { static void Main(string[] args) { var nm = Console.ReadLine().Split().Select(int.Parse); var input = Console.ReadLine().Split().Select(int.Parse).OrderBy(i => i).ToArray(); int fullLenght = input[input.Length - 1] - input[0];...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
183
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, ' ')); } ...
[["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
637
2
using System; using System.Linq; namespace ABC117_C { class Program { static void Main(string[] args) { var NM = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = NM[0]; var M = NM[1]; var X = Console.ReadLine().Split().Select(int.Parse).ToArray(); if (N == 1) { Console.Write...
using System; using System.Linq; namespace ABC117_C { class Program { static void Main(string[] args) { var NM = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = NM[0]; var M = NM[1]; var X = Console.ReadLine().Split().Select(int.Parse).ToArray(); if (M == 1 || N >= M) { Con...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]]
8
206
6
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Co...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Co...
[["-", 0, 1, 0, 11, 12, 16, 12, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 16, 12, 204, 205, 22]]
8
1,407
2
using System; using System.Text; using System.Collections.Generic; using static System.Math; using System.Linq; using static System.Array; namespace AtcoderExpress { class Program { static void Main(string[] args) { var NK = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); var N = NK[0];...
using System; using System.Text; using System.Collections.Generic; using static System.Math; using System.Linq; using static System.Array; namespace AtcoderExpress { class Program { static void Main(string[] args) { var NK = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); var N = NK[0];...
[["-", 206, 207, 0, 28, 0, 16, 31, 16, 31, 22], ["+", 0, 28, 0, 16, 31, 16, 31, 214, 205, 22], ["+", 0, 28, 0, 16, 31, 16, 31, 214, 0, 131], ["+", 0, 28, 0, 16, 31, 16, 31, 214, 141, 22]]
8
422
4
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]]
8
3,145
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static ABC117.Util; using static System.Console; #if DEBUG using System.Diagnostics; #endif namespace ABC117 { class Program { static void Main(string[] args) { #if DEBUG wh...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static ABC117.Util; using static System.Console; #if DEBUG using System.Diagnostics; #endif namespace ABC117 { class Program { static void Main(string[] args) { #if DEBUG wh...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22]]
8
2,910
4
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' '); var N = int.Parse(inputs[0]); var K = long.Parse(inputs[1]); inputs = Console.ReadLine().Split(' '); var A = new long[N]; for (int ...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' '); var N = int.Parse(inputs[0]); var K = long.Parse(inputs[1]); inputs = Console.ReadLine().Split(' '); var A = new long[N]; for (int ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
331
2
using System; using System.IO; using System.Linq; namespace D { internal class Program { static StreamWriter sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; public static void Main(string[] args) { var line = Console.ReadLine().Split().Select(ulong.Parse).ToArray(); var n ...
using System; using System.IO; using System.Linq; namespace D { internal class Program { static StreamWriter sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; public static void Main(string[] args) { var line = Console.ReadLine().Split().Select(ulong.Parse).ToArray(); var n ...
[["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 139], ["+", 15, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 16, 12, 74, 51, 23, 0, 25], ["+", 15, 16, 31, 23, 0, 16, 12, 23, 0, 25]]
8
358
6
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(); long max = Math.Max(a, b); long min = Math.Max(0, a + b - n); ...
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(); long max = Math.Min(a, b); long min = Math.Max(0, a + b - n); ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
407
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
[["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 98], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 106]]
8
1,140
2
using System; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string a = Console.ReadLine(); string b = Console.ReadLine(); string c = Console.ReadLine(); int count = 0; for (int i = 0; i < n; i++) { if (a.Substring(i, 1) == b.Substring(i, 1) &&...
using System; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string a = Console.ReadLine(); string b = Console.ReadLine(); string c = Console.ReadLine(); int count = 0; for (int i = 0; i < n; i++) { if (a.Substring(i, 1) == b.Substring(i, 1) &&...
[["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
267
1
using System; using System.Text; using System.Collections.Generic; using System.Collections; using System.Linq; using E = System.Linq.Enumerable; class Program { static char[] abc = "abcdefghijklmnopqrstuvwxyz".ToCharArray(); static long mod = 1000000007; static void Main(string[] args) { var N = long.Parse(C...
using System; using System.Text; using System.Collections.Generic; using System.Collections; using System.Linq; using E = System.Linq.Enumerable; class Program { static char[] abc = "abcdefghijklmnopqrstuvwxyz".ToCharArray(); static long mod = 1000000007; static void Main(string[] args) { var N = long.Parse(C...
[["-", 8, 196, 0, 210, 12, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 141, 22]]
8
270
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ProblemA { static bool SAIKI = false; st...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ProblemA { static bool SAIKI = false; st...
[["-", 8, 196, 0, 210, 12, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 141, 22]]
8
1,499
2
using Training20200612.Questions; using Training20200612.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Training20200612.Questions { public class QuestionA : AtCoderQuestionBase { public override IEnumerable<object> Solve(TextReader in...
using Training20200612.Questions; using Training20200612.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Training20200612.Questions { public class QuestionA : AtCoderQuestionBase { public override IEnumerable<object> Solve(TextReader in...
[["-", 0, 213, 63, 214, 205, 23, 0, 16, 17, 33], ["+", 0, 213, 63, 214, 205, 23, 0, 16, 17, 72], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]]
8
647
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { public struct cuisine { public int takahashi; public int aoki; public int takahashi_gain; public cuisine(string input) { ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { public struct cuisine { public int takahashi; public int aoki; public int takahashi_gain; public cuisine(string input) { ...
[["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72]]
8
332
2
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; public static class P { public static void Mai...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; public static class P { public static void Mai...
[["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22]]
8
200
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using System.Diagnostics; using ll=System.Int64; using static Contest_C.Lib_IO; using static Contest_C.Lib_Minifunc; public class Contest_C { public static void Ma...
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using System.Diagnostics; using ll=System.Int64; using static Contest_C.Lib_IO; using static Contest_C.Lib_Minifunc; public class Contest_C { public static void Ma...
[["-", 63, 214, 205, 23, 0, 16, 12, 214, 205, 22], ["+", 63, 214, 205, 23, 0, 16, 12, 214, 205, 22], ["-", 63, 214, 205, 23, 0, 16, 12, 214, 141, 22], ["+", 63, 214, 205, 23, 0, 16, 12, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 16, 12, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 16, 12, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 16, 12,...
8
2,778
8
using System; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var happiness = new Happiness[n]; for (var i = 0; i < n; i++) { var input = Console.ReadLine().Split(' '); happiness[i] = new Happiness(int.Parse(input...
using System; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var happiness = new Happiness[n]; for (var i = 0; i < n; i++) { var input = Console.ReadLine().Split(' '); happiness[i] = new Happiness(int.Parse(input...
[["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22]]
8
237
2
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Collections; namespace AtCoder { class Program { static void Main(string[] args) { var ir = new Resolver(new ConsoleReader()); Console.WriteLine(ir.Resolve()); } } public class Resolver { ...
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Collections; namespace AtCoder { class Program { static void Main(string[] args) { var ir = new Resolver(new ConsoleReader()); Console.WriteLine(ir.Resolve()); } } public class Resolver { ...
[["+", 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], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131]]
8
672
4
using System.Linq; using System; public class P { public int a { get; set; } public int b { get; set; } } public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var ps = new P[n]; for (int i = 0; i < n; i++) { string[] line = Console.ReadLine().Trim().Sp...
using System.Linq; using System; public class P { public int a { get; set; } public int b { get; set; } } public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var ps = new P[n]; for (int i = 0; i < n; i++) { string[] line = Console.ReadLine().Trim().Sp...
[["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22]]
8
254
2
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Runtime.CompilerServices; using static System.Console; using static System.Math; using static Macro; using static Extension; using static LinqExtension; using static HelpExtensio...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Runtime.CompilerServices; using static System.Console; using static System.Math; using static Macro; using static Extension; using static LinqExtension; using static HelpExtensio...
[["+", 8, 196, 0, 57, 64, 37, 0, 241, 0, 33], ["-", 8, 196, 0, 57, 64, 37, 0, 241, 0, 33]]
8
3,269
2
using System; using System.IO; using System.Collections.Generic; using System.Linq; namespace NIKKEI2019C { public class Program { void Solve(StreamScanner ss, StreamWriter sw) { //--------------------------------- var N = ss.Next(int.Parse); var D = ss.Next(long.Parse, 2, N) .Select(d =>...
using System; using System.IO; using System.Collections.Generic; using System.Linq; namespace NIKKEI2019C { public class Program { void Solve(StreamScanner ss, StreamWriter sw) { //--------------------------------- var N = ss.Next(int.Parse); var D = ss.Next(long.Parse, 2, N) .Select(d =>...
[["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22]]
8
496
2
using System; using System.Collections.Generic; using System.Linq; class C { static void Main() { var N = int.Parse(Console.ReadLine()); var AB = Enumerable.Range(0, N) .Select( i => Console.ReadLine().Split(' ').Select(long.Parse).ToList()) .ToList(); var ...
using System; using System.Collections.Generic; using System.Linq; class C { static void Main() { var N = int.Parse(Console.ReadLine()); var AB = Enumerable.Range(0, N) .Select( i => Console.ReadLine().Split(' ').Select(long.Parse).ToList()) .ToList(); var ...
[["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22]]
8
199
2
using System; using System.Collections.Generic; using System.Linq; static class MainClass { public struct City { public long num; public long year; public int ID; public City(long n, long y, int i) { num = n; year = y; ID = i; } } public static void Main(string[] args) { ...
using System; using System.Collections.Generic; using System.Linq; static class MainClass { public struct City { public long num; public long year; public int ID; public City(long n, long y, int i) { num = n; year = y; ID = i; } } public static void Main(string[] args) { ...
[["+", 0, 200, 0, 212, 0, 230, 10, 229, 0, 45], ["+", 0, 200, 0, 212, 0, 230, 10, 229, 0, 22], ["+", 0, 200, 0, 212, 0, 230, 10, 229, 0, 46]]
8
159
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class ABC116b { public static void Main() { int s = int.Parse(Console.ReadLine()); int cnt = 1; while (s > 4) { cnt++; if (s % 2 == 1) { s *= 3; s++; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class ABC116b { public static void Main() { int s = int.Parse(Console.ReadLine()); int cnt = 1; while (s > 4) { cnt++; if (s % 2 == 1) { s *= 3; s++; ...
[["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203]]
8
175
2
using System; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; public class Solver { public void Solve() { int s = ri; int[] m = new int[1000001]; int a = s, t = 1; while (true) { if (m[a] > 0) { Console.WriteLine(m[a]); break; }...
using System; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; public class Solver { public void Solve() { int s = ri; int[] m = new int[1000001]; int a = s, t = 1; while (true) { if (m[a] > 0) { Console.WriteLine(t); break; } ...
[["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
1,070
5
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Program { public static Scanner input; static void Main() { input = new Scanner(); int ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Program { public static Scanner input; static void Main() { input = new Scanner(); int ...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
449
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // List<int> values = new List<int>(Console.ReadLine().Split(' ').Select(s // => int.Parse(s))); List<int> values = new List<int>(); string input = Console.ReadLine(); // int n = int...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // List<int> values = new List<int>(Console.ReadLine().Split(' ').Select(s // => int.Parse(s))); List<int> values = new List<int>(); string input = Console.ReadLine(); // int n = int...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
159
4
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { var ir = new Resolver(new ConsoleReader()); Console.WriteLine(ir.Resolve()); } } public class Resolver { IInputReader InputReader { get; } public List<string> Messag...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { var ir = new Resolver(new ConsoleReader()); Console.WriteLine(ir.Resolve()); } } public class Resolver { IInputReader InputReader { get; } public List<string> Messag...
[["-", 0, 52, 8, 196, 0, 57, 15, 241, 0, 111]]
8
259
1
using System; using System.Linq; using System.Collections.Generic; using System.IO; 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 void Main() { var sw ...
using System; using System.Linq; using System.Collections.Generic; using System.IO; 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 void Main() { var sw ...
[["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 107]]
8
232
2
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace C { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace C { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
341
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GrandGarden { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] strList = Console.ReadLine().Split(' '); List<int> flower = new Li...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GrandGarden { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] strList = Console.ReadLine().Split(' '); List<int> flower = new Li...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 64, 196, 0, 1, 0, 11, 12, 211, 0, 147], ["-", 64, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["-", 0, 52, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 68]]
8
237
7
using System; 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, ' ')); } public void Solve(ConsoleInput cin) {...
using System; 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, ' ')); } public void Solve(ConsoleInput cin) {...
[["-", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 22]]
8
531
4
using System; using System.Collections.Generic; using CompLib.Collections; using CompLib.Util; public class Program { private int N, K; private Sushi[] S; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); K = sc.NextInt(); S = new Sushi[N]; for (int i = 0; i < N; i++) { ...
using System; using System.Collections.Generic; using CompLib.Collections; using CompLib.Util; public class Program { private int N, K; private Sushi[] S; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); K = sc.NextInt(); S = new Sushi[N]; for (int i = 0; i < N; i++) { ...
[["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["-", 0, 57, 75, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 57, 75, 1, 0, 213, 63, 214, 141, 22], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22]]
8
1,142
6
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace Contest { class Scanner { public Scanner() { _stream = new StreamReader(Console.OpenStandardInput()); _pos = 0; _line = new string[0]; _separator = ' '; } private char _separator; private StreamReader...
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace Contest { class Scanner { public Scanner() { _stream = new StreamReader(Console.OpenStandardInput()); _pos = 0; _line = new string[0]; _separator = ' '; } private char _separator; private StreamReader...
[["-", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203]]
8
3,092
2
using System; using static System.Console; using static System.Math; using System.IO; using System.Collections.Generic; namespace I_am_the_green_coder { class Inonoa { // なんか入力用の関数作ったけどまだテストしてないので使う前に確かめて static void Main() { long[] nk = ILongs(); long n = nk[0]; long k = nk[1]; long[][] td = ILongL...
using System; using static System.Console; using static System.Math; using System.IO; using System.Collections.Generic; namespace I_am_the_green_coder { class Inonoa { // なんか入力用の関数作ったけどまだテストしてないので使う前に確かめて static void Main() { long[] nk = ILongs(); long n = nk[0]; long k = nk[1]; long[][] td = ILongL...
[["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 68], ["+", 64, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29]]
8
657
6
using System; using System.Collections.Generic; using System.Linq; namespace ABC116_D { class Program { static void Main(string[] args) { var NK = Console.ReadLine().Split().Select(long.Parse).ToArray(); var N = NK[0]; var K = NK[1]; var tds = new Model[N]; for (long i = 0; i < N; i++) { v...
using System; using System.Collections.Generic; using System.Linq; namespace ABC116_D { class Program { static void Main(string[] args) { var NK = Console.ReadLine().Split().Select(long.Parse).ToArray(); var N = NK[0]; var K = NK[1]; var tds = new Model[N]; for (long i = 0; i < N; i++) { v...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 12, 230, 10, 229, 0, 11, 12, 204, 205, 22], ["+", 12, 230, 10, 229, 0, 11, 12, 204, 205, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 223, 0, 68...
8
434
9
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { int[] s = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int[][] a = new int[s[0]][]; for (int i = 0; i < s[0]; i++) { a[i] = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { int[] s = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int[][] a = new int[s[0]][]; for (int i = 0; i < s[0]; i++) { a[i] = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); ...
[["+", 75, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 75, 57, 64, 196, 0, 1, 0, 223, 0, 68], ["+", 0, 57, 75, 57, 64, 196, 0, 1, 0, 35]]
8
369
3
using System; namespace AtCoder { class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' '); bool[] flags = new bool[4] { false, false, false, false }; foreach (var s in inputs) { switch (s) { case "1": if (!flags[0]) { flags[0] = true; ...
using System; namespace AtCoder { class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' '); bool[] flags = new bool[4] { false, false, false, false }; foreach (var s in inputs) { switch (s) { case "1": if (!flags[0]) { flags[0] = true; ...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]]
8
253
2
using System; public class Hello { public static void Main() { string[] a = Console.ReadLine().Trim().Split(' '); Array.Sort(a); if (a[0] == "1" && a[1] == "9" && a[2] == "7" && a[3] == "4") Console.WriteLine("YES"); else Console.WriteLine("NO"); } }
using System; public class Hello { public static void Main() { string[] a = Console.ReadLine().Trim().Split(' '); Array.Sort(a); if (a[0] == "1" && a[1] == "4" && a[2] == "7" && a[3] == "9") Console.WriteLine("YES"); else Console.WriteLine("NO"); } }
[["-", 31, 16, 31, 16, 12, 16, 12, 5, 0, 222], ["+", 31, 16, 31, 16, 12, 16, 12, 5, 0, 222], ["-", 0, 57, 15, 16, 12, 16, 12, 5, 0, 222], ["+", 0, 57, 15, 16, 12, 16, 12, 5, 0, 222]]
8
102
4
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; // KEYENCE Programming Contest 2019 // https://atcoder.jp/contests/keyence2019 namespace KeyenceContest2019_A { public class Solver : SolverBase { public void Run() { var ary = ReadIntArray(); boo...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; // KEYENCE Programming Contest 2019 // https://atcoder.jp/contests/keyence2019 namespace KeyenceContest2019_A { public class Solver : SolverBase { public void Run() { var ary = ReadIntArray(); boo...
[["-", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22]]
8
1,079
6
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(); for (int i = 0; i < s.Length; i++) { for (int j = 0; j < s.Length; i++) { string str = s.Substring(0, i) + s.Sub...
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(); for (int i = 0; i < s.Length; i++) { for (int j = i; j < s.Length; j++) { string str = s.Substring(0, i) + s.Sub...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["-", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22]]
8
428
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["+", 8, 196, 0, 7, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 72]]
8
560
2
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Runtime.CompilerServices; using static System.Math; class P { static void Main() { ...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Runtime.CompilerServices; using static System.Math; class P { static void Main() { ...
[["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 210, 8, 196, 0, 52, 0, 89]]
8
363
2
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long[] A = new long[N]; long[] B = new long[N]; string[] str = Console.ReadLine().Split(); string[] str2 = Console.ReadLine().Split(); long Asum = 0; lon...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long[] A = new long[N]; long[] B = new long[N]; string[] str = Console.ReadLine().Split(); string[] str2 = Console.ReadLine().Split(); long Asum = 0; lon...
[["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 29], ["+", 64, 196, 0, 52, 8, 196, 0, 1, 0, 35]]
8
330
3
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { int n = int.Parse(ReadLine()); int[] ab = ReadLine().Split(' ').Sele...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { int n = int.Parse(ReadLine()); int[] ab = ReadLine().Split(' ').Sele...
[["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 20], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47]]
8
207
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); string[] points = Console.ReadLine().Split(' '); int A = int.Parse(points[0]); int B = int.Parse(points[1]); List<int> score = Console.ReadLine() ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); string[] points = Console.ReadLine().Split(' '); int A = int.Parse(points[0]); int B = int.Parse(points[1]); List<int> score = Console.ReadLine() ...
[["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 20], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 19], ["-", 0, 28, 0, 218, 8, 16, 31, 16, 17, 18], ["+", 0, 28, 0, 218, 8, 16, 31, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 47]]
8
217
6
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var ab = Console.ReadLine().Split(' '); var a = int.Parse(ab[0]); var b = int.Parse(ab[1]); var pn = Console.ReadLine().Split(' '); var p ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var ab = Console.ReadLine().Split(' '); var a = int.Parse(ab[0]); var b = int.Parse(ab[1]); var pn = Console.ReadLine().Split(' '); var p ...
[["-", 0, 28, 0, 218, 8, 16, 12, 16, 17, 18], ["+", 0, 28, 0, 218, 8, 16, 12, 16, 17, 19]]
8
223
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace B { public class Program { public static void Main(string[] args) { int n = RInt(); int[] borders = RIntAr(); int[] questions = RIntAr(); int a = questions.Count(x => x <= borders[0]); int b = questi...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace B { public class Program { public static void Main(string[] args) { int n = RInt(); int[] borders = RIntAr(); int[] questions = RIntAr(); int a = questions.Count(x => x <= borders[0]); int b = questi...
[["-", 0, 28, 0, 218, 8, 16, 31, 16, 31, 22], ["-", 0, 28, 0, 218, 8, 16, 31, 16, 17, 47], ["+", 0, 28, 0, 218, 8, 16, 31, 16, 17, 18], ["+", 0, 28, 0, 218, 8, 16, 31, 16, 12, 22], ["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 20], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 47]]
8
437
6
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; static class Ex { public static int LowerBound<T>(this IList<T> a, T v) where T : IComparable<T> { if (a[0].CompareTo(v) >= 0) return 0; int l = 0, r = a.Count; while (r - l > 1) { ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; static class Ex { public static int LowerBound<T>(this IList<T> a, T v) where T : IComparable<T> { if (a[0].CompareTo(v) >= 0) return 0; int l = 0, r = a.Count; while (r - l > 1) { ...
[["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 15, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 57, 15, 213, 3, 4, 0, 28, 0, 22]]
8
978
4
using System; using System.Linq; using System.Numerics; class Program { static void Main() { var INF = (int)1e5; var N = int.Parse(Console.ReadLine()); var steps = Console.ReadLine().Split().Select(int.Parse).ToArray(); var dp = Enumerable.Repeat((int)INF, N + 1).ToArray(); dp[0] = 0; dp[1] =...
using System; using System.Linq; using System.Numerics; class Program { static void Main() { var INF = (int)1e5; var N = int.Parse(Console.ReadLine()); var steps = Console.ReadLine().Split().Select(int.Parse).ToArray(); var dp = Enumerable.Repeat((int)INF, N + 1).ToArray(); dp[0] = 0; dp[1] =...
[["+", 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
201
3
using System; class c { static void Main() { int n = int.Parse(Console.ReadLine()); var h = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); var ans = new int[n]; ans[1] = Math.Abs(h[0] - h[1]); for (int i = 2; i < n; i++) { ans[i] = Math.Min(Math.Abs(h[i - 2] - h[i]) + ans[i - 2], ...
using System; class c { static void Main() { int n = int.Parse(Console.ReadLine()); var h = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); var ans = new int[n]; ans[1] = Math.Abs(h[0] - h[1]); for (int i = 2; i < n; i++) { ans[i] = Math.Min(Math.Abs(h[i - 2] - h[i]) + ans[i - 2], ...
[["+", 0, 28, 0, 16, 31, 213, 3, 4, 0, 25], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
165
2
using System; using System.Linq; namespace AltCoder { public sealed class A_Frog1 { public static void Main() { long N = Convert.ToInt32(Console.ReadLine()); long[] heights = Console.ReadLine() .Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries) .Select(x => Conv...
using System; using System.Linq; namespace AltCoder { public sealed class A_Frog1 { public static void Main() { long N = Convert.ToInt32(Console.ReadLine()); long[] heights = Console.ReadLine() .Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries) .Select(x => Conv...
[["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
208
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 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, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]]
8
1,336
7
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public static void Main(string[] args) { int n = Console.ReadLine().ToInt(); int[] bh = Input().ToInt(); int[] h = new int[n + 2]; Array.Copy(bh, 0, h...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public static void Main(string[] args) { int n = Console.ReadLine().ToInt(); int[] bh = Input().ToInt(); int[] h = new int[n + 2]; Array.Copy(bh, 0, h...
[["-", 8, 196, 0, 7, 8, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 7, 8, 1, 0, 11, 12, 203]]
8
447
2
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var N = int.Parse(ReadLine()); var h = ReadLine().Split().Select(int.Parse).ToArray(); if (N == 2) { WriteLine(Math.Abs(h[1] - h[0])); } var dp = new int[N]; ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var N = int.Parse(ReadLine()); var h = ReadLine().Split().Select(int.Parse).ToArray(); if (N == 2) { WriteLine(Math.Abs(h[1] - h[0])); return; } var dp ...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]]
8
205
2
using System; using System.Linq; namespace A_Frog_1 { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var hi = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); var costs = new int[N]; costs[0] = 0; costs[1] = Math.Abs(hi[0] - hi[1]); ...
using System; using System.Linq; namespace A_Frog_1 { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var hi = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); var costs = new int[N]; costs[0] = 0; costs[1] = Math.Abs(hi[0] - hi[1]); ...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
193
4
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Competitive { internal class Solution { public int N; public long MOD = 1000000007; public int[] H; public long[] DP; public void Run() { N = Input.ReadInt(); H = Input.ReadIntArray(); DP = new long[N];...
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Competitive { internal class Solution { public int N; public long MOD = 1000000007; public int[] H; public long[] DP; public void Run() { N = Input.ReadInt(); H = Input.ReadIntArray(); DP = new long[N];...
[["+", 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
419
5
using System; namespace AtCoder { class Program { static void Main(string[] args) { string[] input1 = Console.ReadLine().Split(' '); int n = int.Parse(input1[0]); int k = int.Parse(input1[1]); string[] input = Console.ReadLine().Split(' '); int[] dp = new int[n]; dp[0] = 0; dp[1] = Math.A...
using System; namespace AtCoder { class Program { static void Main(string[] args) { string[] input1 = Console.ReadLine().Split(' '); int n = int.Parse(input1[0]); int k = int.Parse(input1[1]); string[] input = Console.ReadLine().Split(' '); int[] dp = new int[n]; dp[0] = 0; dp[1] = Math.A...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
238
2
using System; using System.Linq; using System.Numerics; class Program { static void Main() { var INF = (int)1e5; var line1 = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = line1[0]; var K = line1[1]; var steps = Console.ReadLine().Split().Select(int.Parse).ToArray(); var dp =...
using System; using System.Linq; using System.Numerics; class Program { static void Main() { var INF = int.MaxValue; var line1 = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = line1[0]; var K = line1[1]; var steps = Console.ReadLine().Split().Select(int.Parse).ToArray(); var ...
[["-", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 51, 250], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 204, 206, 207, 0, 28, ...
8
235
9
using System; namespace DS { class Program { static void Main(string[] args) { string[] nk = Console.ReadLine().ToString().Split(' '); int n = Convert.ToInt32(nk[0]); int k = Convert.ToInt32(nk[1]); string[] nums = Console.ReadLine().ToString().Split(' '); int[] stones = new int[n]; for (int ...
using System; namespace DS { class Program { static void Main(string[] args) { string[] nk = Console.ReadLine().ToString().Split(' '); int n = Convert.ToInt32(nk[0]); int k = Convert.ToInt32(nk[1]); string[] nums = Console.ReadLine().ToString().Split(' '); int[] stones = new int[n]; for (int ...
[["-", 8, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 12, 214, 205, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 11, 12, 214, 141, 2...
8
269
7
using System; using System.Collections.Generic; // list用 using System.Text; // StringBuilder用 using System.Collections; using System.Linq; class Program { static List<int> s = new List<int>(); static decimal result; static Hashtable ht = new Hashtable(); static StringBuilder sb = new StringBuilde...
using System; using System.Collections.Generic; // list用 using System.Text; // StringBuilder用 using System.Collections; using System.Linq; class Program { static List<int> s = new List<int>(); static decimal result; static Hashtable ht = new Hashtable(); static StringBuilder sb = new StringBuilde...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
421
2
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { int[] NM = ReadInts(); int[] h = ReadInts(); long[] cost = new long[NM[0]]; for...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { int[] NM = ReadInts(); int[] h = ReadInts(); long[] cost = new long[NM[0]]; for...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22]]
8
377
4
using System; using System.Linq; namespace A_Frog_2 { class Program { static void Main(string[] args) { var l1 = Console.ReadLine().Split(' '); var N = int.Parse(l1[0]); var K = int.Parse(l1[1]); var hi = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); var costs = new int[N];...
using System; using System.Linq; namespace A_Frog_2 { class Program { static void Main(string[] args) { var l1 = Console.ReadLine().Split(' '); var N = int.Parse(l1[0]); var K = int.Parse(l1[1]); var hi = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); var costs = new long[N]...
[["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 214, 205, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 11, 12, 214, 141, 22]]
8
257
6
using System; public static class Solution { private static int[,] s_arr; private static int[,] s_memo; public static void Main() { int n = int.Parse(Console.ReadLine()); s_arr = new int[n, 3]; s_memo = new int[n, 3]; for (int i = 0; i < n; i++) { var ithDay = Array.ConvertAll(Console.Read...
using System; public static class Solution { private static int[,] s_arr; private static int[,] s_memo; public static void Main() { int n = int.Parse(Console.ReadLine()); s_arr = new int[n, 3]; s_memo = new int[n, 3]; for (int i = 0; i < n; i++) { var ithDay = Array.ConvertAll(Console.Read...
[["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 37, 0, 11, 31, 204, 206, 207, 0, 21], ["+", 0, 37, 0, 11, 31, 204, 206, 207, 0, 21], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22]]
8
495
4
using System; using System.Linq; using System.Collections.Generic; using static System.Math; namespace C { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var abc = new int [n][]; var dp = new int [n][]; for (int i = 0; i < n; i++) { abc[i] = Console.Rea...
using System; using System.Linq; using System.Collections.Generic; using static System.Math; namespace C { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var abc = new int [n][]; var dp = new int [n][]; for (int i = 0; i < n; i++) { abc[i] = Console.Rea...
[["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 22]]
8
257
4
using System; using System.Linq; namespace C___Vacation { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var vacation = new int[N + 1, 3]; for (int i = 1; i < N + 1; i++) { var Read = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArra...
using System; using System.Linq; namespace C___Vacation { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var vacation = new int[N + 1, 3]; for (int i = 1; i < N + 1; i++) { var Read = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArra...
[["-", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 22]]
8
318
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { long[][] dp = new long [3][]; for (int i = 0; i < 3; i++) { dp[i] =...
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[][] dp = new long [3][]; for (int i = 0; i < 3; i++) { dp[i] =...
[["-", 0, 204, 205, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 204, 205, 204, 206, 207, 0, 28, 0, 203]]
8
767
8
using System; using System.Collections.Generic; using System.Linq; namespace D2 { class Program { static void Main() { var nw = Console.ReadLine().Split().Select(int.Parse).ToList(); var N = nw[0]; var W = nw[1]; var w = new List<int>(); var v = new List<int>(); w.Add(0); v.Add(0); fo...
using System; using System.Collections.Generic; using System.Linq; namespace D2 { class Program { static void Main() { var nw = Console.ReadLine().Split().Select(int.Parse).ToList(); var N = nw[0]; var W = nw[1]; var w = new List<int>(); var v = new List<int>(); w.Add(0); v.Add(0); fo...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22]]
8
304
4
using System; using System.Linq; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; class Program { static void Main(string[] args) { int[] NW = ReadLineParseIntArray(); int N = NW[0]; int W = NW[1]; int[,]...
using System; using System.Linq; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; class Program { static void Main(string[] args) { int[] NW = ReadLineParseIntArray(); int N = NW[0]; int W = NW[1]; long[,...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]]
8
255
4
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = input[0]; var W = input[1]; var dp = new int[N + 1, W + 1]; var values = new int[N]; var weight = ne...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(long.Parse).ToArray(); var N = input[0]; var W = input[1]; var dp = new long[N + 1, W + 1]; var values = new long[N]; var weight =...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]]
8
278
10
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { int[] s = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int N = s[0], W = s[1]; long[] dp = new long[W + 1]; for (int i = 1; i <= N; i++) { int[] q = Array.ConvertAll(Console.ReadLi...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { int[] s = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int N = s[0], W = s[1]; long[] dp = new long[W + 1]; for (int i = 1; i <= N; i++) { int[] q = Array.ConvertAll(Console.ReadLi...
[["-", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22]]
8
187
4
using System; using System.Collections.Generic; using System.Linq; class Program { static Scanner cin = new Scanner(); static void Main(string[] args) { int N = cin.Int(); int W = cin.Int(); var w = new int[N]; var v = new int[N]; for (int i = 0; i < N; i++) { w[i] = cin.Int(); v[...
using System; using System.Collections.Generic; using System.Linq; class Program { static Scanner cin = new Scanner(); static void Main(string[] args) { int N = cin.Int(); int W = cin.Int(); var w = new int[N]; var v = new int[N]; for (int i = 0; i < N; i++) { w[i] = cin.Int(); v[...
[["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]]
8
607
2
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var r1 = ReadSplit(); var n = r1[0].ToLong(); var max = r1[1].ToLong(); var dp = new ...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var r1 = ReadSplit(); var n = r1[0].ToLong(); var max = r1[1].ToLong(); var dp = new ...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
698
6
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = l[0], W = l[1]; var max = N * 1000; var dp = new long[N + 1, max + 1]; for (var i = ...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = l[0], W = l[1]; var max = N * 1000; var dp = new long[N + 1, max + 1]; for (var i = ...
[["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
311
2
using static System.Math; 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 wmax = int.Parse(line[1]); var vaL = new int[n + 1]; var w = new int[n + 1]; var vmax = readData(va...
using static System.Math; 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 wmax = int.Parse(line[1]); var vaL = new int[n + 1]; var w = new int[n + 1]; var vmax = readData(va...
[["-", 0, 7, 8, 1, 0, 11, 12, 214, 205, 199], ["-", 0, 7, 8, 1, 0, 11, 12, 214, 0, 131], ["-", 0, 7, 8, 1, 0, 11, 12, 214, 141, 22], ["+", 8, 196, 0, 7, 8, 1, 0, 11, 12, 203]]
8
417
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class DPF { static bool SAIKI = false; static ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class DPF { static bool SAIKI = false; static ...
[["+", 0, 57, 64, 196, 0, 1, 0, 241, 0, 68], ["+", 0, 57, 64, 196, 0, 1, 0, 241, 0, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
1,708
3
using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); int len_s = s.Length; int len_t = t.Length; // dpテーブルを用意する var dp = new int[len_s, len_t]; if (s[0] == t[0]) { dp[0, 0] = 1; } else { dp[0, 0] = 0...
using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); int len_s = s.Length; int len_t = t.Length; // dpテーブルを用意する var dp = new int[len_s, len_t]; if (s[0] == t[0]) { dp[0, 0] = 1; } else { dp[0, 0] = 0...
[["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 95], ["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 52, 8, 196, 0, 57, 75, 57, 0, 95]]
8
602
10
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; namespace ABC153 { class Program { static v...
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; namespace ABC153 { class Program { static v...
[["-", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22]]
8
4,718
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSharp_AtCoder { class Program { static void Main(string[] args) { string S = Console.ReadLine(); string T = Console.ReadLine(); int sn = S.Length; int tn = T.Length; /...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSharp_AtCoder { class Program { static void Main(string[] args) { string S = Console.ReadLine(); string T = Console.ReadLine(); int sn = S.Length; int tn = T.Length; /...
[["-", 8, 196, 0, 52, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 31, 22]]
8
299
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder { public class Program { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); int[,] dp = new int[s.Length + 1, t.Lengt...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder { public class Program { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); int[,] dp = new int[s.Length + 1, t.Lengt...
[["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
353
4
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string s = Console.ReadLine(); string t = Console.ReadLine(); int ss = s.Length; int tt = t.Length; long[,] dp = new long[ss + 1, tt + 1]; for (in...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string s = Console.ReadLine(); string t = Console.ReadLine(); int ss = s.Length; int tt = t.Length; long[,] dp = new long[ss + 1, tt + 1]; for (in...
[["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
390
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static int N, M; static Queue<int>[] G; static int[] T; static void INPUT() { N = NextInt(); M = NextInt(); G =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static int N, M; static Queue<int>[] G; static int[] T; static void INPUT() { N = NextInt(); M = NextInt(); G =...
[["-", 0, 11, 12, 227, 39, 224, 225, 226, 0, 22], ["+", 12, 227, 39, 224, 225, 226, 0, 16, 31, 22], ["+", 12, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 12, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 1...
8
682
8
using System; public static class Solution { private static char[][] s_grid; private static int s_rows; private static int s_columns; private static int[,] s_memo; public static void Main() { int[] rc = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); s_rows = rc[0]; s_columns = rc[1]...
using System; public static class Solution { private static char[][] s_grid; private static int s_rows; private static int s_columns; private static int[,] s_memo; public static void Main() { int[] rc = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); s_rows = rc[0]; s_columns = rc[1]...
[["+", 0, 11, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 23, 0, 16, 31, 23, 0, 25], ["+", 0, 37, 0, 11, 12, 23, 0, 16, 17, 109], ["+", 0, 37, 0, 11, 12, 23, 0, 16, 12, 203]]
8
322
4