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;
public class Program {
public void Solve() {
var sc = new Scanner();
long X = sc.NextInt();
long A = sc.NextInt();
long B = sc.NextInt();
if (A > B) {
Console.WriteLine("delicious");
} else if (-A + B <= X) {
Console.WriteLine("safe");
} else {
Console.Wri... | using System;
public class Program {
public void Solve() {
var sc = new Scanner();
long X = sc.NextInt();
long A = sc.NextInt();
long B = sc.NextInt();
if (A >= B) {
Console.WriteLine("delicious");
} else if (-A + B <= X) {
Console.WriteLine("safe");
} else {
Console.Wr... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 538 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp42 {
class Program {
static void Main(string[] args) {
var st = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int X = st[0];
int A = st[1];
int B = st[... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp42 {
class Program {
static void Main(string[] args) {
var st = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int X = st[0];
int A = st[1];
int B = st[... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 20], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19]] | 8 | 148 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ziyuutyou {
class Program {
static void Main(string[] args) {
var str = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
if (str[2] < str[1]) {
Console.WriteLine("delicious");
} else if (str[0] >= str[2] - str[... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ziyuutyou {
class Program {
static void Main(string[] args) {
var str = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
if (str[2] <= str[1]) {
Console.WriteLine("delicious");
} else if (str[0] >= str[2] - str... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 123 | 2 |
using System;
using System.Linq;
namespace A___Expired {
class Program {
static void Main(string[] args) {
var X_A_B = Console.ReadLine().Split().Select(int.Parse).ToArray();
int X = X_A_B[0], A = X_A_B[1], B = X_A_B[2];
Console.WriteLine(A > B ? "delicious" : X + A >= B ? "safe" : "dangerous");
}
}
}... | using System;
using System.Linq;
namespace A___Expired {
class Program {
static void Main(string[] args) {
var X_A_B = Console.ReadLine().Split().Select(int.Parse).ToArray();
int X = X_A_B[0], A = X_A_B[1], B = X_A_B[2];
Console.WriteLine(A >= B ? "delicious" : X + A >= B ? "safe" : "dangerous");
}
}
... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20]] | 8 | 100 | 2 |
public class Hello {
public static void Main() {
string[] num = System.Console.ReadLine().Split(' ');
int X = int.Parse(num[0]);
int A = int.Parse(num[1]);
int B = int.Parse(num[2]);
if (0 - A + B <= 0) {
System.Console.WriteLine("delicious");
} else if (0 - A + B < X) {
System.... | public class Hello {
public static void Main() {
string[] num = System.Console.ReadLine().Split(' ');
int X = int.Parse(num[0]);
int A = int.Parse(num[1]);
int B = int.Parse(num[2]);
if (0 - A + B <= 0) {
System.Console.WriteLine("delicious");
} else if (0 - A + B <= X) {
System... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19]] | 8 | 133 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Atcoderrrrrrr {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int X = int.Parse(input[0]);
int A = int.Parse(input[1]);
int... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Atcoderrrrrrr {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int X = int.Parse(input[0]);
int A = int.Parse(input[1]);
int... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19]] | 8 | 147 | 2 |
using System;
class A {
static void Main() {
var s = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
Console.WriteLine(s[2] - s[1] < 0 ? "delicious"
: s[2] - s[1] <= s[0] ? "safe"
: "dangerous");
}
} | using System;
class A {
static void Main() {
var s = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
Console.WriteLine(s[2] - s[1] <= 0 ? "delicious"
: s[2] - s[1] <= s[0] ? "safe"
: "dangerous");
}
} | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19]] | 8 | 83 | 2 |
using System;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var limit = Convert.ToInt32(input[0]);
var buy = Convert.ToInt32(input[1]);
var eat = Convert.ToInt32(input[2]);
if (buy > eat)
Console.WriteLine("delicious");
else if (eat - buy ... | using System;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var limit = Convert.ToInt32(input[0]);
var buy = Convert.ToInt32(input[1]);
var eat = Convert.ToInt32(input[2]);
if (buy >= eat)
Console.WriteLine("delicious");
else if (eat - buy... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19]] | 8 | 116 | 4 |
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var x = int.Parse(line[0]);
var a = int.Parse(line[1]);
var b = int.Parse(line[2]);
var ba = b - a;
if (ba <= 0)
Console.WriteLine("delicious");
else if (x > ba)
... | using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var x = int.Parse(line[0]);
var a = int.Parse(line[1]);
var b = int.Parse(line[2]);
var ba = b - a;
if (ba <= 0)
Console.WriteLine("delicious");
else if (x >= ba)
... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 20]] | 8 | 125 | 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) {
var sw = new System.IO.StreamWriter(
Console.OpenStand... | 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) {
var sw = new System.IO.StreamWriter(
Console.OpenStand... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19]] | 8 | 534 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
public class Hello {
public static void Main() {
string[] s = Console.ReadLine().Split(' ');
int X = int.Parse(s[0]);
int A = -int.Parse(s[1]);
int B = int.Parse(s[2]);
string ans = "dangerous";
if ((A + B) < 0)
ans = "d... | using System;
using System.Linq;
using System.Collections.Generic;
public class Hello {
public static void Main() {
string[] s = Console.ReadLine().Split(' ');
int X = int.Parse(s[0]);
int A = -int.Parse(s[1]);
int B = int.Parse(s[2]);
string ans = "dangerous";
if ((A + B) <= 0)
ans = "... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19]] | 8 | 133 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoder {
class MainClass {
int X, A, B;
void Solve() {
io.i(out X, out A, out B);
io.o((B < A) ? "delicious" : (B < (A + X)) ? "safe" : "dang... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoder {
class MainClass {
int X, A, B;
void Solve() {
io.i(out X, out A, out B);
io.o((B <= A) ? "delicious" : (B <= (A + X)) ? "safe" : "da... | [["-", 0, 28, 0, 41, 15, 23, 0, 16, 17, 18], ["+", 0, 28, 0, 41, 15, 23, 0, 16, 17, 19], ["-", 0, 41, 75, 41, 15, 23, 0, 16, 17, 18], ["+", 0, 41, 75, 41, 15, 23, 0, 16, 17, 19]] | 8 | 1,661 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public Sol() {
long[] a = rla();
if (a[2] - a[1] <= 0) {
Console.WriteLine("delicious")... | 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 Sol() {
long[] a = rla();
if (a[2] - a[1] <= 0) {
Console.WriteLine("delicious")... | [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 72], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 33], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 375 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication {
class Program {
static void Main() { new Solution().answer(); }
}
class Solution {
// string n;
string[] input;
public Solution() {
// n = Console.ReadLine();... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication {
class Program {
static void Main() { new Solution().answer(); }
}
class Solution {
// string n;
string[] input;
public Solution() {
// n = Console.ReadLine();... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["-", 0, 57, 75, 57, 75, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 31, 22], ["-", 0, 57, 75, 57, 75, 57, 15, 16, 12, 22], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 12, 203]] | 8 | 200 | 6 |
using System;
using System.Collections.Generic;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
List<int> n = new List<int>();
var input = Console.ReadLine().Split(' ');
for (int i = 0; i < 3; i++) {
n.Add(int.Parse(input[i]));
}
if (n[1] > n[2]) {
Console.... | using System;
using System.Collections.Generic;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
List<int> n = new List<int>();
var input = Console.ReadLine().Split(' ');
for (int i = 0; i < 3; i++) {
n.Add(int.Parse(input[i]));
}
if (n[1] >= n[2]) {
Console... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 154 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using System.Diagnostics;
using System.Text;
public class Program {
public static void Main() {
var watch = new Stopwatch();
watch.Start();
var isTest = false;
var stream =
new StreamWriter(Console.OpenStandar... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using System.Diagnostics;
using System.Text;
public class Program {
public static void Main() {
var watch = new Stopwatch();
watch.Start();
var isTest = false;
var stream =
new StreamWriter(Console.OpenStandar... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 256 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc065a {
class Program {
static void Main(string[] args) {
int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (input[1] > input[2]) {
Console.WriteLine("d... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc065a {
class Program {
static void Main(string[] args) {
int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (input[1] >= input[2]) {
Console.WriteLine("... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 136 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
class Solution {
static void Main() {
var vals = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = 0;
for (int i = 0; i < 3; i++) {
n *= 10;
n += vals[i];
}
Console.WriteLine((n % 4 == 0) ? "YES" : "N... | using System;
using System.Collections.Generic;
using System.Linq;
class Solution {
static void Main() {
var vals = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = 0;
for (int i = 0; i < 3; i++) {
n *= 10;
n += vals[i];
}
Console.WriteLine((n % 4 == 0) ? "YES" : "N... | [["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 106 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC064 {
class Program {
static void Main(string[] args) {
int r, g, b;
string[] vals = Console.ReadLine().Split(' ');
r = int.Parse(vals[0]);
g = int.Parse(vals[1]);
b = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC064 {
class Program {
static void Main(string[] args) {
int r, g, b;
string[] vals = Console.ReadLine().Split(' ');
r = int.Parse(vals[0]);
g = int.Parse(vals[1]);
b = ... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 151 | 4 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProCon {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int min = 10000;
int max = 0;
for (int i = 0; i < in... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProCon {
class Program {
static void Main(string[] args) {
Console.ReadLine();
string[] input = Console.ReadLine().Split(' ');
int min = 10000;
int max = 0;
... | [["+", 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 | 143 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
using System.Numerics;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
// SetOut(new StreamWriter(OpenStandardOutput())... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
using System.Numerics;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
// SetOut(new StreamWriter(OpenStandardOutput())... | [["+", 0, 28, 0, 283, 0, 284, 0, 213, 63, 22], ["+", 0, 283, 0, 284, 0, 213, 3, 4, 0, 24], ["+", 0, 284, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 283, 0, 284, 0, 213, 3, 4, 0, 21], ["+", 0, 283, 0, 284, 0, 213, 3, 4, 0, 25]] | 8 | 469 | 5 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
using static System.Console;
using static System.Math;
using static System.Array;
class Program {
public static void Main() {
var n = int.Parse(ReadLine());
var a = ReadLine().Split().Select(x => int.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
using static System.Console;
using static System.Math;
using static System.Array;
class Program {
public static void Main() {
var n = int.Parse(ReadLine());
var a = ReadLine().Split().Select(x => int.... | [["-", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["-", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 201 | 4 |
using System;
using System.Linq;
public class C {
public static void Main() {
int n;
n = int.Parse(Console.ReadLine());
int[] a = new int[n];
string[] aSt = Console.ReadLine().Split().ToArray();
for (int i = 0; i < n; i++) {
a[i] = int.Parse(aSt[i]);
}
int[] check = new int[9];
f... | using System;
using System.Linq;
public class C {
public static void Main() {
int n;
n = int.Parse(Console.ReadLine());
int[] a = new int[n];
string[] aSt = Console.ReadLine().Split().ToArray();
for (int i = 0; i < n; i++) {
a[i] = int.Parse(aSt[i]);
}
int[] check = new int[9];
f... | [["-", 0, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["-", 206, 207, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["-", 206, 207, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 0, 223, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 246 | 5 |
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 ProblemB {
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 ProblemB {
static bool SAIKI = false;
st... | [["+", 0, 28, 0, 283, 0, 284, 0, 23, 0, 24], ["+", 0, 284, 0, 23, 0, 41, 15, 23, 0, 24], ["+", 0, 23, 0, 41, 15, 23, 0, 16, 31, 22], ["+", 0, 23, 0, 41, 15, 23, 0, 16, 17, 60], ["+", 0, 23, 0, 41, 15, 23, 0, 16, 12, 203], ["+", 0, 284, 0, 23, 0, 41, 15, 23, 0, 25], ["+", 0, 283, 0, 284, 0, 23, 0, 41, 0, 101], ["+", 0, ... | 8 | 1,495 | 10 |
using System;
using System.Collections.Generic;
using System.Globalization;
namespace cswork {
class Program {
public Program() {}
Scanner cin;
const int MAXIN = 1024;
bool[] used = new bool[MAXIN];
int[] perm = new int[MAXIN];
List<int[]> permList = new List<int[]>();
void Omame() {
cin = new Sca... | using System;
using System.Collections.Generic;
using System.Globalization;
namespace cswork {
class Program {
public Program() {}
Scanner cin;
const int MAXIN = 1024;
bool[] used = new bool[MAXIN];
int[] perm = new int[MAXIN];
List<int[]> permList = new List<int[]>();
void Omame() {
cin = new Sca... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203]] | 8 | 628 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[] score = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
List<string> color_list = new List<string>();
strin... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[] score = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
List<string> color_list = new List<string>();
strin... | [["-", 0, 28, 0, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 16, 12, 23, 0, 16, 31, 214, 205, 22], ["+", 0, 16, 12, 23, 0, 16, 31, 214, 0, 131], ["+", 0, 16, 12, 23, 0, 16, 31, 214, 141, 22]] | 8 | 276 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
Console.ReadLine();
var an = new List<int>();
an.AddRange(Console.Re... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
Console.ReadLine();
var an = new List<int>();
an.AddRange(Console.Re... | [["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 68], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 276 | 5 |
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 static class Contest_C
{
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_C.Lib_IO;
using static Contest_C.Lib_Minifunc;
public static class Contest_C
{
public static ... | [["-", 0, 16, 12, 213, 63, 214, 205, 213, 63, 22], ["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["-", 12, 213, 63, 214, 205, 213, 3, 4, 0, 21]] | 8 | 3,029 | 6 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static Asakatsu20200407B.Input;
namespace Asakatsu20200407B {
static class Input {
private static Func<string, T[]>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray();
private static Func<string, T> Convert<T>()... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static Asakatsu20200407B.Input;
namespace Asakatsu20200407B {
static class Input {
private static Func<string, T[]>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray();
private static Func<string, T> Convert<T>()... | [["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]] | 8 | 1,522 | 2 |
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());
var dic = new Dictionary<int, int>();... | 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());
var dic = new Dictionary<int, int>();... | [["+", 0, 28, 0, 16, 31, 16, 31, 213, 63, 22], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 31, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]] | 8 | 239 | 5 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Algorithm {
class Program {
enum Color { Gray, Brown, Green, LightBlue, Blue, Yellow, Orange, Red, All }
const int ColorCount = 9;
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var a = Console.ReadLine... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Algorithm {
class Program {
enum Color { Gray, Brown, Green, LightBlue, Blue, Yellow, Orange, Red, All }
const int ColorCount = 9;
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var a = Console.ReadLine... | [["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 106], ["+", 75, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 75, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 75, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 0, 28, 0, 283, 0, 284, 0, 23, 0, 24], ["+", 0, 284, 0, 23, 0, 41, 15, 16, 31, 22], ["+", 0, 284, 0, 23, 0, 41, 15, 16, 17, 6... | 8 | 383 | 12 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Convert;
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.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Convert;
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, 200, 0, 212, 0, 41, 15, 16, 17, 18], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 60]] | 8 | 729 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
#endif
#e... | using System;
using System.Collections.Generic;
using System.Linq;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
#endif
#e... | [["+", 0, 28, 0, 283, 0, 284, 0, 23, 0, 24], ["+", 0, 23, 0, 41, 15, 16, 31, 16, 31, 22], ["+", 0, 23, 0, 41, 15, 16, 31, 16, 17, 20], ["+", 0, 23, 0, 41, 15, 16, 31, 16, 12, 203], ["+", 0, 284, 0, 23, 0, 41, 15, 16, 17, 98], ["+", 0, 23, 0, 41, 15, 16, 12, 16, 31, 22], ["+", 0, 23, 0, 41, 15, 16, 12, 16, 17, 60], ["+"... | 8 | 1,696 | 12 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace ABC064C {
class Program {
static void Solve() {
var n = Input.NextInt();
var a = Input.NextInt(n);
var map = Enumerable.Repeat(0, 9).ToArray();
foreach... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace ABC064C {
class Program {
static void Solve() {
var n = Input.NextInt();
var a = Input.NextInt(n);
var map = Enumerable.Repeat(0, 9).ToArray();
foreach... | [["+", 0, 283, 0, 284, 0, 213, 63, 214, 205, 22], ["+", 0, 283, 0, 284, 0, 213, 63, 214, 0, 131], ["+", 0, 283, 0, 284, 0, 213, 63, 214, 141, 22], ["+", 0, 283, 0, 284, 0, 213, 3, 4, 0, 24], ["+", 0, 284, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 283, 0, 284, 0, 213, 3, 4, 0, 21], ["+", 0, 283, 0, 284, 0, 213, 3, 4, 0, 25... | 8 | 884 | 7 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
void Run() {
var sc = new Scanner();
int n = sc.NextInt();
int[] c = new int[9];
for (int i = 0; i < n; i++) {
int r = sc.NextInt();
c[Math.Min(r / 400, 8)]+... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
void Run() {
var sc = new Scanner();
int n = sc.NextInt();
int[] c = new int[9];
for (int i = 0; i < n; i++) {
int r = sc.NextInt();
c[Math.Min(r / 400, 8)]+... | [["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 64, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 75, 22]] | 8 | 371 | 6 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.CompilerServices;
using static System.Math;
class P {
static void Main() {
int.Parse(Console.ReadLine());
... | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.CompilerServices;
using static System.Math;
class P {
static void Main() {
int.Parse(Console.ReadLine());
... | [["+", 0, 28, 0, 283, 0, 284, 0, 213, 63, 22], ["+", 0, 283, 0, 284, 0, 213, 3, 4, 0, 24], ["+", 0, 284, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 283, 0, 284, 0, 213, 3, 4, 0, 21], ["+", 0, 283, 0, 284, 0, 213, 3, 4, 0, 25]] | 8 | 160 | 5 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var num = ToInt32(ReadLine());
var rates = Array.ConvertAll(ReadLine().Split(' '), int.Parse);
var bet =... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var num = ToInt32(ReadLine());
var rates = Array.ConvertAll(ReadLine().Split(' '), int.Parse);
var bet =... | [["+", 0, 28, 0, 283, 0, 284, 0, 213, 63, 22], ["+", 0, 283, 0, 284, 0, 213, 3, 4, 0, 24], ["+", 0, 284, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 283, 0, 284, 0, 213, 3, 4, 0, 21], ["+", 0, 283, 0, 284, 0, 213, 3, 4, 0, 25]] | 8 | 264 | 5 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace NotFounds {
public class Program {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenSta... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace NotFounds {
public class Program {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenSta... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 16, 31, 213, 3, 4, 0, 25]] | 8 | 745 | 6 |
using System.Linq;
using System;
class Program {
static void Main() {
var N = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split(' ').Select(x => int.Parse(x));
bool[] colors = new bool[8];
int others = 0;
foreach (var rate in a) {
if (rate >= 3200) {
others++;
} e... | using System.Linq;
using System;
class Program {
static void Main() {
var N = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split(' ').Select(x => int.Parse(x));
bool[] colors = new bool[8];
int others = 0;
foreach (var rate in a) {
if (rate >= 3200) {
others++;
} e... | [["+", 0, 28, 0, 283, 0, 284, 0, 23, 0, 24], ["+", 0, 284, 0, 23, 0, 41, 15, 16, 31, 22], ["+", 0, 284, 0, 23, 0, 41, 15, 16, 17, 47], ["+", 0, 284, 0, 23, 0, 41, 15, 16, 12, 203], ["+", 0, 283, 0, 284, 0, 23, 0, 41, 0, 101], ["+", 0, 283, 0, 284, 0, 23, 0, 41, 0, 102], ["+", 0, 283, 0, 284, 0, 23, 0, 41, 75, 203], ["+... | 8 | 143 | 8 |
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
int[] a =
Console.ReadLine().Split(' ').Select(elem => int... | using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
int[] a =
Console.ReadLine().Split(' ').Select(elem => int... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18]] | 8 | 253 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using System.Diagnostics;
using System.Text;
public class Program {
public static void Main() {
var watch = new Stopwatch();
watch.Start();
var isTest = false;
var stream =
new StreamWriter(Console.OpenStandar... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using System.Diagnostics;
using System.Text;
public class Program {
public static void Main() {
var watch = new Stopwatch();
watch.Start();
var isTest = false;
var stream =
new StreamWriter(Console.OpenStandar... | [["+", 0, 195, 8, 196, 0, 210, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 210, 8, 196, 0, 46], ["-", 0, 283, 0, 284, 0, 213, 63, 214, 205, 22], ["-", 0, 283, 0, 284, 0, 213, 63, 214, 0, 131], ["-", 0, 283, 0, 284, 0, 213, 63, 214, 141, 22], ["-", 0, 283, 0, 284, 0, 213, 3, 4, 0, 24], ["-", 0, 284, 0, 213, 3, 4, 0, 28, 0,... | 8 | 475 | 9 |
using System;
using System.Collections.Generic;
using System.Linq;
class Hello {
public enum Color {
hai,
brown,
green,
mizu,
blue,
yellow,
daidai,
red,
all
/*
*
*
* ใฌใผใ 1-399๏ผ็ฐ่ฒ
ใฌใผใ 400-799๏ผ่ถ่ฒ
ใฌใผใ 800-1199๏ผ็ท่ฒ
ใฌใผใ 1200-1599๏ผๆฐด่ฒ
ใฌใผใ 1600-1999๏ผ้่ฒ
ใฌใผใ 2000-2399๏ผ้ป่ฒ
ใฌใผใ 2400-2799๏ผๆฉ... | using System;
using System.Collections.Generic;
using System.Linq;
class Hello {
public enum Color {
hai,
brown,
green,
mizu,
blue,
yellow,
daidai,
red,
all
/*
*
*
* ใฌใผใ 1-399๏ผ็ฐ่ฒ
ใฌใผใ 400-799๏ผ่ถ่ฒ
ใฌใผใ 800-1199๏ผ็ท่ฒ
ใฌใผใ 1200-1599๏ผๆฐด่ฒ
ใฌใผใ 1600-1999๏ผ้่ฒ
ใฌใผใ 2000-2399๏ผ้ป่ฒ
ใฌใผใ 2400-2799๏ผๆฉ... | [["-", 8, 196, 0, 1, 0, 11, 12, 41, 64, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 41, 64, 203]] | 8 | 323 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine());
var a = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }),
number => long.Parse(number));
long sunukeSum = a[0];
long k... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine());
var a = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }),
number => long.Parse(number));
long sunukeSum = a[0];
long k... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 177 | 2 |
using System;
using System.Linq;
class Program {
static void Main() {
Console.ReadLine();
var a = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }),
number => int.Parse(number));
var sunuke = a[0];
var kuma = a.Skip(1).Sum();
var min = Math.Abs(sunuke - kuma);... | using System;
using System.Linq;
class Program {
static void Main() {
Console.ReadLine();
var a = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }),
number => long.Parse(number));
long sunuke = a[0];
long kuma = a.Skip(1).Sum();
long min = Math.Abs(sunuke - ku... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 153 | 8 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
long[] a =... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
long[] a =... | [["+", 0, 1, 0, 11, 12, 16, 31, 204, 205, 22], ["+", 0, 11, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 11, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72]] | 8 | 227 | 5 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var A = sc.ReadLongArray(N);
var sum = new long[N];
sum[0] = A[0];
for (int i = 1; i < N; i++) {
sum[i] = sum[0] + A[i];
}
var ans = long.MaxVal... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var A = sc.ReadLongArray(N);
var sum = new long[N];
sum[0] = A[0];
for (int i = 1; i < N; i++) {
sum[i] = sum[i - 1] + A[i];
}
var ans = long.Ma... | [["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 1,143 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Library;
using static Library.Input;
namespace AtCoderTemplate {
class ProgramC {
static void Main() {
int N = NextInt;
var list = IntList;
for (int i = 1; i < N; i++) {
list[i] += list[i ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Library;
using static Library.Input;
namespace AtCoderTemplate {
class ProgramC {
static void Main() {
int N = NextInt;
var list = LongList;
for (int i = 1; i < N; i++) {
list[i] += list[i... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22]] | 8 | 1,503 | 2 |
using System;
using System.Collections.Generic;
namespace MyProgram {
class AtCoder {
static void Main() {
int N = int.Parse(Console.ReadLine());
long[] a = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
long sum = 0;
var sum_a = new List<long>();
for (var i = 0; i < N; i++) {
... | using System;
using System.Collections.Generic;
namespace MyProgram {
class AtCoder {
static void Main() {
int N = int.Parse(Console.ReadLine());
long[] a = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
long sum = 0;
var sum_a = new List<long>();
for (var i = 0; i < N; i++) {
... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 168 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using Console = System.Console;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var r = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var sum = r.Sum();
int le... | using System;
using System.Collections.Generic;
using System.Linq;
using Console = System.Console;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var r = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
var sum = r.Sum();
long... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 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, 21... | 8 | 168 | 12 |
using System.Collections.Generic;
using System.Linq;
using System;
using static System.Console;
class Program {
static void Main() => new Program().solve();
void solve() {
var n = int.Parse(ReadLine());
var seq = ReadLine().Split(' ').Select(long.Parse).ToArray();
var table = new long[n + 1];
for... | using System.Collections.Generic;
using System.Linq;
using System;
using static System.Console;
class Program {
static void Main() => new Program().solve();
void solve() {
var n = int.Parse(ReadLine());
var seq = ReadLine().Split(' ').Select(long.Parse).ToArray();
var table = new long[n + 1];
for... | [["-", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203]] | 8 | 188 | 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 AtCorder {
class Program {
static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
public void S... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCorder {
class Program {
static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
public void S... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 523 | 4 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.IO;
namespace SolutionCS {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string[] s = Console.ReadLine().Split(' ');
// int[] v = new int[N];
int[] a = ne... | using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.IO;
namespace SolutionCS {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string[] s = Console.ReadLine().Split(' ');
long[] a = new long[N];
long total = ... | [["-", 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], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 1, 0, 11, 12, 213,... | 8 | 219 | 12 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC067_C {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var num =
Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse).ToList();
var sum = num.Sum();
var L = new int[... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC067_C {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var num =
Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse).ToList();
var sum = num.Sum();
var L = new lon... | [["-", 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, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0... | 8 | 202 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
void Run() {
var sc = new Scanner();
int n = sc.NextInt();
long[] a = new long[n];
a[0] = sc.NextInt();
for (int i = 1; i < n; i++)
a[i] = a[i - 1] + sc.NextIn... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
void Run() {
var sc = new Scanner();
int n = sc.NextInt();
long[] a = new long[n];
a[0] = sc.NextInt();
for (int i = 1; i < n; i++)
a[i] = a[i - 1] + sc.NextIn... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203]] | 8 | 387 | 2 |
using System;
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine().Split(' ');
var d = new int[n];
for (int i = 0; i < n; i++) {
d[i] = int.Parse(s[i]);
}
var left = new int[n - 1];
left[0] = d[0];
for (int i = 1; ... | using System;
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine().Split(' ');
var d = new long[n];
for (int i = 0; i < n; i++) {
d[i] = long.Parse(s[i]);
}
var left = new long[n - 1];
left[0] = d[0];
for (int i = ... | [["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199]] | 8 | 262 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var num = ToInt32(ReadLine());
var ar = Array.ConvertAll(ReadLine().Split(' '), int.Parse);
var sum = ar... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var num = ToInt32(ReadLine());
var ar = Array.ConvertAll(ReadLine().Split(' '), long.Parse);
var sum = a... | [["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199]] | 8 | 178 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Atcoder;
using System.Threading.Tasks;
using System.ComponentModel;
public class Hello {
private const int INF = 1000000007;
public static void Main() {
int N = IntRead();
var ai = SpRead(' ').Select(int.Parse).ToList();
lo... | using System;
using System.Collections.Generic;
using System.Linq;
using static Atcoder;
using System.Threading.Tasks;
using System.ComponentModel;
public class Hello {
private const int INF = 1000000007;
public static void Main() {
int N = IntRead();
// int N = 2 * (int)Math.Pow(10, 5);
var ai = SpRea... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]] | 8 | 1,002 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main() {
Scanner cin = new Scanner();
int N = cin.Int();
int[] a = cin.ArrayInt(N);
int sum = 0;
foreach (var x in a) {
sum += x;
}
int a... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main() {
Scanner cin = new Scanner();
int N = cin.Int();
long[] a = cin.ArrayLong(N);
long sum = 0;
foreach (var x in a) {
sum += x;
}
lo... | [["-", 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, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 7, 8, 196, 0, 197,... | 8 | 512 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace test {
class Program {
static void Main(string[] args) {
var N = ReadInt();
var A = ReadArrayInt();
long snu = A.Sum();
var arai = 0L;
var ans = long.MaxValue;
for (int i = 0; i < N - 1; i++) {
snu -= A[i];
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace test {
class Program {
static void Main(string[] args) {
var N = ReadLong();
var A = ReadArrayLong();
long snu = A.Sum();
var arai = 0L;
var ans = long.MaxValue;
for (long i = 0; i < N - 1; i++) {
snu -= A[i];
... | [["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199]] | 8 | 254 | 6 |
using System;
using System.Linq;
namespace AtCoder {
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
var card = Console.ReadLine()
.Split()
.Select(int.Parse)
.Select(x => x * 2)
.ToArray();
long ave =... | using System;
using System.Linq;
namespace AtCoder {
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
var card = Console.ReadLine()
.Split()
.Select(long.Parse)
.Select(x => x * 2)
.ToArray();
long ave ... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]] | 8 | 161 | 2 |
using System;
using System.Linq;
public class Problem_C {
public static void Main() {
var N = int.Parse(Console.ReadLine());
var deck = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
decimal total = deck.Sum();
decimal snuke = 0;
decimal minDiff = int.MaxValue;
for (var i = 0; i < N... | using System;
using System.Linq;
public class Problem_C {
public static void Main() {
var N = int.Parse(Console.ReadLine());
var deck = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
long total = deck.Sum();
long snuke = 0;
long minDiff = long.MaxValue;
for (var i = 0; i < N - 1; i... | [["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199]] | 8 | 136 | 10 |
using System;
using System.Linq;
public class Problem_C {
public static void Main() {
var N = int.Parse(Console.ReadLine());
var deck = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
decimal total = deck.Sum();
decimal snuke = 0;
decimal minDiff = decimal.MaxValue;
for (var i = 0; i... | using System;
using System.Linq;
public class Problem_C {
public static void Main() {
var N = int.Parse(Console.ReadLine());
var deck = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
decimal total = deck.Sum();
decimal snuke = 0;
decimal minDiff = decimal.MaxValue;
for (var i = 0; ... | [["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199]] | 8 | 144 | 2 |
using System.Linq;
using System;
public class C {
public const long INF = 999999999999999999;
}
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
string[] line = Console.ReadLine().Trim().Split(' ');
var a = Array.ConvertAll(line, long.Parse);
var asum ... | using System.Linq;
using System;
public class C {
public const long INF = 999999999999999999;
}
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
string[] line = Console.ReadLine().Trim().Split(' ');
var a = Array.ConvertAll(line, long.Parse);
var asum ... | [["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33]] | 8 | 166 | 1 |
using System;
using System.Linq;
using System.Collections.Generic;
class P {
static void Main() {
Console.ReadLine();
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
long asum = a.Sum();
long[] sum = new long[a.Length - 1];
sum[0] = a[0];
for (int i = 1; i < a.Length - 1; i+... | using System;
using System.Linq;
using System.Collections.Generic;
class P {
static void Main() {
Console.ReadLine();
long[] a = Console.ReadLine().Split().Select(long.Parse).ToArray();
long asum = a.Sum();
long[] sum = new long[a.Length - 1];
sum[0] = a[0];
for (int i = 1; i < sum.Length; i+... | [["-", 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], ["-", 0, 7, 15, 16, 12, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 205, 22], ["-", 8, 196, 0, 7, 15, 16, 12,... | 8 | 172 | 8 |
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System;
using System.Threading.Tasks;
using static System.Math;
using static System.Console;
public class Program {
public static void Main() {
long N = long.Parse(Console.ReadLine());
long... | using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System;
using System.Threading.Tasks;
using static System.Math;
using static System.Console;
public class Program {
public static void Main() {
long N = long.Parse(Console.ReadLine());
long... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 204 | 2 |
using System;
using System.Linq;
public class Test {
public static void Main() {
int n = int.Parse(Console.ReadLine());
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
long ret = long.MaxValue;
long flont = 0;
long back = x.Sum();
for (int i = 0; i < n - 1; i++) {
flon... | using System;
using System.Linq;
public class Test {
public static void Main() {
int n = int.Parse(Console.ReadLine());
long[] x = Console.ReadLine().Split().Select(long.Parse).ToArray();
long ret = long.MaxValue;
long flont = 0;
long back = x.Sum();
for (int i = 0; i < n - 1; i++) {
fl... | [["-", 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 | 139 | 4 |
using System.Collections.Generic;
using System.Linq;
using System;
class B {
static void Main() {
var N = int.Parse(Console.ReadLine());
var A = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int sum = 0;
for (int i = 0; i < N; i++) {
sum += A[i];
}
int minVal = A... |
using System.Collections.Generic;
using System.Linq;
using System;
class B {
static void Main() {
var N = int.Parse(Console.ReadLine());
var A = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
long sum = 0;
for (int i = 0; i < N; i++) {
sum += A[i];
}
long minVal =... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 196 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc67 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string[] str = Console.ReadLine().Split(' ');
int[] a = new int[N];
int arai =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc67 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string[] str = Console.ReadLine().Split(' ');
int[] a = new int[N];
long arai ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 220 | 6 |
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace AtCoder.ABC067 {
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Spli... | using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace AtCoder.ABC067 {
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Spli... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]] | 8 | 191 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contest {
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
int sum = a.Sum();
int sn... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contest {
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split().Select(long.Parse).ToArray();
long sum = a.Sum();
long... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199]] | 8 | 166 | 10 |
using System.Collections.Generic;
using System.Linq;
using System;
class D {
static int N;
static List<int>[] e;
static void Main() {
N = int.Parse(Console.ReadLine());
e = new List<int>[N];
for (int i = 0; i < N; i++)
e[i] = new List<int>();
for (long i = 0; i < N - 1; i++) {
var XY... |
using System.Collections.Generic;
using System.Linq;
using System;
class D {
static int N;
static List<int>[] e;
static void Main() {
N = int.Parse(Console.ReadLine());
e = new List<int>[N];
for (int i = 0; i < N; i++)
e[i] = new List<int>();
for (long i = 0; i < N - 1; i++) {
var X... | [["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 375 | 2 |
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace ConsoleApplication1.CodeForces {
class _4032 {
private static int Next() {
int c;
int res = 0;
do {
c = reader.Read();... | using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace ConsoleApplication1.CodeForces {
class _4032 {
private static int Next() {
int c;
int res = 0;
do {
c = reader.Read();... | [["-", 0, 57, 64, 196, 0, 52, 15, 16, 17, 79], ["+", 0, 57, 64, 196, 0, 52, 15, 16, 17, 18]] | 8 | 983 | 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() {
int[] parent = new int[N];
int[] depth = new int[N];
parent[0] = -1;
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
int[] parent = new int[N];
int[] depth = new int[N];
parent[0] = -1;
... | [["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25]] | 8 | 697 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using static System.Console;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArr... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using static System.Console;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArr... | [["-", 0, 195, 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, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 343 | 5 |
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... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]] | 8 | 943 | 1 |
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, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 23, 0, 16, 31, 203], ["+", 0, 200, 0, 212, 0, 23, 0, 16, 31, 203]] | 8 | 1,021 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Solve {
static public int mod = 1000000007;
public static void Main() {
// โขรปj
//
var n = inta();
var a = longa();
in... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Solve {
static public int mod = 1000000007;
public static void Main() {
// โขรปj
//
var n = inta();
var a = longa();
in... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 1,483 | 2 |
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Competitive {
internal class Solution {
public int N, P;
public int[] A;
public void Run() {
{
var line = Input.ReadIntArray();
N = line[0];
P = line[1];
A =... | using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Competitive {
internal class Solution {
public int N, P;
public int[] A;
public void Run() {
{
var line = Input.ReadIntArray();
N = line[0];
P = line[1];
A =... | [["+", 206, 207, 0, 28, 0, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 73]] | 8 | 518 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
private const int MODULO = 1000000007;
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
private const int MODULO = 1000000007;
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() ... | [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22]] | 8 | 338 | 2 |
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var p = int.Parse(line[1]);
line = Console.ReadLine().Trim().Split(' ');
var a = Array.ConvertAll(line, int.Parse);
var evenall = true;
for (int... | using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var p = int.Parse(line[1]);
line = Console.ReadLine().Trim().Split(' ');
var a = Array.ConvertAll(line, int.Parse);
var evenall = true;
for (int... | [["-", 64, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 64, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 178 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder.Grand017 {
public class AGC017A_Biscuits {
public static void Main(string[] args) {
// ็ทๆฐใจไฝใใฎๆฐใฎๅ
ฅๅ
int[] nums = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = nums[0];
int p = nums[1];... | using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder.Grand017 {
public class AGC017A_Biscuits {
public static void Main(string[] args) {
// ็ทๆฐใจไฝใใฎๆฐใฎๅ
ฅๅ
int[] nums = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = nums[0];
int p = nums[1];... | [["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 250], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 250]] | 8 | 629 | 2 |
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 a = long.Parse(input[1]);
long b = long.Parse(input[2]);
long c ... | 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 a = long.Parse(input[1]);
long b = long.Parse(input[2]);
long c ... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 12, 16, 12, 23, 0, 16, 31, 16, 12, 203], ["+", 12, 16, 12, 23, 0, 16, 31, 16, 12, 203]] | 8 | 193 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC066A {
class Program {
static void Main(string[] args) {
int a, b, c, s;
string[] ward = Console.ReadLine().Split(' ');
a = int.Parse(ward[0]);
b = int.Parse(ward[1]);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC066A {
class Program {
static void Main(string[] args) {
int a, b, c, s;
string[] ward = Console.ReadLine().Split(' ');
a = int.Parse(ward[0]);
b = int.Parse(ward[1]);
... | [["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 158 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC066A {
class Program {
static void Main(string[] args) {
int a, b, c, s, x, y, z;
string[] 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 ABC066A {
class Program {
static void Main(string[] args) {
int a, b, c, s, x, y, z;
string[] word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]] | 8 | 168 | 8 |
using System;
namespace ABC026A {
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.Parse(word[2]);
if (a + b <= a + c && a + b <= b + c)
Console.WriteLine(a + b);
if (a... | using System;
namespace ABC026A {
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.Parse(word[2]);
if (a + b <= a + c && a + b <= b + c)
Console.WriteLine(a + b);
else ... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 95]] | 8 | 168 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace A {
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 A {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | [["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 175 | 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;
using MethodImplAttribute = System.Runtime.Compi... | 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;
using MethodImplAttribute = System.Runtime.Compi... | [["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203]] | 8 | 134 | 4 |
using System;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
int c = int.Parse(input[2]);
if (a > b)
Swap(a, b);
if (b > c)
Swap(b, c);
Console.WriteLine("{0}", a + b... | using System;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
int c = int.Parse(input[2]);
if (a > b)
Swap(ref a, ref b);
if (b > c)
Swap(ref b, ref c);
Console.WriteL... | [["+", 64, 1, 0, 213, 3, 4, 0, 28, 0, 275], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 0, 276]] | 8 | 139 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string str = Console.ReadLine();
int hidariSUu = 0;
for (int i = 0; i < str.Length; i++) {
if (str[i] == '(') {
} ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string str = Console.ReadLine();
int hidariSUu = 0;
for (int i = 0; i < str.Length; i++) {
if (str[i] == '(') {
h... | [["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]] | 8 | 433 | 3 |
using System;
using System.Collections.Generic;
class Program {
static string InputPattern = "InputX";
static List<string> GetInputList() {
var WillReturn = new List<string>();
if (InputPattern == "Input1") {
WillReturn.Add("3");
WillReturn.Add("())");
//(())
} else if (InputPattern... | using System;
using System.Collections.Generic;
class Program {
static string InputPattern = "InputX";
static List<string> GetInputList() {
var WillReturn = new List<string>();
if (InputPattern == "Input1") {
WillReturn.Add("3");
WillReturn.Add("())");
//(())
} else if (InputPattern... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 95], ["+", 64, 196, 0, 57, 75, 1, 0, 223, 0, 22], ["+", 64, 196, 0, 57, 75, 1, 0, 223, 0, 68], ["+", 0, 57, 64, 196, 0, 57, 75, 1, 0, 35], ["-", 0, 230, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 0, 230, 3, 4, 0, 28, 0, 252, 0, 253]] | 8 | 310 | 6 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace AtCoder.Contest.A {
static class Program {
public static void Solve(Scanner cin) {
var x = cin.ReadIntArray(2).Sum();
Console.WriteLine((x >= 10) ? "Error" : x.ToString());
}
... | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace AtCoder.Contest.A {
static class Program {
public static void Solve(Scanner cin) {
var x = cin.ReadIntArray(2).Sum();
Console.WriteLine((x >= 10) ? "error" : x.ToString());
}
... | [["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222]] | 8 | 2,554 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
class AtCoder {
public static void Main() {
var input = Console.ReadLine().Split();
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
if (a + b >= 10) {
Console.WriteLine("error");
}
C... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
class AtCoder {
public static void Main() {
var input = Console.ReadLine().Split();
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
if (a + b >= 10) {
Console.WriteLine("error");
} else ... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 46]] | 8 | 100 | 3 |
using System;
namespace ABC_063_A_Csharp_ver {
class Program {
static void Main(string[] args) {
var word = Console.ReadLine().Split(' ');
int A = int.Parse(word[0]);
int B = int.Parse(word[1]);
if (A + B > 10) {
Console.WriteLine("error");
} else {
Console.WriteLine(A + B);
}
... | using System;
namespace ABC_063_A_Csharp_ver {
class Program {
static void Main(string[] args) {
var word = Console.ReadLine().Split(' ');
int A = int.Parse(word[0]);
int B = int.Parse(word[1]);
if (A + B >= 10) {
Console.WriteLine("error");
} else {
Console.WriteLine(A + B);
}
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 101 | 2 |
using System;
namespace abc063A {
class MainClass {
public static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int A = int.Parse(str[0]);
int B = int.Parse(str[1]);
if (A + B > 10)
Console.WriteLine("error");
else
Console.WriteLine(A + B);
}
}
}
| using System;
namespace abc063A {
class MainClass {
public static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int A = int.Parse(str[0]);
int B = int.Parse(str[1]);
if (A + B >= 10)
Console.WriteLine("error");
else
Console.WriteLine(A + B);
}
}
}
| [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 91 | 2 |
using System;
namespace ABC063Ax {
class Program {
static void Main(string[] args) {
int a, b;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
if (a + b <= 10)
Console.WriteLine(a + b);
if (a + b >= 10 || a + b == 10)
Console.WriteLine("... | using System;
namespace ABC063Ax {
class Program {
static void Main(string[] args) {
int a, b;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
if (a + b < 10)
Console.WriteLine(a + b);
if (a + b >= 10 || a + b == 10)
Console.WriteLine("e... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]] | 8 | 113 | 2 |
using System;
class p {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]) * int.Parse(input[1]);
Console.WriteLine(n < 10 ? n.ToString() : "error");
}
} | using System;
class p {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]) + int.Parse(input[1]);
Console.WriteLine(n < 10 ? n.ToString() : "error");
}
}
| [["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72]] | 8 | 74 | 2 |
using System;
using System.Linq;
class prog {
static void Main() {
int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray();
Console.WriteLine(n[0] + n[1] < 10 ? "" + n[0] + n[1] : "error");
}
} | using System;
using System.Linq;
class prog {
static void Main() {
int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray();
Console.WriteLine(n[0] + n[1] < 10 ? "" + (n[0] + n[1]) : "error");
}
} | [["+", 0, 28, 0, 41, 64, 16, 12, 23, 0, 24], ["+", 0, 28, 0, 41, 64, 16, 12, 23, 0, 25]] | 8 | 79 | 2 |
using System;
using System.Linq;
namespace abc063_a {
class Program {
static void Main(string[] args) {
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
a[0] += a[1];
if (a[0] > 10) {
Console.WriteLine("error");
} else {
Console.WriteLine(a[0]);
}
}
}
}
| using System;
using System.Linq;
namespace abc063_a {
class Program {
static void Main(string[] args) {
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
a[0] += a[1];
if (a[0] >= 10) {
Console.WriteLine("error");
} else {
Console.WriteLine(a[0]);
}
}
}
}
| [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 96 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Console = System.Console;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var S = Read();
string str = string.Empty;
foreach (var s in S) {
if (str.Contains(s)) {
Console.Write... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Console = System.Console;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var S = Read();
string str = string.Empty;
foreach (var s in S) {
if (str.Contains(s)) {
Console.Write... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 220 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp69 {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
char[] S_ = S.ToCharArray();
Console.WriteLine(S_.Count() == S_.Distinct().Count(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp69 {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
char[] S_ = S.ToCharArray();
Console.WriteLine(S_.Count() == S_.Distinct().Count(... | [["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 95 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.