buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k | change_count int64 0 100 |
|---|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
Scanner cin = new Scanner();
int x = cin.Int();
long sum = 0;
for (int i = 0; i < x; i++) {
sum += i;... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
Scanner cin = new Scanner();
int x = cin.Int();
long sum = 0;
for (int i = 0; i < x; i++) {
sum += i ... | [["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 467 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc_056_C {
class Program {
static void Main(string[] args) {
int ans = 0;
int a = int.Parse(Console.ReadLine());
for (int i = 1; i > 0; i++) {
ans = i * (i + 1) / 2;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc_056_C {
class Program {
static void Main(string[] args) {
int ans = 0;
int a = int.Parse(Console.ReadLine());
for (int i = 1; i > 0; i++) {
ans = i * (i + 1) / 2;
... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 116 | 2 |
using System;
class Program {
static void Main(string[] args) {
long X = long.Parse(Console.ReadLine());
long temp = 0;
long ans;
for (long i = 1;; i++) {
temp += i;
if (temp <= X) {
ans = i;
break;
}
}
Console.WriteLine(ans);
}
} | using System;
class Program {
static void Main(string[] args) {
long X = long.Parse(Console.ReadLine());
long temp = 0;
long ans;
for (long i = 1;; i++) {
temp += i;
if (temp >= X) {
ans = i;
break;
}
}
Console.WriteLine(ans);
}
} | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 78 | 2 |
using System;
namespace arc070_a {
class Program {
static void Main(string[] args) {
int x = int.Parse(Console.ReadLine());
int i;
int sum = 0;
for (i = 0; sum < x; i++) {
sum += i;
}
Console.WriteLine(i);
}
}
} | using System;
namespace arc070_a {
class Program {
static void Main(string[] args) {
int x = int.Parse(Console.ReadLine());
int i;
int sum = 0;
for (i = 0; sum < x; i++) {
sum += i;
}
Console.WriteLine(i - 1);
}
}
} | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 70 | 2 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
long x = long.Parse(Console.ReadLine());
long answer = 0;
long memo = 0;
for (int i = 1; i > 0; i++) {
memo += i;
answer++;
if (x >= memo... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
long x = long.Parse(Console.ReadLine());
long answer = 0;
long memo = 0;
for (int i = 1; i > 0; i++) {
memo += i;
answer++;
if (x <= memo... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 95 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
public class Program {
public static void Main() {
var x = double.Parse(Console.ReadLine());
var i = (int)Math.Floor((Math.Sqrt(8 * x + 1) - 1) / 2);
Console.WriteLine(i);
}
}
| using System;
using System.Linq;
using System.Collections.Generic;
public class Program {
public static void Main() {
var x = double.Parse(Console.ReadLine());
var i = (int)Math.Ceiling((Math.Sqrt(8 * x + 1) - 1) / 2);
Console.WriteLine(i);
}
}
| [["-", 0, 212, 0, 74, 51, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 74, 51, 213, 63, 214, 141, 22]] | 8 | 77 | 2 |
using System;
using System.Globalization;
using System.IO;
using System.Linq;
namespace AtCoder {
internal class Program {
static void Main(string[] args) {
var sr = new InputReader(Console.In);
// var sr = new InputReader(new StreamReader("input.txt"));
using (var sw = Console.Out)
// using (var sw ... | using System;
using System.Globalization;
using System.IO;
using System.Linq;
namespace AtCoder {
internal class Program {
static void Main(string[] args) {
var sr = new InputReader(Console.In);
// var sr = new InputReader(new StreamReader("input.txt"));
using (var sw = Console.Out)
// using (var sw ... | [["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 403 | 2 |
using System;
using static System.Math;
class Program {
static int n, k;
static int[] a;
static bool[,] dp;
static int before = 0;
static void Main() {
string[] s = Console.ReadLine().Split();
n = int.Parse(s[0]);
k = int.Parse(s[1]);
a = new int[n];
s = Console.ReadLine().Split();
f... | using System;
using static System.Math;
class Program {
static int n, k;
static int[] a;
static bool[,] dp;
static int before = 0;
static void Main() {
string[] s = Console.ReadLine().Split();
n = int.Parse(s[0]);
k = int.Parse(s[1]);
a = new int[n];
s = Console.ReadLine().Split();
f... | [["+", 0, 195, 8, 196, 0, 57, 15, 241, 0, 111]] | 8 | 421 | 1 |
using System;
using System.Collections.Generic;
class Solver {
static Scanner cin;
public Solver() {}
public static int Main() {
cin = new Scanner();
new Solver().solve();
return 0;
}
public void solve() {
int n;
n = cin.nextInt();
long[] l, r, mid, width;
l = new long[n];
r ... | using System;
using System.Collections.Generic;
class Solver {
static Scanner cin;
public Solver() {}
public static int Main() {
cin = new Scanner();
new Solver().solve();
return 0;
}
public void solve() {
int n;
n = cin.nextInt();
long[] l, r, mid, width;
l = new long[n];
r ... | [["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 35]] | 8 | 1,183 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
static void Main... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
static void Main... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 20... | 8 | 278 | 8 |
using System;
using System.Collections.Generic;
namespace AGC011A {
class Program {
static void Main(string[] args) {
var target = Console.ReadLine().Split(' ');
int N = int.Parse(target[0]);
int C = int.Parse(target[1]);
int K = int.Parse(target[2]);
var t = new List<int>();
for (int i = 0; ... | using System;
using System.Collections.Generic;
namespace AGC011A {
class Program {
static void Main(string[] args) {
var target = Console.ReadLine().Split(' ');
int N = int.Parse(target[0]);
int C = int.Parse(target[1]);
int K = int.Parse(target[2]);
var t = new List<int>();
for (int i = 0; ... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]] | 8 | 214 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AGC011_A {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var customers = int.Parse(input[0]);
var busCapacity = int.Parse(input[1]);... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AGC011_A {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var customers = int.Parse(input[0]);
var busCapacity = int.Parse(input[1]);... | [["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 22]] | 8 | 278 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
int c = sc.NextInt();
int k = sc.NextInt();
int[] t = new int[n];
for (int i = 0; i < n; i++) {
t[i] = sc.Nex... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
int c = sc.NextInt();
int k = sc.NextInt();
int[] t = new int[n];
for (int i = 0; i < n; i++) {
t[i] = sc.Nex... | [["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203]] | 8 | 504 | 3 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { AGC011.A(); }
class AGC011 {
public static void A() {
var N = Read.Int();
var C = Read.Long();
var K = Read.Long();
var T = Enumerable.Range(0, N).Sel... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { AGC011.A(); }
class AGC011 {
public static void A() {
var N = Read.Int();
var C = Read.Long();
var K = Read.Long();
var T = Enumerable.Range(0, N).Sel... | [["-", 0, 57, 15, 16, 12, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 12, 22]] | 8 | 1,368 | 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 AtCoder {
class AtCoderrr {
static void Main(string[] args) {
int[] s = ReadLine().Split(' ').Select(int.Parse).ToArray();
var ls = new List<... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtCoder {
class AtCoderrr {
static void Main(string[] args) {
int[] s = ReadLine().Split(' ').Select(int.Parse).ToArray();
var ls = new List<... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19]] | 8 | 237 | 2 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
long n = long.Parse(input[0]);
long c = long.Parse(input[1]);
long k =... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
long n = long.Parse(input[0]);
long c = long.Parse(input[1]);
long k =... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203]] | 8 | 217 | 6 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
class Prog {
public Prog() {}
public static int Main() {
new Prog().calc();
return 0;
}
Scanner cin;
public void calc() {
cin = new Scanner();
long N = cin.nextLo... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
class Prog {
public Prog() {}
public static int Main() {
new Prog().calc();
return 0;
}
Scanner cin;
public void calc() {
cin = new Scanner();
long N = cin.nextLo... | [["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203]] | 8 | 416 | 3 |
using System;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using Debug = System.Diagnostics.Debug;
using MethodImplOptions = System.Runtime.CompilerServices.Me... | using System;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using Debug = System.Diagnostics.Debug;
using MethodImplOptions = System.Runtime.CompilerServices.Me... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 205 | 2 |
using System;
using System.Collections.Generic;
using CompLib.Util;
public class Program {
private int N;
private int M;
private List<int>[] E;
public void Solve() {
var sc = new Scanner();
N = sc.NextInt();
M = sc.NextInt();
E = new List<int>[N];
for (int i = 0; i < N; i++) {
E[i] =... | using System;
using System.Collections.Generic;
using CompLib.Util;
public class Program {
private int N;
private int M;
private List<int>[] E;
public void Solve() {
var sc = new Scanner();
N = sc.NextInt();
M = sc.NextInt();
E = new List<int>[N];
for (int i = 0; i < N; i++) {
E[i] =... | [["+", 0, 1, 0, 11, 12, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 12, 22]] | 8 | 813 | 2 |
using System;
using System.Text;
using System.Collections.Generic;
class Solve {
int N;
List<int>[] T;
bool[] b;
long[,] DP;
public Solve() {}
StringBuilder sb;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
Calc();
Console.Write(sb... | using System;
using System.Text;
using System.Collections.Generic;
class Solve {
int N;
List<int>[] T;
bool[] b;
long[,] DP;
public Solve() {}
StringBuilder sb;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
Calc();
Console.Write(sb... | [["-", 0, 195, 8, 196, 0, 37, 0, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 37, 0, 22]] | 8 | 1,386 | 2 |
using System;
class A {
public static void Main() {
int N = int.Parse(Console.ReadLine());
int C = N % 15 * 200;
Console.WriteLine(N * 800 - C);
}
} | using System;
class A {
public static void Main() {
int N = int.Parse(Console.ReadLine());
int C = (N / 15) * 200;
Console.WriteLine((N * 800) - C);
}
}
| [["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 109], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 85], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25]] | 8 | 49 | 6 |
using System;
class program {
static void Main() {
var input = int.Parse(Console.ReadLine());
var result = input - (input * 800 - (input / 15) * 200);
Console.WriteLine(result);
}
} | using System;
class program {
static void Main() {
var input = int.Parse(Console.ReadLine());
var result = input * 800 - input / 15 * 200;
Console.WriteLine(result);
}
} | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["-", 0, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["-", 12, 23, 0, 16, 12, 16, 31, 23, 0, 24], ["-", 12, 23, 0, 16, 12, 16, 31, 23, 0, 25], ["-", 0, 200, 0, 212, 0, 16, 12, 23, 0, 25]] | 8 | 54 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace program {
class Program {
static void Main() {
int N = Input.ScanInt();
int res = N * 800 - (N / 15);
Console.WriteLine(res);
}
}
static class Input {
static public int ScanInt() { return int.Parse(Console.ReadLine()); }
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace program {
class Program {
static void Main() {
int N = Input.ScanInt();
int res = N * 800 - (N / 15) * 200;
Console.WriteLine(res);
}
}
static class Input {
static public int ScanInt() { return int.Parse(Console.ReadLine())... | [["+", 0, 200, 0, 212, 0, 16, 12, 16, 17, 48], ["+", 0, 200, 0, 212, 0, 16, 12, 16, 12, 203]] | 8 | 530 | 2 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
//入力
// int[] input = Console.ReadLine().Split().Select(i =>
// int.Parse(i)).ToArray(); string input= Console.ReadLine();
int input = int.Pars... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
//入力
// int[] input = Console.ReadLine().Split().Select(i =>
// int.Parse(i)).ToArray(); string input= Console.ReadLine();
int input = int.Pars... | [["-", 0, 16, 12, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 12, 203]] | 8 | 78 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main() {
var n = int.Parse(Console.ReadLine());
var val = n * 800;
val += -(200 * n / 15);
Console.WriteLine(val);
}
} | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main() {
var n = int.Parse(Console.ReadLine());
var val = n * 800;
val += -(200 * (n / 15));
Console.WriteLine(val);
}
} | [["+", 12, 241, 0, 23, 0, 16, 12, 23, 0, 24], ["+", 12, 241, 0, 23, 0, 16, 12, 23, 0, 25]] | 8 | 65 | 2 |
using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
// 整数の入力
var eatCount = int.Parse(Console.ReadLine());
var payment = eatCount * 800;
var discountSum = eatCount / 15 * 200;
Console.WriteLine(eatCount - discountSum);
}
}
}
| using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
// 整数の入力
var eatCount = int.Parse(Console.ReadLine());
var payment = eatCount * 800;
var discountSum = eatCount / 15 * 200;
Console.WriteLine(payment - discountSum);
}
}
}
| [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22]] | 8 | 62 | 2 |
using System;
class IfSample {
static void Main() {
// 整数を入力してもらう
int x, y, n, a;
n = int.Parse(Console.ReadLine());
x = n * 800;
y = n / 15 * 200;
a = x - y;
Console.WriteLine("{0}", n);
}
} | using System;
class IfSample {
static void Main() {
// 整数を入力してもらう
int x, y, n, a;
a = int.Parse(Console.ReadLine());
x = a * 800;
y = a / 15 * 200;
n = x - y;
Console.WriteLine("{0}", n);
}
} | [["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22]] | 8 | 68 | 8 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder20170211 {
class Program {
static void Main(string[] args) {
var input = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(input * 800 - Math.Floor(input / 20m) * 200);
}
}
}
| using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder20170211 {
class Program {
static void Main(string[] args) {
var input = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(input * 800 - Math.Floor(input / 15m) * 200);
}
}
}
| [["-", 31, 213, 3, 4, 0, 28, 0, 16, 12, 250], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 12, 250]] | 8 | 73 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace VS_TopCoder {
public class ANewHope {
public int count(int[] firstWeek, int[] lastWeek, int D) {
int N = firstWeek.Length;
int shift = N - D;
int ma = 1... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace VS_TopCoder {
public class ANewHope {
public int count(int[] firstWeek, int[] lastWeek, int D) {
int N = firstWeek.Length;
int shift = N - D;
int ma = 1... | [["-", 0, 212, 0, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 212, 0, 16, 31, 16, 31, 16, 17, 48], ["-", 0, 212, 0, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22]] | 8 | 769 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long power = 1;
for (int i = 1; i <= N; i++) {
power *= i;
}
power %= (long)Math.Pow(10, 9) + 7;
Console.Writ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long power = 1;
for (int i = 1; i <= N; i++) {
power *= i;
power %= (long)Math.Pow(10, 9) + 7;
}
Console.Wr... | [["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]] | 8 | 96 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
int mod = 1000000007;
int answer = 1;
for (int i = 1; i <= n; i++) {
answer = (answer * i) % mod;
}
Con... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long n = sc.NextLong();
long mod = 1000000007;
long answer = 1;
for (long i = 1; i <= n; i++) {
answer = (answer * i) % mod;
}
... | [["-", 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], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199]] | 8 | 386 | 10 |
using System;
namespace ABC054B {
static class Program {
static void Main() {
var n = long.Parse(Console.ReadLine());
long power = 1;
long mod = 100000007;
for (int i = 1; i < n + 1; i++)
power = (power * i) % mod;
Console.WriteLine(power);
}
}
} | using System;
namespace ABC054B {
static class Program {
static void Main() {
var n = int.Parse(Console.ReadLine());
long power = 1;
int mod = 1000000007;
for (int i = 1; i <= n; i++)
power = (power * i) % mod;
Console.WriteLine(power);
}
}
} | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 1... | 8 | 76 | 4 |
using System;
namespace ABC054B {
static class Program {
static void Main() {
var n = long.Parse(Console.ReadLine());
long power = 1;
long mod = 100000007;
for (int i = 1; i < n + 1; i++)
power = (power * i) % mod;
Console.WriteLine(power);
}
}
} | using System;
namespace ABC054B {
static class Program {
static void Main() {
var n = int.Parse(Console.ReadLine());
long power = 1;
long mod = 1000000007;
for (int i = 1; i < n + 1; i++)
power = (power * i) % mod;
Console.WriteLine(power);
}
}
} | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 76 | 4 |
using System;
using System.Linq;
public class Hello {
public static void Main() {
// Your code here!
int N = int.Parse(Console.ReadLine());
int num = 1;
for (int i = 1; i <= N; i++) {
num = (num * i) % 1000000007;
}
Console.WriteLine(num);
}
} | using System;
using System.Linq;
public class Hello {
public static void Main() {
// Your code here!
int N = int.Parse(Console.ReadLine());
long num = 1;
for (int i = 1; i <= N; i++) {
num = (num * i) % 1000000007;
}
Console.WriteLine(num);
}
} | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 74 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
long b = 1;
for (int i = 1; i <= a; i++) {
b = b * i;
}
b = b ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
long b = 1;
for (int i = 1; i <= a; i++) {
b = b * i;
b = b % (1... | [["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]] | 8 | 104 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication20 {
class Program { // b55
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var result = Method(n);
Console.WriteLine(result);
}
p... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication20 {
class Program { // b55
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var result = Method(n);
Console.WriteLine(result);
}
p... | [["-", 8, 201, 0, 195, 8, 196, 0, 7, 8, 196], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 169], ["-", 8, 196, 0, 7, 8, 196, 0, 169, 0, 1], ["-", 0, 7, 8, 196, 0, 169, 0, 1, 0, 11], ["-", 8, 196, 0, 169, 0, 1, 0, 11, 31, 22], ["-", 0, 169, 0, 1, 0, 11, 31, 22, 0, 202], ["-", 0, 1, 0, 11, 31, 22, 0, 202, 12, 16], ["-", 0, 11,... | 8 | 157 | 5 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class B055 {
static void Main() {
int mod = (int)Math.Pow(10, 9) + 7;
int N = int.Parse(Console.ReadLine());
int ans = 1;
for (int i = 1; i <= N; i++)
ans = an... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class B055 {
static void Main() {
int mod = (int)Math.Pow(10, 9) + 7;
int N = int.Parse(Console.ReadLine());
long ans = 1;
for (int i = 1; i <= N; i++)
ans = (... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 8, 1, 0, 11, 12, 16, 31, 23, 0, 25]] | 8 | 107 | 4 |
using System;
namespace AtCoder {
class Program {
static void Main() {
long answer = 1;
int divNum = (int)Math.Pow(10.0, 9.0) + 7;
int n = int.Parse(Console.ReadLine());
for (var i = 2; i <= n; i++) {
answer *= i;
}
if (divNum < answer) {
answer %= divNum;
}
Console.Wr... | using System;
namespace AtCoder {
class Program {
static void Main() {
long answer = 1;
int divNum = (int)Math.Pow(10.0, 9.0) + 7;
int n = int.Parse(Console.ReadLine());
for (var i = 2; i <= n; i++) {
answer *= i;
if (divNum < answer) {
answer %= divNum;
}
}
Cons... | [["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 93 | 2 |
using System;
namespace AtCoder {
class Program {
private static readonly int DIV = (int)Math.Pow(10, 9) + 7;
static void Main(string[] args) {
// 整数の入力
var traningCount = int.Parse(Console.ReadLine());
long power = 1;
for (var i = 2; i < traningCount; ++i) {
power *= i;
if (power > DI... | using System;
namespace AtCoder {
class Program {
private static readonly int DIV = (int)Math.Pow(10, 9) + 7;
static void Main(string[] args) {
// 整数の入力
var traningCount = int.Parse(Console.ReadLine());
long power = 1;
for (var i = 2; i <= traningCount; ++i) {
power *= i;
if (power > D... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 101 | 2 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int N = Cin.Ni();
long answer = 1;
for (int i = 0; i < N; i++) {
answer *= i + 1;
answer %= 100000007;
}
Console.WriteLine(answer);
}
}
public class Cin {
private static string[] s = new string[0];... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int N = Cin.Ni();
long answer = 1;
for (int i = 0; i < N; i++) {
answer *= i + 1;
answer %= 1000000007;
}
Console.WriteLine(answer);
}
}
public class Cin {
private static string[] s = new string[0]... | [["-", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203]] | 8 | 235 | 2 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Numerics;
namespace ABC055.C {
using static Util;
public class Solver : SolverBase {
public void Run() {
long S, C;
ReadLong2(out S, out C);
long ans = 0;
if (C... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Numerics;
namespace ABC055.C {
using static Util;
public class Solver : SolverBase {
public void Run() {
long S, C;
ReadLong2(out S, out C);
long ans = 0;
if (C... | [["+", 75, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 72]] | 8 | 2,048 | 2 |
using System;
using System.Linq;
class Program {
public static void Main() {
long[] input =
Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray();
if (input[1] <= input[0] * 2) {
Console.WriteLine(input[0]);
} else {
Console.WriteLine(input[0] + (input[1] - input[0] * 2) ... | using System;
using System.Linq;
class Program {
public static void Main() {
long[] input =
Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray();
if (input[1] <= input[0] * 2) {
Console.WriteLine(input[1] / 2);
} else {
Console.WriteLine(input[0] + (input[1] - input[0] *... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 109 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp110 {
class Program {
static void Main(string[] args) {
var st = Console.ReadLine().Split().Select(long.Parse).ToArray();
long N = st[0];
long M = st[1];
long sum =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp110 {
class Program {
static void Main(string[] args) {
var st = Console.ReadLine().Split().Select(long.Parse).ToArray();
long N = st[0];
long M = st[1];
long sum =... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 124 | 4 |
using System;
using System.IO;
using System.Text;
namespace Contest {
class Program {
private Scanner sc;
private string S, T;
public void Solve() {
sc = new Scanner();
long N = sc.NextLong();
long M = sc.NextLong();
long cnt = 0;
cnt += Math.Min(N, M * 2);
N -= cnt;
M -= cnt * 2;
... | using System;
using System.IO;
using System.Text;
namespace Contest {
class Program {
private Scanner sc;
private string S, T;
public void Solve() {
sc = new Scanner();
long N = sc.NextLong();
long M = sc.NextLong();
long cnt = 0;
cnt += Math.Min(N, M / 2);
N -= cnt;
M -= cnt * 2;
... | [["-", 12, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 85]] | 8 | 556 | 2 |
using System;
using System.Collections.Generic;
using static System.Console;
using System.Linq;
namespace ConsoleApp2 {
class Program {
static void Main(string[] Args) {
long res = 0;
var NM =
new List<string>(ReadLine().Split(' ')).Select(long.Parse).ToList();
res += Math.Min(NM[0], NM[1] / 2);... | using System;
using System.Collections.Generic;
using static System.Console;
using System.Linq;
namespace ConsoleApp2 {
class Program {
static void Main(string[] Args) {
long res = 0;
var NM =
new List<string>(ReadLine().Split(' ')).Select(long.Parse).ToList();
res += Math.Min(NM[0], NM[1] / 2);... | [["-", 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, 203], ["-", 0, 11, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22]] | 8 | 126 | 5 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_C {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
long N = long.Parse(s[0]);
long M = long.Parse(s[1]);
long X;
if (N ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_C {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
long N = long.Parse(s[0]);
long M = long.Parse(s[1]);
long X;
if (N ... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 137 | 4 |
using System;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
string[] input = ReadLine().Split(' ');
long a = long.Parse(input[0]);
long b = long.Parse(input[1]);
if (a * 2 > b) {
WriteLine(a);
} else {
b -= a * 2;
b /= 4... | using System;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
string[] input = ReadLine().Split(' ');
long a = long.Parse(input[0]);
long b = long.Parse(input[1]);
if (a * 2 > b) {
WriteLine(b / 2);
} else {
b -= a * 2;
b ... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 105 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Hello {
public static void Main() {
var a = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
var N = a[0];
var M = a[1];
var s = Math.Min(N, M / 4);
var c = (M - s * 2) / 4;
Console.WriteLine(s + c);
... | using System;
using System.Collections.Generic;
using System.Linq;
public class Hello {
public static void Main() {
var a = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
var N = a[0];
var M = a[1];
var s = Math.Min(N, M / 2);
var c = (M - s * 2) / 4;
Console.WriteLine(s + c);
... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 107 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string[] a = Console.ReadLine().Split(' ');
long b = long.Parse(a[0]);
long c = long.Parse(a[1]);
long d;
i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string[] a = Console.ReadLine().Split(' ');
long b = long.Parse(a[0]);
long c = long.Parse(a[1]);
long d;
i... | [["-", 75, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 75, 196, 0, 1, 0, 11, 12, 16, 17, 33]] | 8 | 142 | 2 |
using System;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var read = Console.ReadLine().Split(' ').Select(long.Parse);
var sCount = read.ElementAt(0);
var cCount = read.ElementAt(1);
if (cCount <= sCount * 2) {
Console.WriteLine(cCount / 2);
} e... | using System;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var read = Console.ReadLine().Split(' ').Select(long.Parse);
var sCount = read.ElementAt(0);
var cCount = read.ElementAt(1);
if (cCount <= sCount * 2) {
Console.WriteLine(cCount / 2);
} e... | [["-", 75, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22]... | 8 | 112 | 9 |
using System;
namespace AtCoder {
class Program {
static void Main() {
string input = Console.ReadLine();
long s_count = long.Parse(input.Split(' ')[0]);
long c_count = long.Parse(input.Split(' ')[1]);
long scc_count = Math.Min(s_count, c_count / 2);
s_count -= scc_count;
c_count -= scc_coun... | using System;
namespace AtCoder {
class Program {
static void Main() {
string input = Console.ReadLine();
long s_count = long.Parse(input.Split(' ')[0]);
long c_count = long.Parse(input.Split(' ')[1]);
long scc_count = Math.Min(s_count, c_count / 2);
s_count -= scc_count;
c_count -= scc_coun... | [["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]] | 8 | 102 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static string InputPattern = "InputX";
static List<string> GetInputList() {
var WillReturn = new List<string>();
if (InputPattern == "Input1") {
WillReturn.Add("1 6");
// 2
} else if (InputPattern == "Input... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static string InputPattern = "InputX";
static List<string> GetInputList() {
var WillReturn = new List<string>();
if (InputPattern == "Input1") {
WillReturn.Add("1 6");
// 2
} else if (InputPattern == "Input... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85]... | 8 | 232 | 7 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
class Class_ {
void Test() {
var NM = A_Long_();
var N = NM[0];
var M = NM[1];
if (N > M * 2) {
Console.WriteLine(N);
} else {
var a = N;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
class Class_ {
void Test() {
var NM = A_Long_();
var N = NM[0];
var M = NM[1];
// Console.WriteLine( (N * 2 + M)/4);
// return;
if (N >= M / 2) {
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 48], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 85], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0,... | 8 | 356 | 8 |
using System;
using System.Linq;
public class Aprob {
public static void Main() {
string[] readSome = new string[2];
readSome = Console.ReadLine().Split(' ');
long S = long.Parse(readSome[0]);
long C = long.Parse(readSome[1]);
long pairs = 0;
if (C <= 2 * S) {
pairs = S;
} else {
... | using System;
using System.Linq;
public class Aprob {
public static void Main() {
string[] readSome = new string[2];
readSome = Console.ReadLine().Split(' ');
long S = long.Parse(readSome[0]);
long C = long.Parse(readSome[1]);
long pairs = 0;
if (C <= 2 * S) {
pairs = C / 2;
} else {... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]] | 8 | 122 | 4 |
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, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 621 | 2 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Numerics;
namespace ABC055.D {
using static Util;
public class Solver : SolverBase {
int N;
string S;
public void Run() {
N = ReadInt();
S = ReadLine();
// Dum... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Numerics;
namespace ABC055.D {
using static Util;
public class Solver : SolverBase {
int N;
string S;
public void Run() {
N = ReadInt();
S = ReadLine();
// Dum... | [["-", 75, 196, 0, 1, 0, 11, 12, 252, 0, 253], ["+", 75, 196, 0, 1, 0, 11, 12, 252, 0, 253]] | 8 | 2,902 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_D {
class D055 {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
char[] c = Console.ReadLine().ToCharArray();
char[,] r = new char[N + 2, 4];
r[0... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_D {
class D055 {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
char[] c = Console.ReadLine().ToCharArray();
char[,] r = new char[N + 2, 4];
r[0... | [["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 109], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 22]] | 8 | 411 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ARC069C {
class Program {
static void Solve(Input input) {
var n = input.NextLong();
var m = input.NextLong();
long count = 0;
if (n >... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ARC069C {
class Program {
static void Solve(Input input) {
var n = input.NextLong();
var m = input.NextLong();
long count = 0;
if (n >... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 48], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 85], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]] | 8 | 868 | 6 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using stat... | [["-", 0, 7, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 1,610 | 5 |
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() ... | [["-", 0, 57, 15, 213, 63, 214, 205, 297, 0, 228], ["-", 0, 57, 15, 213, 63, 214, 205, 297, 0, 70], ["-", 0, 57, 15, 213, 63, 214, 205, 297, 0, 73], ["-", 15, 213, 63, 214, 205, 297, 0, 229, 0, 45], ["+", 15, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 15, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 15, 213, 6... | 8 | 596 | 12 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoderRegularContest069 {
public class Program {
static void Main(string[] args) {
Console.WriteLine(
program1(new String[] { Console.ReadLine(), Console.ReadLine() }));
}
p... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoderRegularContest069 {
public class Program {
static void Main(string[] args) {
Console.WriteLine(
program1(new String[] { Console.ReadLine(), Console.ReadLine() }));
}
p... | [["-", 8, 196, 0, 37, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 37, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 37, 0, 213, 3, 4, 0, 24], ["-", 0, 37, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 37, 0, 213, 3, 4, 0, 25]] | 8 | 436 | 5 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest._700problems {
class ARC069_E {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest._700problems {
class ARC069_E {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | [["-", 0, 52, 15, 16, 12, 16, 12, 204, 205, 22], ["-", 15, 16, 12, 16, 12, 204, 206, 207, 0, 70], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 15, 16, 12, 16, 12, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 52, 15, 16... | 8 | 1,448 | 7 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int a = sc.NextInt();
int b = sc.NextInt();
string answer = "";
if (a == 1 && b == 1) {
answer = "Draw";
} else if (a == 1) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int a = sc.NextInt();
int b = sc.NextInt();
string answer = "";
if (a == b) {
answer = "Draw";
} else if (a == 1) {
answer ... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]] | 8 | 430 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC054A___One_Card_Poker {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
string[] card = input.Split(' ');
Console.WriteLine(Judgment(int.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC054A___One_Card_Poker {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
string[] card = input.Split(' ');
Console.WriteLine(Judgment(int.... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 188 | 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[] s = Console.ReadLine().Split(' ');
int a = int.Parse(s[0]);
int b = int.Parse(s[1]);
if (a == 1) {
... | 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[] s = Console.ReadLine().Split(' ');
int a = int.Parse(s[0]);
int b = int.Parse(s[1]);
if (a == 1) {
... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]] | 8 | 166 | 1 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public class Test {
public static void Main() {
int[] nums =
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
if (nums[0] == 1)
nums[0] = 14;
if (nums[1] == 1)
nums[1] = 14;... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public class Test {
public static void Main() {
int[] nums =
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
if (nums[0] == 1)
nums[0] = 14;
if (nums[1] == 1)
nums[1] = 14;... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 158 | 4 |
using System;
using System.Linq;
namespace abc054_a {
class Program {
static void Main(string[] args) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (x[0] == 1)
x[0] = 114514;
if (x[1] == 1)
x[1] = 114514;
if (x[0] == x[1])
Console.WriteLine("Draw");
else... | using System;
using System.Linq;
namespace abc054_a {
class Program {
static void Main(string[] args) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (x[0] == 1)
x[0] = 114514;
if (x[1] == 1)
x[1] = 114514;
if (x[0] == x[1])
Console.WriteLine("Draw");
else... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47]] | 8 | 130 | 2 |
using System;
namespace Sample1 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
int alice = int.Parse(input.Split(' ')[0]);
int bob = int.Parse(input.Split(' ')[1]);
if (bob == alice) {
Console.WriteLine("Draw");
} else if (bob == 1 & alice != 1) {
... | using System;
namespace Sample1 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
int alice = int.Parse(input.Split(' ')[0]);
int bob = int.Parse(input.Split(' ')[1]);
if (bob == alice) {
Console.WriteLine("Draw");
} else if (bob == 1 & alice != 1) {
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 176 | 4 |
// Rextester.Program.Main is the entry point for your code. Don't change it.
// Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester {
public class Program {
public static vo... | // Rextester.Program.Main is the entry point for your code. Don't change it.
// Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester {
public class Program {
public static vo... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203]] | 8 | 155 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
var ans = "DRAW";
var ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (ab[0] == 1) {
if (ab[1] == 1) {
//なに... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
var ans = "Draw";
var ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (ab[0] == 1) {
if (ab[1] == 1) {
//なに... | [["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]] | 8 | 181 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int b = int.Parse(input[0]);
int c = int.Parse(input[1]);
if (b ==... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int b = int.Parse(input[0]);
int c = int.Parse(input[1]);
if (b ==... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22]] | 8 | 148 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Main {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int a, b;
a = int.Parse(str[0]);
b = int.Parse(str[1]);
if (a == 1)
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Main {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int a, b;
a = int.Parse(str[0]);
b = int.Parse(str[1]);
if (a == 1)
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 154 | 4 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using static System.Math;
using System.Linq;
using static System.Array;
namespace ConsoleApp2 {
class Program {
static long N;
static long M;
static string[] A;
static string[] B;
static void Main(string[] args) {
... | using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using static System.Math;
using System.Linq;
using static System.Array;
namespace ConsoleApp2 {
class Program {
static long N;
static long M;
static string[] A;
static string[] B;
static void Main(string[] args) {
... | [["+", 0, 7, 15, 16, 12, 16, 12, 16, 17, 72], ["+", 0, 7, 15, 16, 12, 16, 12, 16, 12, 203]] | 8 | 358 | 4 |
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) {
var st = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = st[0];
int M = st[1];
string[] A = ne... | 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) {
var st = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = st[0];
int M = st[1];
string[] A = ne... | [["+", 205, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 12, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 22]] | 8 | 299 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var M = sc.ReadInt();
var A = sc.ReadStrArray(N);
var B = sc.ReadStrArray(M);
for (int i = 0; i < N - M; i++) {
var s = A[i];
for (int j = 0; j <... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var M = sc.ReadInt();
var A = sc.ReadStrArray(N);
var B = sc.ReadStrArray(M);
for (int i = 0; i <= N - M; i++) {
var s = A[i];
for (int j = 0; j ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 731 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC054B___Template_Matching {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int m = int.Parse(inpu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC054B___Template_Matching {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int m = int.Parse(inpu... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 382 | 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 {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCorder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["-", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 571 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC054B {
class Program {
public static void Solve(Input input) {
var n = input.NextInt();
var m = input.NextInt();
var a = new string[n];
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC054B {
class Program {
public static void Solve(Input input) {
var n = input.NextInt();
var m = input.NextInt();
var a = new string[n];
... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 1,884 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace program {
class Program {
static void Main() {
int[] num = Input.ScanIntArray();
int N = num[0], M = num[1];
string[] A = new string[num[0]];
string[] B = new string[num[1]];
for (int i = 0; i < num[0]; i++)
A[i] =... | using System;
using System.Linq;
using System.Collections.Generic;
namespace program {
class Program {
static void Main() {
int[] num = Input.ScanIntArray();
int N = num[0], M = num[1];
string[] A = new string[num[0]];
string[] B = new string[num[1]];
for (int i = 0; i < num[0]; i++)
A[i] =... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 12, 22]] | 8 | 718 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int N = int.Parse(s[0]);
int M = int.Parse(s[1]);
string[] A = new string[N];
for (int i = 0; i < N; i++)
A[i] = Console.ReadLine()... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int N = int.Parse(s[0]);
int M = int.Parse(s[1]);
string[] A = new string[N];
for (int i = 0; i < N; i++)
A[i] = Console.ReadLine()... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 283 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Atcoder;
using System.Threading.Tasks;
using System.ComponentModel;
public class Hello {
public static void Main() {
int[] nums = SpRead(' ').Select(a => int.Parse(a)).ToArray();
int N = nums[0];
int M = nums[1];
string... | using System;
using System.Collections.Generic;
using System.Linq;
using static Atcoder;
using System.Threading.Tasks;
using System.ComponentModel;
public class Hello {
public static void Main() {
int[] nums = SpRead(' ').Select(a => int.Parse(a)).ToArray();
int N = nums[0];
int M = nums[1];
string... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 556 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
class Simple {
int N, M;
string[] A, B;
void Solve() {
// input
N = io.Int;
M = io.Int;
A = new string[N];
B... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
class Simple {
int N, M;
string[] A, B;
void Solve() {
// input
N = io.Int;
M = io.Int;
A = new string[N];
B... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 510 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp62 {
class Program {
static void Main(string[] args) {
string[] NM = Console.ReadLine().Split(' ');
int N = int.Parse(NM[0]);
int M = int.Parse(NM[1]);
string[] A =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp62 {
class Program {
static void Main(string[] args) {
string[] NM = Console.ReadLine().Split(' ');
int N = int.Parse(NM[0]);
int M = int.Parse(NM[1]);
string[] A =... | [["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]] | 8 | 307 | 2 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static System.Console;
using static System.Math;
namespace NotFounds {
public class Program {
public static void Main(string[] args... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static System.Console;
using static System.Math;
namespace NotFounds {
public class Program {
public static void Main(string[] args... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 856 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace ConsoleApplication {
public class main {
static void Main() {
string[] vals = Console.ReadLine().Split(' ');
int N = int.Parse(vals[0]);
int M = int.Parse(vals[1]);
string[] A = new stri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace ConsoleApplication {
public class main {
static void Main() {
string[] vals = Console.ReadLine().Split(' ');
int N = int.Parse(vals[0]);
int M = int.Parse(vals[1]);
string[] A = new stri... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 281 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Main {
class Program {
static void Main(string[] args) {
bool flag = false;
string[] str = Console.ReadLine().Split(' ');
int N, M, buf;
N = int.Parse(str[0]);
M = int.Par... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Main {
class Program {
static void Main(string[] args) {
bool flag = false;
string[] str = Console.ReadLine().Split(' ');
int N, M, buf;
N = int.Parse(str[0]);
M = int.Par... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 300 | 2 |
using System;
using System.Collections.Generic;
namespace abc052 {
public class Program {
public static void Main(string[] args) {
int n = Convert.ToInt32(Console.ReadLine());
string s = Console.ReadLine();
int x = 0;
int max = 0;
for (int i = 0; i < s.Length - 1; i++) {
if (s[i] == 'I') {... | using System;
using System.Collections.Generic;
namespace abc052 {
public class Program {
public static void Main(string[] args) {
int n = Convert.ToInt32(Console.ReadLine());
string s = Console.ReadLine();
int x = 0;
int max = 0;
for (int i = 0; i < s.Length; i++) {
if (s[i] == 'I') {
... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 140 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
int mod = 1000000000 + 7;
var N = ConsoleUtil.IntReadLine();
var primes = GetPrimeNumbers().TakeWhile(n => n <= N).ToArray();
var coun... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
int mod = 1000000000 + 7;
var N = ConsoleUtil.IntReadLine();
var primes = GetPrimeNumbers().TakeWhile(n => n <= N).ToArray();
var coun... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 533 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
return s[i++];
string st = Console.ReadLine();
while (st ... | using System;
using System.Collections.Generic;
using System.Linq;
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
return s[i++];
string st = Console.ReadLine();
while (st ... | [["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]] | 8 | 502 | 4 |
using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine());
var arr = new long[1001];
var ans = 1L;
for (var i = 2; i <= n; i++) {
var temp = i;
for (var j = 2; j <= i; j++) {
while (temp % j == 0) {
arr[j]++;
temp /= j... | using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine());
var arr = new long[1001];
var ans = 1L;
for (var i = 2; i <= n; i++) {
var temp = i;
for (var j = 2; j <= i; j++) {
while (temp % j == 0) {
arr[j]++;
temp /= j... | [["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]] | 8 | 144 | 4 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
string ans = s.Replace('.', ' ');
Console.WriteLine(ans);
}
} | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
string ans = s.Replace(',', ' ');
Console.WriteLine(ans);
}
} | [["-", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253]] | 8 | 55 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Tasks {
public class B {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Consol... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Tasks {
public class B {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Consol... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]] | 8 | 202 | 4 |
using System;
using System.Linq;
namespace testes {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int K = int.Parse(str[0]);
int S = int.Parse(str[1]);
int ans = 0;
for (int i = 0; i <= K; i++) {
for (int j = 0; j <= K; j++) {
int t... | using System;
using System.Linq;
namespace testes {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int K = int.Parse(str[0]);
int S = int.Parse(str[1]);
int ans = 0;
for (int i = 0; i <= K; i++) {
for (int j = 0; j <= K; j++) {
int t... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]] | 8 | 337 | 4 |
using System;
namespace ABC051B_SumofThreeIntegers {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int k = int.Parse(input[0]);
int s = int.Parse(input[1]);
int x = 0;
int y = 0;
int z = 0;
int counter = 0;
for (int indexX = 0; in... | using System;
namespace ABC051B_SumofThreeIntegers {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int k = int.Parse(input[0]);
int s = int.Parse(input[1]);
int x = 0;
int y = 0;
int z = 0;
int counter = 0;
for (int indexX = 0; in... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]] | 8 | 156 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC {
class ProgramC {
struct Info {
public int to;
public string path;
}
static Queue<Info> _q = new Queue<Info>();
static List<int>[] _graph;
static int _count;
static int _n;
static void Main(string[] args) {
var... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC {
class ProgramC {
struct Info {
public int to;
public string path;
}
static Queue<Info> _q = new Queue<Info>();
static List<int>[] _graph;
static int _count;
static int _n;
static void Main(string[] args) {
var... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]] | 8 | 368 | 2 |
//
// InputProblemIdHere
// URL :
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.IO.Pipes;
namespace AtCoder {
class InputProblemIdHere {
public static readonly long MOD_CONST =
1000000007; //(long)Math.Pow(10, 9) + 7;
static void Main(... | //
// InputProblemIdHere
// URL :
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.IO.Pipes;
namespace AtCoder {
class InputProblemIdHere {
public static readonly long MOD_CONST =
1000000007; //(long)Math.Pow(10, 9) + 7;
static void Main(... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]] | 8 | 1,110 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
using static AtCoderTemplate.MyLibrary;
namespace AtCoderTemplate {
class Program {
static int N, M, i;
static bool[,] connect;
static bool[] reac... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
using static AtCoderTemplate.MyLibrary;
namespace AtCoderTemplate {
class Program {
static int N, M, i;
static bool[,] connect;
static bool[] reac... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 363 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace Capp {
class Program {
public enum En { a, b, c, d, e, f }
static void Main(string[] args) {
var c = new Solve();
c.S();
}
}
public class Solve {
List<int>[] es = new List... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace Capp {
class Program {
public enum En { a, b, c, d, e, f }
static void Main(string[] args) {
var c = new Solve();
c.S();
}
}
public class Solve {
List<int>[] es = new List... | [["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 520 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cs {
class hutatu {
int a, b = 0;
public hutatu(int a, int b) {
this.a = a;
this.b = b;
}
public bool doti(int c) { return a == c || b == c; }
public int gyaku(int c) {
i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cs {
class hutatu {
int a, b = 0;
public hutatu(int a, int b) {
this.a = a;
this.b = b;
}
public bool doti(int c) { return a == c || b == c; }
public int gyaku(int c) {
i... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 431 | 2 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var M = sc.ReadInt();
var AB = sc.ReadTupArray(N, -1);
G = new List<int>[N];
for (int i = 0; i < N; i++) {
G[i] = new List<int>();
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var M = sc.ReadInt();
var AB = sc.ReadTupArray(M, -1);
G = new List<int>[N];
for (int i = 0; i < N; i++) {
G[i] = new List<int>();
... | [["-", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 1,269 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.