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 |
|---|---|---|---|---|
using System;
using System.Linq;
namespace ProblemA {
class Program {
static void Main(string[] args) {
string S = CIN.String();
char initial = S[0];
for (int i = 1; i < 4; i++) {
if (initial == S[i]) {
Console.WriteLine("Bad");
return;
}
}
Console.WriteLine("Good");... | using System;
using System.Linq;
namespace ProblemA {
class Program {
static void Main(string[] args) {
string S = CIN.String();
char initial = S[0];
for (int i = 1; i < 4; i++) {
if (initial == S[i]) {
Console.WriteLine("Bad");
return;
}
initial = S[i];
}
Con... | [["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 257 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC131 {
class Program {
static void Main(string[] args) {
char[] input = Console.ReadLine().ToCharArray();
char mem;
string output = "";
for (int i = 0; i < 4; i++) {
m... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC131 {
class Program {
static void Main(string[] args) {
char[] input = Console.ReadLine().ToCharArray();
char mem = input[0];
string output = "";
for (int i = 1; i < 4; i++... | [["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212... | 8 | 125 |
using System;
using System.Text.RegularExpressions;
namespace ABC131A {
class Program {
static void Main(string[] args) {
Console.WriteLine(Regex.IsMatch(Console.ReadLine(), @"([0-9])\1"));
}
}
} | using System;
using System.Text.RegularExpressions;
namespace ABC131A {
class Program {
static void Main(string[] args) {
Console.WriteLine(Regex.IsMatch(Console.ReadLine(), @"([0-9])\1") ? "Bad"
: "Good");
}
}
} | [["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 47 |
using System;
class Solution {
public string Proc(string val) {
char before = ' ';
foreach (var it in val) {
if (before == it)
return "Bad";
before = it;
}
return "Good";
}
}
class Program {
static string[] GetVals(string splitChar) {
var src = Console.ReadLine();
re... | using System;
class Solution {
public string Proc(string val) {
char before = ' ';
foreach (var it in val) {
if (before == it)
return "Bad";
before = it;
}
return "Good";
}
}
class Program {
static string[] GetVals(string splitChar) {
var src = Console.ReadLine();
re... | [["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 28, 0, 213, 63, 214, 205, 230, 0, 228], ["-", 0, 28, 0, 213, 63, 214, 205, 230, 39, 22], ["-", 0, 213, 63, 214, 205, 230, 3, 4, 0, 24], ["-", 0, 213, 63, 214, 205, 230, 3, 4, 0, 25], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 1... | 8 | 260 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Solve {
static public int mod = 1000000007;
public static void Main() {
// 方針
//
int[] n = inta();
int min = 99999999;
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Solve {
static public int mod = 1000000007;
public static void Main() {
// 方針
//
int[] n = inta();
int min = 99999999;
... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 1,518 |
using System;
namespace ABC131 {
class B {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int L = int.Parse(input[1]);
int[] aji = new int[N];
for (int i = 0; i < N; i++) {
aji[i] = L + i;
}
if (0 <= L) {
aji[... |
using System;
namespace ABC131 {
class B {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int L = int.Parse(input[1]);
int[] aji = new int[N];
for (int i = 0; i < N; i++) {
aji[i] = L + i;
}
if (0 <= L) {
aji[... | [["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 95], ["-", 0, 57, 64, 196, 0, 57, 75, 196, 0, 45], ["-", 75, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["-", 206, 207, 0, 28, 0, 16, 31, 16, 31, 22], ["-", 206, 207, 0, 28, 0, 16, 31, 16, 17, 72], ["-", 206, 207, 0, 28, 0, 16, 31, 16, 12,... | 8 | 191 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var NL = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var N = NL[0];
var L = NL[1];
int[] Ringo = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var NL = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var N = NL[0];
var L = NL[1];
int[] Ringo = ... | [["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 70], ["+", 0, 212, 0, 227, 39, 224... | 8 | 176 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace Test {
public class Program {
public static void Main(string[] args) { new Program().abc131_b(); }
public void abc131_b() {
var CinTe... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace Test {
public class Program {
public static void Main(string[] args) { new Program().abc131_b(); }
public void abc131_b() {
var CinTe... | [["-", 8, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["+", 0, 11, 12, 41, 15, 16, 31, 213, 63, 22], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 12, 41, 15, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 1, 0, 11, 12, 41, 15, 16, 17, 47], ["+", 0, 11, 12, 41, 15, 16, 12, 213, 63, 22], ["+", 12, 41, 15, 16, 12, 213, 3, 4, 0, 24], ["+"... | 8 | 164 |
using System;
using System.Linq;
namespace B {
class Program {
static void Main(string[] args) {
var nl = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var n = nl[0];
var l = nl[1];
var taste = new int [n].ToList();
for (var i = 0; i < n; i++) {
taste[i] = l + i;
}
if ... | using System;
using System.Linq;
namespace B {
class Program {
static void Main(string[] args) {
var nl = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var n = nl[0];
var l = nl[1];
var taste = new int [n].ToList();
for (var i = 0; i < n; i++) {
taste[i] = l + i;
}
if ... | [["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 12, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+... | 8 | 234 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp2 {
public class Program {
public static void Main(string[] args) {
int[] NL = Read(Console.ReadLine());
int N = NL[0];
int L = NL[1];
int sum2 = (2 * L + N - 1) * N;
if (L < 0)
Console.WriteLine(sum2 /... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp2 {
public class Program {
public static void Main(string[] args) {
int[] NL = Read(Console.ReadLine());
int N = NL[0];
int L = NL[1];
int sum2 = (2 * L + N - 1) * N;
int min = L;
int max = L + N - 1;
... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 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, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17... | 8 | 873 |
using System;
class B_Bite_Eating {
static void Main(string[] args) {
string[] NL = Console.ReadLine().Split(' ');
int N = int.Parse(NL[0]);
int L = int.Parse(NL[1]);
int Eaten;
if (L <= 0 && L + N - 1 >= 1)
Eaten = 0;
else
Eaten = Math.Min(Math.Abs(L), Math.Abs(L + N - 1));
Co... | using System;
class B_Bite_Eating {
static void Main(string[] args) {
string[] NL = Console.ReadLine().Split(' ');
int N = int.Parse(NL[0]);
int L = int.Parse(NL[1]);
int Eaten;
if (L <= 0 && L + N - 1 >= 1)
Eaten = 0;
else {
if (Math.Abs(L) < Math.Abs(L + N - 1))
Eaten = L... | [["-", 8, 196, 0, 57, 75, 1, 0, 11, 31, 22], ["-", 0, 57, 75, 1, 0, 11, 0, 202, 0, 32], ["-", 75, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["-", 75, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["-", 75, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121... | 8 | 130 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using Extensions;
using static System.Math;
using static Extensions.MathExtension;
using static Extensions.ConsoleInputExtension;
using static Extensions.ConsoleOutputExtension;
class Solver {
publ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using Extensions;
using static System.Math;
using static Extensions.MathExtension;
using static Extensions.ConsoleInputExtension;
using static Extensions.ConsoleOutputExtension;
class Solver {
publ... | [["+", 12, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 12, 2... | 8 | 1,735 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] a = Console.ReadLine().Split(' ');
int b = int.Parse(a[0]);
int c = int.Parse(a[1]);
int d = 0;
int[] atr = new int[b];
int min = 9999... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] a = Console.ReadLine().Split(' ');
int b = int.Parse(a[0]);
int c = int.Parse(a[1]);
int d = 0;
int[] atr = new int[b];
int min = 9999... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 205 |
using System;
class Program {
static void Main(string[] args) {
int N, L;
string[] str =
Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得
N = int.Parse(str[0]); //数値で受け取りたい場合は変換する
L = int.Parse(str[1]);
int pickup_idx = -1;
int pickup_val = 200;
int sum = 0;
for (int i = 0... | using System;
class Program {
static void Main(string[] args) {
int N, L;
string[] str =
Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得
N = int.Parse(str[0]); //数値で受け取りたい場合は変換する
L = int.Parse(str[1]);
int pickup_idx = -1;
int pickup_val = 1000;
int sum = 0;
for (int i = ... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["-", ... | 8 | 174 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static System.Math;
using static Func;
class Z {
static void Main() => new K();
}
class K {
int F => int.Parse(Str);
lon... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static System.Math;
using static Func;
class Z {
static void Main() => new K();
}
class K {
int F => int.Parse(Str);
lon... | [["+", 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], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32],... | 8 | 1,210 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int[] line = Console.ReadLine().Split().Select(int.Parse).ToArray();
int ans = 0;
for (int i = 1; i < line.Length - 1; i++) {
var target = line[i];
var intArray = new int[] { line[i], line[i - 1], line[i + 1] }... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var a = Console.ReadLine();
int[] line = Console.ReadLine().Split().Select(int.Parse).ToArray();
int ans = 0;
for (int i = 1; i < line.Length - 1; i++) {
var intArray = new int[] { line[i], line[i - 1], line[i + ... | [["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3... | 8 | 138 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
namespace AtCoder {
class Program {
static void Main() {
var N = int.Parse(ReadLine());
var raw = ReadLine().Split().Select(int.Parse).ToArray();
if (N < 5) {
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
namespace AtCoder {
class Program {
static void Main() {
var N = int.Parse(ReadLine());
var raw = ReadLine().Split().Select(int.Parse).ToArray();
var ans = 0;
... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 161 |
using System;
using System.IO;
using System.Linq;
class sol {
static StreamWriter sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
static Scan sc = new Scan();
static void Main(string[] args) {
int n = sc.Int;
var d = sc.IntArr;
Array.Sort(d);
foreach (int j in d) ... | using System;
using System.IO;
using System.Linq;
class sol {
static StreamWriter sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
static Scan sc = new Scan();
static void Main(string[] args) {
int n = sc.Int;
var d = sc.IntArr;
Array.Sort(d);
foreach (int j in d) ... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 210, 8, 196, 0, 1, 0, 35], ["-", 8, 2... | 8 | 454 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
int cnt = 0;
var mondaisuu = int.Parse(Console.ReadLine());
var mondai = Console.ReadLine()
.Split()
.Select(x => int.Parse(x)... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
int cnt = 0;
var mondaisuu = int.Parse(Console.ReadLine());
var mondai = Console.ReadLine()
.Split()
.Select(x => int.Parse(x)... | [["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 10, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["-", 206, 207, 0, 28, 0, 16, 31, 16, 31, 22], ["-", 206, 207, 0, 28, 0, 16, 31, 16, 17, 85], ["-", 206, 207, 0, 28, 0, 16, 31, 16, 12... | 8 | 211 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace _20190629_ABC {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var di = Console.ReadLine().Split(' ');
int X, Y; // X:配列の中央の大きいほう、 Y:配列の真ん中の小さいほう
int[] int... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace _20190629_ABC {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var di = Console.ReadLine().Split(' ');
int X, Y; // X:配列の中央の大きいほう、 Y:配列の真ん中の小さいほう
int[] int... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], [... | 8 | 183 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class Program {
static void Main(string[] args) {
var NK = ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var (N, K) = (NK[0], NK[1]);
var mCombination = new ModCombination(2000);
for (int i ... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class Program {
static void Main(string[] args) {
var NK = ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var (N, K) = (NK[0], NK[1]);
var mCombination = new ModCombination(2001);
for (int i ... | [["-", 0, 212, 0, 230, 3, 4, 0, 28, 0, 203], ["+", 0, 212, 0, 230, 3, 4, 0, 28, 0, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 19... | 8 | 670 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC142D_2 {
class Program {
static void Main(string[] args) {
var NK = ReadInt();
int N = NK[0];
int K = NK[1];
int mod = 1000000007;
long[] anss = new long[K];
for (int i = 1; i <= K; i++) {
anss[i - 1] = (nC... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC142D_2 {
class Program {
static void Main(string[] args) {
var NK = ReadInt();
int N = NK[0];
int K = NK[1];
int mod = 1000000007;
long[] anss = new long[K];
for (int i = 1; i <= K; i++) {
if (i > N - K + 1... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 22], ["+", ... | 8 | 424 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Solve {
static public int mod = 1000000007;
public static void Main() {
// 方針
//
var n = inta();
var b = n[1];
var r ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Solve {
static public int mod = 1000000007;
public static void Main() {
// 方針
//
var n = inta();
var b = n[1];
var r ... | [["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 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, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ... | 8 | 1,173 |
using AtCoderBeginnerContest132.Questions;
using AtCoderBeginnerContest132.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoderBeginnerContest132.Questions {
public class QuestionD : AtCoderQuestionBase {
public override IEnumerable<... | using AtCoderBeginnerContest132.Questions;
using AtCoderBeginnerContest132.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoderBeginnerContest132.Questions {
public class QuestionD : AtCoderQuestionBase {
public override IEnumerable<... | [["+", 0, 200, 0, 212, 0, 41, 15, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 79], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 101], ["+", 0, 212, 0, 41, 64, 213, 3, 4, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 102], ["+", 0, 200, 0, 212, 0, 41, 75, 230, 0, 228... | 8 | 1,820 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace D {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace D {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | [["-", 0, 195, 8, 196, 0, 57, 64, 293, 0, 294], ["-", 8, 196, 0, 57, 64, 293, 0, 230, 0, 228], ["-", 8, 196, 0, 57, 64, 293, 0, 230, 39, 22], ["-", 0, 57, 64, 293, 0, 230, 3, 4, 0, 24], ["-", 0, 57, 64, 293, 0, 230, 3, 4, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 37, 0, 38], ["+", 0, 195, 8, 196, 0, 57, 64, 37, 0, 203],... | 8 | 439 |
using System.Collections;
using System.Text;
using System.Threading.Tasks;
using static System.Math;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System;
using System.Numerics;
class Program {
static long mod = (int)Pow(10, 9) + 7;
static void Main() {
int[] NK = Rea... | using System.Collections;
using System.Text;
using System.Threading.Tasks;
using static System.Math;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System;
using System.Numerics;
class Program {
static long mod = (int)Pow(10, 9) + 7;
static void Main() {
int[] NK = Rea... | [["-", 8, 196, 0, 57, 64, 1, 0, 213, 63, 22], ["-", 0, 57, 64, 1, 0, 213, 3, 4, 0, 24], ["-", 64, 1, 0, 213, 3, 4, 0, 28, 0, 275], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 64, 1, 0, 213, 3, 4, 0, 21], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 33], ["-", 0, 57, 64,... | 8 | 2,126 |
using System;
using System.Linq;
public class HelloWorld {
static long[,] C = new long[2001, 2001];
static long div = 1000000007;
static public void Main() {
var NK = Console.ReadLine().Split().Select(a => long.Parse(a)).ToArray();
var N = NK[0];
var K = NK[1];
for (long i = 1; i <= (N - K + 1)... | using System;
using System.Linq;
public class HelloWorld {
static long[,] C = new long[2001, 2001];
static long div = 1000000007;
static public void Main() {
var NK = Console.ReadLine().Split().Select(a => long.Parse(a)).ToArray();
var N = NK[0];
var K = NK[1];
for (long i = 1; i <= K; i++) {
... | [["-", 0, 7, 15, 16, 31, 16, 12, 23, 0, 24], ["-", 31, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["-", 31, 16, 12, 23, 0, 16, 31, 16, 17, 33], ["-", 31, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["-", 15, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["-", 15, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["-", 0, 7, 15, 16, 31, 16, 12, 23, 0, 25], ... | 8 | 256 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Program {
static void Main(string[] args) {
int[] nums =
Console.ReadLine().Split(' ').Select(c => int.Parse(c)).ToArray();
int N = nums[0];
int K = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Program {
static void Main(string[] args) {
int[] nums =
Console.ReadLine().Split(' ').Select(c => int.Parse(c)).ToArray();
int N = nums[0];
int K = ... | [["-", 0, 212, 0, 230, 3, 4, 0, 28, 0, 203], ["+", 0, 212, 0, 230, 3, 4, 0, 28, 0, 203], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22... | 8 | 365 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC132D {
class Program {
static void Solve(Input input) {
var n = input.NextInt();
var k = input.NextInt();
var blue = k;
var red = n ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC132D {
class Program {
static void Solve(Input input) {
var n = input.NextInt();
var k = input.NextInt();
var blue = k;
var red = n ... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0,... | 8 | 2,050 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
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 AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["+", 15, 23, 0, 16, 31, 16, 31, 16, 31, 22], ["+", 15, 23, 0, 16, 31, 16, 31, 16, 17, 33], ["+", 15, 23, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 41, 15, 23, 0, 16, 31, 16, 17, 72], ["+", 0, 41, 15, 23, 0, 16, 31, 16, 12, 203], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 17, 18], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 12, 22], ... | 8 | 601 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace ABC132D {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
r... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace ABC132D {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
r... | [["+", 0, 195, 8, 196, 0, 197, 0, 251, 0, 154], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 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, 213, 3, 4, 0, 28, 0, 16, 17,... | 8 | 786 |
using System;
using System.Linq;
class D {
static void Main() {
var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
var M = 1000000007;
for (int i = 1; i <= a[1]; i++)
Console.WriteLine((long)ModNcr(a[0] - a[1] + 1, i, M) *
ModNcr(a[1] - 1, i - 1, M) % M);
}
... | using System;
using System.Linq;
class D {
static void Main() {
var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
var M = 1000000007;
for (int i = 1; i <= a[1]; i++)
Console.WriteLine(i > a[0] - a[1] + 1
? 0
: (long)ModNcr(a[0] ... | [["+", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 15, 16, 12, 16, 31, 16, 31, 204, 205, 22], ["+", 12, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 41, 15, 16, 12, 16, 31, 16, ... | 8 | 387 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
using System.Threading.Tasks;
class Sobaya {
const long MOD = 1000000007;
const int MAX_C = 2002;
long[,] Com = new long[MAX_C, MA... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
using System.Threading.Tasks;
class Sobaya {
const long MOD = 1000000007;
const int MAX_C = 2002;
long[,] Com = new long[MAX_C, MA... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], [... | 8 | 837 |
using System;
using System.Linq;
class Program4 {
static void Main() {
var input =
Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
var md = new Modulo(2000);
for (int i = 1; i <= input[1]; i++) {
if (i - 1 > input[0] - input[1]) {
Console.WriteLine("0");
c... | using System;
using System.Linq;
class Program4 {
static void Main() {
var input =
Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
var md = new Modulo(2000);
for (int i = 1; i <= input[1]; i++) {
if (i - 1 > input[0] - input[1]) {
Console.WriteLine("0");
c... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, ... | 8 | 481 |
using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
int N = input[0];
int K = input[1];... | using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
int N = input[0];
int K = input[1];... | [["+", 8, 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, 230, 0, 228], ["+", 0, 198, 0, 200, 0, 212, 0, 230, 39, 22], ["+", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["+", 0, 212, 0, 230, 3, 4, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 230, 3, 4, 0, 25],... | 8 | 468 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Solver {
Scanner sc = new Scanner();
public void Solve() {
var N = sc.nextInt();
var K = sc.nextInt();
for (int i = 1; i <= K; i++) {
var ans = Combination.Calc(N - K + 1, i) *
C... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Solver {
Scanner sc = new Scanner();
public void Solve() {
var N = sc.nextInt();
var K = sc.nextInt();
for (int i = 1; i <= K; i++) {
if (N - K + 1 < i) {
WriteLine(0);
continue;... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 33]... | 8 | 662 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
class Solve {
public Solve() {}
public static int Main() {
new Solve().calc();
return 0;
}
Scanner cin;
void calc() ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
class Solve {
public Solve() {}
public static int Main() {
new Solve().calc();
return 0;
}
Scanner cin;
void calc() ... | [["-", 0, 212, 0, 230, 3, 4, 0, 28, 0, 22], ["+", 0, 212, 0, 230, 3, 4, 0, 28, 0, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["... | 8 | 818 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using static MyIO;
public class D {
public static readonly long MOD = 1000000007;
public static void Main() {
long N = GetLong();
long K = GetLong();
var mct = new ModCombTable((int)N, MOD)... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using static MyIO;
public class D {
public static readonly long MOD = 1000000007;
public static void Main() {
long N = GetLong();
long K = GetLong();
long R = N - K;
var mct = new ModCo... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 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, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0... | 8 | 577 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProblemD {
class Program {
public static int div = 1000000007;
public static Dictionary<List<int>, int> dict =
new Dictionary<List<int>, int>();
static void Main(string[] args) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProblemD {
class Program {
public static int div = 1000000007;
public static Dictionary<List<int>, int> dict =
new Dictionary<List<int>, int>();
static void Main(string[] args) {
... | [["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 25], ["-", 12, 74, 51, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 37, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 23, 0, 16, 12, 23, 0, 25],... | 8 | 389 |
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... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 22], ["+", ... | 8 | 917 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
namespace ABC132_D {
class Program {
const int MOD = 1000000007;
static void Main(string[] args) {
var NK = Console.ReadLine().Split().Select(int.Parse).ToArray();
var N = NK[0];
var K = NK[1];
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
namespace ABC132_D {
class Program {
const int MOD = 1000000007;
static void Main(string[] args) {
var NK = Console.ReadLine().Split().Select(int.Parse).ToArray();
var N = NK[0];
var K = NK[1];
... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 205, 22], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 0, 131], ... | 8 | 962 |
using System;
using System.IO;
using System.Collections.Generic;
namespace I_am_the_green_coder {
class Inonoa {
// なんか入力用の関数作ったけどまだテストしてないので使う前に確かめて
static void Main() {
long[] nk = ILongs();
long n = nk[0];
long k = nk[1];
long combi = n - k + 1;
for (long i = 0; i < k; i++) {
if (i == ... | using System;
using System.IO;
using System.Collections.Generic;
namespace I_am_the_green_coder {
class Inonoa {
// なんか入力用の関数作ったけどまだテストしてないので使う前に確かめて
static void Main() {
long[] nk = ILongs();
long n = nk[0];
long k = nk[1];
long combi = n - k + 1;
for (long i = 0; i < k; i++) {
if (i == ... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["-", 0, 7, 8, 196, 0, 57, 75, 57, 0, 121], ["-", 0, 7, 8, 196, 0, 57, 75, 57, 0, 24], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 33], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 75, 57, 15, 16, 31, 16, 31, 16, 17, 33], [... | 8 | 593 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
class Program {
static void Main(string[] args) {
const long MOD = 1000000007;
var sc = new Scanner();
var n = sc.nextInt();
var k = sc.nextInt();
for (int i = 1; i <= k; i++) {
//仕切りの入れ方
lo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
class Program {
static void Main(string[] args) {
const long MOD = 1000000007;
var sc = new Scanner();
var n = sc.nextInt();
var k = sc.nextInt();
for (int i = 1; i <= k; i++) {
//仕切りの入れ方
lo... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 37, 0, 38], ... | 8 | 639 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
class Program {
static long mod = 1000000007;
static int[] ans;
static void Main(string[] args) {
char[] cs = new char[] { ' ' };
// char[] cs = new char[] { ' ', ',' };
// int n = int.P... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
class Program {
static long mod = 1000000007;
static int[] ans;
static void Main(string[] args) {
char[] cs = new char[] { ' ' };
// char[] cs = new char[] { ' ', ',' };
// int n = int.P... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 19... | 8 | 620 |
using System;
using System.IO;
using System.Linq;
namespace DBlueAndRedBalls {
class Program {
static void Main(string[] args) {
// 入力の取得
var inputs = Console.ReadLine().Split().Select(int.Parse).ToArray();
var n = inputs[0];
var k = inputs[1];
var blueBalls = k;
var redBalls = n - k;
v... | using System;
using System.IO;
using System.Linq;
namespace DBlueAndRedBalls {
class Program {
static void Main(string[] args) {
// 入力の取得
var inputs = Console.ReadLine().Split().Select(int.Parse).ToArray();
var n = inputs[0];
var k = inputs[1];
var blueBalls = k;
var redBalls = n - k;
v... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+",... | 8 | 562 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC132 {
class D {
static int _Mod = 1000000007;
static void Main(string[] args) {
int[] p = Console.ReadLine().Split(' ').Select(o => int.Parse(o)).ToArray();
int N = p[0], K = p... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC132 {
class D {
static int _Mod = 1000000007;
static void Main(string[] args) {
int[] p = Console.ReadLine().Split(' ').Select(o => int.Parse(o)).ToArray();
int N = p[0], K = p... | [["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+"... | 8 | 330 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
public struct Pair<T> {
public T x, y;
public Pair(T x, T y) {
this.x = x;
this.y = y;
}
}
public static void Solve() {
long N = NextLong();... | using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
public struct Pair<T> {
public T x, y;
public Pair(T x, T y) {
this.x = x;
this.y = y;
}
}
public static void Solve() {
long N = NextLong();... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 64, 196... | 8 | 852 |
using System;
using System.Collections.Generic;
public class ABC132D {
public static int BIGMUM = 1000000007;
public static void Main() {
int N, K, ans = 0;
string[] str = Console.ReadLine().Split(' ');
N = int.Parse(str[0]);
K = int.Parse(str[1]);
int[,] nCk = new int[2000, 2000];
Fill(nCk)... | using System;
using System.Collections.Generic;
public class ABC132D {
public static long BIGMUM = 1000000007;
public static void Main() {
long N, K, ans = 0;
string[] str = Console.ReadLine().Split(' ');
N = long.Parse(str[0]);
K = long.Parse(str[1]);
long[,] nCk = new long[4000, 4000];
Fil... | [["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 3... | 8 | 259 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Constans;
public static class Constans { public const long Mod = (long)1e9 + 7; }
public class Combination {
private readonly long[] Fact;
private readonly long[] InvFact; // モジュラ逆数
public Combination(long n) {
Fact = new long[... | using System;
using System.Collections.Generic;
using System.Linq;
using static Constans;
public static class Constans { public const long Mod = (long)1e9 + 7; }
public class Combination {
private readonly long[] Fact;
private readonly long[] InvFact; // モジュラ逆数
public Combination(long n) {
Fact = new long[... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],... | 8 | 664 |
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;
using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOptions;
using MethodI... | 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;
using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOptions;
using MethodI... | [["+", 31, 16, 31, 23, 0, 41, 64, 23, 0, 24], ["+", 0, 41, 64, 23, 0, 41, 15, 16, 31, 22], ["+", 0, 41, 64, 23, 0, 41, 15, 16, 17, 60], ["+", 0, 41, 64, 23, 0, 41, 15, 16, 12, 203], ["+", 31, 23, 0, 41, 64, 23, 0, 41, 0, 101], ["+", 31, 23, 0, 41, 64, 23, 0, 41, 64, 203], ["+", 31, 23, 0, 41, 64, 23, 0, 41, 0, 102], ["... | 8 | 939 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static string[] inputa = Console.ReadLine().Split(' ');
static long n = long.Parse(inputa[0]);
static long k = long.Parse(inputa[1]);
static long p = 1000000007;
static long[] factorials = new long[n + 1]; // i!(mod p... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static string[] inputa = Console.ReadLine().Split(' ');
static long n = long.Parse(inputa[0]);
static long k = long.Parse(inputa[1]);
static long p = 1000000007;
static long[] factorials = new long[n + 1]; // i!(mod p... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203... | 8 | 546 |
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... | [["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22... | 8 | 1,098 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp15 {
class Class285 {
static void Main() {
int N = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split().Select(x => x == "1").ToArray();
var ans = new bool[N];
for (int i = N - 1; i >= 0; i--) {
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp15 {
class Class285 {
static void Main() {
int N = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split().Select(x => x == "1").ToArray();
var ans = new bool[N];
for (int i = N - 1; i >= 0; i--) {
... | [["-", 8, 196, 0, 7, 8, 196, 0, 52, 0, 89], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["+", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 35], ["-", 0, ... | 8 | 201 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class7 {
static void Main() {
int N = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
List<int> ans = new List<... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class7 {
static void Main() {
int N = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
List<int> ans = new List<... | [["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 108], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["+", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 8, 196... | 8 | 260 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC134 {
class D {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
var iList = new List<int>();
var res = new int[N + 1];
for (in... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC134 {
class D {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
var iList = new List<int>();
var res = new int[N + 1];
for (in... | [["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["-", 8,... | 8 | 235 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static Asakatsu20200319D.Input;
namespace Asakatsu20200319D {
static class Input {
/// <summary>
/// 1行の入力をTに応じてリストに変換する関数を返す
/// </summary>
static Func<string, List<T>>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>(... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static Asakatsu20200319D.Input;
namespace Asakatsu20200319D {
static class Input {
/// <summary>
/// 1行の入力をTに応じてリストに変換する関数を返す
/// </summary>
static Func<string, List<T>>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>(... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 47], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 21... | 8 | 1,656 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp2 {
public class Program {
static long mod = (long)Math.Pow(10, 9) + 7;
public static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
string[] aString = Console.ReadLine().Split(' ');
List<int> ... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp2 {
public class Program {
static long mod = (long)Math.Pow(10, 9) + 7;
public static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string[] aString = Console.ReadLine().Split(' ');
List<int> ba... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 16, 31, 74, 0, 24], ["-", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["-", 0, 200, 0, 212, 0, 16, 31... | 8 | 394 |
namespace AtCoder {
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
using static Util;
class AtCoder {
/*------------------------------------------------------------------*/
private int N;
private int[] ... | namespace AtCoder {
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
using static Util;
class AtCoder {
/*------------------------------------------------------------------*/
private int N;
private int[] ... | [["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 204, 206,... | 8 | 3,231 |
using System.Collections.Generic;
using System.Linq;
using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
string[] line = ("0 " + Console.ReadLine().Trim()).Split(' ');
var a = Array.ConvertAll(line, int.Parse);
getAns(a, n);
}
static void g... | using System.Collections.Generic;
using System.Linq;
using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
string[] line = ("0 " + Console.ReadLine().Trim()).Split(' ');
var a = Array.ConvertAll(line, int.Parse);
getAns(a, n);
}
static void g... | [["+", 75, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 75, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 75, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+",... | 8 | 299 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace ABC134D {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
r... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace ABC134D {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
r... | [["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 24], ["+", 0, 28, 0, 218, 54, 55, 0, 220, 141, 22], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 21], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 25], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, ... | 8 | 647 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace CSharpSample01 {
class Program {
static void Solve(int N, int[] a) {
// b[i] := i番目の箱に入っているボールの数(1 or 0)(i:1~N)
int[] b = new int[N + 1];
//ボールが1つ入っている箱の数
int M = 0;
//各i番目の箱に対してb[i]を決める
for (int i = N; i >= 1; i... | using System;
using System.Collections.Generic;
using System.Linq;
namespace CSharpSample01 {
class Program {
static void Solve(int N, int[] a) {
// b[i] := i番目の箱に入っているボールの数(1 or 0)(i:1~N)
int[] b = new int[N + 1];
//ボールが1つ入っている箱の数
int M = 0;
//各i番目の箱に対してb[i]を決める
for (int i = N; i >= 1; i... | [["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ... | 8 | 325 |
#if DEBUG
using Microsoft.VisualStudio.TestTools.UnitTesting;
#endif
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Numerics; // cannot be used in GCJ
using System.Text;
using System.Threading.Tasks;
namespace Contest {
public class Program {
public static I... | #if DEBUG
using Microsoft.VisualStudio.TestTools.UnitTesting;
#endif
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Numerics; // cannot be used in GCJ
using System.Text;
using System.Threading.Tasks;
namespace Contest {
public class Program {
public static I... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 57, 15, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 57, 15, 213, 3, 4, 0, 24], ["-", 8, 196, 0, 57, 15, 213, 3, 4, 0,... | 8 | 2,156 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Console;
namespace AtCoder_1 {
class Program {
static void Main(string[] args) {
var n = CinT();
var a = CinTAr();
int[] r = new in... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Console;
namespace AtCoder_1 {
class Program {
static void Main(string[] args) {
var n = CinT();
var a = CinTAr();
int[] r = new in... | [["-", 8, 196, 0, 57, 64, 196, 0, 7, 0, 88], ["-", 8, 196, 0, 57, 64, 196, 0, 7, 0, 24], ["-", 0, 57, 64, 196, 0, 7, 10, 198, 39, 199], ["-", 64, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["-", 8, 196, 0, 57, 64, 196, 0, 7, 0, 35], ["... | 8 | 742 |
using System;
using System.Linq;
using System.Collections.Generic;
class ProgramD {
static void Main(string[] args) {
//
string input = Console.ReadLine();
int n = int.Parse(input);
string[] inputA = Console.ReadLine().Split(' ');
int[] A = new int[n];
int[] ans = new int[n];
for (int i = ... | using System;
using System.Linq;
using System.Collections.Generic;
class ProgramD {
static void Main(string[] args) {
//
string input = Console.ReadLine();
int n = int.Parse(input);
string[] inputA = Console.ReadLine().Split(' ');
int[] A = new int[n];
int[] ans = new int[n];
for (int i = ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 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, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24]... | 8 | 299 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
class Solver {
Scanner sc = new Scanner();
public void Solve() {
var N = sc.nextInt();
var a = sc.ArrayInt(N);
var ans = new int[N];
var total = 0;
for (int i = N; i > 0; i... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
class Solver {
Scanner sc = new Scanner();
public void Solve() {
var N = sc.nextInt();
var a = sc.ArrayInt(N);
var ans = new int[N];
var total = 0;
for (int i = N; i > 0; i... | [["+", 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, 211, 0, 147], ["+", 8, 196, 0, 57, 75, 196, 0, 197, 0, 35], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0,... | 8 | 709 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using static System.Console;
using static System.Math;
class Program {
static void Main(string[] args) { solve(); }
static int N;
static int[] A;
static void input() {
N = int.Parse(ReadLine());
A = new int[N + 1];
... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using static System.Console;
using static System.Math;
class Program {
static void Main(string[] args) { solve(); }
static int N;
static int[] A;
static void input() {
N = int.Parse(ReadLine());
A = new int[N + 1];
... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+",... | 8 | 350 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC134D {
class Program {
public static void Solve(Input input) {
var n = input.NextInt();
var a = input.NextInt(n);
var b = new int[n];
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC134D {
class Program {
public static void Solve(Input input) {
var n = input.NextInt();
var a = input.NextInt(n);
var b = new int[n];
... | [["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 24], ["+", 0, 28, 0, 218, 54, 55, 0, 220, 141, 22], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 21], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 25], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, ... | 8 | 1,786 |
using System;
using System.Linq;
using System.Numerics;
using System.Collections.Generic;
using System.IO;
using System.Text;
public class Solver {
public void Solve() {
int n = ri;
bool[] a = new bool[n];
bool[] b = new bool[n];
for (int i = 0; i < n; i++) {
a[i] = ri == 1;
}
for (int ... | using System;
using System.Linq;
using System.Numerics;
using System.Collections.Generic;
using System.IO;
using System.Text;
public class Solver {
public void Solve() {
int n = ri;
bool[] a = new bool[n];
bool[] b = new bool[n];
for (int i = 0; i < n; i++) {
a[i] = ri == 1;
}
for (int ... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 7... | 8 | 1,600 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC134E_2 {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
int[] A = new int[N];
for (int i = 0; i < N; i++) {
A[i] = int.Parse(Console.ReadLine());
}
A = A.Reverse().ToArr... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC134E_2 {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
int[] A = new int[N];
for (int i = 0; i < N; i++) {
A[i] = int.Parse(Console.ReadLine());
}
A = A.Reverse().ToArr... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 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, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213,... | 8 | 423 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
static long mod = 1000000007;
static long end = 100000;
static long st = 100000;
static void Main(string[] args) {
var N = long.Parse(Console.Re... | using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
static long mod = 1000000007;
static long end = 100000;
static long st = 100000;
static void Main(string[] args) {
var N = long.Parse(Console.Re... | [["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 31, 2... | 8 | 1,178 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_134 {
class 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.ABC_134 {
class E {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 15, 16, 12, 16, 31, 204, 205, 204, 205, 22], ["-", 12, 16, 31, 204, 205, 204, 206, 207, 0, 70], ["-", 31, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["-", 12, 16, 31, 204, 205, 204, 206, 207, 0, 73], ["-", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["-", 12, 16, 31, 204,... | 8 | 1,094 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Convert;
using static System.Math;
// using static System.Globalization.CultureInfo;
using System.Text;
class Program {
static void Main(string[] args) {
var sw =
new Stream... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Convert;
using static System.Math;
// using static System.Globalization.CultureInfo;
using System.Text;
class Program {
static void Main(string[] args) {
var sw =
new Stream... | [["-", 8, 57, 64, 1, 0, 11, 12, 241, 0, 29], ["+", 8, 57, 64, 1, 0, 11, 12, 223, 0, 29], ["-", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 70], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 31, 22], ["-", 0, 227, 39, 224, 225, 226, 0, 1... | 8 | 1,842 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Common;
public static class Common {
public static int BinSearchIndex<T>(T v, IEnumerable<T> list)
where T : IComparable {
int minRange = 0;
int maxRange = list.Count();
while (minRange != maxRange) {
var center =... | using System;
using System.Collections.Generic;
using System.Linq;
using static Common;
public static class Common {
public static int BinSearchIndex<T>(T v, IEnumerable<T> list)
where T : IComparable {
int minRange = 0;
int maxRange = list.Count();
while (minRange != maxRange) {
var center =... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["-"... | 8 | 278 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace cs {
public class Program {
public static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var currentLine = new int[N + 1];
currentLine[1] = int.MinValue;
var currentMin = int.MaxValue;
int cnt = 1;
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace cs {
public class Program {
public static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var input = new int[N];
var currentLine = new int[N + 1];
currentLine[1] = int.MinValue;
var currentMin = int.... | [["+", 8, 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, 227, 0, 228], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 70], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 212, 0, 227, 39, 224, ... | 8 | 293 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Convert;
using static System.Math;
// using Debug;
// using static System.Globalization.CultureInfo;
using System.Text;
class Program {
static void Main(string[] args) {
var sw =
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Convert;
using static System.Math;
// using Debug;
// using static System.Globalization.CultureInfo;
using System.Text;
class Program {
static void Main(string[] args) {
var sw =
... | [["+", 64, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213,... | 8 | 1,122 |
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, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 31, 204, 205, 22], ["+", 31, 23, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 23, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 15, 16, 12, 16, 31, 23, 0, 16,... | 8 | 1,264 |
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, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 0, 57, 75, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 57, 75, 57, 64, 196, 0, 37, 0, 38], ["+", 0, 57, 75, 57, 64, 196, 0, 37, 0, 35], ["+", 64,... | 8 | 1,322 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static _20200313.Agc035_A.Cin;
using static _20200313.Agc035_A.Util;
using Pair = _20200313.Agc035_A.VTuple<long, long>;
using Graph =
System.Collections.Generic.List<System.Collections.Generic.List<long>>;
using Syst... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static _20200313.Agc035_A.Cin;
using static _20200313.Agc035_A.Util;
using Pair = _20200313.Agc035_A.VTuple<long, long>;
using Graph =
System.Collections.Generic.List<System.Collections.Generic.List<long>>;
using Syst... | [["+", 75, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 16, 31, 204, 205, 22], ["+", 0, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 12, 16, 31, 23, 0, 16, 31, 1... | 8 | 2,429 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using ll = System.Int64;
public class Contest {
static void Swap1<T>(ref T a, ref T b) {
T t = a;
a = b;
b = t;
}
static void Swap2<T>(ref T a, ref T b)
where T : ICompa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using ll = System.Int64;
public class Contest {
static void Swap1<T>(ref T a, ref T b) {
T t = a;
a = b;
b = t;
}
static void Swap2<T>(ref T a, ref T b)
where T : ICompa... | [["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 22], ["+", 64, 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, 196, 0, 57, 64, 196, 0, 197, 0, 35], ["+", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32... | 8 | 2,580 |
using System;
namespace question1 {
class Program {
static void Main(string[] args) {
int largeN;
largeN = int.Parse(Console.ReadLine());
string[] str = Console.ReadLine().Split(' ');
int a = -1;
int b = -1;
int c = -1;
//本当に 3 種類か?
foreach (string tempstr in str) {
int test = i... | using System;
namespace question1 {
class Program {
static void Main(string[] args) {
int largeN;
largeN = int.Parse(Console.ReadLine());
string[] str = Console.ReadLine().Split(' ');
int a = -1;
int b = -1;
int c = -1;
//本当に 3 種類以内か?
foreach (string tempstr in str) {
int test ... | [["+", 8, 196, 0, 57, 75, 57, 64, 196, 0, 45], ["+", 0, 57, 75, 57, 64, 196, 0, 57, 0, 121], ["+", 0, 57, 75, 57, 64, 196, 0, 57, 0, 24], ["+", 75, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 75, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["+", 75, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 57, 75, 57, 64, 196, 0, 57, 0, ... | 8 | 384 |
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;
using static System.Math;
using Debug = System.Diagnostics.Debug;
using MethodImplOptions = System.Runtime.CompilerServices.MethodIm... | 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;
using static System.Math;
using Debug = System.Diagnostics.Debug;
using MethodImplOptions = System.Runtime.CompilerServices.MethodIm... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["+", 0, 212, 0, 214, 205, 213,... | 8 | 355 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.NetworkInformation;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
using Extensions;
using static System.Math;
using static Extensions.MathExtension;
using static Extensions.ConsoleInputE... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.NetworkInformation;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
using Extensions;
using static System.Math;
using static Extensions.MathExtension;
using static Extensions.ConsoleInputE... | [["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 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, 211, 0, 147], ["+", 64, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 0, 57, 64, 196, 0, 1, 0, 213, 63, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24],... | 8 | 2,427 |
using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine().Split(' ');
var a = new int[n];
int ashurui = 1;
a[0] = int.Parse(s[0]);
var savedas = new int[3] { a[0], 0, 0 };
var anum = new int[3... | using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine().Split(' ');
var a = new int[n];
int ashurui = 1;
a[0] = int.Parse(s[0]);
var savedas = new int[3] { a[0], 0, 0 };
var anum = new int[3... | [["+", 0, 28, 0, 41, 15, 16, 31, 204, 205, 22], ["+", 0, 41, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 41, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101... | 8 | 450 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
using static System.Console;
using static System.Math;
using static Func;
class Z {
static void Main() => new K();
}
class K {
int F =... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
using static System.Console;
using static System.Math;
using static Func;
class Z {
static void Main() => new K();
}
class K {
int F =... | [["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["-", 0, 270, 8, 201, 0, 124, 0, 198, 0, 21], ["+", 0, 208, 0, 270, 8, 201, 0, 124, 0, 35], ["+", 0, 270, 8, 201, 0, 124, 0, 251, 0, 259], ["+", 0, 270, 8, 201, 0, 124, 0, 251, 0, 262], ["+", 0, 270, 8, 201, 0, 124, 0, 198,... | 8 | 1,516 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC145A {
class Program {
static void Main(string[] args) {
int a, b, c, x;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
c =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC145A {
class Program {
static void Main(string[] args) {
int a, b, c, x;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
c =... | [["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 95], ["+", 75, 57, 75, 1, 0, 213, 63, 214, 205, 22], ["+", 75, 57, 75, 1, 0, 213, 63, 214, 0, 131], ["+", 75, 57, 75, 1, 0, 213, 63, 214, 141, 22], ["+", 75, 57, 75, 1, 0, 213, 3, 4, 0, 24], ["+", 75, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 75, 57, 75, 1, 0, 213, 3, 4, 0, 25], ["+... | 8 | 146 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC133 {
class Program {
static void Main(string[] args) {
int a, b, c;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
c = int.P... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC133 {
class Program {
static void Main(string[] args) {
int a, b, c;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
c = int.P... | [["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 95], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 24], ["+", 75, 57, 75, 57, 15, 16, 31, 23, 0, 24], ["+", 75, 57, 15, 16, 31, 23, 0, 16, 31, 22], ["+", 75, 57, 15, 16, 31, 23, 0, 16, 17, 48], ["+", 75, 57, 15, 16, 31, 23, 0, 16, 12, 22],... | 8 | 152 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
public class Remainder {
static public void Main() {
var HW = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
var N = HW[0];
var A = HW[1];
var B = HW[2];
if (N * A <= B) {
Console.Wr... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
public class Remainder {
static public void Main() {
var HW = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
var N = HW[0];
var A = HW[1];
var B = HW[2];
if (N * A <= B) {
Console.Wr... | [["-", 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, 48], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 0, 1, 0, 213, ... | 8 | 164 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC133A {
class Program {
static void Main(string[] args) {
var word = Console.ReadLine().Split(' ');
int N = int.Parse(word[0]);
int A = int.Parse(word[1]);
int B = int.Parse... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC133A {
class Program {
static void Main(string[] args) {
var word = Console.ReadLine().Split(' ');
int N = int.Parse(word[0]);
int A = int.Parse(word[1]);
int B = int.Parse... | [["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 95], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 24], ["+", 75, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["+", 75, 57, 75, 57, 15, 16, 31, 16, 17, 48], ["+", 75, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 17, 6... | 8 | 144 |
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 n, a, b;
var word = Console.ReadLine().Split(' ');
n = int.Parse(word[0]);
a = int.Parse(word[1]);
b = int... | 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 n, a, b;
var word = Console.ReadLine().Split(' ');
n = int.Parse(word[0]);
a = int.Parse(word[1]);
b = int... | [["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 95], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 24], ["+", 75, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["+", 75, 57, 75, 57, 15, 16, 31, 16, 17, 48], ["+", 75, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 17, 6... | 8 | 144 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_133A {
class Program {
static void Main(string[] args) {
int a, b, c;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
c = i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_133A {
class Program {
static void Main(string[] args) {
int a, b, c;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
c = i... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 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, 48], ["+", 0, 213, 3, 4, 0,... | 8 | 140 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
//仕事を登録する辞書
Dictionary<int, int> jobs = new Dictionary<int, int>();
//仕事をした合計時間
int time... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
//仕事を登録する辞書
Dictionary<int, int> jobs = new Dictionary<int, int>();
//仕事をした合計時間
int time... | [["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["+", 0, 198, 39, 236, 237, 238, 0, 236, 141, 22], ["+", 39, 236, 237, 238, 0, 236, 237, 238, 0, 18], ["+", 39, 236, 237, 238, 0, 236, 237, 238, 0, 199], ["+", 39, 236, 237, 238, 0, 236, 237, 238, 0, 21], ["+", 39, 236, 2... | 8 | 245 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var AB = sc.ReadTupArray_int2(N);
var ok = true;
var now = 0;
for (int i = 0; i < N; i++) {
now += AB[i].Item1;
if (now > AB[i].Item2) {
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var AB = sc.ReadTupArray_int2(N);
AB = AB.OrderBy(ab => ab.Item2).ToArray();
var ok = true;
var now = 0;
for (int i = 0; i < N; i++) {
now += AB[i]... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 2... | 8 | 943 |
using System;
using System.Collections.Generic; // list用
using System.Text; // StringBuilder用
using System.Collections;
using System.Linq;
class Program {
static List<int> A = new List<int>();
static List<int> B = new List<int>();
static decimal result;
static Hashtable ht = new Hashtable();
st... | using System;
using System.Collections.Generic; // list用
using System.Text; // StringBuilder用
using System.Collections;
using System.Linq;
class Program {
static List<int> A = new List<int>();
static List<int> B = new List<int>();
static decimal result;
static Hashtable ht = new Hashtable();
st... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["+", 0, 57, 15, 16, 12, 16, 12, 204, 205, 22], ["+"... | 8 | 508 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace CsTest {
public class Program {
public class Comparer : IComparer<int[]> {
public int Compare(int[] x, int[] y) => x[1] - y[1];
}
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine().Trim());
int[][] works... | using System;
using System.Collections.Generic;
using System.Linq;
namespace CsTest {
public class Program {
public class Comparer : IComparer<int[]> {
public int Compare(int[] x, int[] y) => x[1] - y[1];
}
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine().Trim());
int[][] works... | [["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["-", 0, 1, 0, 11, 12, 204, 205, 204, 205, 22], ["-", 0, 11, 12, 204, 205, 204, 206, 207, 0, 70], ["-", 12, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 11, 12, 204, 205, 204, 206, 207, 0, 73], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["-", 0, 11, 12, 204, 206, 207,... | 8 | 257 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using Extensions;
using static System.Math;
using static Extensions.MathExtension;
using static Extensions.ConsoleInputExtension;
using static Extensions.ConsoleOutputExtension;
class Solver {
publ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using Extensions;
using static System.Math;
using static Extensions.MathExtension;
using static Extensions.ConsoleInputExtension;
using static Extensions.ConsoleOutputExtension;
class Solver {
publ... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8... | 8 | 1,802 |
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, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 36... | 8 | 3,329 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ProgramingStudying2 {
class Program {
static void Main(string[] args) {
var nx = Console.ReadLine().Split().Select(int.Parse).ToArray();
var n = nx[0];
var x = nx[1];
var l = Console.ReadLine().Split().Select(int.Parse).ToA... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ProgramingStudying2 {
class Program {
static void Main(string[] args) {
var nx = Console.ReadLine().Split().Select(int.Parse).ToArray();
var n = nx[0];
var x = nx[1];
var l = Console.ReadLine().Split().Select(int.Parse).ToL... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 1... | 8 | 145 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class Program {
static void Main(string[] args) {
var NX = ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var (N, X) = (NX[0], NX[1]);
var L = ReadLine().Split(' ').Select(s => int.Parse(s)).ToArra... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class Program {
static void Main(string[] args) {
var NX = ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var (N, X) = (NX[0], NX[1]);
var L = ReadLine().Split(' ').Select(s => int.Parse(s)).ToArra... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 57, 64, 93, 0, 94], ["-", 0, 7, 8, 196, 0, 57, 64, 93, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 20... | 8 | 164 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting;
using System.Security.Cryptography;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var n = ReadLineIntSpilit();
var l = ReadLineIntSpilit();
var dis = 0;
var count = 0;
for (i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting;
using System.Security.Cryptography;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var n = ReadLineIntSpilit();
var l = ReadLineIntSpilit();
var d = 0;
var count = 1;
for (int... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 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, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17... | 8 | 770 |
using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int X = int.Par... | using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int X = int.Par... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 196, 0, 45], ["-", 0, 195, 8, 196, 0, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 0, 196, 0, 52, 15, 16, 31, 16, 31, 22], ["-", 0, 196, 0, 52, 15, 16, 31, 16, 17, 19]... | 8 | 224 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.