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;
class CF2016QAC {
static public void Main(string[] args) {
string s = Console.ReadLine();
int K = int.Parse(Console.ReadLine());
int[] c = new int[s.Length];
for (int i = 0; i < c.Length; i++) {
c[i] = s[i] - 'a';
}
for (int i = 0; i < c.Length; i++) {
if (c[i] == ... | using System;
class CF2016QAC {
static public void Main(string[] args) {
string s = Console.ReadLine();
int K = int.Parse(Console.ReadLine());
int[] c = new int[s.Length];
for (int i = 0; i < c.Length; i++) {
c[i] = s[i] - 'a';
}
for (int i = 0; i < c.Length; i++) {
if (c[i] == ... | [["-", 0, 57, 75, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 19]] | 8 | 215 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
class Program {
public Program() {}
static void Main(string[] args) { new Program().prog(); }
Scanner cin;
const int M... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
class Program {
public Program() {}
static void Main(string[] args) { new Program().prog(); }
Scanner cin;
const int M... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22]] | 8 | 520 | 4 |
using System;
using System.Collections.Generic;
using System.Text;
class Solve {
string s;
int n;
int[] x;
long k;
public Solve() {}
public static int Main() {
new Solve().Calc();
return 0;
}
void Calc() {
string ans;
getinput();
StringBuilder sb = new StringBuilder(n);
for (in... | using System;
using System.Collections.Generic;
using System.Text;
class Solve {
string s;
int n;
int[] x;
long k;
public Solve() {}
public static int Main() {
new Solve().Calc();
return 0;
}
void Calc() {
string ans;
getinput();
StringBuilder sb = new StringBuilder(n);
for (in... | [["-", 0, 57, 75, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 19]] | 8 | 294 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace c {
class Program {
static void Main(string[] args) {
char[] s = Console.ReadLine().ToCharArray();
int k = int.Parse(Console.ReadLine());
for (int i = 0; i < s.Length; i++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace c {
class Program {
static void Main(string[] args) {
char[] s = Console.ReadLine().ToCharArray();
int k = int.Parse(Console.ReadLine());
for (int i = 0; i < s.Length; i++) {
... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18]] | 8 | 230 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
class E {
static void Main() => new K();
}
class K {
const long InfL = 4011686018427387913L;
int F => int.Parse(Console.ReadLine());
int[] G => Console.ReadLine().Split().Select(_ => int.Parse(_)).ToArray();
int X, Y,... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
class E {
static void Main() => new K();
}
class K {
const long InfL = 4011686018427387913L;
int F => int.Parse(Console.ReadLine());
int[] G => Console.ReadLine().Split().Select(_ => int.Parse(_)).ToArray();
int X, Y,... | [["+", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72]] | 8 | 645 | 2 |
using System;
using System.Collections.Generic;
class Solve {
int n;
int m;
int q;
int[] a;
public Solve() {}
public static int Main() {
new Solve().Calc();
return 0;
}
void Calc() {
getinput();
bool[] check = new bool[m];
int[] counts = new int[m];
int[] place = new int[m];
... | using System;
using System.Collections.Generic;
class Solve {
int n;
int m;
int q;
int[] a;
public Solve() {}
public static int Main() {
new Solve().Calc();
return 0;
}
void Calc() {
getinput();
bool[] check = new bool[m];
int[] counts = new int[m];
int[] place = new int[m];
... | [["-", 64, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 106]] | 8 | 536 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC045A {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int h = int.Parse(Console.ReadLine());
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC045A {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int h = int.Parse(Console.ReadLine());
... | [["-", 0, 16, 31, 16, 31, 23, 0, 16, 17, 48], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 72]] | 8 | 109 | 2 |
using System;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var a = InputNum();
var b = InputNum();
var c = InputNum();
WriteLine(a * b * c / 2);
}
static int InputNum() { return int.Parse(... | using System;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var a = InputNum();
var b = InputNum();
var c = InputNum();
WriteLine((a + b) * c / 2);
}
static int InputNum() { return int.Pars... | [["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 24], ["-", 0, 28, 0, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 25]] | 8 | 122 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
class P {
static void Main() {
string s = Console.ReadLine();
char lastc = s[0];
int res = 0;
foreach (var c in s) {
if (c != lastc) {
res++;
lastc = c;
}
}
Console.WriteLine(res - 1);
}
} | using System;
using System.Linq;
using System.Collections.Generic;
class P {
static void Main() {
string s = Console.ReadLine();
char lastc = s[0];
int res = 0;
foreach (var c in s) {
if (c != lastc) {
res++;
lastc = c;
}
}
Console.WriteLine(res);
}
} | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 81 | 2 |
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Diagnostics;
using System.Numerics;
using Enu = System.Linq.Enumerable;
public class Program {
static readonly int INF = (int)1e9;
int N, K;
int[][] G;
int[]... | using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Diagnostics;
using System.Numerics;
using Enu = System.Linq.Enumerable;
public class Program {
static readonly int INF = (int)1e9;
int N, K;
int[][] G;
int[]... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 241, 0, 111], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 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, 17, 106]] | 8 | 1,121 | 7 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace ARC063E {
public class Program {
// Atcoder Live 解説を参考にしました。
public static void Main(string[] args) {
var sr = new StreamReader();
var sw =
new StreamWriter(Console.OpenStandardOu... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace ARC063E {
public class Program {
// Atcoder Live 解説を参考にしました。
public static void Main(string[] args) {
var sr = new StreamReader();
var sw =
new StreamWriter(Console.OpenStandardOu... | [["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22]] | 8 | 1,450 | 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... | [["+", 3, 4, 0, 28, 0, 41, 75, 16, 31, 203], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 17, 48], ["-", 0, 28, 0, 41, 75, 16, 31, 16, 17, 72], ["-", 0, 28, 0, 41, 75, 16, 31, 16, 12, 22], ["-", 3, 4, 0, 28, 0, 41, 75, 16, 17, 72], ["-", 3, 4, 0, 28, 0, 41, 75, 16, 12, 203]] | 8 | 294 | 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;
... | [["-", 12, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 622 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
public static class P {
public static void Mai... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
public static class P {
public static void Mai... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]] | 8 | 162 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var S = sc.ReadStr();
var T = sc.ReadStr();
var ans = 2 * N;
for (int i = 0; i < N; i++) {
if (S.Substring(i) == T.Substring(0, N - i)) {
ans -=... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var S = sc.ReadStr();
var T = sc.ReadStr();
var ans = 2 * N;
for (int i = 0; i < N; i++) {
if (S.Substring(i) == T.Substring(0, N - i)) {
ans -=... | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]] | 8 | 1,086 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AGC006A {
class Program {
static void Solve(Input input) {
var n = input.NextInt();
var s = input.Next();
var t = input.Next();
int len... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AGC006A {
class Program {
static void Solve(Input input) {
var n = input.NextInt();
var s = input.Next();
var t = input.Next();
int len... | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]] | 8 | 1,204 | 2 |
using System;
using System.Collections.Generic;
using System.Text;
namespace AtTest.AGC_Challenge {
class _006_A {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
int n = ReadInt();
string ps = Read();
string ss = Re... | using System;
using System.Collections.Generic;
using System.Text;
namespace AtTest.AGC_Challenge {
class _006_A {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
int n = ReadInt();
string ps = Read();
string ss = Re... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 309 | 6 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
using System.Threading.Tasks;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
S... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
using System.Threading.Tasks;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
S... | [["-", 0, 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, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]] | 8 | 913 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
string s = sc.Next();
long c = s.IndexOf('C');
long f = s.IndexOf('F');
bool ok = false;
if (c >= 0 && f >= 0 && c <= f) {
ok = t... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
string s = sc.Next();
long c = s.IndexOf('C');
long f = s.LastIndexOf('F');
bool ok = false;
if (c >= 0 && f >= 0 && c <= f) {
ok... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]] | 8 | 412 | 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, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]] | 8 | 556 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999999;
public static void Main(string[] args) {
var s = Console.ReadLine();
bool c = false;
for (int i = 0; i < s.Len... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999999;
public static void Main(string[] args) {
var s = Console.ReadLine();
bool c = false;
for (int i = 0; i < s.Len... | [["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]] | 8 | 328 | 2 |
using System;
public class Hello {
public static void Main() {
var s = Console.ReadLine();
Console.WriteLine((s.IndexOf('C') >= 0 && s.IndexOf('C') < s.IndexOf('F'))
? "Yes"
: "No");
}
}
| using System;
public class Hello {
public static void Main() {
var s = Console.ReadLine();
Console.WriteLine(
(s.IndexOf('C') >= 0 && s.IndexOf('C') < s.LastIndexOf('F')) ? "Yes"
: "No");
}
}
| [["-", 0, 16, 12, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 12, 16, 12, 213, 63, 214, 141, 22]] | 8 | 69 | 2 |
using System;
namespace CodeFestival2016qualC {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int indexOfC = s.IndexOf('C');
int indexOfF = s.LastIndexOf('F');
if (indexOfC == -1 || indexOfF == -1) {
Console.WriteLine("No");
} else {
if (indexOfC <... | using System;
namespace CodeFestival2016qualC {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int indexOfC = s.IndexOf('C');
int indexOfF = s.LastIndexOf('F');
if (indexOfC == -1 || indexOfF == -1) {
Console.WriteLine("No");
} else {
if (indexOfC <... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 110 | 2 |
using System;
using System.Linq;
using System.Diagnostics;
namespace ConsoleApplication {
public class Program {
public static void Main(string[] args) {
var s = Console.ReadLine();
var c = s.IndexOf('C');
var f = s.IndexOf('F');
var result = c >= 0 && f >= 0 && c < f ? "Yes" : "No";
Console.Writ... | using System;
using System.Linq;
using System.Diagnostics;
namespace ConsoleApplication {
public class Program {
public static void Main(string[] args) {
var s = Console.ReadLine();
var c = s.IndexOf('C');
var f = s.LastIndexOf('F');
var result = c >= 0 && f >= 0 && c < f ? "Yes" : "No";
Console.... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]] | 8 | 120 | 2 |
using System;
public class Program {
public void Proc() {
Reader.IsDebug = false;
string inpt = Reader.ReadLine();
string ans = "No";
if (inpt != null && inpt.Length > 0) {
int idx = inpt.IndexOf('C');
if (idx >= 0 && inpt.IndexOf('F') > idx) {
ans = "Yes";
}
}
Conso... | using System;
public class Program {
public void Proc() {
Reader.IsDebug = false;
string inpt = Reader.ReadLine();
string ans = "No";
if (inpt != null && inpt.Length > 0) {
int idx = inpt.IndexOf('C');
if (idx >= 0 && inpt.LastIndexOf('F') > idx) {
ans = "Yes";
}
}
C... | [["-", 15, 16, 12, 16, 31, 213, 63, 214, 141, 22], ["+", 15, 16, 12, 16, 31, 213, 63, 214, 141, 22], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258]] | 8 | 202 | 4 |
using System;
namespace CF2016CA {
public class Program {
public static void Main(string[] args) {
var sr = new StreamReader();
//---------------------------------
var S = sr.Next<string>();
var c = S.IndexOf('C');
var f = S.IndexOf('F');
var res = c != -1 && f != -1 && c < f;
Console.Wri... | using System;
namespace CF2016CA {
public class Program {
public static void Main(string[] args) {
var sr = new StreamReader();
//---------------------------------
var S = sr.Next<string>();
var c = S.IndexOf('C');
var f = S.LastIndexOf('F');
var res = c != -1 && f != -1 && c < f;
Console... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]] | 8 | 412 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
// using System.Numerics; //comment out if AOJ
using System.Text;
using Problem = Tmp.Problem;
using MyIO;
#pragma warning disable // for AOJ
namespace Tmp {
class Problem : IDispo... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
// using System.Numerics; //comment out if AOJ
using System.Text;
using Problem = Tmp.Problem;
using MyIO;
#pragma warning disable // for AOJ
namespace Tmp {
class Problem : IDispo... | [["-", 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 | 1,240 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long k = sc.NextLong();
long t = sc.NextLong();
long[] aa = sc.LongArray();
long sum = aa.Sum();
long max = aa.Max();
if (sum / 2 >... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long k = sc.NextLong();
long t = sc.NextLong();
long[] aa = sc.LongArray();
long sum = aa.Sum();
long max = aa.Max();
if (sum / 2 >... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 416 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | [["+", 0, 213, 3, 4, 0, 28, 0, 213, 63, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 12, 23, 0, 16, 12, 213, 3, 4, 0, 25]] | 8 | 938 | 5 |
using System;
using System.Collections.Generic;
using System.Linq;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
#endif
#en... | using System;
using System.Collections.Generic;
using System.Linq;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
#endif
#en... | [["-", 0, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 33]] | 8 | 1,613 | 2 |
using System;
using System.Linq;
using static System.Console;
using static System.Math;
class E {
static void Main() => new K();
}
class K {
int[] G() => ReadLine().Split().Select(x => int.Parse(x)).ToArray();
public K() {
var I = G();
int Y = I[0], X = I[1];
var m = new char[X, Y];
for (var y = 0... | using System;
using System.Linq;
using static System.Console;
using static System.Math;
class E {
static void Main() => new K();
}
class K {
int[] G() => ReadLine().Split().Select(x => int.Parse(x)).ToArray();
public K() {
var I = G();
int Y = I[0], X = I[1];
var m = new char[X, Y];
for (var y = 0... | [["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22]] | 8 | 522 | 2 |
using System;
using System.Collections.Generic;
namespace cswork {
class Program {
static void Main(string[] args) {
List<long> ll = ReadList();
if (ll[0] == ll[1] && ll[1] == ll[2]) {
Write(1);
} else if (ll[0] == ll[1] || ll[1] == ll[2] || ll[2] == ll[0]) {
Write(2);
} else {
Wri... | using System;
using System.Collections.Generic;
namespace cswork {
class Program {
static void Main(string[] args) {
List<long> ll = ReadList();
if (ll[0] == ll[1] && ll[1] == ll[2]) {
Write(1);
} else if (ll[0] == ll[1] || ll[1] == ll[2] || ll[2] == ll[0]) {
Write(2);
} else {
Wri... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 340 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
using static System.Array;
using static Read;
class Program {
public static void Main() {
var n = IntArray();
Sort(n);
int count = 0;
for (int i = 1; i < n.Leng... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
using static System.Array;
using static Read;
class Program {
public static void Main() {
var n = IntArray();
Sort(n);
int count = 1;
for (int i = 1; i < n.Leng... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 430 | 2 |
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]);
int n;
if (a == b && b == c && c == a)
n = 1;
else if (a == b ||... | 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]);
int n;
if (a == b && b == c && c == a)
n = 1;
else if (a == b ||... | [["-", 0, 57, 75, 57, 75, 1, 0, 11, 12, 203], ["+", 0, 57, 75, 57, 75, 1, 0, 11, 12, 203]] | 8 | 139 | 2 |
using System;
namespace ABC046A {
class Program {
static void Main(string[] args) {
int a, b, c, x = 2;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
c = int.Parse(word[1]);
if (a != b && a != c && b != c)
x = 3;
else if (a == b && a ==... | using System;
namespace ABC046A {
class Program {
static void Main(string[] args) {
int a, b, c, x = 2;
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 && b != c)
x = 3;
else if (a == b && a ==... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 135 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static AtCoder.Io;
namespace AtCoder {
class Program {
static void Main() {
var abc = ReadIntArray();
Console.WriteLine($"{abc.Sum()}");
}
}
public static class Io {
public static string ReadString() => Console.ReadLine();
public... | using System;
using System.Collections.Generic;
using System.Linq;
using static AtCoder.Io;
namespace AtCoder {
class Program {
static void Main() {
var abc = ReadIntArray();
Console.WriteLine($"{abc.Distinct().Count()}");
}
}
public static class Io {
public static string ReadString() => Console.ReadLin... | [["-", 0, 283, 0, 284, 0, 213, 63, 214, 141, 22], ["+", 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], ["+", 0, 283, 0, 284, 0, 213, 63, 214, 0, 131], ["+", 0, 283, 0, 284, 0, 213, 63, 214, 141, 22]] | 8 | 221 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
Func cin2;
void calc() {
cin = new... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
Func cin2;
void calc() {
cin = new... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 106], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 79], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 17, 60]] | 8 | 759 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ziyuutyou {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine().Split(' ');
var a = int.Parse(str[0]);
var b = int.Parse(str[1]);
var c = int.Parse(str[2]);
if (a == b && b == c) {
Conso... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ziyuutyou {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine().Split(' ');
var a = int.Parse(str[0]);
var b = int.Parse(str[1]);
var c = int.Parse(str[2]);
if (a == b && b == c) {
Conso... | [["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 106], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 17, 60], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 12, 22]] | 8 | 138 | 4 |
using System;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var res = MyUtil.ReadIntArray();
int a = res[0];
int b = res[1];
int c = res[2];
if (a == b && b == c... | using System;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var res = MyUtil.ReadIntArray();
int a = res[0];
int b = res[1];
int c = res[2];
if (a == b && b == c... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]] | 8 | 252 | 1 |
using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
int[] IntInput = new int[3];
for (int i = 0; i < 3; i++) {
IntInput[i] = int.Parse(input[i]);
}
if (IntInput[0] == IntInput[1] && IntInput[0] == IntInput[2]... | using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
int[] IntInput = new int[3];
for (int i = 0; i < 3; i++) {
IntInput[i] = int.Parse(input[i]);
}
if (IntInput[0] == IntInput[1] && IntInput[0] == IntInput[2]... | [["-", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 162 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Atcoderrrrrr {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int a = int.Parse(s[0]);
int b = int.Parse(s[1]);
int c = int.Pars... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Atcoderrrrrr {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int a = int.Parse(s[0]);
int b = int.Parse(s[1]);
int c = int.Pars... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 168 | 4 |
using System;
class Trapezoids {
public static void Main(String[] args) {
int a, b, h;
a = int.Parse(Console.ReadLine());
b = int.Parse(Console.ReadLine());
h = int.Parse(Console.ReadLine());
Console.WriteLine(a + b * h / 2);
}
} | using System;
class Trapezoids {
public static void Main(String[] args) {
int a, b, h;
a = int.Parse(Console.ReadLine());
b = int.Parse(Console.ReadLine());
h = int.Parse(Console.ReadLine());
Console.WriteLine((a + b) * h / 2);
}
} | [["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 25]] | 8 | 78 | 2 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int h = int.Parse(Console.ReadLine());
Console.WriteLine((a != b) ? (a + b) * h / h : a * h);
}
} | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int h = int.Parse(Console.ReadLine());
Console.WriteLine((a != b) ? (a + b) * h / 2 : a * h);
}
} | [["-", 3, 4, 0, 28, 0, 41, 64, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 41, 64, 16, 12, 203]] | 8 | 92 | 2 |
using System;
using System.Collections;
using System.IO;
using System.Linq;
namespace CompetitiveProgramming {
class Solve {
const int INF = (int)(1e9) + 10;
private void Main() {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int h = int.Parse(Console.ReadLine());
... | using System;
using System.Collections;
using System.IO;
using System.Linq;
namespace CompetitiveProgramming {
class Solve {
const int INF = (int)(1e9) + 10;
private void Main() {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int h = int.Parse(Console.ReadLine());
... | [["-", 0, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 23, 0, 16, 31, 23, 0, 25], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 85], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 163 | 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 {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
... | 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 {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
... | [["-", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 22]] | 8 | 341 | 7 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
using static System.Array;
class Program {
public static void Main() {
var n = new string[3];
for (int i = 0; i < 3; i++) {
n[i] = ReadLine();
}
int index... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
using static System.Array;
class Program {
public static void Main() {
var n = new string[3];
for (int i = 0; i < 3; i++) {
n[i] = ReadLine();
}
int index... | [["-", 0, 74, 51, 23, 0, 16, 12, 252, 0, 253], ["+", 0, 74, 51, 23, 0, 16, 12, 252, 0, 253]] | 8 | 162 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string sa = Console.ReadLine();
string sb = Console.ReadLine();
string sc = Console.ReadLine();
int countA = 0;
int countB = 0;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string sa = Console.ReadLine();
string sb = Console.ReadLine();
string sc = Console.ReadLine();
int countA = 0;
int countB = 0;
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 215], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 62], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 195, 8, 196, 0, 52, 15, 241, 0, 111]] | 8 | 248 | 5 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp7 {
class Program {
static void Main(string[] args) {
string A = Console.ReadLine();
string B = Console.ReadLine();
string C = Console.ReadLine();
int countA = 0; ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp7 {
class Program {
static void Main(string[] args) {
string A = Console.ReadLine();
string B = Console.ReadLine();
string C = Console.ReadLine();
int countA = 0; ... | [["-", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253]] | 8 | 399 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class ABC045B {
static void Main() {
List<Queue<int>> qs = new List<Queue<int>>();
for (int i = 0; i < 3; i++) {
List<int> buff = Console.ReadLine().Select(x => x - 'a... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class ABC045B {
static void Main() {
List<Queue<int>> qs = new List<Queue<int>>();
for (int i = 0; i < 3; i++) {
List<int> buff = Console.ReadLine().Select(x => x - 'a... | [["-", 0, 74, 51, 23, 0, 16, 12, 252, 0, 253], ["+", 0, 74, 51, 23, 0, 16, 12, 252, 0, 253]] | 8 | 189 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
List<char> ah = cin.next().ToCharArray().ToList();
List<char> bh = cin.next().ToCharArray().ToList();
List<char> ch = cin.next().ToCharArray().ToList();
List<char>[] hands = new List<c... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
List<char> ah = cin.next().ToCharArray().ToList();
List<char> bh = cin.next().ToCharArray().ToList();
List<char> ch = cin.next().ToCharArray().ToList();
List<char>[] hands = new List<c... | [["-", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 22]] | 8 | 337 | 7 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
string s = sc.Next();
int length = s.Length;
int[] nums = new int[length];
for (int i = 0; i < length; i++) {
nums[i] = int.Parse(s[i]... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
string s = sc.Next();
int length = s.Length;
int[] nums = new int[length];
for (int i = 0; i < length; i++) {
nums[i] = int.Parse(s[i]... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 542 | 2 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Program {
static int[] L;
static void Main(string[] args) {
var input = Console.ReadLine();
string[] S = new string[input.Length];
for (int i = 0; i < input.Length; i++) {
S[i] = input[i].ToString();
}... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Program {
static int[] L;
static void Main(string[] args) {
var input = Console.ReadLine();
string[] S = new string[input.Length];
for (int i = 0; i < input.Length; i++) {
S[i] = input[i].ToString();
}... | [["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199]] | 8 | 253 | 2 |
using System;
using static System.Console;
using static cp;
using System.Text;
using System.Linq;
using static System.Math;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Program {
static void Main(string[] args) {
var alg = new cp();
var s = ... | using System;
using static System.Console;
using static cp;
using System.Text;
using System.Linq;
using static System.Math;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Program {
static void Main(string[] args) {
var alg = new cp();
var s = ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199]] | 8 | 1,063 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
class Program {
public void Slove() {
var inputs = Console.ReadLine().Split();
int height = int.Parse(inputs[0]);
int width = int.Parse(inputs[1]);
int n = int.Parse(inputs[2]);
Dictionary<long, int> blackCou... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
class Program {
public void Slove() {
var inputs = Console.ReadLine().Split();
int height = int.Parse(inputs[0]);
int width = int.Parse(inputs[1]);
int n = int.Parse(inputs[2]);
Dictionary<long, int> blackCou... | [["+", 0, 212, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 16, 31, 16, 31, 74, 51, 23, 0, 24], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203]] | 8 | 367 | 5 |
using System;
namespace test {
class Program {
static void Main(string[] args) {
string input = "9999999999"; // Console.ReadLine();
Console.WriteLine(SumAll(input, 0));
}
static string[] SplitByIndex(string str, int i) {
string[] res = new string[2];
res[0] = str.Substring(0, i);
res[1] = s... | using System;
namespace test {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
Console.WriteLine(SumAll(input, 0));
}
static string[] SplitByIndex(string str, int i) {
string[] res = new string[2];
res[0] = str.Substring(0, i);
res[1] = str.Substring(i, s... | [["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 62], ["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 2... | 8 | 213 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp38 {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
int l = S.Length; //文字数
long ans = 0;
for (int s = 0; s < (1 << (l - 1)); s+... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp38 {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
int l = S.Length; //文字数
long ans = 0;
for (int s = 0; s < (1 << (l - 1)); s+... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199]] | 8 | 211 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
class Program {
static void Main(string[] args) {
// ARC061A
var S = Console.ReadLine();
var k = S.Count() - 1;
int a = 0;
for (int i = 0; i < (1 << k); i++)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
class Program {
static void Main(string[] args) {
// ARC061A
var S = Console.ReadLine();
var k = S.Count() - 1;
long a = 0;
for (int i = 0; i < (1 << k); i++... | [["-", 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, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 16, 12, 23, 0, 213, ... | 8 | 448 | 8 |
using System;
using System.Collections;
using System.Linq;
public class Test {
public static int n = 0;
public static int ans = 0;
public static string str = "";
public static void Main() {
str = Console.ReadLine();
string s = "";
bit(s);
Console.WriteLine(ans);
}
public static void bit(... | using System;
using System.Collections;
using System.Linq;
public class Test {
public static long n = 0;
public static long ans = 0;
public static string str = "";
public static void Main() {
str = Console.ReadLine();
string s = "";
bit(s);
Console.WriteLine(ans);
}
public static void bi... | [["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199]] | 8 | 240 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) { C(); }
static void C() {
var S = ReadLong();
var sum = 0;
for (int i = 0; i < Math.Pow(2, S.ToString().Length - 1); i++) {
var sList = S.ToString().ToList(... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) { C(); }
static void C() {
var S = ReadLong();
long sum = 0;
for (long i = 0; i < Math.Pow(2, S.ToString().Length - 1); i++) {
var sList = S.ToString().ToLis... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]] | 8 | 575 | 6 |
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Diagnostics;
using Enu = System.Linq.Enumerable;
public class Program {
static readonly long Big = (long)1e9;
public void Solve() {
int N = Reader.Int(), M ... | using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Diagnostics;
using Enu = System.Linq.Enumerable;
public class Program {
static readonly long Big = (long)1e9;
public void Solve() {
int N = Reader.Int(), M ... | [["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 39, 224, 225, 226, 0, 16, 12, 16, 31, 22], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 39, 224, 225, 226, 0, 16, 12, 16, 12, 203]] | 8 | 1,144 | 4 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static StreamWriter sw =
new StreamWriter(OpenStandardOutput()) { AutoFlush = ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static StreamWriter sw =
new StreamWriter(OpenStandardOutput()) { AutoFlush = ... | [["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22]] | 8 | 520 | 2 |
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, 212, 0, 41, 15, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 41, 15, 213, 63, 214, 141, 22]] | 8 | 1,557 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Algorithm {
class Program {
static void Main(string[] args) {
var l = Console.ReadLine().Split().Select(int.Parse).ToArray();
int a = l[0], b = l[1], c = l[2];
if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0)
Console.WriteLine... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Algorithm {
class Program {
static void Main(string[] args) {
var l = Console.ReadLine().Split().Select(long.Parse).ToArray();
long a = l[0], b = l[1], c = l[2];
if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0)
Console.WriteLi... | [["-", 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]] | 8 | 135 | 4 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace AtCoder {
class Practice {
static void Main() => CustomMain();
static void Solve() {
var a = ReadIntArray();
foreach (var num in a) {
if (IsEven(num)) {
WriteAnswer(0);
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace AtCoder {
class Practice {
static void Main() => CustomMain();
static void Solve() {
var a = ReadIntArray();
foreach (var num in a) {
if (IsEven(num)) {
WriteAnswer(0);
... | [["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25]] | 8 | 747 | 3 |
using System;
using System.Linq;
class c {
static void Main() {
var inp = Array.ConvertAll(Console.ReadLine().Split(), int.Parse)
.OrderBy(f => f)
.ToArray();
Console.WriteLine(inp.Count(f => f % 2 == 0) > 0 ? 0 : inp[0] * inp[1]);
}
} | using System;
using System.Linq;
class c {
static void Main() {
var inp = Array.ConvertAll(Console.ReadLine().Split(), long.Parse)
.OrderBy(f => f)
.ToArray();
Console.WriteLine(inp.Count(f => f % 2 == 0) > 0 ? 0 : inp[0] * inp[1]);
}
} | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]] | 8 | 84 | 2 |
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 abc = Array.ConvertAll(ReadLine().Split(' '), int.Parse);
for (var i = 0; i < 3; i++)
if (abc[i] %... | 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 abc = Array.ConvertAll(ReadLine().Split(' '), int.Parse);
for (var i = 0; i < 3; i++)
if (abc[i] %... | [["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25]] | 8 | 125 | 3 |
using System;
using System.Linq;
class Program {
static void Main() {
var arr = Console.ReadLine().Split().Select(int.Parse).ToArray();
int a = arr[0];
int b = arr[1];
int c = arr[2];
if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0) {
Console.WriteLine(0);
} else {
Console.WriteLine(Ma... | using System;
using System.Linq;
class Program {
static void Main() {
var arr = Console.ReadLine().Split().Select(long.Parse).ToArray();
var a = arr[0];
var b = arr[1];
var c = arr[2];
if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0) {
Console.WriteLine(0);
} else {
Console.WriteLine(M... | [["-", 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], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217]] | 8 | 126 | 8 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var a = Console.ReadLine()
.Split(' ')
.Select(x => long.Parse(x))
.OrderByDescending(x => x)
.ToArray();
Console.WriteLine(a[0] * a[1] * a[2] % 2 * a[0] * a[1]);... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var a = Console.ReadLine()
.Split(' ')
.Select(x => long.Parse(x))
.OrderBy(x => x)
.ToArray();
Console.WriteLine(a[0] * a[1] * a[2] % 2 * a[0] * a[1]);
}
} | [["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22]] | 8 | 94 | 2 |
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 {
// C#7.0
long[] abc;
void Solve() {
io.ini(out abc, 3);
bool isEven = false;
for (int i = 0; i < 3; i++) {
... | 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 {
// C#7.0
long[] abc;
void Solve() {
io.ini(out abc, 3);
bool isEven = false;
for (int i = 0; i < 3; i++) {
... | [["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 2,847 | 2 |
using System;
using System.Linq;
namespace agc004_a {
class Program {
static void Main(string[] args) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (x[0] % 2 == 0 || x[1] % 2 == 0 || x[2] % 2 == 0) {
Console.WriteLine(0);
} else {
Array.Sort(x);
Console.WriteLin... | using System;
using System.Linq;
namespace agc004_a {
class Program {
static void Main(string[] args) {
long[] x = Console.ReadLine().Split().Select(long.Parse).ToArray();
if (x[0] % 2 == 0 || x[1] % 2 == 0 || x[2] % 2 == 0) {
Console.WriteLine(0);
} else {
Array.Sort(x);
Console.WriteL... | [["-", 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 | 116 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;
class Magatro {
static void Main() {
int[] s = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
Array.Sort(s);... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;
class Magatro {
static void Main() {
long[] s = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
Array.Sort(s... | [["-", 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 | 129 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace A {
class Program {
static void Main(string[] args) {
var abc = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int a = abc[0], b = abc[1], c = abc[2];
if (a % 2 == 0 |... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace A {
class Program {
static void Main(string[] args) {
var abc = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
long a = abc[0], b = abc[1], c = abc[2];
if (a % 2 == 0... | [["-", 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]] | 8 | 159 | 4 |
using System;
using System.Collections.Generic;
class Solve {
public int a;
public int b;
public int c;
public Solve() {}
public static int Main() {
new Solve().Calc();
return 0;
}
void Calc() {
getinput();
if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0) {
Console.WriteLine(0);
} els... | using System;
using System.Collections.Generic;
class Solve {
public long a;
public long b;
public long c;
public Solve() {}
public static int Main() {
new Solve().Calc();
return 0;
}
void Calc() {
getinput();
if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0) {
Console.WriteLine(0);
} ... | [["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199]] | 8 | 223 | 6 |
using System;
namespace AGC004A {
public class Program {
public static void Main(string[] args) {
var sr = new StreamReader();
//---------------------------------
var A = sr.Next<int>();
var B = sr.Next<int>();
var C = sr.Next<int>();
if (A % 2 == 0 || B % 2 == 0 || C % 2 == 0) {
Conso... | using System;
namespace AGC004A {
public class Program {
public static void Main(string[] args) {
var sr = new StreamReader();
//---------------------------------
var A = sr.Next<long>();
var B = sr.Next<long>();
var C = sr.Next<long>();
if (A % 2 == 0 || B % 2 == 0 || C % 2 == 0) {
Co... | [["-", 0, 213, 63, 214, 141, 236, 237, 238, 0, 199], ["+", 0, 213, 63, 214, 141, 236, 237, 238, 0, 199]] | 8 | 491 | 6 |
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 | 2,090 | 2 |
using System;
using System.Linq;
public class Program {
public static void Main() {
int[] size = Console.ReadLine()
.Split()
.Select(i => int.Parse(i))
.OrderBy(i => i)
.ToArray();
Console.WriteLine(size.Any(i => i % 2 == 0) ... | using System;
using System.Linq;
public class Program {
public static void Main() {
long[] size = Console.ReadLine()
.Split()
.Select(i => long.Parse(i))
.OrderBy(i => i)
.ToArray();
Console.WriteLine(size.Any(i => i % 2 ... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199]] | 8 | 89 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC {
class MainClass {
public static void Main(string[] args) {
var a = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
long result = 0;
if (a[0] % 2 == 0 || a[1] % 2 == 0 || a[2] % 2 == 0)
result = 0;
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC {
class MainClass {
public static void Main(string[] args) {
var a = Console.ReadLine().Split().Select(x => long.Parse(x)).ToArray();
long result = 0;
if (a[0] % 2 == 0 || a[1] % 2 == 0 || a[2] % 2 == 0)
result = 0;
... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 152 | 4 |
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, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199]] | 8 | 220 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AGC04_A {
class Program {
static void Main(string[] args) {
var t = scan;
long[] a = { t[0] * t[1], t[0] * t[2], t[1] * t[2] };
if (t.Any(i => i % 2 == 0))
Console.WriteLine... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AGC04_A {
class Program {
static void Main(string[] args) {
var t = scan;
long[] a = { t[0] * t[1], t[0] * t[2], t[1] * t[2] };
if (t.Any(i => i % 2 == 0))
Console.WriteLine... | [["-", 0, 235, 8, 201, 0, 277, 39, 224, 39, 199], ["+", 0, 235, 8, 201, 0, 277, 39, 224, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199]] | 8 | 152 | 4 |
using System;
using System.Linq;
class A {
static void Main() {
var n = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (Array.Exists(n, (a) => { return a % 2 == 0; })) {
Console.WriteLine(0);
} else {
Array.Sort(n);
Console.WriteLine(n[0] * n[1]);
}
}
} | using System;
using System.Linq;
class A {
static void Main() {
var n = Console.ReadLine().Split().Select(long.Parse).ToArray();
if (Array.Exists(n, (a) => { return a % 2 == 0; })) {
Console.WriteLine(0);
} else {
Array.Sort(n);
Console.WriteLine(n[0] * n[1]);
}
}
} | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]] | 8 | 100 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { AGC004.B(); }
class AGC004 {
public static void A() {
var A = Read.Long();
var B = Read.Long();
var C = Read.Long();
if (A % 2 == 0 || B % 2 == 0 || ... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { AGC004.B(); }
class AGC004 {
public static void A() {
var A = Read.Long();
var B = Read.Long();
var C = Read.Long();
if (A % 2 == 0 || B % 2 == 0 || ... | [["-", 12, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 204, 205, 22]] | 8 | 1,316 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
private struct Pair {
public int x, y;
public Pair(int x, int y) {
this.x = x;
this.y = y;
}
}
public static void Solve() {
int N = NextInt... | using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
private struct Pair {
public int x, y;
public Pair(int x, int y) {
this.x = x;
this.y = y;
}
}
public static void Solve() {
int N = NextInt... | [["-", 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 | 568 | 4 |
using System;
using System.Linq;
using System.Diagnostics;
using System.Collections.Generic;
using static System.Math;
using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOptions;
using MethodImplAttribute = System.Runtime.CompilerServices.MethodImplAttribute;
class P {
static void Main() {
var n... | using System;
using System.Linq;
using System.Diagnostics;
using System.Collections.Generic;
using static System.Math;
using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOptions;
using MethodImplAttribute = System.Runtime.CompilerServices.MethodImplAttribute;
class P {
static void Main() {
var n... | [["-", 0, 28, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203]] | 8 | 276 | 4 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace AtTest.AGC_Challenge {
class _004_B {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
int[] nx = ReadInts();
int n = nx[0];
... | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace AtTest.AGC_Challenge {
class _004_B {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
int[] nx = ReadInts();
int n = nx[0];
... | [["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199]] | 8 | 382 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
public class Hello {
static public int mod = 1000000007;
public static void Main() {
string read = rstr();
int s = Min(0, read.IndexOf("S"));
int n = Min(0... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
public class Hello {
static public int mod = 1000000007;
public static void Main() {
string read = rstr();
int s = Min(0, read.IndexOf("S"));
int n = Min(0... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 12, 241, 0, 33], ["+", 0, 57, 15, 16, 31, 16, 12, 241, 0, 203], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, ... | 8 | 896 | 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 str = ReadLine();
if ((str.Contains('W') && str.Contains('N') && str.Contains('E') &&
str.Conta... | 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 str = ReadLine();
if ((str.Contains('W') && str.Contains('N') && str.Contains('E') &&
str.Conta... | [["-", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253]] | 8 | 190 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
class P {
static void Main() {
string t = Console.ReadLine();
bool n = t.Contains('N');
bool e = t.Contains('E');
bool w = t.Contains('W');
bool s = t.Contains('S');
Console.WriteLine((n && s && !e && !w) || (!n && !s && e && ... | using System;
using System.Linq;
using System.Collections.Generic;
class P {
static void Main() {
string t = Console.ReadLine();
bool n = t.Contains('N');
bool e = t.Contains('E');
bool w = t.Contains('W');
bool s = t.Contains('S');
Console.WriteLine((n && s && !e && !w) || (!n && !s && e && ... | [["-", 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 | 130 | 4 |
using System;
using System.Text.RegularExpressions;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using System.Numerics;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput... | using System;
using System.Text.RegularExpressions;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using System.Numerics;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 354 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
// using static System.Globalization.CultureInfo;
class Program {
static void Main(string[] args) {
var num = Input.num;
var ar = Enumerable.Repeat(0, num).Se... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
// using static System.Globalization.CultureInfo;
class Program {
static void Main(string[] args) {
var num = Input.num;
var ar = Enumerable.Repeat(0, num).Se... | [["-", 0, 57, 15, 16, 12, 16, 31, 16, 17, 109], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]] | 8 | 333 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
private int N;
private int[] A;
public void Solve() {
N = int.Parse(Console.ReadLine());
A = new int[N];
for (int i = 0; i < N; i++) {
A[i] = int.Parse(Console.ReadLine());
}
long ans... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
private int N;
private int[] A;
public void Solve() {
N = int.Parse(Console.ReadLine());
A = new int[N];
for (int i = 0; i < N; i++) {
A[i] = int.Parse(Console.ReadLine());
}
long ans... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 174 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class _C {
void _() {
var N = _Ns()[0];
long ans = 0;
long A = _Ns()[0];
for (int i = 1; i < N; i++) {
long AA = _Ns()[0];
ans += A / 2;
if (A % 2 == 1) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class _C {
void _() {
var N = _Ns()[0];
long ans = 0;
long A = _Ns()[0];
for (int i = 1; i < N; i++) {
long AA = _Ns()[0];
ans += A / 2;
if (A % 2 == 1) {
... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 315 | 6 |
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 {
public void Solve() {
int n = ReadInt();
var a = ReadAndTransposeIntMatrix(n)[0];
long a... | 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 {
public void Solve() {
int n = ReadInt();
var a = ReadAndTransposeIntMatrix(n)[0];
long a... | [["-", 0, 57, 15, 16, 12, 16, 31, 16, 17, 109], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203]] | 8 | 920 | 2 |
using System;
namespace agc003_c {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] x = new int[n];
int[] a = new int[n];
for (int i = 0; i < n; i++) {
x[i] = int.Parse(Console.ReadLine());
a[i] = i;
}
Array.Sort(x, a);
int ret = 1... | using System;
namespace agc003_c {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] x = new int[n];
int[] a = new int[n];
for (int i = 0; i < n; i++) {
x[i] = int.Parse(Console.ReadLine());
a[i] = i;
}
Array.Sort(x, a);
int ret = 1... | [["+", 15, 16, 31, 16, 31, 213, 63, 214, 205, 22], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 141, 22]] | 8 | 152 | 3 |
using System;
using System.Linq;
namespace agc004_b {
class Program {
static void Main(string[] args) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
int n = x[0];
long[,] time = new long[n, n];
for (int i = 0; ... | using System;
using System.Linq;
namespace agc004_b {
class Program {
static void Main(string[] args) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
int n = x[0];
long[,] time = new long[n, n];
for (int i = 0; ... | [["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199]] | 8 | 252 | 2 |
using System;
class ColorfulSlimes {
static public void Main(string[] args) {
int N, x;
string[] vals = Console.ReadLine().Split(' ');
N = int.Parse(vals[0]);
x = int.Parse(vals[1]);
vals = Console.ReadLine().Split(' ');
int[] a = new int[N + 1];
for (int i = 1; i <= N; i++)
a[i] =... | using System;
class ColorfulSlimes {
static public void Main(string[] args) {
int N, x;
string[] vals = Console.ReadLine().Split(' ');
N = int.Parse(vals[0]);
x = int.Parse(vals[1]);
vals = Console.ReadLine().Split(' ');
int[] a = new int[N + 1];
for (int i = 1; i <= N; i++)
a[i] =... | [["+", 0, 1, 0, 11, 12, 16, 31, 74, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 39, 199], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 0, 25]] | 8 | 335 | 3 |
using System;
class Program {
static void Main(string[] args) {
// 整数の入力
// int a = int.Parse(Console.ReadLine());
// スペース区切りの整数の入力
string[] tmp = Console.ReadLine().Split(' ');
long N = int.Parse(tmp[0]);
long x = int.Parse(tmp[1]);
string[] a = Console.ReadLine().Split(' ');
long[,] ... | using System;
class Program {
static void Main(string[] args) {
// 整数の入力
// int a = int.Parse(Console.ReadLine());
// スペース区切りの整数の入力
string[] tmp = Console.ReadLine().Split(' ');
long N = int.Parse(tmp[0]);
long x = int.Parse(tmp[1]);
string[] a = Console.ReadLine().Split(' ');
long[,] ... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22]] | 8 | 325 | 4 |
using System;
using System.Linq;
namespace AGC004B {
public class Program {
public static void Main(string[] args) {
var sr = new StreamReader();
//---------------------------------
var N = sr.Next<int>();
var X = sr.Next<long>();
var A = sr.Next<long>(N);
var dp = new long[N];
for (var ... | using System;
using System.Linq;
namespace AGC004B {
public class Program {
public static void Main(string[] args) {
var sr = new StreamReader();
//---------------------------------
var N = sr.Next<int>();
var X = sr.Next<long>();
var A = sr.Next<long>(N);
var dp = new long[N];
for (var ... | [["-", 12, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 204, 205, 22]] | 8 | 514 | 2 |
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, 28, 0, 16, 12, 16, 31, 74, 0, 24], ["+", 0, 28, 0, 16, 12, 16, 31, 74, 39, 199], ["+", 0, 28, 0, 16, 12, 16, 31, 74, 0, 25]] | 8 | 2,271 | 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() {
long[][] B = new long [N][];
for (int i = 0; i < N; i++)
B[i] = new... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
long[][] B = new long [N][];
for (int i = 0; i < N; i++)
B[i] = new... | [["-", 0, 11, 12, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 11, 12, 227, 39, 224, 225, 226, 0, 22]] | 8 | 569 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace b {
class Program {
static long n;
static void Main(string[] args) {
long[] nx = Console.ReadLine().Split().Select(long.Parse).ToArray();
long[] a = Console.ReadLine().Split().Select(long.Parse).ToArray();
n... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace b {
class Program {
static long n;
static void Main(string[] args) {
long[] nx = Console.ReadLine().Split().Select(long.Parse).ToArray();
long[] a = Console.ReadLine().Split().Select(long.Parse).ToArray();
n... | [["-", 0, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 288 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.