buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k | change_count int64 0 100 |
|---|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
static void Main(string[] args) {
SolveA();
// SolveB();
// SolveC();
// SolveD();
}
private const long MOD = 1000000007;
static void SolveA() {
int n = ReadAndParseInt... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
static void Main(string[] args) {
SolveA();
// SolveB();
// SolveC();
// SolveD();
}
private const long MOD = 1000000007;
static void SolveA() {
int n = ReadAndParseInt... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, ... | 8 | 418 | 11 |
using System;
using System.Collections.Generic;
using System.Linq;
static class MainClass {
public struct City {
public long num;
public long year;
public int ID;
public City(long n, long y, int i) {
num = n;
year = y;
ID = i;
}
}
public static void Main(string[] args) {
... | using System;
using System.Collections.Generic;
using System.Linq;
static class MainClass {
public struct City {
public long num;
public long year;
public int ID;
public City(long n, long y, int i) {
num = n;
year = y;
ID = i;
}
}
public static void Main(string[] args) {
... | [["-", 3, 4, 0, 28, 0, 218, 8, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 214, 141, 22], ["+", 8, 196, 0, 210, 8, 196, 0, 1, 0, 35], ["+", 0, 210, 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, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 214, 0, 131], ["+", 8... | 8 | 356 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSharp_AtCoder {
class Program {
static void Main(string[] args) {
int[] NM =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int N = NM[0];
int M = N... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSharp_AtCoder {
class Program {
static void Main(string[] args) {
int[] NM =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int N = NM[0];
int M = N... | [["+", 0, 210, 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, 214, 205, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 8, 196, 0, 210, 8, 196, 0, 1... | 8 | 414 | 22 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace _0030 {
struct ID {
internal int ken;
internal int rank;
}
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int n = int.Parse(str[0]);
int m = int.Parse(str[1]);
var an... | using System;
using System.Linq;
using System.Collections.Generic;
namespace _0030 {
struct ID {
internal int ken;
internal int rank;
}
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int n = int.Parse(str[0]);
int m = int.Parse(str[1]);
var an... | [["-", 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, 283, 0, 295], ["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 45], ["-", ... | 8 | 435 | 24 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Console;
using static System.Math;
namespace CP {
class Atria {
static void Main(string[] args) {
int[] nm = ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = nm[0];
int m =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Console;
using static System.Math;
namespace CP {
class Atria {
static void Main(string[] args) {
long[] nm = ReadLine().Split(' ').Select(long.Parse).ToArray();
long n = nm[0];
long... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 1... | 8 | 370 | 32 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using System.Runtime.CompilerServices;
using static MyUtil;
class MyUtil {
public static int[] ReadIntArray() {
return ReadLine().Split().Select(x => int.Parse(x)).ToArray();
}
}
class Bisect {
public static int ... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using System.Runtime.CompilerServices;
using static MyUtil;
class MyUtil {
public static int[] ReadIntArray() {
return ReadLine().Split().Select(x => int.Parse(x)).ToArray();
}
}
class Bisect {
public static int ... | [["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 241, 0, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 241, 0, 203], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 469 | 21 |
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 m = 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 m = input[1];... | [["+", 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, 21], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 24], ["+", 0, 28... | 8 | 345 | 31 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
var strs = str.Split(' ');
var N = int.Parse(strs[0]);
var M = int.Parse(strs[1]);
var PY = new List<List<int>>();
for (in... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
var strs = str.Split(' ');
var N = int.Parse(strs[0]);
var M = int.Parse(strs[1]);
var PY = new List<List<int>>();
for (in... | [["+", 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, 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, ... | 8 | 351 | 10 |
using System;
class City {
public int i, p, y, b;
public City(int i, int p, int y) {
this.i = i;
this.p = p;
this.y = y;
}
}
class Program {
static void Main(string[] args) {
var nm = Console.ReadLine().Split(' ');
var n = int.Parse(nm[0]);
var m = int.Parse(nm[1]);
var cities = ... | using System;
class City {
public int i, p, y, b;
public City(int i, int p, int y) {
this.i = i;
this.p = p;
this.y = y;
}
}
class Program {
static void Main(string[] args) {
var nm = Console.ReadLine().Split(' ');
var n = int.Parse(nm[0]);
var m = int.Parse(nm[1]);
var cities = ... | [["+", 0, 218, 8, 41, 15, 16, 31, 214, 141, 22], ["+", 0, 28, 0, 218, 8, 41, 15, 16, 17, 60], ["+", 0, 218, 8, 41, 15, 16, 12, 214, 205, 22], ["+", 0, 218, 8, 41, 15, 16, 12, 214, 0, 131], ["+", 0, 218, 8, 41, 15, 16, 12, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 41, 0, 101], ["+", 0, 218, 8, 41, 64, 16, 31, 214, 20... | 8 | 355 | 23 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC113C {
static class MainClass {
public static void Main(string[] args) {
string[] input1 = Console.ReadLine().Split(' ');
int N = int.Parse(input1[0]);
int M = int.Parse(input1[1]);
// 2 11
// 1 3
// 1 5
/... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC113C {
static class MainClass {
public static void Main(string[] args) {
string[] input1 = Console.ReadLine().Split(' ');
int N = int.Parse(input1[0]);
int M = int.Parse(input1[1]);
int[][] PY = new int [M][];
for... | [["-", 8, 201, 0, 195, 8, 196, 0, 210, 0, 266], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 0, 24], ["-", 0, 195, 8, 196, 0, 210, 39, 224, 39, 199], ["-", 8, 196, 0, 210, 39, 224, 225, 226, 0, 70], ["-", 8, 196, 0, 210, 39, 224, 225, 226, 0, 73], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["-", 8, 201, 0, 195, 8, 196, 0,... | 8 | 485 | 30 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CS.Solve {
class Program {
static void Main(string[] args) {
var NM = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
List<int[]> x = new List<int[]>();
forea... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CS.Solve {
class Program {
static void Main(string[] args) {
var NM = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
List<int[]> x = new List<int[]>();
forea... | [["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 2... | 8 | 303 | 22 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// Submission #3535255 - AtCoder Beginner Contest 113 | AtCoder
// https://abc113.contest.atcoder.jp/submissions/3535255
public class Program_ABC113_C_kuuso1 {
public static void Main() {
int N, M;
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// Submission #3535255 - AtCoder Beginner Contest 113 | AtCoder
// https://abc113.contest.atcoder.jp/submissions/3535255
public class Program_ABC113_C_kuuso1 {
public static void Main() {
int N, M;
... | [["+", 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], ["+", 0, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 0, 218, 8, 213, 63, 214, 205, 204, 205, 22], ["+", 8, 213, 63, 214, 205, 204, 206, 207, 0, 70... | 8 | 362 | 18 |
using System;
using System.Linq;
using System.Collections.Generic;
class MondaiC {
static void Main() {
var line =
Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray();
var N = line[0];
var M = line[1];
var index = new int[M];
var city = new long[M];
var pri = new int[M... | using System;
using System.Linq;
using System.Collections.Generic;
class MondaiC {
static void Main() {
var line =
Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray();
var N = line[0];
var M = line[1];
var index = new int[M];
var city = new long[M];
var pri = new int[M... | [["+", 0, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["+", 206, 207, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 206, 207, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73]] | 8 | 288 | 9 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AtCoder.ABC113.B {
class Program {
static void Main() {
var sc = new Scanner();
var n = sc.Nextint();
var m = sc.Nexti... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AtCoder.ABC113.C {
class Program {
static void Main() {
var sc = new Scanner();
var n = sc.Nextint();
var m = sc.Nexti... | [["-", 36, 36, 0, 208, 0, 209, 141, 232, 141, 22], ["+", 36, 36, 0, 208, 0, 209, 141, 232, 141, 22], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 225, 226, 0, 16, 31, 213, 63, 214, 205, 22], ["+", 225, 226, 0, 16, 31, 213, 63, 214, 0, 131], ["+", 225, 226, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 225, 226, 0,... | 8 | 700 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using System.Runtime.CompilerServices;
using static MyUtil;
class MyUtil {
public static long[] ReadLongArray() {
return ReadLine().Split().Select(x => long.Parse(x)).ToArray();
}
}
class Program {
static long[] ... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using System.Runtime.CompilerServices;
using static MyUtil;
class MyUtil {
public static long[] ReadLongArray() {
return ReadLine().Split().Select(x => long.Parse(x)).ToArray();
}
}
class Program {
static long[] ... | [["-", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["+", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["-", 0, 11, 12, 16, 31, 16, 31, 204, 205, ... | 8 | 333 | 39 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using System.Runtime.CompilerServices;
using static MyUtil;
class MyUtil {
public static long[] ReadLongArray() {
return ReadLine().Split().Select(x => long.Parse(x)).ToArray();
}
}
class Program {
static long[] ... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using System.Runtime.CompilerServices;
using static MyUtil;
class MyUtil {
public static long[] ReadLongArray() {
return ReadLine().Split().Select(x => long.Parse(x)).ToArray();
}
}
class Program {
static long[] ... | [["+", 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, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 37, 0, 38], ["+", 0, 195, 8, 196, 0, 57, 64, 37, 0, 203], ["+", 0, 195, 8, 196, 0, 57, 64, 37, 0, 35],... | 8 | 333 | 25 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
private static long[] data;
private static long[] Pdata;
public struct Pair<T> {
public T x, y;
public Pair(T x, T y) {
this.x = x;
this.y = y;
... | using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
private static long[] data;
private static long[] Pdata;
public struct Pair<T> {
public T x, y;
public Pair(T x, T y) {
this.x = x;
this.y = y;
... | [["+", 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, 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, ... | 8 | 691 | 40 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var nx = Array.ConvertAll(ReadLine().Split(' '), long.Parse);
WriteLine(Get(nx[0], nx[1]));
}
private st... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var nx = Array.ConvertAll(ReadLine().Split(' '), long.Parse);
// for (var i = 1; i <= 13; i++) WriteLine(Get... | [["+", 0, 57, 64, 37, 0, 41, 15, 16, 31, 22], ["+", 0, 57, 64, 37, 0, 41, 15, 16, 17, 19], ["+", 0, 57, 64, 37, 0, 41, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 37, 0, 41, 0, 101], ["+", 8, 196, 0, 57, 64, 37, 0, 41, 0, 102], ["+", 8, 196, 0, 57, 64, 37, 0, 41, 75, 203], ["+", 0, 57, 15, 16, 12, 16, 31, 74, 0, 24], ["... | 8 | 214 | 12 |
using System;
namespace ABC115_D___Christmas {
class Program {
static long[] burger;
static long[] patty;
static void Main(string[] args) {
var NX = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
var N = NX[0];
var X = NX[1];
burger = new long[N + 1];
burger[0] = 1;
for (in... | using System;
namespace ABC115_D___Christmas {
class Program {
static long[] burger;
static long[] patty;
static void Main(string[] args) {
var NX = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
var N = NX[0];
var X = NX[1];
burger = new long[N + 1];
burger[0] = 1;
for (in... | [["+", 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], ["+", 8, 196, 0, 57, 15, 16, 12, 204, 205, 22], ["+", 0, 57, 15, 16, 12, 204, 206, 207, 0, 70], ["+", 15, 16, 12, 204, 206, 207, 0, 28, ... | 8 | 265 | 15 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using static MyIO;
public class D {
public static void Main() {
int N = GetInt();
long X = GetLong();
long[] numP = new long[N + 1];
long[] numTotal = new long[N + 1];
numP[0] = 1L;
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using static MyIO;
public class D {
public static void Main() {
int N = GetInt();
long X = GetLong();
long[] numP = new long[N + 1];
long[] numTotal = new long[N + 1];
numP[0] = 1L;
... | [["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 203], ["+", 64, 196, 0, 37, 0, 41, 15, 23, 0, 24], ["+", 0, 37, 0, 41, 15, 23, 0, 16, 31, 22], ["+", 0, 37, 0, 41, 15, 23, 0, 16, 17, 60], ["+", 0, 37, 0, 41, 15, 23, 0, 16, 12, 203], ["+", 64, 196, 0, 37, 0, 41, 15, 23, 0, 25], ["+", 0, 57, 64, 196, 0, 37, 0, 41, 0, 101], ["+",... | 8 | 511 | 10 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int N = int.Parse(str[0]);
long X = long.Parse(str[1]);
long[] P = new long[51];
long[] B = new long[51];
P[0] = 1;
B[0] = 0;
for (var i = 1; i <... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int N = int.Parse(str[0]);
long X = long.Parse(str[1]);
long[] P = new long[51];
long[] B = new long[51];
P[0] = 1;
B[0] = 0;
for (var i = 1; i <... | [["+", 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, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 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], [... | 8 | 381 | 13 |
using System;
using System.Collections.Generic;
using System.Text;
namespace AtTest.ABC_115 {
class D {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
long[] nx = ReadLongs();
long n = nx[0];
long x = nx[1];
v... | using System;
using System.Collections.Generic;
using System.Text;
namespace AtTest.ABC_115 {
class D {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
long[] nx = ReadLongs();
long n = nx[0];
long x = nx[1];
v... | [["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 0, 28, 0, 16, 12, 204, 205, 204, 205, 22], ["-", 0, 16, 12, 204, 205, 204, 206, 207, 0, 70], ["-", 12, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 16, 12, 204, 205, 204, 206,... | 8 | 522 | 10 |
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Contexts;
using System.Text;
using System.Threading;
using System.Xml.Schema;
namespace Contest {
class Scanner {... | using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Contexts;
using System.Text;
using System.Threading;
using System.Xml.Schema;
namespace Contest {
class Scanner {... | [["-", 64, 196, 0, 37, 0, 16, 31, 213, 63, 22], ["-", 0, 37, 0, 16, 31, 213, 3, 4, 0, 24], ["+", 64, 196, 0, 37, 0, 16, 31, 204, 205, 22], ["+", 0, 37, 0, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 31, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["-", 0, 37, 0, 16, 31, 213, 3, 4, 0, 21], ["... | 8 | 694 | 12 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC114A {
class Program {
static void Main(string[] args) {
int X;
string b;
var word = Console.ReadLine().Split(' ');
X = int.Parse(word[0]);
if (X == 3 || X == 5 || X ==... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC114A {
class Program {
static void Main(string[] args) {
int X;
var word = Console.ReadLine().Split(' ');
X = int.Parse(word[0]);
if (X == 3 || X == 5 || X == 7) {
C... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 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, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, ... | 8 | 124 | 4 |
using System;
using System.Collections.Generic;
using static System.Console;
using System.Linq;
class Program {
static void Main(string[] Args) {
int X = Int32.Parse(ReadLine());
if (X == 3 && X == 5 && X == 7) {
WriteLine("Yes");
return;
}
WriteLine("NO");
}
} | using System;
using System.Collections.Generic;
using static System.Console;
using System.Linq;
class Program {
static void Main(string[] Args) {
var X = Int32.Parse(ReadLine());
if (X == 3 || X == 5 || X == 7) {
WriteLine("YES");
return;
}
WriteLine("NO");
ReadLine();
}
} | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 106], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 2... | 8 | 80 | 12 |
using System;
class Program {
static void Main(string[] args) {
int age = int.Parse(Console.ReadLine());
if (age % 3 == 0 || age % 5 == 0 || age % 7 == 0) {
Console.Write("YES");
} else {
Console.Write("NO");
}
}
} | using System;
class Program {
static void Main(string[] args) {
int age = int.Parse(Console.ReadLine());
if (age == 3 || age == 5 || age == 7) {
Console.Write("YES");
} else {
Console.Write("NO");
}
}
} | [["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["-", 15, 16, 31, 16, 12, 16, 31, 16, 17, 109], ["-", 15, 16, 31, 16, 12, 16, 31, 16, 12, 203], ["-", 0, 57, 15, 16, 31, 16, 12, ... | 8 | 75 | 12 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace A {
class Program {
static void Main(string[] args) {
int X = int.Parse(Console.ReadLine());
if (X == 3 || X == 5 || X == 7) {
Console.Write("Yes");
} else {
Console.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace A {
class Program {
static void Main(string[] args) {
int X = int.Parse(Console.ReadLine());
if (X == 3 || X == 5 || X == 7) {
Console.Write("YES");
} else {
Console.... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 20... | 8 | 97 | 10 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
//入力
// int[] input = Console.ReadLine().Split().Select(i =>
// int.Parse(i)).ToArray(); string input= Console.ReadLine(); int input
// =int.Pa... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
//入力
// int[] input = Console.ReadLine().Split().Select(i =>
// int.Parse(i)).ToArray(); string input= Console.ReadLine(); int input
// =int.Pa... | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 126 | 8 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace B {
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 B {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | [["-", 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, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], [... | 8 | 151 | 11 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC099 {
class Program {
static void Main(string[] args) {
List<string> list = new List<string>();
while (true) {
string line = Console.ReadLine();
if (line == null)
break;
list.Add(line);
}
int an... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC099 {
class Program {
static void Main(string[] args) {
List<string> list = new List<string>();
while (true) {
string line = Console.ReadLine();
if (line == null)
break;
list.Add(line);
}
int an... | [["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 25], ["+", 8, 196, 0, 57, 75, 57, 64, 196, 0, 45], ["+", 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, ... | 8 | 310 | 18 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using static System.Console;
using static System.Math;
class AC {
void Solve() {
var abc = new int[] { 111, 222, 333, 444, 555, 666, 777, 888, ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using static System.Console;
using static System.Math;
class AC {
void Solve() {
var abc =
new int[] { 111, 222, 333, 444, 555, 666, 7... | [["+", 0, 200, 0, 212, 0, 227, 0, 229, 0, 21], ["+", 0, 212, 0, 227, 0, 229, 0, 241, 0, 33], ["+", 0, 212, 0, 227, 0, 229, 0, 241, 0, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["-"... | 8 | 435 | 22 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var ans = -1;
for (int i = 1; i <= 8; i++) {
var low = i * 100 + i * 10 + i * 1;
var high = (i + 1) * 100 + (i + 1) * 10 + (i + 1) * 1;
... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var ans = -1;
for (int i = 1; i <= 8; i++) {
var low = i * 100 + i * 10 + i * 1;
var high = (i + 1) * 100 + (i + 1) * 10 + (i + 1) * 1;
... | [["+", 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], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57,... | 8 | 151 | 14 |
using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine());
var ans = (n / 111 + 1) * 111;
Console.WriteLine(ans);
}
}
| using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine());
var ans = (n % 111 == 0) ? n : (n / 111 + 1) * 111;
Console.WriteLine(ans);
}
}
| [["+", 0, 41, 15, 23, 0, 16, 31, 16, 17, 109], ["+", 0, 41, 15, 23, 0, 16, 31, 16, 12, 203], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 17, 60], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 41, 15, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 101], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 64, 22],... | 8 | 50 | 10 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
namespace AtCoder {
class Program {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
static public List<long> Slist() {
return ReadL... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
namespace AtCoder {
class Program {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
static public List<long> Slist() {
return ReadL... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 10... | 8 | 478 | 47 |
using System;
using System.Linq;
class C {
static void Main(string[] args) {
Console.ReadLine();
var vals = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var odd = vals.Where((i, p) => i % 2 != 0)
.GroupBy(p => p)
.OrderBy(p => -p.Count())
... |
using System;
using System.Linq;
class C {
static void Main(string[] args) {
Console.ReadLine();
var vals = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var odd = vals.Where((p, i) => i % 2 != 0)
.GroupBy(p => p)
.OrderBy(p => -p.Count())
... | [["-", 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, 21], ["+", 0, 28, 0, 218, 54, 55, 0, 220, 141, 22], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 63, 214, 205, 213, 3, 4, 0, 28, 0,... | 8 | 267 | 22 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var v = new int[n];
var inputs = Console.ReadLine().Split(' ');
var oddCounts = new Dictionary<int, int>();
var evenCounts = new Dictionary<i... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var v = new int[n];
var inputs = Console.ReadLine().Split(' ');
var oddCounts = new Dictionary<int, int>();
var evenCounts = new Dictionary<i... | [["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["-", 0, 210, 8, 196, 0, 210, 8, 196, 0, 46], ["-", 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]... | 8 | 499 | 13 |
using System;
using System.Diagnostics;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
int[] v = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray();
Dictionary<int, int> o = new Dictionary<int, int>();
Dict... | using System;
using System.Diagnostics;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
int[] v = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray();
Dictionary<int, int> o = new Dictionary<int, int>();
Dict... | [["-", 3, 4, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 33], ["+", 0, 28, 0, 16, 31, 16, 12, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 16, 12, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 16, 12, 214, 205, 22]] | 8 | 345 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
int n = int.Parse(System.Console.ReadLine().Trim());
int[] line = Array.ConvertAll(System.Console.ReadLine().Trim().Split(' '),
int.Parse);... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
int n = int.Parse(System.Console.ReadLine().Trim());
int[] line = Array.ConvertAll(System.Console.ReadLine().Trim().Split(' '),
int.Parse);... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 31, 204, 205, 213, 63, 214, 205, 214, 205, 22], ["+", 31, 204, 205, 213, 63, 214, 205, 214, 0, 131], ["+", 31, 204, 205, 213, 63, 214, 205, 214, 141, 22], ["+", 15, 16, 31, 204, 205, 213, 63, 214, 0, 131], ["+", 15, 16, 31, 204, 205, 213, 63, 214, 141, 22], ["+", 15,... | 8 | 512 | 22 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder_BeginerContest {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string str = Console.ReadLine();
var progression = str.Split(' ').Select(int.Parse);
var twoProgressions =
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder_BeginerContest {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string str = Console.ReadLine();
var progression = str.Split(' ').Select(int.Parse);
var twoProgressions =
... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 31,... | 8 | 530 | 23 |
using System;
using System.Text;
public class Program {
public void Solve() {
var sc = new Scanner();
string s = sc.Next();
// 一辺取って片方がサイズiの木
// 残りはサイズN-iの木
// 絶対にサイズ1は作れなきゃいけない
// 絶対にサイズNは作れない
int n = s.Length;
var flag = new bool[n + 1];
for (int i = 0; i < n; i++) {
flag... | using System;
using System.Text;
public class Program {
public void Solve() {
var sc = new Scanner();
string s = sc.Next();
// 一辺取って片方がサイズiの木
// 残りはサイズN-iの木
// 絶対にサイズ1は作れなきゃいけない
// 絶対にサイズNは作れない
int n = s.Length;
var flag = new bool[n + 1];
for (int i = 0; i < n; i++) {
flag... | [["+", 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, 204, 205, 22], ["+", 8, 196, 0, 57, 15, 204, 206, 207, 0, 70], ["+", 0, 57, 15, 204, 206, 207, 0, 28, 0, 22], ["+", 8, 196, 0, 57, 15, 204, 206, 207, 0, 73], ["+", 8, 201, 0, 195, 8, 196, 0, 57, ... | 8 | 647 | 19 |
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using Debug = System.Diagnostics.Debug;
using System.Runtime.CompilerServices;
using static System.M... | using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using Debug = System.Diagnostics.Debug;
using System.Runtime.CompilerServices;
using static System.M... | [["+", 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, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 799 | 17 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using static System.Console;
using static System.Convert;
using static System.Math;
using static Template;
using Pi = Pair<int, i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using static System.Console;
using static System.Convert;
using static System.Math;
using static Template;
using Pi = Pair<int, i... | [["+", 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, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 213, 63, 22],... | 8 | 2,555 | 11 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AtCoder {
public class ABC {
static int mod = 1000000007; // 10^9+7
static void Main(string[] args) {
Console.SetOut(
new StreamWriter(Console.OpenStan... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AtCoder {
public class ABC {
static int mod = 1000000007; // 10^9+7
static void Main(string[] args) {
Console.SetOut(
new StreamWriter(Console.OpenStan... | [["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 21], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22], ["... | 8 | 490 | 9 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
long mod = 1000000007;
string[] input = Console.ReadLine().Split(' ');
int h = int.Parse(input[0]);
int w = int.Parse(input[1]);
int k = int.Parse(inpu... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
long mod = 1000000007;
string[] input = Console.ReadLine().Split(' ');
int h = int.Parse(input[0]);
int w = int.Parse(input[1]);
int k = int.Parse(inpu... | [["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 21], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22], ["... | 8 | 744 | 9 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
public class Program {
static int mod = 1000000007;
public static void Main(string[] args) {
var line = Scanner.StringList;
int H = line[0].Int();
int W = line[... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
public class Program {
static int mod = 1000000007;
public static void Main(string[] args) {
var line = Scanner.StringList;
int H = line[0].Int();
int W = line[... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 19], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 18], ["-", 75, 57, 15, 16, 31, 16, 12, 16, 12,... | 8 | 1,780 | 14 |
using System;
using System.Linq;
using System.Collections.Generic;
class Bmondai {
static void Main() {
var line =
Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray();
for (int i = 0; i < line[2]; ++i) {
if (line[0] % 2 != 0)
line[0]--;
line[0] /= 2;
line[1] ... | using System;
using System.Linq;
using System.Collections.Generic;
class Bmondai {
static void Main() {
var line =
Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray();
for (int i = 1; i <= line[2]; ++i) {
if (i % 2 == 1) {
if (line[0] % 2 != 0)
line[0]--;
... | [["-", 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, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203... | 8 | 167 | 17 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static _20200219.Cin;
using static _20200219.Util;
using Pair = _20200219.VTuple<long, long>;
using Graph =
System.Collections.Generic.List<System.Collections.Generic.List<long>>;
using System.Text;
namespace _202002... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static _20200219.Cin;
using static _20200219.Util;
using Pair = _20200219.VTuple<long, long>;
using Graph =
System.Collections.Generic.List<System.Collections.Generic.List<long>>;
using System.Text;
namespace _202002... | [["+", 3, 4, 0, 28, 0, 16, 12, 204, 205, 22], ["+", 0, 28, 0, 16, 12, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 16, 12, 204, 206, 207, 0, 73], ["-", 3, 4, 0, 28, 0, 11, 0, 202, 0, 32], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46], ["+... | 8 | 2,479 | 22 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
namespace AtCoder {
class Program {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
static public List<long> S... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
namespace AtCoder {
class Program {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
static public List<long> S... | [["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, ... | 8 | 374 | 14 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Math;
using static System.Array;
using static AtCoder.Tool;
namespace AtCoder {
class AC {
const int MOD = 1000000007;
const int INF = int.MaxValue / 2;
const long SINF = long.MaxValue / 2;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Math;
using static System.Array;
using static AtCoder.Tool;
namespace AtCoder {
class AC {
const int MOD = 1000000007;
const int INF = int.MaxValue / 2;
const long SINF = long.MaxValue / 2;
... | [["-", 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], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 13... | 8 | 1,415 | 33 |
using System;
using System.Collections.Generic;
using System.Text;
public class Program {
private int N;
public void Solve() {
var sc = new Scanner();
N = sc.NextInt();
int r;
for (r = 1; (r + 1) * r / 2 < N; r++)
;
if ((r + 1) * r / 2 != N) {
Console.WriteLine("No");
retu... | using System;
using System.Collections.Generic;
using System.Text;
public class Program {
private int N;
public void Solve() {
var sc = new Scanner();
N = sc.NextInt();
int r;
for (r = 1; (r + 1) * r / 2 < N; r++)
;
if ((r + 1) * r / 2 != N) {
Console.WriteLine("No");
retu... | [["-", 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, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201... | 8 | 727 | 33 |
// デバッグ実行:Ctrl+F5
using System;
class Program {
static void Main(string[] args) {
String line;
line = Console.ReadLine();
String[] words = line.Split(' ');
int N = int.Parse(line);
int limit = (int)Math.Sqrt(N * 2) + 1;
int number = 0;
for (int i = 1; i < limit; i++) {
if (i * (i +... | // デバッグ実行:Ctrl+F5
using System;
class Program {
static void Main(string[] args) {
String line;
line = Console.ReadLine();
String[] words = line.Split(' ');
int N = int.Parse(line);
int limit = (int)Math.Sqrt(N * 2) + 1;
int number = 0;
for (int i = 1; i < limit; i++) {
if (i * (i +... | [["+", 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, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+... | 8 | 305 | 9 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using static System.Console;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(ReadLine()); }
public static long[] Reads() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
publ... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using static System.Console;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(ReadLine()); }
public static long[] Reads() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
publ... | [["+", 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, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0,... | 8 | 393 | 41 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long n = sc.NextInt();
long m = sc.NextInt();
string s = sc.Next();
string t = sc.Next();
long answer = Lcm(n, m);
long stepN = ans... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long n = sc.NextInt();
long m = sc.NextInt();
string s = sc.Next();
string t = sc.Next();
long answer = Lcm(n, m);
long stepN = ans... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["-", 0, 204, 206, 207, 0, 28, 0, 74, 0, 24], ["-", 0, 204, 206, 207, 0, 28, 0, 74, 39, 199], ["-", 0, 204, 206, 207, 0, 28, 0, 74, 0, 25], ["-", 206, 207, 0, 28, 0, 74, 51, 23, 0, 24], ["-", 0, 28, 0, 74, 51, 23, 0, 16, 31, 2... | 8 | 602 | 20 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
int[] nm = Console.ReadLine().Split().Select(int.Parse).ToArray();
int n = nm[0];
int m = nm[1];
var s = Console.ReadLine();
... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
int[] nm = Console.ReadLine().Split().Select(int.Parse).ToArray();
int n = nm[0];
int m = nm[1];
var s = Console.ReadLine();
... | [["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 85], ["+", 206, 207, 0, 28, 0, 16, 12, 74, 0, 24], ["+", 206, 207, 0, 28, 0, 16, 12, 74, 39, 199], ["+", 206, 207, 0, 28, 0, 16, 12, 74, 0, 25], ["+", 206, 207, 0, 28, 0, 16, 12, ... | 8 | 311 | 14 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[,] A = new int[N, 2];
int[][] B = new int [N * 2][];
for (var i = 0; i < N; i++) {
string[] str = Console.ReadLine().Split();
A[i, 0] = int.Parse(str... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[,] A = new int[N, 2];
int[][] B = new int [N * 2][];
for (var i = 0; i < N; i++) {
string[] str = Console.ReadLine().Split();
A[i, 0] = int.Parse(str... | [["+", 205, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 205, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 205, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 560 | 16 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main() {
IO io = new IO();
//ここから
int[] str = io.ReadLineToIntArray();
int n = str[0];
int x = str[1];
int[] a = io.ReadLineTo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main() {
IO io = new IO();
//ここから
int[] str = io.ReadLineToIntArray();
int n = str[0];
int x = str[1];
int[] a = io.ReadLineTo... | [["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["+", 75, 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, 57, 75, 196, 0, 1, 0, 35]] | 8 | 387 | 7 |
using System;
using System.Collections.Generic;
using static System.Console;
using System.Linq;
class Program {
static void Main(string[] Args) {
var Nx = new List<string>(ReadLine().Split(' '))
.Select(ele => Int32.Parse(ele))
.ToList();
var a = new List<string>(ReadLine()... | using System;
using System.Collections.Generic;
using static System.Console;
using System.Linq;
class Program {
static void Main(string[] Args) {
var Nx = new List<string>(ReadLine().Split(' '))
.Select(ele => Int32.Parse(ele))
.ToList();
var a = new List<string>(ReadLine()... | [["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["... | 8 | 177 | 29 |
using System;
using System.Collections.Generic;
using System.Linq;
using console = System.Console;
namespace AtCoderTemplate {
public class App {
public static void Main(string[] args) {
var p = int.Parse(console.ReadLine().Split()[1]);
var q = console.ReadLine()
.Split()
.Sel... | using System;
using System.Collections.Generic;
using System.Linq;
using console = System.Console;
namespace AtCoderTemplate {
public class App {
public static void Main(string[] args) {
var p = long.Parse(console.ReadLine().Split()[1]);
console.WriteLine(console.ReadLine()
.Split()... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 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, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3,... | 8 | 137 | 17 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
string N = s[0];
int x = int.Parse(s[1]);
int[] a = Console.ReadLine().Split(' ').Select(in... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
string N = s[0];
long x = long.Parse(s[1]);
long[] a = Console.ReadLine().Split(' ').Select... | [["-", 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], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 205, 213, 3, 4, 0, ... | 8 | 196 | 16 |
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 x = sc.nextInt();
var a = sc.ArrayInt(N);
a = a.OrderBy(i => i).ToArray();
var ans = 0;
for (int i = 0... | 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 x = sc.nextInt();
var a = sc.ArrayInt(N);
a = a.OrderBy(i => i).ToArray();
var ans = 0;
for (int i = 0... | [["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 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, 31, 22], ["+", ... | 8 | 509 | 30 |
using System;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
string[] input = ReadLine().Split(' ');
int kazu = int.Parse(input[0]);
string[] suji = ReadLine().Split(' ');
// int max = int.Parse(input[1]);
int[] suuji = new int[kazu]... | using System;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
string[] input = ReadLine().Split(' ');
int kazu = int.Parse(input[0]);
string[] suji = ReadLine().Split(' ');
// int max = int.Parse(input[1]);
int[] suuji = new int[kazu]... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+"... | 8 | 257 | 19 |
using System;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
const long mod = 1000000007;
// public static int[] max;
struct Point {
public int x;
public int y;
public Point(int b, int c) {
x = b;
y = c;
}
}
static void Main(string[] arg... | using System;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
const long mod = 1000000007;
// public static int[] max;
struct Point {
public int x;
public int y;
public Point(int b, int c) {
x = b;
y = c;
}
}
static void Main(string[] arg... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 15, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 16, 12, 204, 206, 207, 0, 73], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 2... | 8 | 420 | 7 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Atcoder {
class Program {
public static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int x = int.Parse(input[1]);
string[] childs = Console.ReadLine().Split(' ');
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Atcoder {
class Program {
public static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int x = int.Parse(input[1]);
string[] childs = Console.ReadLine().Split(' ');
... | [["+", 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, 79], ["+", 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 | 215 | 18 |
using System;
using System.Linq;
namespace AGC027_A {
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 a = Console.ReadLine().Split().Select(int.Parse).ToArray();
Array.Sort(a);
var c = 0;
... | using System;
using System.Linq;
namespace AGC027_A {
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 a = Console.ReadLine().Split().Select(int.Parse).ToArray();
Array.Sort(a);
var c = 0;
... | [["+", 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, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22]... | 8 | 136 | 15 |
using System;
using System.Linq;
namespace agc027_a {
class Program {
static void Main(string[] args) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
Array.Sort(a);
int ret = 0;
for (int i = 0; i < x[0] && x[1] ... | using System;
using System.Linq;
namespace agc027_a {
class Program {
static void Main(string[] args) {
long[] x = Console.ReadLine().Split().Select(long.Parse).ToArray();
long[] a = Console.ReadLine().Split().Select(long.Parse).ToArray();
Array.Sort(a);
int ret = 0;
for (int i = 0; i < x[0] && x... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 8, 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, 1... | 8 | 140 | 27 |
using System;
namespace ABC109A {
class Program {
static void Main(string[] args) {
int a, b;
string[] ss = Console.ReadLine().Split(' ');
a = int.Parse(ss[0]);
b = int.Parse(ss[1]);
if (a * b % 2 == 0)
Console.WriteLine("Yes");
else
Console.WriteLine("No");
Console.ReadKey();... | using System;
namespace ABC109A {
class Program {
static void Main(string[] args) {
int a, b;
string[] ss = Console.ReadLine().Split(' ');
a = int.Parse(ss[0]);
b = int.Parse(ss[1]);
if (a * b % 2 == 0)
Console.WriteLine("No");
else
Console.WriteLine("Yes");
Console.ReadKey();... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 104 | 4 |
using System;
namespace ABC026A {
class Program {
static void Main(string[] args) {
int a, b;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
// c = int.Parse(word[2]);
if (a * b % 2 == 0 || a * b == 9)
Console.WriteLine("No");
... | using System;
namespace ABC026A {
class Program {
static void Main(string[] args) {
int a, b, c;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
// c = int.Parse(word[2]);
if (a % 2 != 0 && b % 2 != 0)
Console.WriteLine("Yes");
else
... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 48], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17... | 8 | 109 | 20 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
var n = int.Parse(Console.ReadLine());
var ans = true;
var old = new HashSet<string>();
var lastWord = Console.ReadLine();
for (var i = 1; i < n && ans; ++i) {
var newyork = Console.Re... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
var n = int.Parse(Console.ReadLine());
var ans = true;
var lastWord = Console.ReadLine();
var old = new HashSet<string>();
old.Add(lastWord);
for (var i = 1; i < n && ans; ++i) {
va... | [["+", 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, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4,... | 8 | 155 | 17 |
using System;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
bool Ans = true;
var N = int.Parse(System.Console.ReadLine());
var Word = new string[N + 1];
var Wordlength = new int[N + 1];
var WordF = new string[N + 1];
var WordE = new string[N + 1];
for (int h... | using System;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
bool Ans = true;
var N = int.Parse(System.Console.ReadLine());
var Word = new string[N + 1];
var Wordlength = new int[N + 1];
var WordF = new string[N + 1];
var WordE = new string[N + 1];
for (int h... | [["-", 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, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 6... | 8 | 287 | 9 |
using System;
using System.Linq;
class Program {
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string[] w = new string[n];
w[0] = Console.ReadLine();
for (int i = 1; i < n; i++) {
w[i] = Console.ReadLine();
if (w.Where(x => x == w[i]).Count() != 1 &&
... | using System;
using System.Linq;
class Program {
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string[] w = new string[n];
w[0] = Console.ReadLine();
for (int i = 1; i < n; i++) {
w[i] = Console.ReadLine();
if (w.Where(x => x == w[i]).Count() != 1 ||
... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 12, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["-", 15, 16, 12, 16, 31, 213, 3, 4, 0, 21], ["-", 15, 16, 12, 16, 31, 213, 3, 4, 0, 2... | 8 | 168 | 26 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AtCoder.ABC109.B {
class Program {
static void Main() {
var sc = new Scanner();
var n = sc.Nextint();
var w = Enumerab... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AtCoder.ABC109.B {
class Program {
static void Main() {
var sc = new Scanner();
var n = sc.Nextint();
var w = Enumerab... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 230, 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, 13... | 8 | 615 | 24 |
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, ' '));
}
... | [["-", 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, 230, 0, 228], ["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 18], ["-", 0, 212, 0, 230, 39, 236, 2... | 8 | 528 | 23 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Atcoder {
public class Program {
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var words = new List<string>();
for (int i = 0; i < n; i++) {
words.Add(Console.ReadLine());
if (i != 0... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Atcoder {
public class Program {
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var words = new List<string>();
for (int i = 0; i < n; i++) {
words.Add(Console.ReadLine());
if (i != 0... | [["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 7, 0, 88], ["+", 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], [... | 8 | 176 | 31 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var words = new HashSet<string>();
string previousWord = null;
var output = "Yes";
for (int i = 0; i < n; i++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var words = new HashSet<string>();
string previousWord = null;
var output = "Yes";
for (int i = 0; i < n; i++) {
... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 35], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-",... | 8 | 159 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return lo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return lo... | [["+", 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, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 364 | 7 |
using System;
using System.Collections.Generic;
namespace abc109_b {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
List<string> list = new List<string>();
string s = Console.ReadLine();
list.Add(s);
bool ret = true;
for (int i = 1; i < n; i++) {
... | using System;
using System.Collections.Generic;
namespace abc109_b {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
List<string> list = new List<string>();
string s = Console.ReadLine();
list.Add(s);
bool ret = true;
for (int i = 1; i < n; i++) {
... | [["+", 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, 7, 8, 196, 0, 1, 0, 35]] | 8 | 155 | 7 |
#pragma warning disable
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using System.Collections;
using System.Timers;
static class MainClass {
public static ... | #pragma warning disable
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using System.Collections;
using System.Timers;
static class MainClass {
public static ... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 12, 5, 0, 62], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 64, 57, 0, 24]] | 8 | 1,333 | 7 |
using System;
using System.Numerics;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace debug {
class main {
static void Main(string[] args) {
//問題クラスを展開
ProgramC a = new ProgramC();
a.main(); //実行する
}
}
class ProgramA {
public void main() {
... | using System;
using System.Numerics;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace debug {
class main {
static void Main(string[] args) {
//問題クラスを展開
ProgramC a = new ProgramC();
a.main(); //実行する
}
}
class ProgramA {
public void main() {
... | [["+", 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, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 918 | 20 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 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, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ... | 8 | 1,209 | 20 |
using System;
using System.Windows;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
class Program {
static string S;
static void Main(string[] args) {
//入力を受け取る
var NX = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
var N = NX[0];
var X = NX[1];
... | using System;
using System.Windows;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
class Program {
static void Main(string[] args) {
//入力を受け取る
var NX = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
var N = NX[0];
var X = NX[1];
var y = Console.Re... | [["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["-", 0, 208, 0, 235, 8, 201, 0, 124, 0, 35], ["-", 0, 235, 8, 201, 0, 195, 0, 251, 0, 115], ["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0,... | 8 | 241 | 16 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) { A(); }
static void A() {
var NX = ReadSplitInt();
var N = NX[0];
var X = NX[1];
var x = ReadSplitInt();
if (X == 1) {
P... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) { A(); }
static void A() {
var NX = ReadSplitInt();
var N = NX[0];
var X = NX[1];
var x = ReadSplitInt();
var a = new int[N];
... | [["-", 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, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 700 | 37 |
using System;
class Program {
static void Main(string[] args) {
var t = Read(2);
var n = t[0];
var f = t[1];
var x = Read(n);
for (int i = 0; i < n; i++) {
x[i] -= f;
}
Write(gcd(x));
}
static void Write(string s) {
Console.WriteLine(s);
return;
}
static void Write(l... | using System;
class Program {
static void Main(string[] args) {
var t = Read(2);
var n = t[0];
var f = t[1];
var x = Read(n);
for (int i = 0; i < n; i++) {
x[i] = abs(x[i] - f);
}
Write(gcd(x));
}
static void Write(string s) {
Console.WriteLine(s);
return;
}
static v... | [["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", ... | 8 | 754 | 10 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using Debug = System.Diagnostics.Trace;
using SB = System.Text.StringBuilder;
// using System.Numerics;
using static System.Math;
using static System.Console;
namespace Program {
public class Solver {
Random rnd = new Random(... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using Debug = System.Diagnostics.Trace;
using SB = System.Text.StringBuilder;
// using System.Numerics;
using static System.Math;
using static System.Console;
namespace Program {
public class Solver {
Random rnd = new Random(... | [["-", 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, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 75, 196, 0, 197, 0, 198, 39, 216,... | 8 | 866 | 22 |
using System;
using System.IO;
class MainClass {
static void Main() {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false });
string output = "";
string line;
while ((line = Console.ReadLine()) != null) {
string[] tokens = line.Split(' ');
int a = in... | using System;
using System.IO;
class MainClass {
static void Main() {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false });
string output = "";
string line;
while ((line = Console.ReadLine()) != null) {
string[] tokens = line.Split(' ');
int a = in... | [["-", 31, 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, 203], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22],... | 8 | 159 | 18 |
using System;
namespace _112_1 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int A = int.Parse(Console.ReadLine());
int B = int.Parse(Console.ReadLine());
if (N == 2) {
Console.WriteLine(A + B);
} else {
Console.WriteLine("Hello World");
... | using System;
namespace _112_1 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
if (N == 2) {
int A = int.Parse(Console.ReadLine());
int B = int.Parse(Console.ReadLine());
Console.WriteLine(A + B);
} else {
Console.WriteLine("Hello World")... | [["+", 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, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 93 | 14 |
// A Dynamic Programming based
// C# program to find minimum
// number operations to
// convert str1 to str2
using System;
using System.Collections.Generic;
using System.Linq;
class GFG {
static Dictionary<int, int> ans = new Dictionary<int, int>();
public static void Main() {
var input1 = Console.ReadLine().Sp... | // A Dynamic Programming based
// C# program to find minimum
// number operations to
// convert str1 to str2
using System;
using System.Collections.Generic;
using System.Linq;
class GFG {
static Dictionary<int, int> ans = new Dictionary<int, int>();
public static void Main() {
var input1 = Console.ReadLine().Sp... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 95], ["+", 0, 52, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 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, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 204, 206, 207... | 8 | 239 | 25 |
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... | [["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 22], ["+", 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], ["+", 0, 28, 0, 41, 75, 213, 63, 214, 205, 22], ["+", 0, 28, 0, ... | 8 | 1,106 | 12 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var firstLine = Console.ReadLine().Split(' ');
var N = int.Parse(firstLine[0]);
var T = int.Parse(firstLine[1]);
D... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var firstLine = Console.ReadLine().Split(' ');
var N = int.Parse(firstLine[0]);
var T = int.Parse(firstLine[1]);
L... | [["-", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 21], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["-", 0, 212, 0, 230, 39... | 8 | 221 | 15 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Program {
public static Scanner input;
static void Main() {
input = new Scanner();
int[]... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Program {
public static Scanner input;
static void Main() {
input = new Scanner();
int[]... | [["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, ... | 8 | 877 | 9 |
using System;
using System.Collections.Generic;
// using System.Linq;
class Program {
static void Main(string[] args) {
// 入力フェーズ
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int T = int.Parse(input[1]);
int min = 1001;
for (int i = 0; i < N; i++) {
input ... | using System;
using System.Collections.Generic;
// using System.Linq;
class Program {
static void Main(string[] args) {
// 入力フェーズ
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int T = int.Parse(input[1]);
int min = 1001;
for (int i = 0; i < N; i++) {
input ... | [["+", 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, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 205, 22... | 8 | 158 | 16 |
using System;
public class timeLimit {
public static void Main() {
string[] hoge = Console.ReadLine().Split(' ');
var n = int.Parse(hoge[0]);
var t = int.Parse(hoge[1]);
var min = 100000000000; // minimum cost
for (int i = 0; i < n; i++) {
string[] fuga = Console.ReadLine().Split(' ');
... | using System;
public class timeLimit {
public static void Main() {
string[] hoge = Console.ReadLine().Split(' ');
var n = int.Parse(hoge[0]);
var t = int.Parse(hoge[1]);
var min = int.MaxValue; // minimum cost
for (int i = 0; i < n; i++) {
string[] fuga = Console.ReadLine().Split(' ');
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 1... | 8 | 176 | 21 |
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var t = int.Parse(line[1]);
line = Console.ReadLine().Trim().Split(' ');
var ansno = int.Parse(line[0]);
var anst = int.Parse(line[1]);
for (in... | using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var t = int.Parse(line[1]);
line = Console.ReadLine().Trim().Split(' ');
var anscost = 99999999;
var wcost = int.Parse(line[0]);
var wt = int.P... | [["-", 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, 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], ["+", 8, 201, 0, 195, 8, 196, 0, 57,... | 8 | 209 | 33 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ACprac {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int n = int.Parse(str[0]);
int t = int.Parse(str[1]);
int cost = 100... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ACprac {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int n = int.Parse(str[0]);
int t = int.Parse(str[1]);
int cost = 100... | [["+", 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], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8... | 8 | 197 | 8 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace LinqTest {
class MainClass {
public static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var N = int.Parse(input[0]);
var T = int.Parse(input[1]);
var list = new List<int>();
for (int i = 0; i <... | using System;
using System.Linq;
using System.Collections.Generic;
namespace LinqTest {
class MainClass {
public static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var N = int.Parse(input[0]);
var T = int.Parse(input[1]);
var list = new List<int>();
for (int i = 0; i <... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["-", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["-", 0, 7, 8, 196, 0, 57, 75, 196, 0, 46], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 25], ["-... | 8 | 196 | 9 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class B {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int T = int.Parse(input[1]);
int minCost = 1... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class B {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int T = int.Parse(input[1]);
int minCost = 1... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 31,... | 8 | 205 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long n = sc.NextLong();
List<Tuple<long, long, long>> list = new List<Tuple<long, long, long>>();
long maxH = 0;
long maxX = 0;
long ma... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long n = sc.NextLong();
List<Tuple<long, long, long>> list = new List<Tuple<long, long, long>>();
long maxH = 0;
long maxX = 0;
long ma... | [["+", 0, 57, 15, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 25], ["+", 0, 57, 15, 16, 12, 213, 3, 4, 0, 21], ["+", 15, 16, 12, 213, 3, 4, 0, 28, 0, 203... | 8 | 600 | 7 |
using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
private static long mod = 1000000007;
static void Main(string[] args) {
var n = Read().Int();
var xl = new int[n];
var yl... | using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
private static long mod = 1000000007;
static void Main(string[] args) {
var n = Read().Int();
var xl = new int[n];
var yl... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 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, ... | 8 | 744 | 11 |
using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC112C {
class Program {
static void Main(string[] args) {
var N = ReadInt;
long[] x = new long[N];
long[] y = new long[N];
long[] h = new long[N]... | using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC112C {
class Program {
static void Main(string[] args) {
var N = ReadInt;
long[] x = new long[N];
long[] y = new long[N];
long[] h = new long[N]... | [["+", 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, 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], ["+", 0... | 8 | 739 | 41 |
using System;
using System.Numerics;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace debug {
class main {
static void Main(string[] args) {
//問題クラスを展開
ProgramC a = new ProgramC();
a.main(); //実行する
}
}
class ProgramA {
public void main() {
... | using System;
using System.Numerics;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace debug {
class main {
static void Main(string[] args) {
//問題クラスを展開
ProgramC a = new ProgramC();
a.main(); //実行する
}
}
class ProgramA {
public void main() {
... | [["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 25], ["+", 75, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["+", 75, 196, 0, 57, 64, 1, 0, 11, 12, 203], ["+", 0, 57, 75, 196, 0, 57, 64, 1, 0, 35], ["+... | 8 | 782 | 12 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace C {
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 C {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | [["+", 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, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121]... | 8 | 403 | 36 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.