buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
change_count
int64
0
100
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; class Program { static void MakeDepth(int[] depth, int index, int dtemp, List<int>[] children, int maxDepth) { // depth[index] = dtemp; // foreach(int i in children[index]) // { // Mak...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; class Program { static void MakeDepth(int[] depth, int index, int dtemp, List<int>[] children, int maxDepth) { // depth[index] = dtemp; // foreach(int i in children[index]) // { // Mak...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
496
2
using System; using static System.Console; class main { public static void Main() { int n = int.Parse(ReadLine()); int k = int.Parse(ReadLine()); int x = int.Parse(ReadLine()); int y = int.Parse(ReadLine()); int sum = 0; sum += k * x; if (n > k) { sum += (n - k) * y; } Wri...
using System; using static System.Console; class main { public static void Main() { int n = int.Parse(ReadLine()); int k = int.Parse(ReadLine()); int x = int.Parse(ReadLine()); int y = int.Parse(ReadLine()); int sum = 0; sum += n * x; if (n > k) { sum -= (n - k) * (x - y); } ...
[["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 17, 33], ["+", 0,...
8
103
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC044A { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int K = int.Parse(Console.ReadLine()); int X = int.Parse(Console.ReadLine()); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC044A { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int K = int.Parse(Console.ReadLine()); int X = int.Parse(Console.ReadLine()); ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
135
2
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main() { //入力 // int[] input = Console.ReadLine().Split().Select(i => // int.Parse(i)).ToArray(); string[] input = // Console.ReadLine().Split().Select(...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main() { //入力 // int[] input = Console.ReadLine().Split().Select(i => // int.Parse(i)).ToArray(); string[] input = // Console.ReadLine().Split().Select(...
[["+", 0, 28, 0, 41, 75, 16, 31, 16, 17, 48], ["+", 0, 41, 75, 16, 31, 16, 12, 204, 205, 22], ["+", 75, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 75, 16, 31, 16, 12, 204, 206, 207, 0, 73]]
8
141
5
using System; using System.Linq; namespace practice6 { class MainClass { public static void Main(string[] args) { int N = Int32.Parse(Console.ReadLine()); int K = Int32.Parse(Console.ReadLine()); int X = Int32.Parse(Console.ReadLine()); int Y = Int32.Parse(Console.ReadLine()); int x; if (N > ...
using System; using System.Linq; namespace practice6 { class MainClass { public static void Main(string[] args) { int N = Int32.Parse(Console.ReadLine()); int K = Int32.Parse(Console.ReadLine()); int X = Int32.Parse(Console.ReadLine()); int Y = Int32.Parse(Console.ReadLine()); int x; if (N > ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22]]
8
125
2
using System; namespace a { public class buri { public static void Main() { int n = int.Parse(Console.ReadLine()), k = int.Parse(Console.ReadLine()), x = int.Parse(Console.ReadLine()), y = int.Parse(Console.ReadLine()); if (k <= n) { Console.WriteLine(k * x + (n - k) * y); } else { Con...
using System; namespace a { public class buri { public static void Main() { int n = int.Parse(Console.ReadLine()), k = int.Parse(Console.ReadLine()), x = int.Parse(Console.ReadLine()), y = int.Parse(Console.ReadLine()); if (k <= n) { Console.WriteLine(k * x + (n - k) * y); } else { Con...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22]]
8
110
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class _C { void _() { // var N = _Ns()[0]; var K = _Ns()[0]; var X = _Ns()[0]; var Y = _Ns()[0]; var ans = N * X; if (N - K > 1) ans -= ((N - K) * (X - Y)); Cons...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class _C { void _() { // var N = _Ns()[0]; var K = _Ns()[0]; var X = _Ns()[0]; var Y = _Ns()[0]; var ans = N * X; if (N - K >= 1) ans -= ((N - K) * (X - Y)); Co...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
292
2
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 = ...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 47], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 60]]
8
696
2
using System; using System.Collections.Generic; using System.Linq; namespace ABC099 { class Program { static void Main(string[] args) { List<string> list = new List<string>(); while (true) { string line = Console.ReadLine(); if (line == null) break; list.Add(line); } var ss ...
using System; using System.Collections.Generic; using System.Linq; namespace ABC099 { class Program { static void Main(string[] args) { List<string> list = new List<string>(); while (true) { string line = Console.ReadLine(); if (line == null) break; list.Add(line); } var ss ...
[["+", 8, 196, 0, 57, 75, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 75, 196, 0, 93, 0, 35]]
8
179
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { ...
[["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 204, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 204, 205, 22]]
8
541
4
using System; using System.Linq; namespace AtCoder20170211 { class Program { static void Main(string[] args) { // QuestionOne(); QuestionTwo(); } static void QuestionOne() { decimal n = Convert.ToDecimal(Console.ReadLine()); decimal k = Convert.ToDecimal(Console.ReadLine()); decimal x = Conv...
using System; using System.Linq; namespace AtCoder20170211 { class Program { static void Main(string[] args) { // QuestionOne(); QuestionTwo(); } static void QuestionOne() { decimal n = Convert.ToDecimal(Console.ReadLine()); decimal k = Convert.ToDecimal(Console.ReadLine()); decimal x = Conv...
[["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22]]
8
224
2
using System; using System.Collections.Generic; using System.Linq; namespace ABC044_C { class Program { static void Main() { var array = Utility.ReadIntArray(); var N = array[0]; var A = array[1]; var X = Utility.ReadIntArray(); var dp = new long[N + 1, N + 1, (N + 1) * A]; dp[0, 0, 0] = 1;...
using System; using System.Collections.Generic; using System.Linq; namespace ABC044_C { class Program { static void Main() { var array = Utility.ReadIntArray(); var N = array[0]; var A = array[1]; var X = Utility.ReadIntArray(); var dp = new long[N + 1, N + 1, (N + 1) * 50]; dp[0, 0, 0] = 1...
[["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 22], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203]]
8
364
2
using System; using System.Linq; namespace ABC044_C_TakAndCards { /// <summary> /// 復習 /// </summary> public static class ABC044_C_Review { static void Main(string[] args) { string[] split = Console.ReadLine().Split(' '); int N = int.Parse(split[0]); int A = int.Parse(split[1]); int[] X = Console.Re...
using System; using System.Linq; namespace ABC044_C_TakAndCards { /// <summary> /// 復習 /// </summary> public static class ABC044_C_Review { static void Main(string[] args) { string[] split = Console.ReadLine().Split(' '); int N = int.Parse(split[0]); int A = int.Parse(split[1]); int[] X = Console.Re...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]]
8
284
4
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; public class AtCoder { static long n, s; static void Main() { n = long.Parse(Console.ReadLine()); s = long.Parse(Consol...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; public class AtCoder { static long n, s; static void Main() { n = long.Parse(Console.ReadLine()); s = long.Parse(Consol...
[["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199]]
8
274
4
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) { int[] NA = ReadLineParseIntArray(); long N = NA[0]; long A = NA[1]; long[] X = ReadLine().Split(' ').Select(x ...
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) { int[] NA = ReadLineParseIntArray(); long N = NA[0]; long A = NA[1]; long[] X = ReadLine().Split(' ').Select(x ...
[["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
316
3
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 B = (int[])A.Clone(); Array.Sort(B); HashSet<int> H = new HashSet...
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 B = (int[])A.Clone(); Array.Sort(B); HashSet<int> H = new HashSet...
[["+", 8, 196, 0, 7, 8, 57, 15, 241, 0, 111]]
8
435
1
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var s = ns(); int from = -1, to = -1; ...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var s = ns(); int from = -1, to = -1; ...
[["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
1,932
4
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } ...
[["-", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203]]
8
1,190
2
using Yorukatsu045.Questions; using Yorukatsu045.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu045.Questions { /// <summary> /// ARC059 D /// </summary> public class QuestionE : AtCoderQuestionBase { public override IEn...
using Yorukatsu045.Questions; using Yorukatsu045.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu045.Questions { /// <summary> /// ARC059 D /// </summary> public class QuestionE : AtCoderQuestionBase { public override IEn...
[["+", 0, 285, 0, 283, 0, 284, 0, 16, 17, 72], ["+", 0, 285, 0, 283, 0, 284, 0, 16, 12, 203], ["-", 0, 285, 0, 283, 0, 284, 0, 16, 12, 203]]
8
567
8
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string s = Console.ReadLine(); int n = s.Length; int answerFirst = -1; int answerSecond = -1; for (int i = 0; i < n - 1; i++) { if (s[i] == s[i ...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string s = Console.ReadLine(); int n = s.Length; int answerFirst = -1; int answerSecond = -1; for (int i = 0; i < n - 1; i++) { if (s[i] == s[i ...
[["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
162
8
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 { public void Solve() { var A = Reader.String().Select(c => c - 'a...
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 { public void Solve() { var A = Reader.String().Select(c => c - 'a...
[["-", 0, 213, 3, 4, 0, 28, 0, 241, 0, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 241, 0, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
714
5
using System; class Program { static void Main(string[] args) { string str = Console.ReadLine(); int N = str.Length - 1; for (int i = 0; i < N - 1; i++) { if (str[i] == str[i + 1]) { Console.WriteLine("{0} {1}", i + 1, i + 2); return; } } for (int i = 0; i < N - 2; i++...
using System; class Program { static void Main(string[] args) { string str = Console.ReadLine(); int N = str.Length; for (int i = 0; i < N - 1; i++) { if (str[i] == str[i + 1]) { Console.WriteLine("{0} {1}", i + 1, i + 2); return; } } for (int i = 0; i < N - 2; i++) { ...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
151
2
using System; class Program { static void Main(string[] args) { long M = 1000000007; string[] str = Console.ReadLine().Split(' '); int N = int.Parse(str[0]); int C = int.Parse(str[1]); str = Console.ReadLine().Split(' '); long[] A = new long[N + 1]; long[] B = new long[N + 1]; for (i...
using System; class Program { static void Main(string[] args) { long M = 1000000007; string[] str = Console.ReadLine().Split(' '); int N = int.Parse(str[0]); int C = int.Parse(str[1]); str = Console.ReadLine().Split(' '); long[] A = new long[N + 1]; long[] B = new long[N + 1]; for (i...
[["+", 31, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 17, 72]]
8
608
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var r = int.Parse(Console.ReadLine()); int ret = 0; for (int i = 0; i < r; i++) { ret...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var r = int.Parse(Console.ReadLine()); int ret = 0; for (int i = 0; i < r; i++) { ret...
[["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
97
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC043A { class Program { static void Main(string[] args) { int n; int s; int i; // n 個数 // s 人数 //にんずうを入力 n = int.Parse(Console.ReadLine()); //ひつようなこすうをにゅうり...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC043A { class Program { static void Main(string[] args) { int n; int s; int i; // n 個数 // s 人数 //にんずうを入力 n = int.Parse(Console.ReadLine()); //ひつようなこすうをにゅうり...
[["-", 0, 235, 8, 201, 0, 195, 8, 196, 0, 7], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 10, 11], ["-", 0, 195, 8, 196, 0, 7, 10, 11, 31, 22], ["-", 8, 196, 0, 7, 10, 11, 31, 22, 0, 202], ["-", 0, 7, 10, 11, 31, 22, 0, 202, 12, 203], ["-", 10, 11, 31, 22, 0, 202, 12, 203, 15, 16], ["-", 31, 22, 0, 202, 12, 203, 15, 16, 31, 22...
8
115
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC043A { class Program { static void Main(string[] args) { int a, b, i; a = int.Parse(Console.ReadLine()); b = 0; for (i = 1; i <= a; i++) ; { b += i; } Cons...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC043A { class Program { static void Main(string[] args) { int a, b, i; a = int.Parse(Console.ReadLine()); b = 0; for (i = 1; i <= a; i++) { b = b + i; } Co...
[["-", 0, 195, 8, 196, 0, 7, 8, 260, 0, 35], ["-", 0, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72]]
8
103
5
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { int N; //人数 int S; //必要な個数 int i; //人数Nを入力 N = int.Parse(Console.ReadLine()); //必要な個数Sを求める ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { int N; //人数 int S; //必要な個数 int i; //人数Nを入力 N = int.Parse(Console.ReadLine()); //必要な個数Sを求める ...
[["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22]]
8
115
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC_043A { class Program { static void Main(string[] args) { int N; int s; int i; N = int.Parse(Console.ReadLine()); s = 0; for (i = 1; i < N; i++) { s = s + i...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC_043A { class Program { static void Main(string[] args) { int N; int s; int i; N = int.Parse(Console.ReadLine()); s = 0; for (i = 1; i <= N; i++) { s = s +...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
106
2
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { int N = Input.ScanInt(); int Sum = Enumerable.Range(0, N).ToArray().Sum(); Console.WriteLine(Sum); } } static class Input { static public int ScanInt() { return int.Parse(Conso...
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { int N = Input.ScanInt(); int Sum = Enumerable.Range(1, N).ToArray().Sum(); Console.WriteLine(Sum); } } static class Input { static public int ScanInt() { return int.Parse(Conso...
[["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203]]
8
537
2
using System; class Unti { public static void Main() { var x = int.Parse(Console.ReadLine()); var count = 0; for (int i = 0; i < x; i++) { count += i; } Console.WriteLine(count); } }
using System; class Unti { public static void Main() { var x = int.Parse(Console.ReadLine()); var count = 0; for (int i = 1; i <= x; i++) { count += i; } Console.WriteLine(count); } }
[["-", 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
61
4
using System; public class P { public static void Main() { int a = int.Parse(Console.ReadLine()); Console.WriteLine(a * (a - 1) / 2); } }
using System; public class P { public static void Main() { int a = int.Parse(Console.ReadLine()); Console.WriteLine(a * (a + 1) / 2); } }
[["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 72]]
8
45
2
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace AtCoder.B { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace AtCoder.B { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { ...
[["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131]]
8
430
4
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Competitive { internal class Solution { public long N, S; public void Run() { N = Input.ReadLong(); S = Input.ReadLong(); if (N == S) { Console.WriteLine(N + 1); } else if (N < S) { Console.W...
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Competitive { internal class Solution { public long N, S; public void Run() { N = Input.ReadLong(); S = Input.ReadLong(); if (N == S) { Console.WriteLine(N + 1); } else if (N < S) { Console.W...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 241, 0, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 241, 0, 203]]
8
523
3
using System; using System.Collections.Generic; class Solve { public long n; public long s; public Solve() {} public static int Main() { new Solve().Calc(); return 0; } void Calc() { getinput(); if (n <= s) { if (n == s) { Console.WriteLine(n + 1); } else { Consol...
using System; using System.Collections.Generic; class Solve { public long n; public long s; public Solve() {} public static int Main() { new Solve().Calc(); return 0; } void Calc() { getinput(); if (n <= s) { if (n == s) { Console.WriteLine(n + 1); } else { Consol...
[["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22]]
8
283
4
using System; using System.Text; class A { int N; int maxN = 100005; long L; int Q; long[] x; int[,] l; public A() { x = new long[maxN]; l = new int[20, maxN]; } public int calc(int a, int b) { if (a == b) return 0; if (b <= l[0, a]) return 1; for (int i = 1; i < 20; i...
using System; using System.Text; class A { int N; int maxN = 100005; long L; int Q; long[] x; int[,] l; public A() { x = new long[maxN]; l = new int[20, maxN]; } public int calc(int a, int b) { if (a == b) return 0; if (b <= l[0, a]) return 1; for (int i = 0; i < 19; i...
[["-", 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, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 37, 0, 203], ["+", 0, 195, 8, 196, 0, 37, 0, 241, 0, 33], ["+", 0, 195, 8, 196, 0, 37, 0, 241, 0, 203]...
8
547
7
using System; using System.IO; using System.Linq; class E { static void Main() { new K(); } } class K { int F() { return int.Parse(Console.ReadLine()); } int[] G() { return Console.ReadLine().Split().Select(_ => int.Parse(_)).ToArray(); } public K() { Console.SetOut( new StreamWriter(Console.O...
using System; using System.IO; using System.Linq; class E { static void Main() { new K(); } } class K { int F() { return int.Parse(Console.ReadLine()); } int[] G() { return Console.ReadLine().Split().Select(_ => int.Parse(_)).ToArray(); } public K() { Console.SetOut( new StreamWriter(Console.O...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 196, 0, 37, 0, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 37, 0, 16, 12, 16, 12, 203]]
8
441
4
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; using System.Diagnostics; using static System.Math; using static System.Array; using static AtCoder.Cout; using static AtCoder.Tool...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; using System.Diagnostics; using static System.Math; using static System.Array; using static AtCoder.Cout; using static AtCoder.Tool...
[["-", 31, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 31, 213, 3, 4, 0, 28, 0, 252, 0, 253]]
8
3,743
2
using System; class A { static void Main() { char[] S = Console.ReadLine().ToCharArray(); bool N = false; bool So = false; bool W = false; bool E = false; for (int i = 0; i < S.Length; i++) { if (S[i].ToString() == "N") N = true; else if (S[i].ToString() == "S") So...
using System; class A { static void Main() { char[] S = Console.ReadLine().ToCharArray(); bool N = false; bool So = false; bool W = false; bool E = false; for (int i = 0; i < S.Length; i++) { if (S[i].ToString() == "N") N = true; else if (S[i].ToString() == "S") So...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79]]
8
175
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Swap<T>(ref T a, ref T b) { T temp = a; a = b; b = temp; } ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Swap<T>(ref T a, ref T b) { T temp = a; a = b; b = temp; } ...
[["-", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253]]
8
1,564
8
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_A.Lib_IO; using static Contest_A.Lib_Minifunc; public static class Contest_A { public static ...
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_A.Lib_IO; using static Contest_A.Lib_Minifunc; public static class Contest_A { public static ...
[["-", 12, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 12, 213, 3, 4, 0, 28, 0, 252, 0, 253]]
8
3,006
2
using System; using System.Linq; namespace ABC042C { public class Program { public static void Main(string[] args) { var sr = new StreamReader(); //--------------------------------- var N = sr.Next<int>(); var K = sr.Next<int>(); var D = sr.Next<int>(K); for (var i = N; i < 10000; i++) { ...
using System; using System.Linq; namespace ABC042C { public class Program { public static void Main(string[] args) { var sr = new StreamReader(); //--------------------------------- var N = sr.Next<int>(); var K = sr.Next<int>(); var D = sr.Next<int>(K); for (var i = N; i < 100000; i++) { ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]]
8
419
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner sc = new Scaner(); write wr = new write();...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner sc = new Scaner(); write wr = new write();...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 11, 12, 16, 31, 16, 31, 16, 17, 109], ["+", 0, 11, 12, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
1,005
6
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Security.Cryptography.X509Certificates; namespace AtCoder.Contest.A { static class Program { public static void Main(string[] args) { var sw = new Stre...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Security.Cryptography.X509Certificates; namespace AtCoder.Contest.A { static class Program { public static void Main(string[] args) { var sw = new Stre...
[["+", 205, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 205, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 48], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203]]
8
529
6
using System; public class c { public static void Main() { int N = int.Parse(Console.ReadLine()); string[] s = Console.ReadLine().Split(' '); int[] L = new int[N * 2]; for (int i = 0; i < 2 * N; i++) { L[i] = int.Parse(s[i]); } Array.Sort(L); int x = 0; for (int i = 0; i < N; i++...
using System; public class c { public static void Main() { int N = int.Parse(Console.ReadLine()); string[] s = Console.ReadLine().Split(' '); int[] L = new int[N * 2]; for (int i = 0; i < 2 * N; i++) { L[i] = int.Parse(s[i]); } Array.Sort(L); int x = 0; for (int i = 0; i < N; i++...
[["+", 12, 204, 206, 207, 0, 28, 0, 16, 31, 203], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 48]]
8
136
2
using System; using System.Linq; class A { static void Main() { int n = int.Parse(Console.ReadLine()); int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int ans = 0; Array.Sort(a); for (int i = 0; i < n; i++) { ans += a[i * 2 + 1]; } Console.WriteLine(ans); } }
using System; using System.Linq; class A { static void Main() { int n = int.Parse(Console.ReadLine()); int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int ans = 0; Array.Sort(a); for (int i = 0; i < n; i++) { ans += a[i * 2]; } Console.WriteLine(ans); } }
[["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
105
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] L = Console.ReadLine().Split().Select(int.Parse).ToArray(); int ans = 0; Array.Sort(L); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] L = Console.ReadLine().Split().Select(int.Parse).ToArray(); int ans = 0; Array.Sort(L); ...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 85], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
132
2
using System; using System.Linq; namespace agc001_a { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); Array.Sort(x); int a = x.Sum(); for (int i = 0; i < n; i++) { a -= x[i * 2]; }...
using System; using System.Linq; namespace agc001_a { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); Array.Sort(x); int a = x.Sum(); for (int i = 1; i <= n; i++) { a -= x[i * 2 - 1]; ...
[["-", 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], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
115
6
using System; using System.Linq; namespace EasyBBQ { class MainClass { public static void Main(string[] args) { var combSetNum = int.Parse(Console.ReadLine()) / 2; var lengths = Console.ReadLine().Split(' '); var lengthsInt = lengths.Select(_ => int.Parse(_)).ToList(); lengthsInt = lengthsInt.OrderBy...
using System; using System.Linq; namespace EasyBBQ { class MainClass { public static void Main(string[] args) { var combSetNum = int.Parse(Console.ReadLine()); var lengths = Console.ReadLine().Split(' '); var lengthsInt = lengths.Select(_ => int.Parse(_)).ToList(); lengthsInt = lengthsInt.OrderByDesc...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
145
2
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { var str = Console.ReadLine(); var n = Int32.Parse(str); var l = new int[n]; var...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { var str = Console.ReadLine(); var n = Int32.Parse(str); var l = new int[2 * n]; ...
[["+", 0, 227, 39, 224, 225, 226, 0, 16, 31, 203], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 48]]
8
215
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...
[["-", 64, 37, 0, 16, 31, 16, 31, 16, 17, 85], ["-", 64, 37, 0, 16, 31, 16, 31, 16, 12, 22]]
8
387
2
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int x = int.Parse(input[1]); int y = int.Parse(input[0]) - x; int sum = 0; sum += x; sum += y; while (x != 0) { sum += (2 * x) * (y / x); int tmp = y; y = x; ...
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); ulong x = ulong.Parse(input[1]); ulong y = ulong.Parse(input[0]) - x; ulong sum = 0; sum += x; sum += y; while (x != 0) { sum += (2 * x) * (y / x); ulong tmp = y; ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 212, 0, 16, 31, 213, 63, 214, 205, 199], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 205, 199], ["-", 0, 52, 8, 196, 0,...
8
125
12
using System; using System.Linq; //リストの使用 using System.Collections.Generic; class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 long n = long.Parse(input[0]); long x = long.Parse(input[1]); long answer = 0; long a = 0; long ...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 long n = long.Parse(input[0]); long x = long.Parse(input[1]); long answer = 0; long a = 0; long ...
[["-", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22]]
8
182
2
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, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22]]
8
1,650
6
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; namespace CF317 { internal class Program { private static void Main(string[] args) { var sr = new InputReader(Console.In); // var sr = new InputReader(new StreamReader("input.txt")); var task =...
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; namespace CF317 { internal class Program { private static void Main(string[] args) { var sr = new InputReader(Console.In); // var sr = new InputReader(new StreamReader("input.txt")); var task =...
[["+", 64, 37, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 0, 57, 64, 37, 0, 16, 12, 16, 17, 48], ["+", 0, 57, 64, 37, 0, 16, 12, 16, 12, 22]]
8
565
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using Pair = System.Collections.Generic.KeyValuePair<int, int>; class Program { public Program() {} static void Main(string[] args) { new Program().prog(); } Scanner cin; const int MOD = 1000000007; const...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using Pair = System.Collections.Generic.KeyValuePair<int, int>; class Program { public Program() {} static void Main(string[] args) { new Program().prog(); } Scanner cin; const int MOD = 1000000007; const...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
466
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, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22]]
8
1,718
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; List<int>[] es; ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; List<int>[] es; ...
[["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203]]
8
790
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; int ans; int N, K; List<int>[] es; void calc() { cin = new Scanner(); N =...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; int ans; int N, K; List<int>[] es; void calc() { cin = new Scanner(); N =...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25]]
8
814
6
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { int ans = N; switch (K % 2) { case 0: ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { int ans = N; switch (K % 2) { case 0: ...
[["-", 8, 196, 0, 1, 0, 11, 12, 241, 0, 33], ["-", 8, 196, 0, 1, 0, 11, 12, 241, 0, 203], ["+", 0, 210, 8, 196, 0, 1, 0, 11, 12, 22]]
8
847
6
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, 0, 131], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 210, 12, 213, 3, 4, 0, 24], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 25]]
8
1,578
4
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 = ...
[["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 203]]
8
534
2
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { abc043_b(); } static void abc043_b() { // B - バイナリハックイージー string S = Console.ReadLine().Trim(); char[] Sarr = S.ToCharArray(); var stack = new Stack<char>(); ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { abc043_b(); } static void abc043_b() { // B - バイナリハックイージー string S = Console.ReadLine().Trim(); char[] Sarr = S.ToCharArray(); var stack = new Stack<char>(); ...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25]]
8
144
4
using System; namespace ABC043_B { class Program { static void Main(string[] args) { var S = Console.ReadLine().ToCharArray(); var str = ""; foreach (var c in S) { if (c == '0' || c == '1') { str += 1; } else if (str.Length > 0) { str = str.Substring(0, str.Length - 1); ...
using System; namespace ABC043_B { class Program { static void Main(string[] args) { var S = Console.ReadLine().ToCharArray(); var str = ""; foreach (var c in S) { if (c == '0' || c == '1') { str += c; } else if (str.Length > 0) { str = str.Substring(0, str.Length - 1); ...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22]]
8
103
2
using System; using System.Collections.Generic; class program { static void Main(string[] args) { string input = Console.ReadLine(); List<char> output = new List<char>(); for (int i = 0; i < input.Length; i++) { switch (input[i]) { case '0': output.Add('0'); break; case '...
using System; using System.Collections.Generic; class program { static void Main(string[] args) { string input = Console.ReadLine(); List<char> output = new List<char>(); for (int i = 0; i < input.Length; i++) { switch (input[i]) { case '0': output.Add('0'); break; case '...
[["-", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253]]
8
178
2
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class MainClass { public static void Main(string[] args) { // 入力 var str = Console.ReadLine(); //処理 var stack = new Stack<char>(); foreach (var s in str) { if (s == '0' || s == '1') { ...
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class MainClass { public static void Main(string[] args) { // 入力 var str = Console.ReadLine(); //処理 var stack = new Stack<char>(); foreach (var s in str) { if (s == '0' || s == '1') { ...
[["+", 8, 196, 0, 210, 12, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 210, 12, 213, 3, 4, 0, 24], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 25]]
8
140
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; 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();...
using System; using System.Collections.Generic; using System.Linq; using System.Text; 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();...
[["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22]]
8
122
2
using System; namespace VirtualAtCorder { class Program { static void Main(string[] args) { string inputs = Console.ReadLine(); string output = ""; foreach (char c in inputs) { if ('0' == c) { output += c; } else if ('1' == c) { output += c; } else if ('B' == c) { ...
using System; namespace VirtualAtCorder { class Program { static void Main(string[] args) { string inputs = Console.ReadLine(); string output = ""; foreach (char c in inputs) { if ('0' == c) { output += c; } else if ('1' == c) { output += c; } else if ('B' == c) { ...
[["+", 75, 57, 64, 196, 0, 57, 15, 241, 0, 111]]
8
140
1
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { int[,] dp = new int[50, 2501]; static void Main(string[] args) { new Calc().calc(); return; } public class Calc { public void calc() { string s = ReadLine<string>(); Stack<char> ans = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { int[,] dp = new int[50, 2501]; static void Main(string[] args) { new Calc().calc(); return; } public class Calc { public void calc() { string s = ReadLine<string>(); Stack<char> ans = ...
[["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131]]
8
586
4
using System; class A { static void Main() { string a = ""; string s = Console.ReadLine(); for (int i = 0; i < s.Length; i++) { // string y = s.Substring(i, 1); if (s[i] != 'B') { a += s[i]; } else { if (!string.IsNullOrEmpty(a)) { a = s.Substring(0, a.Lengt...
using System; class A { static void Main() { string a = ""; string s = Console.ReadLine(); for (int i = 0; i < s.Length; i++) { // string y = s.Substring(i, 1); if (s[i] != 'B') { a += s[i]; } else { if (!string.IsNullOrEmpty(a)) { a = a.Substring(0, a.Lengt...
[["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22]]
8
105
2
using System; using System.Collections.Generic; using System.Linq; namespace ABC { class B043 { static void Main() { string str = Console.ReadLine(); Stack<char> chars = new Stack<char>(); foreach (char key in str) { if (key == '0') chars.Push('0'); if (key == '1') chars.Push(...
using System; using System.Collections.Generic; using System.Linq; namespace ABC { class B043 { static void Main() { string str = Console.ReadLine(); Stack<char> chars = new Stack<char>(); foreach (char key in str) { if (key == '0') chars.Push('0'); if (key == '1') chars.Push(...
[["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131]]
8
133
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class GFG { static public void Main() { try { var n = Console.ReadLine(); // var input1 = Console.ReadLine().Split(' '); // var n = int.Parse(input1[0]); // var L = int.Parse(input1[1]); //...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class GFG { static public void Main() { try { var n = Console.ReadLine(); // var input1 = Console.ReadLine().Split(' '); // var n = int.Parse(input1[0]); // var L = int.Parse(input1[1]); //...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
288
2
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace atcorder2 { class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } static void Main...
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace atcorder2 { class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } static void Main...
[["+", 0, 41, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 41, 15, 16, 31, 16, 31, 23, 0, 25]]
8
216
2
using System; class Abc { static void Main() { int[] ab = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int a = ab[0]; int b = ab[1]; if (0 < a) Console.WriteLine("Positive"); else if (b < 0 && b - a + 1 % 2 == 0) Console.WriteLine("Positive"); else if (b < 0 && b - ...
using System; class Abc { static void Main() { int[] ab = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int a = ab[0]; int b = ab[1]; if (0 < a) Console.WriteLine("Positive"); else if (b < 0 && (b - a + 1) % 2 == 0) Console.WriteLine("Positive"); else if (b < 0 && (b...
[["+", 15, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 15, 16, 12, 16, 31, 16, 31, 23, 0, 25]]
8
144
4
using System; using System.Collections.Generic; using System.Linq; namespace kakomon { class Program { static void Main(string[] args) { agc002_a(); } static void agc002_a() { // A - Range Product long[] input = Console.ReadLine().Trim().Split().Select(long.Parse).ToArray(); long a = input[0];...
using System; using System.Collections.Generic; using System.Linq; namespace kakomon { class Program { static void Main(string[] args) { agc002_a(); } static void agc002_a() { // A - Range Product long[] input = Console.ReadLine().Trim().Split().Select(long.Parse).ToArray(); long a = input[0];...
[["+", 75, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 75, 57, 15, 16, 31, 16, 31, 23, 0, 25]]
8
178
2
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { AGC002.A(); } class AGC002 { public static void A() { var A = Read.Long(); var B = Read.Long(); if (A * B <= 0) { Console.WriteLine("Zero"); ...
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { AGC002.A(); } class AGC002 { public static void A() { var A = Read.Long(); var B = Read.Long(); if (A * B <= 0) { Console.WriteLine("Zero"); ...
[["+", 15, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 15, 16, 12, 16, 31, 16, 31, 23, 0, 25]]
8
1,490
2
using System; using System.Linq; class A { static void Main() { var h = Console.ReadLine().Split().Select(int.Parse).ToArray(); int a = h[0], b = h[1]; Console.WriteLine(a > 0 ? "Positive" : b >= 0 ? "Zero" : b - a % 2 == 1 ? "Positive" ...
using System; using System.Linq; class A { static void Main() { var h = Console.ReadLine().Split().Select(int.Parse).ToArray(); int a = h[0], b = h[1]; Console.WriteLine(a > 0 ? "Positive" : b >= 0 ? "Zero" : (b - a) % 2 == 1 ? "Positive"...
[["+", 75, 41, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 75, 41, 15, 16, 31, 16, 31, 23, 0, 25]]
8
95
2
using System; using System.Linq; using System.Collections.Generic; public class Hello { public static void Main() { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var a = input[0]; var b = input[1]; var ans = ""; if (1 <= b) { if (1 <= a) { ans = "POSITIVE"; ...
using System; using System.Linq; using System.Collections.Generic; public class Hello { public static void Main() { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var a = input[0]; var b = input[1]; var ans = ""; if (1 <= b) { if (1 <= a) { ans = "Positive"; ...
[["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["-", 75, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 75, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
169
10
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 long a = long.Parse(input[0]); long b = long.Parse(input[1]); if (0 < ...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 long a = long.Parse(input[0]); long b = long.Parse(input[1]); if (0 < ...
[["-", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203]]
8
148
2
using System; using System.Linq; class Program { static void Main() { int[] ab = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int a = ab[0], b = ab[1]; if (a > 0) Console.WriteLine("Positive"); else if (a <= 0 && b >= 0) Console.WriteLine("Zero"); else if ...
using System; using System.Linq; class Program { static void Main() { int[] ab = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int a = ab[0], b = ab[1]; if (a > 0) Console.WriteLine("Positive"); else if (a <= 0 && b >= 0) Console.WriteLine("Zero"); else if ...
[["-", 0, 57, 75, 57, 75, 57, 15, 16, 17, 60], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 17, 79]]
8
137
2
using System; using System.Linq; class Program { static void Main(string[] args) { var a = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); if (a[0] <= 0 && a[1] >= 0) Console.WriteLine("Zero"); else if (a[0] > 0) Console.WriteLine("Positive"); else if (a[1] < 0) { ...
using System; using System.Linq; class Program { static void Main(string[] args) { var a = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); if (a[0] <= 0 && a[1] >= 0) Console.WriteLine("Zero"); else if (a[0] > 0) Console.WriteLine("Positive"); else if (a[1] < 0) { ...
[["-", 0, 28, 0, 41, 15, 16, 31, 16, 17, 85], ["+", 0, 28, 0, 41, 15, 16, 31, 16, 17, 109]]
8
142
2
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { int[] a = Console.ReadLine().Split().Select(int.Parse).OrderBy(x => x).ToArray(); string res = ""; if (0 < a[0] && 0 < a[1]) { res = "Positive"; } else if (0 > a[0] && 0 > a[1]) { if ...
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { int[] a = Console.ReadLine().Split().Select(int.Parse).OrderBy(x => x).ToArray(); string res = ""; if (0 < a[0] && 0 < a[1]) { res = "Positive"; } else if (0 > a[0] && 0 > a[1]) { if ...
[["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 25]]
8
157
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { ...
[["+", 15, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 15, 16, 12, 16, 31, 16, 31, 23, 0, 25]]
8
513
2
using System; using System.Collections.Generic; using System.Linq; class Program { static int ReadInt() { return int.Parse(Console.ReadLine()); } static int[] ReadInts() { return Console.ReadLine().Split().Select(int.Parse).ToArray(); } static string[] ReadStrings() { return Console.ReadLine().Split(); } ...
using System; using System.Collections.Generic; using System.Linq; class Program { static int ReadInt() { return int.Parse(Console.ReadLine()); } static int[] ReadInts() { return Console.ReadLine().Split().Select(int.Parse).ToArray(); } static string[] ReadStrings() { return Console.ReadLine().Split(); } ...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
246
2
using System; namespace RangeProduct { class Program { static void Main(string[] args) { int a, b; string[] str = Console.ReadLine().Split(' '); a = int.Parse(str[0]); b = int.Parse(str[1]); if (a > 0 && b >= a) { Console.WriteLine("Positive"); } else if (a >= 0 && b <= 0) { Conso...
using System; namespace RangeProduct { class Program { static void Main(string[] args) { int a, b; string[] str = Console.ReadLine().Split(' '); a = int.Parse(str[0]); b = int.Parse(str[1]); if (a > 0 && b >= a) { Console.WriteLine("Positive"); } else if (a <= 0 && b >= 0) { Conso...
[["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 20], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 19], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 19], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 17, 20]]
8
164
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class AGC002 { static void Main(string[] args) { var spl = Console.ReadLine().Split(); long a = long.Parse(spl[0]); long b = long.Parse(spl[1]); if (a > 0 && b > 0) { Console.Writ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class AGC002 { static void Main(string[] args) { var spl = Console.ReadLine().Split(); long a = long.Parse(spl[0]); long b = long.Parse(spl[1]); if (a > 0 && b > 0) { Console.Writ...
[["+", 0, 57, 75, 57, 64, 196, 0, 57, 0, 95]]
8
185
1
using System; class Program { static void Main() { int[] s = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); bool[] b = new bool[s[0] + 1]; int[] h = new int[s[0] + 1]; int ans = 1; b[1] = true; for (int i = 1; i < s[0]; i++) { h[i] = 1; } for (int i = 0; i < s[1]; i++) ...
using System; class Program { static void Main() { int[] s = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); bool[] b = new bool[s[0] + 1]; int[] h = new int[s[0] + 1]; int ans = 1; b[1] = true; for (int i = 1; i <= s[0]; i++) { h[i] = 1; } for (int i = 0; i < s[1]; i++)...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
251
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class GFG { static public void Main() { try { var input1 = Console.ReadLine().Split(' '); var n = int.Parse(input1[0]); var L = int.Parse(input1[1]); var aar = Console.ReadLine().Split...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class GFG { static public void Main() { try { var input1 = Console.ReadLine().Split(' '); var n = int.Parse(input1[0]); var L = int.Parse(input1[1]); var aar = Console.ReadLine().Split...
[["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
284
6
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; using static AtCoder.Tool; namespace AtCoder { class AC { const int MOD = 1000000007; const int INF = int.MaxValue / 2; const long SINF = long.MaxValue / 2; ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; using static AtCoder.Tool; namespace AtCoder { class AC { const int MOD = 1000000007; const int INF = int.MaxValue / 2; const long SINF = long.MaxValue / 2; ...
[["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 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, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29],...
8
1,299
8
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { const long MOD = 1000000007; static void Main(string[] args) { var cin = new Scanner2(); int n = cin.Int...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { const long MOD = 1000000007; static void Main(string[] args) { var cin = new Scanner2(); int n = cin.Int...
[["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
717
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var s = Console.ReadLine().Split(); var n = long.Parse(s[0]); var l = long.Parse(s[1]); var a = Console.ReadLin...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var s = Console.ReadLine().Split(); var n = long.Parse(s[0]); var l = long.Parse(s[1]); var a = Console.ReadLin...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
246
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; long[] inpt = Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray(); int itemCount = (int)in...
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; long[] inpt = Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray(); int itemCount = (int)in...
[["-", 0, 57, 64, 196, 0, 7, 26, 223, 0, 29], ["+", 0, 57, 64, 196, 0, 7, 26, 223, 0, 68]]
8
395
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AGC002_C { class Program { static void Main(string[] args) { var z = scan(); var a = scan(); int last = 0; bool flag = false; for (int i = 0; i < z[0] - 1; i++) { if...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AGC002_C { class Program { static void Main(string[] args) { var z = scan(); var a = scan(); int last = 0; bool flag = false; for (int i = 0; i < z[0] - 1; i++) { if...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
268
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; // using static System.Linq.Enumerable; using static System.Console; using static AtCoder.Util; using static AtCoder.Cin; using static System.Math; using static AtCoder.MyMath; using stati...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; // using static System.Linq.Enumerable; using static System.Console; using static AtCoder.Util; using static AtCoder.Cin; using static System.Math; using static AtCoder.MyMath; using stati...
[["-", 0, 52, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]]
8
6,537
5
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Threading; // (づ°ω°)づミe★゜・。。・゜゜・。。・゜☆゜・。。・゜゜・。。・゜ public class Solver { const int MOD = 1000000007; long[] f, rf, inv; void InitFacts(int size) { f = new long[size ...
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Threading; // (づ°ω°)づミe★゜・。。・゜゜・。。・゜☆゜・。。・゜゜・。。・゜ public class Solver { const int MOD = 1000000007; long[] f, rf, inv; void InitFacts(int size) { f = new long[size ...
[["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22]]
8
1,101
2
using System.Linq; using System; using static System.Console; class E { static void Main() => new K(); } class K { const int MOD = 1000000007; public K() { var I = ReadLine().Split().Select(int.Parse).ToArray(); int N = I[0], X = I[1], Y = I[2], Z = I[3]; var M = 1 << (X + Y + Z); var m = M - 1; ...
using System.Linq; using System; using static System.Console; class E { static void Main() => new K(); } class K { const int MOD = 1000000007; public K() { var I = ReadLine().Split().Select(int.Parse).ToArray(); int N = I[0], X = I[1], Y = I[2], Z = I[3]; var M = 1 << (X + Y + Z); var m = M - 1; ...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
351
2
using System; class A { static void Main(string[] args) { string s = Console.ReadLine().Trim(); string O = "NO"; if (s == "5 5 7" || s == "5 7 5" || s == "7 5 5") { O = "Yes"; } Console.WriteLine(O); } }
using System; class A { static void Main(string[] args) { string s = Console.ReadLine().Trim(); string O = "NO"; if (s == "5 5 7" || s == "5 7 5" || s == "7 5 5") { O = "YES"; } Console.WriteLine(O); } }
[["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
73
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC042A { class Program { static void Main(string[] args) { int A, B, C; var word = Console.ReadLine().Split(' '); A = int.Parse(word[0]); B = int.Parse(word[1]); C = int....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC042A { class Program { static void Main(string[] args) { int A, B, C; var word = Console.ReadLine().Split(' '); A = int.Parse(word[0]); B = int.Parse(word[1]); C = int....
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
168
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC042A { class Program { static void Main(string[] args) { int a, b, c, d; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC042A { class Program { static void Main(string[] args) { int a, b, c, d; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c =...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
146
4
using System; class Program { static void Main(string[] args) { // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); Array.Sort(input); if (input[0] == "5" && input[1] == "5" && input[2] == "7") { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } }
using System; class Program { static void Main(string[] args) { // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); Array.Sort(input); if (input[0] == "5" && input[1] == "5" && input[2] == "7") { Console.WriteLine("YES"); } else { Console.WriteLine("NO"); } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
96
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC042A { class Program { static void Main(string[] args) { int A, B, C, x; String X; var word = Console.ReadLine().Split(' '); A = int.Parse(word[0]); B = int.Parse(word...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC042A { class Program { static void Main(string[] args) { int A, B, C, x; String X; var word = Console.ReadLine().Split(' '); A = int.Parse(word[0]); B = int.Parse(word...
[["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["-", 75, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 75, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
178
4