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;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush();
}
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush();
}
... | [["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 0, 57, 75, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 57, 75, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199]] | 8 | 1,158 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
using System.Collections;
namespace Atcoder {
public class CPair<T, U> : IComparable
where T : IComparable<T> {
public readonly T Item1;
public readon... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
using System.Collections;
namespace Atcoder {
public class CPair<T, U> : IComparable
where T : IComparable<T> {
public readonly T Item1;
public readon... | [["-", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22]] | 8 | 9,613 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static void Main(string[] args) {
try {
Solve.Answer();
} catch (Exception ex) {
WriteLine(ex.ToString());
}
}
}
public class Solve ... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static void Main(string[] args) {
try {
Solve.Answer();
} catch (Exception ex) {
WriteLine(ex.ToString());
}
}
}
public class Solve ... | [["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72],... | 8 | 516 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static _20200227.Cin;
using static _20200227.Util;
using Pair = _20200227.VTuple<long, long>;
using Graph =
System.Collections.Generic.List<System.Collections.Generic.List<long>>;
using System.Text;
namespace _202002... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static _20200227.Cin;
using static _20200227.Util;
using Pair = _20200227.VTuple<long, long>;
using Graph =
System.Collections.Generic.List<System.Collections.Generic.List<long>>;
using System.Text;
namespace _202002... | [["+", 0, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 31, 23, 0, 25], ["+", 0, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 12, 23, 0, 25]] | 8 | 2,190 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
//[summary]C - Remainder Minimization 2019
var line = ReadLine();
var L = line[0];
var R = line[1];
var remainders = new List<long>();
int count = 0;
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
//[summary]C - Remainder Minimization 2019
var line = ReadLine();
var L = line[0];
var R = line[1];
var remainders = new List<long>();
int count = 0;
... | [["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 424 | 2 |
using System;
namespace ABC133 {
class C {
static void Main(string[] args) {
long MOD = 2019;
string[] input = Console.ReadLine().Split(' ');
long L = long.Parse(input[0]);
long R = long.Parse(input[1]);
long min = MOD;
for (long i = L; i <= R - 1; i++) {
for (long j = i + 1; i <= R; i... | using System;
namespace ABC133 {
class C {
static void Main(string[] args) {
long MOD = 2019;
string[] input = Console.ReadLine().Split(' ');
long L = long.Parse(input[0]);
long R = long.Parse(input[1]);
long min = MOD;
for (long i = L; i <= R - 1; i++) {
for (long j = i + 1; j <= R; j... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22]] | 8 | 172 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
public static void Main() {
var line =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var L = line[0];
var R = line[1];
int ans = 2020;
if (R - L > 2019) {
ans = 0;
} else {... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
public static void Main() {
var line =
Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
var L = line[0];
var R = line[1];
long ans = 2020;
if (R - L > 2019) {
ans = 0;
} else... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 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, 57, 75, 196, 0, 7, 10, 198, 39, 199], ["+", 75, 196, 0, 7, 10, 198, 39, 216, 0, 217], ["-", 0, 7, 8, 196, 0, 7, 10, ... | 8 | 162 | 8 |
using System;
using System.Linq;
class C {
static void Main() {
var a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var m = int.MaxValue;
for (var i = a[0]; i < a[1]; i++)
for (var j = i + 1; j <= a[1]; j++) {
var x = i * j % 2019;
if (x == 0) {
Console.Wri... | using System;
using System.Linq;
class C {
static void Main() {
var a = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
var m = long.MaxValue;
for (var i = a[0]; i < a[1]; i++)
for (var j = i + 1; j <= a[1]; j++) {
var x = i * j % 2019;
if (x == 0) {
Console.W... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199]] | 8 | 137 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Collections;
static class Extensions {
public static int ToInt(this string s) => int.Parse(s);
public static long ToLong(this string s) => long.Pars... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Collections;
static class Extensions {
public static int ToInt(this string s) => int.Parse(s);
public static long ToLong(this string s) => long.Pars... | [["-", 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, 7, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199]] | 8 | 749 | 10 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.IO;
namespace SolutionCS {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int L = int.Parse(s[0]);
int R = int.Parse(s[1]);
if (L / 2019 != R / 2019) ... | using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.IO;
namespace SolutionCS {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int L = int.Parse(s[0]);
int R = int.Parse(s[1]);
if (L / 2019 != R / 2019) ... | [["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 180 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC133C {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var l = input[0];
var r = input[1] + 1;
var... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC133C {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var l = input[0];
var r = input[1] + 1;
var... | [["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22]] | 8 | 187 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Program {
class Program {
static void Main(string[] args) {
var lr = Console.ReadLine().Split(' ');
var l = int.Parse(lr[0]);
var r = int.Parse(lr[1]);
if (r - l >= 2019) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Program {
class Program {
static void Main(string[] args) {
var lr = Console.ReadLine().Split(' ');
long l = long.Parse(lr[0]);
long r = long.Parse(lr[1]);
if (r - l >= 2019)... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 57, 75, 196, 0, 7, 10, 198, 39, 199], ["+", 75, 196, 0, 7, 10, 198, 39, 216, 0, 217], ["-", 0, 7, 8, 196, 0, 7, 10... | 8 | 182 | 12 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp {
class Program {
static void Main(string[] args) {
var ss = Console.ReadLine().Split();
var L = long.Parse(ss[0]);
var R = long.Parse(ss[1]);
if (R - L >= 2019) {
Console.WriteLine(0);
return;
}
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp {
class Program {
static void Main(string[] args) {
var ss = Console.ReadLine().Split();
var L = long.Parse(ss[0]);
var R = long.Parse(ss[1]);
if (R - L >= 2019) {
Console.WriteLine(0);
return;
}
... | [["-", 0, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 17, 72], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 12, 203], ["-", 0, 16, 12, 23, 0, 16, 31, 23, 0, 25]] | 8 | 175 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
//
public class ABC133_C // ←Class名変更!! Program
{
public static void Main() {
var n = Rla();
var l = n[0];
var r = n[1];
var result = 2019L;
if (2019 ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
//
public class ABC133_C // ←Class名変更!! Program
{
public static void Main() {
var n = Rla();
var l = n[0];
var r = n[1];
var result = 2019L;
if (2019 ... | [["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 22], ["+", 3, 4, 0, 28, 0, 283, 0, 284, 0, 203]] | 8 | 339 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC133C {
class Program {
static void Solve(Input input) {
var mod = 19;
var l = input.NextLong();
var r = input.NextLong();
var max1 ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC133C {
class Program {
static void Solve(Input input) {
var mod = 2019;
var l = input.NextLong();
var r = input.NextLong();
var max... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 1,304 | 2 |
using System;
namespace ConsoleApp3 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
long l = long.Parse(input[0]);
long r = long.Parse(input[1]);
r = Math.Min(r, l + 2019);
long minMod = 2018;
for (long i = l; i < r; i++) {
for (long j = i... | using System;
namespace ConsoleApp3 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
long l = long.Parse(input[0]);
long r = long.Parse(input[1]);
r = Math.Min(r, l + 2019);
long minMod = 2018;
for (long i = l; i < r; i++) {
for (long j = i... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22]] | 8 | 155 | 4 |
using System;
class ProgramC {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int L = int.Parse(input[0]);
int R = int.Parse(input[1]);
int Lr = L % 2019;
int Rr = R % 2019;
if (R - L >= 2018)
Console.WriteLine("0");
else if (Lr < Rr)
if (L... | using System;
class ProgramC {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int L = int.Parse(input[0]);
int R = int.Parse(input[1]);
int Lr = L % 2019;
int Rr = R % 2019;
if (R - L >= 2018)
Console.WriteLine("0");
else if (Lr < Rr)
if (L... | [["-", 75, 196, 0, 7, 8, 7, 15, 16, 17, 18], ["+", 75, 196, 0, 7, 8, 7, 15, 16, 17, 19]] | 8 | 203 | 2 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
class AtCoder {
const int MOD = 1000000007;
public void Slove() {
var inputs = Console.ReadLine().Split();
int ln = int.Parse(inputs[0]);
int rn = int.Parse(inputs[1]);
int count = Math.Min(... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
class AtCoder {
const int MOD = 1000000007;
public void Slove() {
var inputs = Console.ReadLine().Split();
int ln = int.Parse(inputs[0]);
int rn = int.Parse(inputs[1]);
int count = Math.Min(... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 0, 25]] | 8 | 184 | 7 |
using System;
class Program {
static void Main(string[] args) {
var data = Console.ReadLine().Split(' ');
var l = int.Parse(data[0]);
var r = int.Parse(data[1]);
var min = 2019;
// l-rの間に2019の倍数が含まれている時
if (r - l > 2019) {
Console.WriteLine(0);
} else {
for (int i = l; i < r; ... | using System;
class Program {
static void Main(string[] args) {
var data = Console.ReadLine().Split(' ');
var l = int.Parse(data[0]);
var r = int.Parse(data[1]);
long min = 2019;
// l-rの間に2019の倍数が含まれている時
if (r - l > 2019) {
Console.WriteLine(0);
} else {
for (long i = l; i < r... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 57, 75, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 57, 75, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199]] | 8 | 163 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split();
long L = long.Parse(input[0]);
long R = long.Parse(input[1]);
long ans = long.MaxValue;
for (long i = L; i <= Math.Min(R, L + 2030); i++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split();
long L = long.Parse(input[0]);
long R = long.Parse(input[1]);
long ans = long.MaxValue;
for (long i = L; i <= Math.Min(R, L + 2030); i++) {
... | [["-", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22]] | 8 | 169 | 2 |
using System;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
var L = int.Parse(input[0]);
var R = int.Parse(input[1]);
int ans = 2019;
for (var v = L; v < R; v++) {
for (var w = v + 1; w < R; w++) {
ans = Math.Min(ans, ((v % 2019) *... | using System;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
var L = int.Parse(input[0]);
var R = int.Parse(input[1]);
int ans = 2019;
for (var v = L; v < R; v++) {
for (var w = v + 1; w <= R; w++) {
ans = Math.Min(ans, ((v % 2019) ... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 149 | 2 |
using System;
namespace AtCoderABC133C {
class Program {
static void Main(string[] args) {
int ans = int.MaxValue;
string[] s = Console.ReadLine().Split(' ');
int L = int.Parse(s[0]);
int R = int.Parse(s[1]);
if (R - L > 674)
ans = 0;
else {
for (int i = L; i < R; i++) {
... | using System;
namespace AtCoderABC133C {
class Program {
static void Main(string[] args) {
int ans = int.MaxValue;
string[] s = Console.ReadLine().Split(' ');
int L = int.Parse(s[0]);
int R = int.Parse(s[1]);
if (R - L > 674)
ans = 0;
else {
for (int i = L; i < R; i++) {
... | [["+", 0, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 158 | 4 |
using System;
using static System.Console;
using static System.Math;
using System.IO;
using System.Collections.Generic;
namespace I_am_the_green_coder {
class Inonoa {
// なんか入力用の関数作ったけどまだテストしてないので使う前に確かめて
static void Main() {
long[] lr = ILongs();
if (lr[1] - lr[0] >= 2019) {
Console.WriteLine(0);
... | using System;
using static System.Console;
using static System.Math;
using System.IO;
using System.Collections.Generic;
namespace I_am_the_green_coder {
class Inonoa {
// なんか入力用の関数作ったけどまだテストしてないので使う前に確かめて
static void Main() {
long[] lr = ILongs();
if (lr[1] - lr[0] >= 2018) {
Console.WriteLine(0);
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 109], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 203]] | 8 | 532 | 6 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int L = int.Parse(str[0]);
int R = int.Parse(str[1]);
long mod = 2019;
long ans = 2018;
Random rnd = new System.Random();
for (var i = 0; i < 3000000... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int L = int.Parse(str[0]);
int R = int.Parse(str[1]);
long mod = 2019;
long ans = 2018;
Random rnd = new System.Random();
for (var i = 0; i < 3000000... | [["-", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 160 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Prog {
public void run() {
var input = Console.ReadLine().Split();
int L = int.Parse(input[0]);
int l = L % 2019;
int R = int.Parse(input[1]);
int r = R % 2019;
int LL = (L - l) / 2019;
int RR = (R - r) / 2019... | using System;
using System.Collections.Generic;
using System.Linq;
public class Prog {
public void run() {
var input = Console.ReadLine().Split();
int L = int.Parse(input[0]);
int l = L % 2019;
int R = int.Parse(input[1]);
int r = R % 2019;
int LL = (L - l) / 2019;
int RR = (R - r) / 2019... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 223 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
using static AtCoderer.Exter;
using static System.Math;
namespace AtCoderer {
public class App {
public static void Solve() {
long l, r;
ParseArray(out l, out r);
if ((r - l) >= 2019)
Console.WriteLine(0);
else {
long min ... | using System;
using System.Linq;
using System.Collections.Generic;
using static AtCoderer.Exter;
using static System.Math;
namespace AtCoderer {
public class App {
public static void Solve() {
long l, r;
ParseArray(out l, out r);
if ((r - l) >= 2019)
Console.WriteLine(0);
else {
long min ... | [["-", 0, 57, 75, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 7, 15, 16, 17, 19], ["-", 75, 196, 0, 7, 8, 7, 15, 16, 17, 18], ["+", 75, 196, 0, 7, 8, 7, 15, 16, 17, 19]] | 8 | 1,640 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using static MyIO;
public class C {
public static void Main() {
long L = GetLong();
long R = GetLong();
if (R - L + 1 >= 2019) {
Console.WriteLine(0);
return;
}
long min = ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using static MyIO;
public class C {
public static void Main() {
long L = GetLong();
long R = GetLong();
if (R - L + 1 >= 2019) {
Console.WriteLine(0);
return;
}
long min = ... | [["-", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22]] | 8 | 286 | 2 |
using System;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using static System.Math;
using Debug = System.Diagnostics.Debug;
static class P {
static void Main() {
var lr = Console.ReadLine().Split().Select(in... | using System;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using static System.Math;
using Debug = System.Diagnostics.Debug;
static class P {
static void Main() {
var lr = Console.ReadLine().Split().Select(lo... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 75, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 57, 75, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 57, 75, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 7, 8, 196, 0, 7, 10, 19... | 8 | 180 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
using System.Collections;
namespace CompetitiveProgramming {
public class CPair<T, U> : IComparable
where T : IComparable<T> {
public readonly T Item1;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
using System.Collections;
namespace CompetitiveProgramming {
public class CPair<T, U> : IComparable
where T : IComparable<T> {
public readonly T Item1;
... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]] | 8 | 13,807 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
class c {
static void Main() {
int n = int.Parse(Console.ReadLine());
var a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse).ToList();
var ans = new List<int>();
ans.Add(a.Sum());
for (int i = 1; i < n; i = i + 2)
an... | using System;
using System.Linq;
using System.Collections.Generic;
class c {
static void Main() {
long n = long.Parse(Console.ReadLine());
var a = Array.ConvertAll(Console.ReadLine().Split(), long.Parse).ToList();
var ans = new List<long>();
ans.Add(a.Sum());
for (int i = 1; i < n; i = i + 2)
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 212, 0, 230, 39, 2... | 8 | 168 | 8 |
using System;
public class HelloWorld {
static public void Main() {
var S = Console.ReadLine();
var flag = true;
for (int i = 1; i < 4; i++) {
if (S[i] == S[i - 1]) {
flag = false;
break;
}
}
if (flag) {
Console.WriteLine("Yes");
} else {
Console.Write... | using System;
public class HelloWorld {
static public void Main() {
var S = Console.ReadLine();
var flag = true;
for (int i = 1; i < 4; i++) {
if (S[i] == S[i - 1]) {
flag = false;
break;
}
}
if (flag) {
Console.WriteLine("Good");
} else {
Console.Writ... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 95 | 2 |
using System;
namespace A_Security {
class Program {
static void Main(string[] args) {
var pass = Console.ReadLine();
if (pass[0] == pass[1]) {
Console.WriteLine("bad");
} else if (pass[1] == pass[2]) {
Console.WriteLine("bad");
} else if (pass[2] == pass[3]) {
Console.WriteLine("ba... | using System;
namespace A_Security {
class Program {
static void Main(string[] args) {
var pass = Console.ReadLine();
if (pass[0] == pass[1]) {
Console.WriteLine("Bad");
} else if (pass[1] == pass[2]) {
Console.WriteLine("Bad");
} else if (pass[2] == pass[3]) {
Console.WriteLine("Ba... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 114 | 8 |
using System;
class ABC131_A {
static void Main(string[] args) {
string str = Console.ReadLine();
if (str[0] != str[1] && str[1] != str[2] && str[2] != str[3]) {
Console.WriteLine("good");
} else {
Console.WriteLine("Bad");
}
}
}
| using System;
class Problem {
static void Main(string[] args) {
string str = Console.ReadLine();
if (str[0] != str[1] && str[1] != str[2] && str[2] != str[3]) {
Console.WriteLine("Good");
} else {
Console.WriteLine("Bad");
}
}
} | [["-", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 82 | 4 |
using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string a = Console.ReadLine();
for (int i = 0; i < a.Length - 1; i++) {
if (a[i] == a[i + 1])
Console.Write("Bad");
}
Console.Write("Good");
}
}
} | using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string a = Console.ReadLine();
for (int i = 0; i < a.Length - 1; i++) {
if (a[i] == a[i + 1]) {
Console.Write("Bad");
return;
}
}
Console.Write("Good");
}
}
} | [["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 83 | 4 |
using System;
class Program {
static void Main(string[] args) {
char[] s = Console.ReadLine().ToCharArray();
char x = 's';
foreach (char c in s) {
if (x.Equals(c)) {
Console.WriteLine("Bad");
} else {
x = c;
}
}
Console.WriteLine("Good");
}
} | using System;
class Program {
static void Main(string[] args) {
char[] s = Console.ReadLine().ToCharArray();
char x = 's';
foreach (char c in s) {
if (x.Equals(c)) {
Console.WriteLine("Bad");
return;
} else {
x = c;
}
}
Console.WriteLine("Good");
}
} | [["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]] | 8 | 85 | 2 |
using System;
namespace Bite_Eating {
class Program {
static void Main(string[] args) {
string arg = Console.ReadLine();
string[] w = arg.Split(' ');
int n = int.Parse(w[0]);
int L = int.Parse(w[1]);
int b;
if (L < 0) {
int ws = n + L;
if (ws <= 0) {
b = n - 1;
} el... | using System;
namespace Bite_Eating {
class Program {
static void Main(string[] args) {
string arg = Console.ReadLine();
string[] w = arg.Split(' ');
int n = int.Parse(w[0]);
int L = int.Parse(w[1]);
int b;
if (L < 0) {
int ws = n + L;
if (ws <= 0) {
b = n - 1;
} el... | [["-", 75, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 75, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 12, 22]] | 8 | 174 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
public static void Main() {
var line =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int N = line[0];
int L = line[1];
List<int> list = new List<int>();
for (int i = 1; i <= N; i++) ... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
public static void Main() {
var line =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int N = line[0];
int L = line[1];
List<int> list = new List<int>();
for (int i = 1; i <= N; i++) ... | [["-", 0, 57, 75, 57, 75, 57, 15, 16, 17, 18], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 17, 19]] | 8 | 203 | 2 |
using System;
using System.Collections.Generic;
class program {
static void Main() {
string[] s = Console.ReadLine().Split(' ');
int N = int.Parse(s[0]);
int L = int.Parse(s[1]);
int min = 100;
int point = 100;
for (int i = 0; i < N; i++) {
int v = Math.Abs(L + i);
if (v < min) ... | using System;
using System.Collections.Generic;
class program {
static void Main() {
string[] s = Console.ReadLine().Split(' ');
int N = int.Parse(s[0]);
int L = int.Parse(s[1]);
int min = 10000000;
int point = 10000000;
for (int i = 0; i < N; i++) {
int v = Math.Abs(L + i);
if ... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 161 | 6 |
using System;
using System.Linq;
namespace B___Bite_Eating {
class Program {
static void Main(string[] args) {
var N_L = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = N_L[0], L = N_L[1];
int a = L, l = L + N - 1;
bool flg = a < 0 && l > 0;
var sum = (double)N / 2 * (a + l) - (f... | using System;
using System.Linq;
namespace B___Bite_Eating {
class Program {
static void Main(string[] args) {
var N_L = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = N_L[0], L = N_L[1];
int a = L, l = L + N - 1;
bool flg = a < 0 && l > 0;
var sum = (double)N / 2 * (a + l) - (f... | [["-", 12, 23, 0, 41, 75, 41, 15, 16, 17, 18], ["+", 12, 23, 0, 41, 75, 41, 15, 16, 17, 19]] | 8 | 127 | 2 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var data = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var n = data[0];
var l = data[1];
var appleArray = new int[n];
for (int i = 0; i < n; i++) {
appleArray[i] = l + i;
}
if (l < 0 &&... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var data = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var n = data[0];
var l = data[1];
var appleArray = new int[n];
for (int i = 0; i < n; i++) {
appleArray[i] = l + i;
}
if (l < 0 &&... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19]] | 8 | 158 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
int N = int.Parse(input[0]);
int L = int.Parse(input[1]);
int sum = 0;
if (L >= 0) {
for (int i = 0; i < N - 1; i++) {
su... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
int N = int.Parse(input[0]);
int L = int.Parse(input[1]);
int sum = 0;
if (L >= 0) {
for (int i = 0; i < N - 1; i++) {
su... | [["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72]] | 8 | 181 | 2 |
using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string[] a = (Console.ReadLine().Split(' '));
int[] b = new int[2];
for (int i = 0; i < a.Length; i++) {
b[i] = int.Parse(a[i]);
}
int res = 0;
int min = -9999;
for (int i = 0; i < b[1]; i++) {
... | using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string[] a = (Console.ReadLine().Split(' '));
int[] b = new int[2];
for (int i = 0; i < a.Length; i++) {
b[i] = int.Parse(a[i]);
}
int res = 0;
int min = -9999;
for (int i = 0; i < b[0]; i++) {
... | [["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203]] | 8 | 157 | 4 |
using System;
namespace AtCoderABC131B {
class Program {
static void Main(string[] args) {
int ans = 0;
string[] s = Console.ReadLine().Split(' ');
int N = int.Parse(s[0]);
int L = int.Parse(s[1]);
ans = N * (L * 2 + N - 1) / 2;
if (L >= 0) {
ans -= L;
} else {
if (L + N <... | using System;
namespace AtCoderABC131B {
class Program {
static void Main(string[] args) {
int ans = 0;
string[] s = Console.ReadLine().Split(' ');
int N = int.Parse(s[0]);
int L = int.Parse(s[1]);
ans = N * (L * 2 + N - 1) / 2;
if (L >= 0) {
ans -= L;
} else {
if (L + N <... | [["-", 0, 57, 75, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 19]] | 8 | 131 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace app02 {
class Program {
static void Main(string[] args) {
string[] NL = Console.ReadLine().Split(' ');
int N = int.Parse(NL[0]);
int L = int.Parse(NL[1]);
int[] taste = new in... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace app02 {
class Program {
static void Main(string[] args) {
string[] NL = Console.ReadLine().Split(' ');
int N = int.Parse(NL[0]);
int L = int.Parse(NL[1]);
int[] taste = new in... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 263 | 2 |
using System;
namespace SolutionB {
class Program {
static void Main(string[] args) {
String s = Console.ReadLine();
String[] inputs = s.Split();
int n = int.Parse(inputs[0]);
int l = int.Parse(inputs[1]);
int res = 0;
for (int i = 0; i < n; i++) {
if (l > 0) {
// 味が全て正の場合、最初の要... | using System;
namespace SolutionB {
class Program {
static void Main(string[] args) {
String s = Console.ReadLine();
String[] inputs = s.Split();
int n = int.Parse(inputs[0]);
int l = int.Parse(inputs[1]);
int res = 0;
for (int i = 0; i < n; i++) {
if (l > 0) {
// 味が全て正の場合、最初の要... | [["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 18], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 17, 19]] | 8 | 153 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace B_ABC131 {
class MainClass {
static int[] s;
public static void Main(string[] args) {
s = Array.ConvertAll(Console.ReadLine().Split().ToArray(), int.Parse);
int tmp = s[1];
int ans = s[1];
if (s[0] + s[1] > 0 && s[1] < 0... | using System;
using System.Collections.Generic;
using System.Linq;
namespace B_ABC131 {
class MainClass {
static int[] s;
public static void Main(string[] args) {
s = Array.ConvertAll(Console.ReadLine().Split().ToArray(), int.Parse);
int tmp = s[1];
int ans = s[1];
if (s[0] + s[1] > 0 && s[1] < 0... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19]] | 8 | 243 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace CsTest {
public class Program {
static void Main(string[] args) {
string[] line = Console.ReadLine().Split(' ');
int N = int.Parse(line[0]), L = int.Parse(line[1]);
int result = ((L - 1) * N) + ((N + 1) * N / 2);
if (L > 0)
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace CsTest {
public class Program {
static void Main(string[] args) {
string[] line = Console.ReadLine().Split(' ');
int N = int.Parse(line[0]), L = int.Parse(line[1]);
int result = ((L - 1) * N) + ((N + 1) * N / 2);
if (L > 0)
... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 20]] | 8 | 142 | 2 |
using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
namespace ProjectContest {
class Test {
static void Main() {
var nl = Array.ConvertAll(Console.ReadLine().Split(), Convert.ToInt32);
int n = nl[0], l = nl[1];
int[] L = new int[n];
for (int i = 0; i < n; i++)... | using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
namespace ProjectContest {
class Test {
static void Main() {
var nl = Array.ConvertAll(Console.ReadLine().Split(), Convert.ToInt32);
int n = nl[0], l = nl[1];
int[] L = new int[n];
for (int i = 0; i < n; i++)... | [["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 191 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCorder {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var list = new List<KeyValuePair<int, int>>();
for (int i = 0; i < n; i++) {
var input = Console.ReadLine();
var a... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCorder {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var list = new List<KeyValuePair<int, int>>();
for (int i = 0; i < n; i++) {
var input = Console.ReadLine();
var a... | [["-", 8, 196, 0, 1, 0, 11, 12, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 214, 141, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 141, 22]] | 8 | 194 | 4 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Ha2ne2Util.Cin;
using static Ha2ne2Util.Util;
using static System.Console;
using static System.Math;
using System.Collections;
using Pair = System.Tuple<long, long>;
/// <su... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Ha2ne2Util.Cin;
using static Ha2ne2Util.Util;
using static System.Console;
using static System.Math;
using System.Collections;
using Pair = System.Tuple<long, long>;
/// <su... | [["+", 0, 57, 15, 16, 12, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 17, 33]] | 8 | 3,498 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace AtCoder {
class Program {
static void Main() {
//ここから
int N = IO.ReadLineToInt();
List<Pair> list = new List<Pair>();
long sum = 0;
string ans = "Ye... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace AtCoder {
class Program {
static void Main() {
//ここから
int N = IO.ReadLineToInt();
List<Pair> list = new List<Pair>();
long sum = 0;
string ans = "Ye... | [["-", 75, 196, 0, 1, 0, 11, 12, 214, 141, 22], ["+", 75, 196, 0, 1, 0, 11, 12, 214, 141, 22]] | 8 | 742 | 2 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
class Program {
public static void Main() {
int N = int.Parse(Console.ReadLine());
List<Tuple<int, int>> K = new List<Tuple<int, int>>() { Capacity = N };
for (int i = 0; i < N; i++) {
var s = Console.ReadL... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
class Program {
public static void Main() {
int N = int.Parse(Console.ReadLine());
List<Tuple<int, int>> K = new List<Tuple<int, int>>() { Capacity = N };
for (int i = 0; i < N; i++) {
var s = Console.ReadL... | [["-", 0, 214, 205, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 214, 205, 204, 206, 207, 0, 28, 0, 22]] | 8 | 307 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProblemD {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var As = new int[N];
var Bs = new int[N];
var dicts = new Dictionary<int, i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProblemD {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var As = new int[N];
var Bs = new int[N];
var dicts = new Dictionary<int, i... | [["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222]] | 8 | 276 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace test {
class Program {
static void Main(string[] args) {
var N = ReadInt();
var AB = new List<int[]>();
for (int i = 0; i < N; i++) {
var input = ReadArrayInt();
var A = input[0];
var B = input[1];
AB.Add... | using System;
using System.Collections.Generic;
using System.Linq;
namespace test {
class Program {
static void Main(string[] args) {
var N = ReadInt();
var AB = new List<int[]>();
for (int i = 0; i < N; i++) {
var input = ReadArrayInt();
var A = input[0];
var B = input[1];
AB.Add... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 329 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_131 {
class E {
static void Main(string[] args) { Method(args); }
static void Method(string[] args) {
int[] nk = ReadInts();
int n = n... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_131 {
class E {
static void Main(string[] args) { Method(args); }
static void Method(string[] args) {
int[] nk = ReadInts();
int n = n... | [["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]] | 8 | 431 | 2 |
using System;
using System.Collections.Generic;
public class Program {
public void Solve() {
var sc = new Scanner();
int N = sc.NextInt();
HashSet<int> X, Y;
X = new HashSet<int>();
Y = new HashSet<int>();
var uf = new UnionFind(200001);
for (int i = 0; i < N; i++) {
int x = sc.Ne... | using System;
using System.Collections.Generic;
public class Program {
public void Solve() {
var sc = new Scanner();
int N = sc.NextInt();
HashSet<int> X, Y;
X = new HashSet<int>();
Y = new HashSet<int>();
var uf = new UnionFind(200001);
for (int i = 0; i < N; i++) {
int x = sc.Ne... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 947 | 2 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Sandbox {
internal class Program {
private static readonly int MaxNumber = 10001;
private static readonly List<int>[] XtoY =
Enumerable.Range(0, MaxNumber).Select(_ => new List<int>()).ToArray();
private static r... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Sandbox {
internal class Program {
private static readonly int MaxNumber = 100001;
private static readonly List<int>[] XtoY =
Enumerable.Range(0, MaxNumber).Select(_ => new List<int>()).ToArray();
private static ... | [["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 922 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace attocoda {
class Program {
static void Main(string[] args) {
int x, a;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
x = int.Parse(word[1]);
if (x < a)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace attocoda {
class Program {
static void Main(string[] args) {
int x, a;
var word = Console.ReadLine().Split(' ');
x = int.Parse(word[0]);
a = int.Parse(word[1]);
if (x < a)... | [["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22]] | 8 | 118 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ACB130A {
class Program {
static void Main(string[] args) {
int x, a;
var word = Console.ReadLine().Split(' ');
x = int.Parse(word[0]);
a = int.Parse(word[1]);
if (x < a) ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ACB130A {
class Program {
static void Main(string[] args) {
int x, a;
var word = Console.ReadLine().Split(' ');
x = int.Parse(word[0]);
a = int.Parse(word[1]);
if (x < a)... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 20]] | 8 | 128 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABCA130 {
class Program {
static void Main(string[] args) {
int a, A, X;
var word = Console.ReadLine().Split();
A = int.Parse(word[0]);
X = int.Parse(word[1]);
if (X < A)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABCA130 {
class Program {
static void Main(string[] args) {
int a, A, X;
var word = Console.ReadLine().Split();
A = int.Parse(word[0]);
X = int.Parse(word[1]);
if (X <= A... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 118 | 2 |
using System;
class Program {
static void Main() {
string[] s = Console.ReadLine().Split(' ');
int a = int.Parse(s[0]);
int b = int.Parse(s[1]);
if (a > b) {
Console.WriteLine(10);
} else {
Console.WriteLine(0);
}
}
} | using System;
class Program {
static void Main() {
string[] s = Console.ReadLine().Split(' ');
int a = int.Parse(s[0]);
int b = int.Parse(s[1]);
if (a >= b) {
Console.WriteLine(10);
} else {
Console.WriteLine(0);
}
}
} | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 83 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
namespace AtCoder_1 {
class Program {
static void Main(string[] args) {
var a = CinTAr();
if (a[0] < a[1]) {
Cout("0");
} else {
Cout("0");... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
namespace AtCoder_1 {
class Program {
static void Main(string[] args) {
var a = CinTAr();
if (a[0] < a[1]) {
Cout("0");
} else {
Cout("10")... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 214 | 2 |
using System;
using System.Linq;
public class Test {
public static void Main() {
// your code goes here
var b = Console.ReadLine().Split().Select(y => int.Parse(y)).ToArray();
int x = b[0];
int a = b[1];
if (x < a) {
Console.WriteLine("10");
} else {
Console.WriteLine("0");
... | using System;
using System.Linq;
public class Test {
public static void Main() {
// your code goes here
var b = Console.ReadLine().Split().Select(y => int.Parse(y)).ToArray();
int x = b[0];
int a = b[1];
if (x < a) {
Console.WriteLine("0");
} else {
Console.WriteLine("10");
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 96 | 4 |
using System;
using System.Collections.Generic;
using static AtCoderer.Exter;
using static System.Math;
using System.Linq;
namespace AtCoderer {
public class App {
public static void Solve() {
var r = readarr;
Console.WriteLine(r[0] <= r[1] ? 10 : 0);
}
public static void Main(string[] args) {
Solve... | using System;
using System.Collections.Generic;
using static AtCoderer.Exter;
using static System.Math;
using System.Linq;
namespace AtCoderer {
public class App {
public static void Solve() {
var r = readarr;
Console.WriteLine(r[0] >= r[1] ? 10 : 0);
}
public static void Main(string[] args) {
Solve... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20]] | 8 | 534 | 2 |
using System;
namespace Atcoder_program_test_Csharp {
using System;
class Program {
static void Main(string[] args) {
string line = Console.ReadLine();
string[] str = line.Split(' ');
int X = int.Parse(str[0]);
int A = int.Parse(str[1]);
if (X < A)
Console.Write("10");
if (X >= A)
... | using System;
namespace Atcoder_program_test_Csharp {
using System;
class Program {
static void Main(string[] args) {
string line = Console.ReadLine();
string[] str = line.Split(' ');
int X = int.Parse(str[0]);
int A = int.Parse(str[1]);
if (X >= A)
Console.Write("10");
if (X < A)
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]] | 8 | 104 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC {
class ProgramB {
static void Main(string[] args) {
var n = long.Parse(Console.ReadLine());
var list =
Console.ReadLine().Split(" ").Select(x => int.Parse(x)).ToArray();
var result = int.MaxValue;
for (var t = ... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC {
class ProgramB {
static void Main(string[] args) {
var n = long.Parse(Console.ReadLine());
var list =
Console.ReadLine().Split(" ").Select(x => int.Parse(x)).ToArray();
var result = int.MaxValue;
for (var t = ... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 8, 196, 0, 57, 15, 16, 12, 204, 205, 22], ["-", 0, 57, 15, 16, 12, 204, 206, 207, 0, 70], ["-", 0, 57, 15, 16, 12, 204, 206, 207, ... | 8 | 178 | 7 |
using System;
public class AtCoderB {
static void Main() {
int n = int.Parse(Console.ReadLine());
int[] weights = new int[n];
{
var line = Console.ReadLine();
var words = line.Split(' ');
for (int i = 0; i < n; i++) {
weights[i] = int.Parse(words[i]);
}
}
int ans... | using System;
public class AtCoderB {
static void Main() {
int n = int.Parse(Console.ReadLine());
int[] weights = new int[n];
{
var line = Console.ReadLine();
var words = line.Split(' ');
for (int i = 0; i < n; i++) {
weights[i] = int.Parse(words[i]);
}
}
int ans... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22]] | 8 | 198 | 2 |
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace B_Balance {
class Program {
static void Main(string[] args) {
int total = int.Parse(ReadLine());
string input = ReadLine();
string[] array = input.Split(' ');
i... | using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace B_Balance {
class Program {
static void Main(string[] args) {
int total = int.Parse(ReadLine());
string input = ReadLine();
string[] array = input.Split(' ');
i... | [["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 313 | 4 |
using System;
using System.Linq;
public class Hello {
public static void Main() {
// Your code here!
int n = int.Parse(Console.ReadLine());
int ans = 10000;
string[] mofu = Console.ReadLine().Split(' ');
int[] mofii = mofu.Select(int.Parse).ToArray();
for (int i = 1; i < n; i++) {
in... | using System;
using System.Linq;
public class Hello {
public static void Main() {
// Your code here!
int n = int.Parse(Console.ReadLine());
int ans = 10000;
string[] mofu = Console.ReadLine().Split(' ');
int[] mofii = mofu.Select(int.Parse).ToArray();
for (int i = 1; i < n; i++) {
in... | [["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 62], ["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]] | 8 | 198 | 4 |
namespace ABC128.B {
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
public class Program {
public static void Main(string[] args) {
var n = ReadInputAsInt();
var w = ReadInputsAsInt().ToList();
WriteLine(Solve(n... | namespace ABC128.B {
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
public class Program {
public static void Main(string[] args) {
var n = ReadInputAsInt();
var w = ReadInputsAsInt().ToList();
WriteLine(Solve(n... | [["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203]] | 8 | 187 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
using System.Collections;
namespace CompetitiveProgramming {
public class CPair<T, U> : IComparable
where T : IComparable<T> {
public readonly T Item1;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
using System.Collections;
namespace CompetitiveProgramming {
public class CPair<T, U> : IComparable
where T : IComparable<T> {
public readonly T Item1;
... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20]] | 8 | 13,912 | 2 |
using System;
using System.Linq;
namespace ConsoleApp {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split().Select(int.Parse).ToArray();
var N = input[0];
var M = input[1];
var mod = 1000000007;
var ans = new Ans[N + 1];
for (int i = 1; i <= N; i++) {
... | using System;
using System.Linq;
namespace ConsoleApp {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split().Select(int.Parse).ToArray();
var N = input[0];
var M = input[1];
var mod = 1000000007;
var ans = new Ans[N + 1];
for (int i = 1; i <= N; i++) {
... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98]] | 8 | 283 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
public class Program {
static void Main(string[] args) {
const int x = 1000000007;
int[] vs = Console.ReadLine().Split().Select(p => int.Parse(p)).ToArray();
int N = vs[0];
int M = vs[1];
i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
public class Program {
static void Main(string[] args) {
const int x = 1000000007;
int[] vs = Console.ReadLine().Split().Select(p => int.Parse(p)).ToArray();
int N = vs[0];
int M = vs[1];
i... | [["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203]] | 8 | 356 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var vals = Console.ReadLine().Split().Select(x => int.Parse(x)).ToList();
int N = vals[0];
int M = vals[1];
int mod = 1000000007;
long[] d = new long[N + 1];
for (int i = 0; i <... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var vals = Console.ReadLine().Split().Select(x => int.Parse(x)).ToList();
int N = vals[0];
int M = vals[1];
int mod = 1000000007;
long[] d = new long[N + 1];
for (int i = 0; i <... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203]] | 8 | 230 | 4 |
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... | [["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203]] | 8 | 992 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) { A(); }
static void A() {
var NM = ReadSplitInt();
var N = NM[0];
var M = NM[1];
var a = new int[N + 1];
for (int i = 0; i < M; ... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) { A(); }
static void A() {
var NM = ReadSplitInt();
var N = NM[0];
var M = NM[1];
var a = new int[N + 1];
for (int i = 0; i < M; ... | [["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 738 | 6 |
using System;
class ProgramC {
static void Main(string[] args) {
//まずは数字を読む
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int m = int.Parse(input[1]);
int[] fallstair = new int[m + 1];
long[] stair = new long[n + 1];
//とりあえず全部読みこむ
for (int i = 0; i < m... | using System;
class ProgramC {
static void Main(string[] args) {
//まずは数字を読む
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int m = int.Parse(input[1]);
int[] fallstair = new int[m + 1];
long[] stair = new long[n + 1];
//とりあえず全部読みこむ
for (int i = 0; i < m... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19]] | 8 | 471 | 2 |
using System;
using System.Collections.Generic;
namespace AtcoderProgram {
class Program {
static Dictionary<int, int> fib = new Dictionary<int, int>();
static void createfib(int n) {
fib.Add(-1, 1);
fib.Add(0, 1);
fib.Add(1, 1);
fib.Add(2, 2);
for (int i = 3; i < n; i++) {
int a, b;
... | using System;
using System.Collections.Generic;
namespace AtcoderProgram {
class Program {
static Dictionary<int, int> fib = new Dictionary<int, int>();
static void createfib(int n) {
fib.Add(-1, 1);
fib.Add(0, 1);
fib.Add(1, 1);
fib.Add(2, 2);
for (int i = 3; i < n; i++) {
int a, b;
... | [["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 477 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Collections;
static class Extensions {
public static int ToInt(this string s) => int.Parse(s);
public static long ToLong(this string s) => long.Parse... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Collections;
static class Extensions {
public static int ToInt(this string s) => int.Parse(s);
public static long ToLong(this string s) => long.Parse... | [["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203]] | 8 | 640 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
class Program {
void Run() {
var sc = new Scanner();
int n = sc.NextInt();
int m = sc.NextInt();
int[] a = new int[m];
for (int i = 0; i < m; i++)
a[i] = sc... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
class Program {
void Run() {
var sc = new Scanner();
int n = sc.NextInt();
int m = sc.NextInt();
int[] a = new int[m];
for (int i = 0; i < m; i++)
a[i] = sc... | [["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 439 | 6 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC129C {
class Program {
static void Solve(Input input) {
var n = input.NextInt();
var m = input.NextInt();
var a = new int[n + 1];
fo... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC129C {
class Program {
static void Solve(Input input) {
var n = input.NextInt();
var m = input.NextInt();
var a = new int[n + 1];
fo... | [["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20]] | 8 | 969 | 6 |
using System;
using System.Collections.Generic; // list用
using System.Text; // StringBuilder用
using System.Collections;
using System.Linq;
class Program {
static int[,] s;
static decimal result;
static Hashtable ht = new Hashtable();
static StringBuilder sb = new StringBuilder();
static int N, ... | using System;
using System.Collections.Generic; // list用
using System.Text; // StringBuilder用
using System.Collections;
using System.Linq;
class Program {
static int[,] s;
static decimal result;
static Hashtable ht = new Hashtable();
static StringBuilder sb = new StringBuilder();
static int N, ... | [["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107]] | 8 | 617 | 2 |
using System;
public class S {
private const char BLANK = '.';
private const char ROCK = '#';
public static void Main() {
var input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var HEIGHT = input[0];
var WIDTH = input[1];
var TORCHMAP = new int[HEIGHT, WIDTH];
int w_startIn... | using System;
public class S {
private const char BLANK = '.';
private const char ROCK = '#';
public static void Main() {
var input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var HEIGHT = input[0];
var WIDTH = input[1];
var TORCHMAP = new int[HEIGHT, WIDTH];
int w_startIn... | [["-", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22]] | 8 | 540 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class Program {
static void Main() {
var HW = ReadLine().Split().Select(int.Parse).ToArray();
var H = HW[0];
var W = HW[1];
var x = new UnionFind[H];
for (int i = 0; i < H; i+... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class Program {
static void Main() {
var HW = ReadLine().Split().Select(int.Parse).ToArray();
var H = HW[0];
var W = HW[1];
var x = new UnionFind[H];
for (int i = 0; i < H; i+... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22]] | 8 | 633 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Competitive {
internal class Solution {
public int H, W;
public char[,] MP;
public long MOD = 1000000007;
public void Run() {
{
var line = Input.ReadIntArray();
H = line[0];
W = line[1];
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Competitive {
internal class Solution {
public int H, W;
public char[,] MP;
public long MOD = 1000000007;
public void Run() {
{
var line = Input.ReadIntArray();
H = line[0];
W = line[1];
}
... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22]] | 8 | 803 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using static System.Console;
using static System.Math;
class Program {
int[] cmb;
static void Main(string[] args) {
int[] HW = ReadLineParseIntArray();
int[,] map = new int[HW[0], HW[1]];
string[] s = new string[HW[0]... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using static System.Console;
using static System.Math;
class Program {
int[] cmb;
static void Main(string[] args) {
int[] HW = ReadLineParseIntArray();
int[,] map = new int[HW[0], HW[1]];
string[] s = new string[HW[0]... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22]] | 8 | 534 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC129D {
class Program {
static void Solve(Input input) {
var h = input.NextInt();
var w = input.NextInt();
var map = new int[h, w];
f... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC129D {
class Program {
static void Solve(Input input) {
var h = input.NextInt();
var w = input.NextInt();
var map = new int[h, w];
f... | [["-", 0, 212, 0, 230, 3, 4, 0, 28, 0, 258]] | 8 | 1,343 | 1 |
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;
... | [["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 518 | 4 |
using System;
using System.Linq;
namespace ABC129 {
class Program {
static void Main(string[] args) {
var L = Console.ReadLine();
var mod = 1000000007;
var ans = L.Skip(1).Aggregate(
new long[] { 1, 2 },
(p, c) => c == '1' ? new[] { (p[0] * 3 + p[1]) % mod, (p[1] * 2) % mod }
... | using System;
using System.Linq;
namespace ABC129 {
class Program {
static void Main(string[] args) {
var L = Console.ReadLine();
long mod = 1000000007;
var ans = L.Skip(1).Aggregate(
new long[] { 1, 2 },
(p, c) => c == '1' ? new[] { (p[0] * 3 + p[1]) % mod, (p[1] * 2) % mod }
... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 140 | 4 |
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 k = sc.NextLong();
long answer = (n - k + 1);
if (k == 1) {
answer = 0;
}
Console.WriteLine(answ... | 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 k = sc.NextLong();
long answer = n - k;
if (k == 1) {
answer = 0;
}
Console.WriteLine(answer);
... | [["-", 0, 198, 0, 200, 0, 212, 0, 23, 0, 24], ["-", 0, 200, 0, 212, 0, 23, 0, 16, 17, 72], ["-", 0, 200, 0, 212, 0, 23, 0, 16, 12, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 23, 0, 25]] | 8 | 382 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22]] | 8 | 956 | 2 |
using System;
using System.Collections.Generic; // list用
using System.Text; // StringBuilder用
using System.Collections;
using System.Linq;
class Program {
static List<int> s = new List<int>();
static decimal result;
static Hashtable ht = new Hashtable();
static int N, M;
static long[,] table;
... | using System;
using System.Collections.Generic; // list用
using System.Text; // StringBuilder用
using System.Collections;
using System.Linq;
class Program {
static List<int> s = new List<int>();
static decimal result;
static Hashtable ht = new Hashtable();
static int N, M;
static long[,] table;
... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 225 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
namespace AtCodeeeer {
class AtCOOOOOOOOOOOder {
static void Main(string[] args) {
int[] s = ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = s[0];
int k = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
namespace AtCodeeeer {
class AtCOOOOOOOOOOOder {
static void Main(string[] args) {
int[] s = ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = s[0];
int k = ... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203]] | 8 | 107 | 2 |
using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
int n = int.Parse(input.Split(' ')[0]);
int k = int.Parse(input.Split(' ')[1]);
int max = n - k + 1;
if (k > 1) {
Console.WriteLine(max - 1);
} else {
Console.W... | using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
int n = int.Parse(input.Split(' ')[0]);
int k = int.Parse(input.Split(' ')[1]);
int max = n - k + 1;
if (k > 1) {
Console.WriteLine(max - 1);
} else {
Console.W... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 107 | 2 |
using System;
class Program {
static string[] GetVals(string splitChar) {
var src = Console.ReadLine();
return src.Split(new string[] { splitChar }, StringSplitOptions.None);
}
static string[] GetVals(char splitChar) {
var src = Console.ReadLine();
return src.Split(splitChar);
}
static stri... | using System;
class Program {
static string[] GetVals(string splitChar) {
var src = Console.ReadLine();
return src.Split(new string[] { splitChar }, StringSplitOptions.None);
}
static string[] GetVals(char splitChar) {
var src = Console.ReadLine();
return src.Split(splitChar);
}
static stri... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22]] | 8 | 220 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace ConsoleApp3 {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int k = in... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace ConsoleApp3 {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int k = in... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 120 | 6 |
using System;
using System.IO;
namespace Sandbox {
internal class Program {
private static void Main(string[] args) {
var scanner = new Scanner();
var n = scanner.GetNextAsInt();
var k = scanner.GetNextAsInt();
if (n == 1) {
Console.WriteLine("0");
return;
}
Console.WriteLine(n ... | using System;
using System.IO;
namespace Sandbox {
internal class Program {
private static void Main(string[] args) {
var scanner = new Scanner();
var n = scanner.GetNextAsInt();
var k = scanner.GetNextAsInt();
if (k == 1) {
Console.WriteLine("0");
return;
}
Console.WriteLine(n ... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22]] | 8 | 558 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace AtCoderWorkspace {
class Program {
static void Main(string[] args) {
var cin = new Scanner();
var N = cin.nextInt();
var K = cin.nextInt();
if (K == 1) {
Console.WriteLine(0);
} else {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace AtCoderWorkspace {
class Program {
static void Main(string[] args) {
var cin = new Scanner();
var N = cin.nextInt();
var K = cin.nextInt();
if (K == 1) {
Console.WriteLine(0);
} else {
... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 553 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class ABC {
public static void Main() {
var read = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = read[0];
int K = read[1]... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class ABC {
public static void Main() {
var read = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = read[0];
int K = read[1]... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]] | 8 | 124 | 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, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18]] | 8 | 1,981 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.