buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var ny = ReadInts();
var N = ny[0];
var Y = ny[1];
// iが1000円
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var ny = ReadInts();
var N = ny[0];
var Y = ny[1];
// iが1000円
... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 0, ... | 8 | 353 |
using System;
using System.Linq;
namespace abc085_c {
class Program {
static void Main(string[] args) {
int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int N = input[0];
int Y = input[1];
for (int i = 0; i <= N; i++) {
for (int j = 0; j <= N - i; i++) {
if (i * ... | using System;
using System.Linq;
namespace abc085_c {
class Program {
static void Main(string[] args) {
int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int N = input[0];
int Y = input[1];
for (int i = 0; i <= N; i++) {
for (int j = 0; j <= N - i; j++) {
if (i * ... | [["-", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22], ["-", 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, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["-",... | 8 | 169 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Contest {
class Scanner {
private string[] line = new string[0];
private int index = 0;
public string Next() {
if (line.Length <= index) {
line = Console.ReadLine().Split(' ');
index = 0;
}
var... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Contest {
class Scanner {
private string[] line = new string[0];
private int index = 0;
public string Next() {
if (line.Length <= index) {
line = Console.ReadLine().Split(' ');
index = 0;
}
var... | [["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 57, 15, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 57, 15, 213, 3, 4, 0, 24], ["-", 0, 57, 15, 213, 3, 4, 0, 28, 0, ... | 8 | 783 |
using System;
using System.Collections.Generic;
using System.Linq;
public class HelloWorld {
static public void Main() {
var input = Console.ReadLine().Split(' ');
var n = int.Parse(input[0]);
var y = int.Parse(input[1]);
for (int i = 0; i <= n; i++) {
for (int j = 0; j <= n - i; j++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
public class HelloWorld {
static public void Main() {
var input = Console.ReadLine().Split(' ');
var n = int.Parse(input[0]);
var y = int.Parse(input[1]);
for (int i = 0; i <= n; i++) {
for (int j = 0; j <= n - i; j++) {
... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 31, 22], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 17, 72], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 6... | 8 | 173 |
using System;
using System.Linq;
namespace ABC085 {
class C {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
long N = int.Parse(input[0]);
long Y = int.Parse(input[1]);
long sum = 0;
for (int i = 0; i <= N; i++) {
for (int j = 0; j <= N - i; j++) {
... | using System;
using System.Linq;
namespace ABC085 {
class C {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
long N = int.Parse(input[0]);
long Y = int.Parse(input[1]);
long sum = 0;
for (int i = 0; i <= N; i++) {
for (int j = 0; j <= N - i; j++) {
... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 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]] | 8 | 201 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace myapp {
class AtCoder_abc085_c {
private const int M10000 = 10000;
private const int M5000 = 5000;
private const int M1000 = 1000;
public static void Main() {
IReadOnlyList<int> lineString =
Console.ReadLine().Split(' ').... | using System;
using System.Linq;
using System.Collections.Generic;
namespace myapp {
class AtCoder_abc085_c {
private const int M10000 = 10000;
private const int M5000 = 5000;
private const int M1000 = 1000;
public static void Main() {
IReadOnlyList<int> lineString =
Console.ReadLine().Split(' ').... | [["+", 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 | 192 |
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Z {
static void Main() => new K();
}
class K {
const long MOD = 1000000007;
static int[] G => ReadLine().Split().Select(int.Parse).ToArray();
int N;
long ans, D;
long[] ds, cs, ct;
bool[] done;
List<E>[] g;
public ... | using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Z {
static void Main() => new K();
}
class K {
const long MOD = 1000000007;
static int[] G => ReadLine().Split().Select(int.Parse).ToArray();
int N;
long ans, D;
long[] ds, cs, ct;
bool[] done;
List<E>[] g;
public ... | [["-", 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, 237, 238, 0, 22], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 47], ["+", 0, 198, 0, 200, 0, 212, 0, 230, 39, 22], ["-", 0, 7, 8, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 7, 8, 1, 0, 213, 63, 2... | 8 | 1,110 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Solve {
public Solve() {}
StringBuilder sb;
ReadData re;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
re = new ReadData();
Calc();
Console.W... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Solve {
public Solve() {}
StringBuilder sb;
ReadData re;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
re = new ReadData();
Calc();
Console.W... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["-", 0, 195, 8, 196, 0... | 8 | 2,129 |
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
class Solver {
const int M = 999999;
const int MOD = 1000000007;
public long exp(long x, long t) {
if (t == 0)
return 1;
long ret = exp(x, t >> 1);
ret = ret * ret % MOD;
if ((t & 1) == 1)
ret = ret * ... | using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
class Solver {
const int M = 9999999;
const int MOD = 1000000007;
public long exp(long x, long t) {
if (t == 0)
return 1;
long ret = exp(x, t >> 1);
ret = ret * ret % MOD;
if ((t & 1) == 1)
ret = ret *... | [["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 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, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 2... | 8 | 826 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder01 {
class Program {
static void Main(string[] args) {
var a = int.Parse(args[0]);
var b = int.Parse(args[1]);
if (a * b % 2 == 0) {
Console.Write("Even");
} else... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder01 {
class Program {
static void Main(string[] args) {
var inp = Console.ReadLine();
args = inp.Split(' ');
var a = int.Parse(args[0]);
var b = int.Parse(args[1]);
... | [["+", 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 | 105 |
using System;
namespace ChokudaiScanner {
class MainClass {
static void Main() {
Scanner cin = new Scanner();
int a = cin.NextInt();
int b = cin.NextInt();
if ((a * b) / 2 == 0) {
Console.WriteLine("Even");
} else {
Console.WriteLine("Odd");
}
}
}
class Scanner {
string[] s;... | using System;
namespace ChokudaiScanner {
class MainClass {
static void Main() {
Scanner cin = new Scanner();
int a = cin.NextInt();
int b = cin.NextInt();
long c = a * b;
if (c % 2 == 0) {
Console.WriteLine("Even");
} else {
Console.WriteLine("Odd");
}
}
}
class Scanner {... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 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, 57, 15, 16, 31, 16, 31, 23, 0, 2... | 8 | 479 |
using System;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
if (a * b % 2 == 0)
Console.WriteLine("Odd");
else
Console.WriteLine("Even");
}
}
| using System;
class Program {
public static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
if (a * b % 2 == 0)
Console.WriteLine("Even");
else
Console.WriteLine("Odd");
}
} | [["+", 0, 235, 8, 201, 0, 195, 0, 251, 0, 259], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 104], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22]... | 8 | 88 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC086A {
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]);
if (a % 2 =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC086A {
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 = a * ... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 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, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 109], ... | 8 | 130 |
using System;
class Program {
static void Main(String[] arg) {
//出力用の文字列
String ret;
// 整数の取得
String[] nums = Console.ReadLine().Split(' ');
int a = int.Parse(nums[0]);
int b = int.Parse(nums[1]);
// 積の演算
int product = a * b;
if (product % 2 == 0) {
ret = "even";
} el... | using System;
class Program {
const String even = "Even";
const String odd = "Odd";
static void Main(String[] arg) {
//出力用の文字列
String ret;
// 整数の取得
String[] nums = Console.ReadLine().Split(' ');
int a = int.Parse(nums[0]);
int b = int.Parse(nums[1]);
// 積の演算
int product = a * b... | [["+", 0, 235, 8, 201, 0, 124, 0, 251, 0, 154], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 22], ["+", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 62], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 208, 0, 235, 8, 201, 0, 124, 0, 3... | 8 | 107 |
using System;
namespace Beginner086_A {
class Program {
static void Main(string[] args) {
int a, b;
a = int.Parse(args[0]);
b = int.Parse(args[1]);
int hoge = a * b;
if (hoge % 2 == 0) {
Console.Write("Even");
} else {
Console.Write("Odd");
}
}
}
}
| using System;
namespace Beginner086_A {
class Program {
static void Main(string[] args) {
int a, b;
args = Console.ReadLine().Split(' ');
a = int.Parse(args[0]);
b = int.Parse(args[1]);
int hoge = a * b;
if (hoge % 2 == 0) {
Console.Write("Even");
} else {
Console.Write("Odd")... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 12, 213, 63, 214, 20... | 8 | 89 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static ABC086B.Input;
namespace ABC086B {
static class Input {
/// <summary>
/// 1行の入力をTに応じてリストに変換する関数を返す
/// </summary>
static Func<string, List<T>>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToList();
/// ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static ABC086B.Input;
namespace ABC086B {
static class Input {
/// <summary>
/// 1行の入力をTに応じてリストに変換する関数を返す
/// </summary>
static Func<string, List<T>>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToList();
/// ... | [["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 268], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 1,420 |
using System;
using System.Linq;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using static System.Console;
using static Program.Input;
using static Program.MyMath;
using static Program.Const;
namespace Program {
static class Const {
public static string alp = "abcdefghijklmnopqrstuvwxyz";
... | using System;
using System.Linq;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using static System.Console;
using static Program.Input;
using static Program.MyMath;
using static Program.Const;
namespace Program {
static class Const {
public static string alp = "abcdefghijklmnopqrstuvwxyz";
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 268], ["... | 8 | 2,040 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
Console.ReadLine();
var ngo = new List<int>(Console.ReadLine()
.Split()
.Select(select => int.Parse(sele... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
Console.ReadLine();
var ngo = new List<int>(Console.ReadLine()
.Split()
.Select(select => int.Parse(sele... | [["+", 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], ["+", 0, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 12, 22], ["+", 8, 196,... | 8 | 148 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program2 {
static void Main(string[] args) {
int a, c, d;
List<int> intlist = new List<int>();
int alice = 0;
int bob = 0;
/*
string[] a = Console... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program2 {
static void Main(string[] args) {
int a, c, d;
c = 0;
List<int> intlist = new List<int>();
int alice = 0;
int bob = 0;
/*
string[] ... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 7, 15, 16, 12, 16, 31, 16, 17, 85], ["-", 0, 7, 15, 16, 12, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8... | 8 | 217 |
using System;
namespace AtCoderConsole {
class Program {
static void Main(string[] args) {
string[] input = new string[3];
int[,] matrix = new int[3, 3];
// 標準入力から1行ずつ取得
for (int i = 0; i < 3; i++) {
input[i] = Console.ReadLine();
}
for (int i = 0; i < 3; i++) {
for (int j = 0; ... | using System;
namespace AtCoderConsole {
class Program {
static void Main(string[] args) {
string[] input = new string[3];
int[,] matrix = new int[3, 3];
// 標準入力から1行ずつ取得
for (int i = 0; i < 3; i++) {
input[i] = Console.ReadLine();
}
for (int i = 0; i < 3; i++) {
for (int j = 0; ... | [["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 1, 0, 11, 12, 16, 12, 204, 205, 22], ["+", 0, 11, 12, 16, 12, 204, 206, 207, 0, 70], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 12, 16, 12, 204, 206, 207, 0, 73], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 12, 16, 31, 204, 206, ... | 8 | 402 |
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... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 204, 205, 204, 205, 22], ["+", 15, 16, 31, 204, 205, 204, 206, 207, 0, 70], ["+", 31, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 204, 205, 204, 206, 207, 0, 73], ["+", 0, 57, 15, 16, 31, 2... | 8 | 508 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
static public void Main() {
var s = new Sol();
// s.Solve1();
// s.Solve2();
s.Solve3();
s.Solve4();
s.Solve5();
s.Solve6();
}
}
public class Sol {
// ABC 007 C 幅優先探索
// https://atcoder.jp/cont... | using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
static public void Main() {
var s = new Sol();
// s.Solve1();
// s.Solve2();
s.Solve3();
s.Solve4();
s.Solve5();
s.Solve6();
}
}
public class Sol {
// ABC 007 C 幅優先探索
// https://atcoder.jp/cont... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 52, 8, 196, 0, 7, 8, 196, 0,... | 8 | 1,200 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Solve {
static public int mod = 1000000007;
static public string al = "abcdefghijklmnopqrstuvwxyz";
public static void Main() {
// ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Solve {
static public int mod = 1000000007;
static public string al = "abcdefghijklmnopqrstuvwxyz";
public static void Main() {
// ... | [["-", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 195, 8, 196, 0, 52, 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, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], [... | 8 | 1,487 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace D {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace D {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 204, 205, 204, 205, 22], ["+", 15, 16, 31, 204, 205, 204, 206, 207, 0, 70], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 205, 204, 206, 207, 0, ... | 8 | 603 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC088D {
class Program {
static void Main(string[] args) {
int whiteCount = 0;
var HW = ReadInt();
int H = HW[0];
int W = HW[1];
char[,] map = new char[H + 2, W + 2];
int[,] d = new int[H + 2, W + 2];
d[1, 1] =... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC088D {
class Program {
static void Main(string[] args) {
int whiteCount = 0;
var HW = ReadInt();
int H = HW[0];
int W = HW[1];
char[,] map = new char[H + 2, W + 2];
int[,] d = new int[H + 2, W + 2];
d[1, 1] =... | [["+", 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, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 21], ["+", 0, 57, 15, 16, 31, 204, 206, 2... | 8 | 506 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class236 {
static int[] dy = new int[4] { 0, 1, 0, -1 };
static int[] dx = new int[4] { 1, 0, -1, 0 };
static void Main() {
var HW = Console.ReadLine().Split().S... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class236 {
static int[] dy = new int[4] { 0, 1, 0, -1 };
static int[] dx = new int[4] { 1, 0, -1, 0 };
static void Main() {
var HW = Console.ReadLine().Split().S... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 57, 75, 1, 0, 213, 63, 214, 205, 22], ["+", 0, 57, 75, 1, 0, 213, 63, 214, 0, 131], ["+", 0, 57, 75, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 57, 75, 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], ["+", 0, ... | 8 | 492 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class88 {
static char[,] map = new char[50, 50];
static bool[,] frag = new bool[50, 50];
static int[] dx = new int[4] { 1, 0, -1, 0 };
static int[] dy = new int[4] ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class88 {
static char[,] map = new char[50, 50];
static bool[,] frag = new bool[50, 50];
static int[] dx = new int[4] { 1, 0, -1, 0 };
static int[] dy = new int[4] ... | [["-", 0, 212, 0, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 17, 33], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 17, 72], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 12, 2... | 8 | 496 |
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, 57, 15, 16, 31, 204, 205, 204, 205, 22], ["+", 15, 16, 31, 204, 205, 204, 206, 207, 0, 70], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 205, 204, 206, 207, 0, ... | 8 | 1,207 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static _20200331.Abc088_D.Cin;
using static _20200331.Abc088_D.Util;
using Pair = _20200331.Abc088_D.VTuple<long, long>;
using Graph =
System.Collections.Generic.List<System.Collections.Generic.List<long>>;
using Syst... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static _20200331.Abc088_D.Cin;
using static _20200331.Abc088_D.Util;
using Pair = _20200331.Abc088_D.VTuple<long, long>;
using Graph =
System.Collections.Generic.List<System.Collections.Generic.List<long>>;
using Syst... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 0, 195, 8, 196, 0, 52, 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... | 8 | 3,906 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp5 {
class Program {
static int[,] cost;
static int H;
static int W;
static int[,] s;
static void Main(string[] args) {
var S = Console.ReadLine().Split(' ').Select(x =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp5 {
class Program {
//スタートから(x, y)までの最短距離
static int[,] cost;
static int H;
static int W;
static int[,] s;
static void Main(string[] args) {
var S = Console.ReadLin... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 215], ["+", 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, 230, 39, 236, 237, 238, 0, 236, 141, 22], ["+", 39, 236, 237, 238, 0, 236, 237, 238, 0, 18], ["+", 39, 236, 237, 238, ... | 8 | 604 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Competition {
class Program {
static int[] dx = { 1, 0, -1, 0 };
static int[] dy = { 0, 1, 0, -1 };
static int H, W;
static int sx, sy, gx, gy;
static string[] field = new string[55];
static long[,] d = new long[55, 55];
public... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Competition {
class Program {
static int[] dx = { 1, 0, -1, 0 };
static int[] dy = { 0, 1, 0, -1 };
static int H, W;
static int sx, sy, gx, gy;
static string[] field = new string[55];
static long[,] d = new long[55, 55];
public... | [["+", 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, 16, 31, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 151], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 2... | 8 | 539 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Hello {
public struct coordinate {
public int y;
public int x;
}
static int[,] map = new int[50, 50];
static int[,] map2 = new int[50, 50];
static Queue<coordinate> que = new Queue<coordinate>();
static int R;
static... | using System;
using System.Collections.Generic;
using System.Linq;
public class Hello {
public struct coordinate {
public int y;
public int x;
}
static int[,] map = new int[50, 50];
static int[,] map2 = new int[50, 50];
static Queue<coordinate> que = new Queue<coordinate>();
static int R;
static... | [["+", 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, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 214, 205, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 214, 0, 131], ["+", 31, 204, 206, 207, 0, 28, 0... | 8 | 548 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
public static int[,] map = null;
public static int[,] marker = null;
public static int N = 0;
public static int W = 0;
public static int H = 0;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
public static int[,] map = null;
public static int[,] marker = null;
public static int N = 0;
public static int W = 0;
public static int H = 0;
... | [["+", 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, 211, 0, 147], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, ... | 8 | 704 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC088D {
class Program {
static void Solve(Input input) {
var h = input.NextInt();
var w = input.NextInt();
var map = new char[h, w];
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC088D {
class Program {
static void Solve(Input input) {
var h = input.NextInt();
var w = input.NextInt();
var map = new char[h, w];
... | [["+", 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, 57, 15, 16, 12, 16, 31, 214, 205, 199], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 14... | 8 | 1,548 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
//幅優先探索
class Program {
static List<int[]> Nexts = new List<int[]>() {
new int[2] { 0, 1 },
new int[2] { 0, -1 },
new int[2] { 1, 0 },
new int[2] { -1, 0 },
};
static List<List<BlockClass>> Maze = new List<... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
//幅優先探索
class Program {
static List<int[]> Nexts = new List<int[]>() {
new int[2] { 0, 1 },
new int[2] { 0, -1 },
new int[2] { 1, 0 },
new int[2] { -1, 0 },
};
static List<List<BlockClass>> Maze = new List<... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 15, 16, 31, 214, 205, 204, 205, 204, 205, 22], ["+", 31, 214, 205, 204, 205, 204, 206, 207, 0, 70], ["+", 205, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["+", 206, 207, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 204, 2... | 8 | 746 |
using System;
using System.Collections.Generic;
using System.Linq;
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
return s[i++];
string st = Console.ReadLine();
while (st ... | using System;
using System.Collections.Generic;
using System.Linq;
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
return s[i++];
string st = Console.ReadLine();
while (st ... | [["-", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["-", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, ... | 8 | 809 |
using System;
using System.Linq;
class Procon {
public Procon() {}
static void Main(string[] agrs) { new Procon().Do(); }
Scanner cin;
public bool Check(bool[,] b, int[,] dp, int H, int W, int i, int j) {
if (i < 0 || H <= i) {
return false;
}
if (j < 0 || W <= j) {
return false;
... | using System;
using System.Linq;
class Procon {
public Procon() {}
static void Main(string[] agrs) { new Procon().Do(); }
Scanner cin;
public bool Check(bool[,] b, int[,] dp, int H, int W, int i, int j) {
if (i < 0 || H <= i) {
return false;
}
if (j < 0 || W <= j) {
return false;
... | [["+", 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, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 1... | 8 | 1,093 |
using System;
using System.Collections.Generic;
class Program {
static long[] s;
static string[] arr;
static int[,] h;
static List<int[]> li = new List<int[]>();
static void Main() {
s = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
arr = new string[s[0]];
h = new int[s[0], s[1]];
... | using System;
using System.Collections.Generic;
class Program {
static long[] s;
static int[,] h;
static List<int[]> li = new List<int[]>();
static void Main() {
s = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
h = new int[s[0], s[1]];
int ans = 0;
for (int i = 0; i < s[0]; i++) {
... | [["-", 8, 201, 0, 124, 0, 198, 39, 224, 39, 199], ["-", 0, 124, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 124, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 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, 124, 0, 251, 0, 115], ["-", 0, 195, 8, 196, 0, 1, 0, ... | 8 | 567 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace ConsoleApplication {
class MainClass {
///////////////////////////////////////////////////////... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace ConsoleApplication {
class MainClass {
///////////////////////////////////////////////////////... | [["+", 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], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 33], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25]... | 8 | 2,657 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using static System.Console;
using static System.Math;
using System.Numerics;
using System.Runtime.InteropServices.WindowsRuntime;
//using CS_Contest.Graph;
using CS_Contest.Loop;
using CS_Con... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using static System.Console;
using static System.Math;
using System.Numerics;
using System.Runtime.InteropServices.WindowsRuntime;
//using CS_Contest.Graph;
using CS_Contest.Loop;
using CS_Con... | [["+", 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, 214, 205, 199], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 14... | 8 | 2,907 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var p = new Program();
p.Solve();
}
enum Status {
NotVisited,
Visited,
}
char[][] graph;
int[,] shortestPath;
void Solve() {
var tmp = Console.Re... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var p = new Program();
p.Solve();
}
enum Status {
NotVisited,
Visited,
}
char[][] graph;
int[,] shortestPath;
void Solve() {
var tmp = Console.Re... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 52, 8, 196, 0, 210, 31, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 210, 31, 22], ["-", 8, 196, 0, 52, 8, 196, 0, 210, 12, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 210, 12, 22], ["-", 0, 57, 15, 213, 3, 4, 0, 28, 0, 2... | 8 | 571 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace atcoder {
class Program {
static int In => int.Parse(Console.ReadLine());
static int[] Ins => Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
static v... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace atcoder {
class Program {
static int In => int.Parse(Console.ReadLine());
static int[] Ins => Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
static v... | [["+", 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, 215], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 205, 22... | 8 | 1,922 |
using System;
class Program {
static void Main(string[] args) {
string[] input =
Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得
int H = int.Parse(input[0]); //数値で受け取りたい場合は変換する
int W = int.Parse(input[1]);
string[] mapStr = new string[H];
for (int i = 0; i < H; i++) {
mapStr[i] =... | using System;
class Program {
static void Main(string[] args) {
string[] input =
Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得
int H = int.Parse(input[0]); //数値で受け取りたい場合は変換する
int W = int.Parse(input[1]);
string[] mapStr = new string[H];
for (int i = 0; i < H; i++) {
mapStr[i] =... | [["+", 64, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 535 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long n = sc.NextLong();
long[] aa = sc.LongArray();
long[] bb = sc.LongArray();
long countA = 0;
long countB = 0;
for (int i = 0; ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long n = sc.NextLong();
long[] aa = sc.LongArray();
long[] bb = sc.LongArray();
long countA = 0;
long countB = 0;
for (int i = 0; ... | [["-", 75, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 57, 75, 57, 64, 196, 0, 57, 0, 121], ["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["-", 64, 196, 0, 1, 0, 11, 12, 41, 0, 101], ["+", 0, 57, 75, 57, 64, 196, 0, 57, 0, 25], ["+", 75, 57, 64, 196, 0, 57, 64, 196, 0, 45], [... | 8 | 476 |
// C#練習
// 解説参照
// なぜ必要十分なのかも、2つ目の条件だけでよいのかも分からない
// intだと足りない?
using System;
using System.Linq;
public class AA {
public static void Main() {
int n = int.Parse(Console.ReadLine());
int[] a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int[] b = Console.ReadLine().Split(' ').Select(int.Pars... | // C#練習
// 解説参照
// なぜ必要十分なのかも、2つ目の条件だけでよいのかも分からない
// intだと足りない?
using System;
using System.Linq;
public class AA {
public static void Main() {
int n = int.Parse(Console.ReadLine());
long[] a = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
long[] b = Console.ReadLine().Split(' ').Select(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, 57, 15, 16, 31, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 16, 31, ... | 8 | 231 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
// using static System.Globalization.CultureInfo;
class Program {
static void Main(string[] args) {
var num = Add.num;
var ar1 = Add.arL;
var ar2 = Add.ar... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
// using static System.Globalization.CultureInfo;
class Program {
static void Main(string[] args) {
var num = Add.num;
var ar1 = Add.arL;
var ar2 = Add.ar... | [["-", 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, 196, 0, 57, 64, 1, 0, 11, 3... | 8 | 264 |
using System;
using System.Linq;
class Program {
public static void Main(string[] args) {
string[] s = Console.ReadLine().Split().ToArray();
int ab = int.Parse(s[0] + s[1]);
Console.WriteLine(judge(ab) ? "Yes" : "No");
}
public static bool judge(int a) {
for (int i = 1; i <= 100; i++) {
if ... | using System;
using System.Linq;
class Program {
public static void Main(string[] args) {
string[] s = Console.ReadLine().Split().ToArray();
int ab = int.Parse(s[0] + s[1]);
Console.WriteLine(judge(ab) ? "Yes" : "No");
}
public static bool judge(int a) {
for (int i = 1; Math.Pow(i, 2) <= a; i++) ... | [["+", 0, 7, 15, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 7, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 7, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 7, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 7, 15, 16, 31, 213, 3, 4, 0, 21], ["+", 15, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 7, 15, 16, 31, 213, 3, 4, 0, 25], ["... | 8 | 119 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _086_2 {
class Program {
static void Main(string[] args) {
string a = Console.ReadLine();
string[] str = Console.ReadLine().Split(' ');
int c = Convert.ToInt32(str[0] + str[1]);... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _086_2 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int c = Convert.ToInt32(str[0] + str[1]);
int d = (int)Math.Sqrt(c);
... | [["-", 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 | 170 |
using System;
using System.Collections.Generic;
class TEST {
static List<int[]> testlist;
public static void Main() {
(int x, int y) nowPosition = (0, 0);
int N = int.Parse(Console.ReadLine());
testlist = new List<int[]>();
for (int i = 0; i < N; i++) {
string[] values = Console.ReadLine().... | using System;
using System.Collections.Generic;
class TEST {
static List<int[]> testlist;
public static void Main() {
(int x, int y) nowPosition = (0, 0);
int N = int.Parse(Console.ReadLine());
testlist = new List<int[]>();
for (int i = 0; i < N; i++) {
string[] values = Console.ReadLine().S... | [["-", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46], ["-", 64, 196, 0, 57, 75, 57, 64, 196, 0, 45], ["-", 64, 196, 0, 57, 75, 57, 64, 196, 0, 46], ["+", 0, 57, 64, 37, 0, 204, 205, 204, 205, 22], ["+", 64, 37, 0, 204, 205, 204, 206, 207, 0, 70], ["+", 0, 204, 205, 204, 206, 207, ... | 8 | 422 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var txy = new List<List<int>>();
bool flag = true;
int ans = 0;
txy.Add("0 0 0".Split(' ').ToList().ConvertAll(x => int.Parse(x)));
for (i... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var txy = new List<List<int>>();
bool flag = true;
int ans = 0;
txy.Add("0 0 0".Split(' ').ToList().ConvertAll(x => int.Parse(x)));
for (i... | [["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, ... | 8 | 388 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using static System.Console;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArr... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using static System.Console;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArr... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 98], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, ... | 8 | 347 |
using System;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Text;
namespace ChokudaiScanner {
class MainClass {
static void Main() {
Scanner cin = new Scanner();
int N = cin.NextInt() + 1;
int[][] vs = new int [N][];
vs[0] = new int[3];
for (int i = 1; i < N; i+... | using System;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Text;
namespace ChokudaiScanner {
class MainClass {
static void Main() {
Scanner cin = new Scanner();
int N = cin.NextInt() + 1;
int[][] vs = new int [N][];
vs[0] = new int[3];
for (int i = 1; i < N; i+... | [["-", 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, 12, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 205, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 0, 131], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 141, 22], ["-", 205, 204, 206, 207, 0, 28, 0, 16, 17... | 8 | 644 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC086C {
class Program {
static void Main(string[] args) {
int count = int.Parse(Console.ReadLine());
var points = new List<Point>();
points.Add(new Point(0, 0, 0));
for (int i = 0; i < count; i++) {
var input =
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC086C {
class Program {
static void Main(string[] args) {
int count = int.Parse(Console.ReadLine());
var points = new List<Point>();
points.Add(new Point(0, 0, 0));
for (int i = 0; i < count; i++) {
var input =
... | [["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["-", 64, 196, 0, 1, 0, 11, 12, 211, 0, 146], ["+", 64, 196, 0, 1, 0, 11, 12, 211, 0, 147], ["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3... | 8 | 340 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
// 整数の入力
//// スペース区切りの整数の入力
int N = int.Parse(Console.ReadLine());
int[] t = new int[N + 1];
int[] x = new int[N + 1];
int[] y = new int[N + 1];
t[0] = 0;
x[0] = 0;
y[0] = 0;
for (int i = 1; i... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
// 整数の入力
//// スペース区切りの整数の入力
int N = int.Parse(Console.ReadLine());
int[] t = new int[N + 1];
int[] x = new int[N + 1];
int[] y = new int[N + 1];
t[0] = 0;
x[0] = 0;
y[0] = 0;
for (int i = 1; i... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 17, 60], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 16, 12, 23, 0, 16, 17, 106]... | 8 | 323 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) { Question.Exec(); }
}
public class Plane {
public long Time;
public long X;
public long Y;
}
public static class Question {
public static void Exec() {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) { Question.Exec(); }
}
public class Plane {
public long Time;
public long X;
public long Y;
}
public static class Question {
public static void Exec() {
... | [["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25]] | 8 | 366 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
var n = int.Parse(Console.ReadLine());
var ok = true;
var x = 0;
var y = 0;
for (var i = 0; i < n; ++i) {
var t = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }),
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
var n = int.Parse(Console.ReadLine());
var ok = true;
var time = 0;
var x = 0;
var y = 0;
for (var i = 0; i < n; ++i) {
var t = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' ... | [["+", 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, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 0, 200, 0, 212, 0, 16, 31, 204, 20... | 8 | 229 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC086C {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var strlist = new List<string>();
for (var i = 0; i < n; i++) {
strlist.Ad... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC086C {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var strlist = new List<string>();
for (var i = 0; i < n; i++) {
strlist.Ad... | [["+", 0, 200, 0, 212, 0, 230, 10, 229, 0, 45], ["+", 0, 200, 0, 212, 0, 230, 10, 229, 0, 203], ["+", 0, 200, 0, 212, 0, 230, 10, 229, 0, 46], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], [... | 8 | 345 |
using System;
namespace AtCoder09_09 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
bool flag = true;
for (int i = 0; i < N; i++) {
string[] txy = Console.ReadLine().Split(' ');
int t = int.Parse(txy[0]);
int x = int.Parse(txy[1]);
int ... | using System;
namespace AtCoder09_09 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
for (int i = 0; i < N; i++) {
string[] txy = Console.ReadLine().Split(' ');
int t = int.Parse(txy[0]);
int x = int.Parse(txy[1]);
int y = int.Parse(txy[2]);
... | [["-", 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, 211, 0, 146], ["-", 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, 3... | 8 | 157 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
using System.IO;
namespace AtCoder.ABC {
using AtCoder.ABC.IO;
public class A {
public void Solve(Parser parser, Printer printer) {
int n = parser.Integer();
var points = Enumerable.Range(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
using System.IO;
namespace AtCoder.ABC {
using AtCoder.ABC.IO;
public class A {
public void Solve(Parser parser, Printer printer) {
int n = parser.Integer();
var points = Enumerable.Range(... | [["-", 15, 241, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 57, 15, 241, 0, 213, 3, 4, 0, 21], ["+", 0, 57, 15, 241, 0, 213, 3, 4, 0, 21], ["+", 15, 241, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 11, 31, 22, 0, 314], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 210, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196... | 8 | 1,148 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder.ABC10 {
static class Program {
static void Main(string[] args) {
var q = new Quest(Console.In, Console.Out);
new C086().Solve(q);
}
}
public class C086 : ISolver {
public void Solve(Quest q) {
int... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder.ABC10 {
static class Program {
static void Main(string[] args) {
var q = new Quest(Console.In, Console.Out);
new C086().Solve(q);
}
}
public class C086 : ISolver {
public void Solve(Quest q) {
int... | [["-", 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, 216, 0, 217], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 0, 267], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 210,... | 8 | 536 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Collections;
class Program {
static void Main() {
int N = int.Parse(Console.ReadLine());
var txyList = Enumerable.Range(0, N)
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Collections;
class Program {
static void Main() {
int N = int.Parse(Console.ReadLine());
var txyList = Enumerable.Range(0, N)
... | [["+", 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, 203], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["+", 0, 213, 3, 4, 0, 28, 0, 312, 0, 228], ["+", 0, ... | 8 | 647 |
using System;
using System.Linq;
using System.Collections.Generic;
class Cmondai {
static void Main() {
var N = Int32.Parse(Console.ReadLine());
var beforeT = 0;
var beforeX = 0;
var beforeY = 0;
var ans = "No";
for (int i = 0; i < N; ++i) {
var line =
Console.ReadLine().Split... | using System;
using System.Linq;
using System.Collections.Generic;
class Cmondai {
static void Main() {
var N = Int32.Parse(Console.ReadLine());
var beforeT = 0;
var beforeX = 0;
var beforeY = 0;
var ans = "Yes";
for (int i = 0; i < N; ++i) {
var line =
Console.ReadLine().Spli... | [["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 64, 93, 0, 94], ["-", 0, 7, 8, 196, 0, 57, 64, 93, 0, 35], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196,... | 8 | 240 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC86 {
class Program {
static void Main(string[] args) {
var solver = new Solver();
solver.Solve3();
}
}
public class Solver {
public void Solve1() {
var ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
Co... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC86 {
class Program {
static void Main(string[] args) {
var solver = new Solver();
solver.Solve3();
}
}
public class Solver {
public void Solve1() {
var ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
Co... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 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, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ... | 8 | 417 |
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 line1 = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
// var N = line1[0];
// var M = line1[1];
... | 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 line1 = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
// var N = line1[0];
// var M = line1[1];
... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["-", 15, 16, 31, 16, 12, 16, 31, 204, 205, 22], ["-", 31, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 72], ["-", 15, 16, 31, 16, 12, 16, 1... | 8 | 753 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class ABC {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long[] t = new long[N + 1];
long[] x = new long[N + 1];
long[] y = new long[N ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class ABC {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long[] t = new long[N + 1];
long[] x = new long[N + 1];
long[] y = new long[N ... | [["+", 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, 203], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], [... | 8 | 313 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoderProg {
class C_Traveling {
static void Main(string[] args) {
int count = int.Parse(Console.ReadLine());
int reslutCount = count;
int reslut = 0;
while (count > 0) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoderProg {
class C_Traveling {
static void Main(string[] args) {
int count = int.Parse(Console.ReadLine());
int reslutCount = count;
int reslut = 0;
while (count > 0) {
... | [["-", 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, 52, 8, 196, 0, 1, 0, 35]] | 8 | 194 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace C {
class questionC {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int x = 0;
int y = 0;
int t = 0;
bool ok = true;
for (int i = 0; i < N; ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace C {
class questionC {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int x = 0;
int y = 0;
int t = 0;
bool ok = true;
for (int i = 0; i < N; ... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ... | 8 | 246 |
using System;
public class Hello {
public static void Main() {
int N = int.Parse(Console.ReadLine());
int curT = 0;
int curX = 0;
int curY = 0;
for (int i = 0; i < N; i++) {
string[] input = Console.ReadLine().Split(' ');
int nexT = int.Parse(input[0]);
int nexX = int.Parse(inpu... | using System;
public class Hello {
public static void Main() {
int N = int.Parse(Console.ReadLine());
int curT = 0;
int curX = 0;
int curY = 0;
for (int i = 0; i < N; i++) {
string[] input = Console.ReadLine().Split(' ');
int nexT = int.Parse(input[0]);
int nexX = int.Parse(inpu... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 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], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["... | 8 | 206 |
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
int[] inpt =
Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
int kibouCount = inpt[0];
CheckLen = inpt[1];
this.KibouList = new... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
int[] inpt =
Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
int kibouCount = inpt[0];
CheckLen = inpt[1];
this.KibouList = new... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258]] | 8 | 996 |
using System;
using System.Collections.Generic;
using System.Linq;
class Solution {
static int GetSum(int[][] table, int x0, int y0, int x1, int y1) {
var maxX = Math.Max(x0, x1);
var maxY = Math.Max(y0, y1);
var minX = Math.Min(x0, x1);
var minY = Math.Min(y0, y1);
int sum = table[maxY][maxX];
... | using System;
using System.Collections.Generic;
using System.Linq;
class Solution {
static int GetSum(int[][] table, int x0, int y0, int x1, int y1) {
var maxX = Math.Max(x0, x1);
var maxY = Math.Max(y0, y1);
var minX = Math.Min(x0, x1) - 1;
var minY = Math.Min(y0, y1) - 1;
int sum = table[maxY]... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 4... | 8 | 818 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class MainClass : Scanner {
static void Main() {
int K = RInt();
long[] A = RLongs();
solve(K, A);
}
static void solve(int K, long[] A) {
Array.Reverse(A);
long min = A[0]... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class MainClass : Scanner {
static void Main() {
int K = RInt();
long[] A = RLongs();
solve(K, A);
}
static void solve(int K, long[] A) {
Array.Reverse(A);
long min = 2;
... | [["-", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 212, 0, 16, 31, 16, 31, 204, 205, 22], ["-", 0, 16, 31, 16, 31, 204, 20... | 8 | 938 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using CS = System.Runtime.CompilerServices;
// using System.Diagnostics;
using static System.Math;
using ll = System.Int64;
using static Contest_B.Lib_IO;
using static Contest_B.Lib_Minifunc;
namespace Cont... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using CS = System.Runtime.CompilerServices;
// using System.Diagnostics;
using static System.Math;
using ll = System.Int64;
using static Contest_B.Lib_IO;
using static Contest_B.Lib_Minifunc;
namespace Cont... | [["+", 0, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, ... | 8 | 4,323 |
using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace AGC020B {
class Program {
static void Main(string[] args) {
var K = RInt;
var A = RLongs;
long min = 2;
long max = 2;
for (int i = K - 1; i >=... | using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace AGC020B {
class Program {
static void Main(string[] args) {
var K = RInt;
var A = RLongs;
long min = 2;
long max = 2;
for (int i = K - 1; i >=... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196... | 8 | 1,229 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { AGC020.B(); }
class AGC020 {
public static void A() {
var N = Read.Int();
var A = Read.Int();
var B = Read.Int();
Console.WriteLine(Math.Abs(A - B) % ... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { AGC020.B(); }
class AGC020 {
public static void A() {
var N = Read.Int();
var A = Read.Int();
var B = Read.Int();
Console.WriteLine(Math.Abs(A - B) % ... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196... | 8 | 1,249 |
using System;
namespace AGC020_B___Ice_Rink_Game {
class Program {
static void Main(string[] args) { Console.WriteLine(solver()); }
static string solver() {
var K = int.Parse(Console.ReadLine());
var A = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
if (A[K - 1] != 2)
return "-1";
... | using System;
namespace AGC020_B___Ice_Rink_Game {
class Program {
static void Main(string[] args) { Console.WriteLine(solver()); }
static string solver() {
var K = int.Parse(Console.ReadLine());
var A = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
if (A[K - 1] != 2)
return "-1";
... | [["+", 8, 196, 0, 37, 0, 41, 15, 16, 31, 22], ["+", 8, 196, 0, 37, 0, 41, 15, 16, 17, 18], ["+", 8, 196, 0, 37, 0, 41, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 37, 0, 41, 0, 101], ["+", 8, 196, 0, 37, 0, 41, 64, 283, 0, 62], ["+", 0, 195, 8, 196, 0, 37, 0, 41, 0, 102], ["+", 8, 196, 0, 37, 0, 41, 75, 5, 0, 62], ["+", ... | 8 | 189 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
class Program {
const long MOD = (long)1e9 + 7;
static void Main(string[] args) {
// main ↓
bool dekiru = true;
int x = 2;
int max = x;
int min = x;
int n = ScanOneInt();
int[] k = ScanIn... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
class Program {
const long MOD = (long)1e9 + 7;
static void Main(string[] args) {
// main ↓
bool dekiru = true;
long max = 2;
long min = 2;
int n = ScanOneInt();
long[] k = ScanLongArray(n);
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 19... | 8 | 3,164 |
using System;
using System.Collections.Generic;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
long[] s = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
string ans = "-1";
long a = 2, b = 3;
bool d = false;
if (s[n - 1] == 2) {
for (int i = n - 2; ... | using System;
using System.Collections.Generic;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
long[] s = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
string ans = "-1";
long a = 2, b = 3;
bool d = false;
if (s[n - 1] == 2) {
for (int i = n - 2; ... | [["-", 0, 57, 75, 57, 64, 196, 0, 57, 0, 121], ["-", 0, 57, 75, 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, 109], ["-", 0, 57, 15, 16, 31, 16, 12, 204, 205, 22], ["-", 15, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["-", 12, 204, 206, 207, 0, 28, 0, 1... | 8 | 253 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
class Solution {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int l = 2, r = 2;
for (int i = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
class Solution {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
long l = 2, r = 2;
for (int i =... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["-", 0, 41, 15, 16, 31, 16, 31, 16, 17, 85], ["-", 15, 16, 31, 16, 31, 16, 12, 204, 205, 22], ["-", 31, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["-", 31, 16, 12, 204, 206, 207, 0, ... | 8 | 213 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Test {
class Program {
static void Main(string[] args) {
long n = long.Parse(Console.ReadLine());
long[] x = Console.ReadLine().Split().Select(long.Parse).ToArray();
long[] min = new long[n];
long[] max = new long[n];
mi... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Test {
class Program {
static void Main(string[] args) {
long n = long.Parse(Console.ReadLine());
long[] x = Console.ReadLine().Split().Select(long.Parse).ToArray();
long[] min = new long[n];
long[] max = new long[n];
mi... | [["-", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 23, 0, 16, 31, 204, 205, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 16, 12, 204, 205... | 8 | 316 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpressi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpressi... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, ... | 8 | 4,309 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.IO;
namespace AtCoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.IO;
namespace AtCoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong(... | [["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 72], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 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... | 8 | 419 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public static class TemplateExtension {
public static X[] MakeArray<X>(this int count, Func<in... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public static class TemplateExtension {
public static X[] MakeArray<X>(this int count, Func<in... | [["-", 8, 201, 0, 124, 0, 198, 39, 224, 39, 199], ["+", 8, 201, 0, 124, 0, 198, 39, 224, 39, 199], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 28, 0, 218, 8, 213, ... | 8 | 916 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace AtCoder.AGC020 {
class IceRinkGame {
public static void Main() {
var k = int.Parse(ReadLine().Trim());
var a = ReadLine().Trim().Split(' ').Select(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace AtCoder.AGC020 {
class IceRinkGame {
public static void Main() {
var k = int.Parse(ReadLine().Trim());
var a = ReadLine().Trim().Split(' ').Select(... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 8, 201, 0, 195, 54, 55,... | 8 | 273 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
class Program {
static StreamWriter sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
static Scan sc = new Scan();
static void Main(string[] args) {
int n = sc.Int... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
class Program {
static StreamWriter sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
static Scan sc = new Scan();
static void Main(string[] args) {
int n = sc.Int... | [["+", 12, 16, 12, 23, 0, 41, 15, 16, 17, 98], ["+", 0, 41, 15, 16, 12, 16, 31, 23, 0, 24], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 17, 67], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 41, 15, 16, 12, 16, 31, 23, 0, 25], ["+", 12, 23, 0, 41, 15, 16, 12, 16, 17, 79]... | 8 | 1,172 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace A {
class Program {
static void Main(string[] args) {
var K_S = Console.ReadLine()
.Split(' ')
.Select(x => int.P... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace A {
class Program {
static void Main(string[] args) {
var K_S = Console.ReadLine()
.Split(' ')
.Select(x => int.P... | [["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 35], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22], ["-", 0, 7, 8, 196... | 8 | 223 |
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, 7, 8, 196, 0, 7, 0, 88], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 35], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22], ["-", 0, 7, 8, 196... | 8 | 538 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main() {
var input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
var limit = input[0];
for (int i = 0; i < limit + 1; i++) {
var tenK = 10000 * i;
for (int j = 0; j < l... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main() {
var input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
var limit = input[0];
for (int i = 0; i <= limit; i++) {
var tenK = 10000 * i;
for (int j = 0; i + j <=... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 7, 15, 16, 12, 16, 31, 16, 31, 22], ["-", 0... | 8 | 176 |
using System;
using System.Linq;
using static System.Console;
static class Extensions {
public static int ToInt(this string str) { return int.Parse(str); }
}
class Program {
public static void Main(string[] args) {
var arr = ReadLine().Split(' ').Select(x => x.ToInt()).ToArray();
var n = arr[0];
var y... | using System;
using System.Linq;
using static System.Console;
static class Extensions {
public static int ToInt(this string str) { return int.Parse(str); }
}
class Program {
public static void Main(string[] args) {
var arr = ReadLine().Split(' ').Select(x => x.ToInt()).ToArray();
var n = arr[0];
var y... | [["-", 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, 211, 0, 147], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17,... | 8 | 203 |
using System;
class Program {
static void Main(string[] args) {
int cnt1;
int cnt2;
int[] cashNum = { 0, 0, 0 };
int sum = 0;
bool bk = false;
string[] str = Console.ReadLine().Split(' ');
int num = int.Parse(str[0]);
int cash = int.Parse(str[1]);
for (cnt1 = 0; cnt1 <= num; cnt... | using System;
class Program {
static void Main(string[] args) {
int cnt1;
int cnt2;
int[] cashNum = { -1, -1, -1 };
int sum = 0;
bool bk = false;
string[] str = Console.ReadLine().Split(' ');
int num = int.Parse(str[0]);
int cash = int.Parse(str[1]);
for (cnt1 = 0; cnt1 <= num; ... | [["-", 0, 198, 0, 200, 0, 212, 0, 229, 0, 203], ["+", 0, 200, 0, 212, 0, 229, 0, 241, 0, 33], ["+", 0, 200, 0, 212, 0, 229, 0, 241, 0, 203]] | 8 | 222 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace TestApp {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var n = str[0];
var y = str[1];
Money money = null;
var lists = new List<Money>();
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace TestApp {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var n = str[0];
var y = str[1];
Money money = null;
var lists = new List<Money>();
... | [["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 35], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 22], ["+", 0, 198, 0,... | 8 | 299 |
using System;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var N = input[0];
var Y = input[1];
JudgeMoney(N, Y);
}
static private void JudgeMoney(int N, int Y) {
for (int i = 0... | using System;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ').Select(Int64.Parse).ToArray();
var N = input[0];
var Y = input[1];
JudgeMoney(N, Y);
}
static private void JudgeMoney(Int64 N, Int64 Y) {
for (Int... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 22], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 22], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, ... | 8 | 214 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Program {
internal static void Main(string[] args) {
var inp = ReadLine().Split(' ').Select(s => long.Parse(s)).ToList();
var N = inp[0];
var Y = inp[1];
for (long i = N; i >= 0; i--) {
for (l... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Program {
internal static void Main(string[] args) {
var inp = ReadLine().Split(' ').Select(s => long.Parse(s)).ToList();
var N = inp[0];
var Y = inp[1];
for (long i = N; i >= 0; i--) {
for (l... | [["-", 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, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 20], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 35], ["-", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22], ["-", 0, 7, 8, 196, ... | 8 | 187 |
using System;
using System.Linq;
namespace ABC085 {
class C {
static void Main(string[] args) {
var NY = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var N = NY[0];
var Y = NY[1];
for (int i = 0; i <= N; i++)
for (int j = 0; j <= N - i; j++)
for (int k = 0; k <= N ... | using System;
using System.Linq;
namespace ABC085 {
class C {
static void Main(string[] args) {
var NY = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var N = NY[0];
var Y = NY[1];
for (int i = 0; i <= N; i++)
for (int j = 0; j <= N - i; j++) {
var k = N - i - j;
... | [["-", 8, 196, 0, 7, 8, 7, 8, 7, 0, 88], ["-", 8, 196, 0, 7, 8, 7, 8, 7, 0, 24], ["-", 0, 7, 8, 7, 8, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 8, 7, 8, 196, 0, 45], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 7, 8, 7, 0, 35], ["-", 0, 7, 8, 7, 8,... | 8 | 172 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
var line = Console.ReadLine();
int n = int.Parse(line.Split(' ')[0]);
int y = int.Parse(line.Split(' ')[1]);
for (int a = 0; a <= n; a++) {
for (int b = 0; b ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
var line = Console.ReadLine();
int n = int.Parse(line.Split(' ')[0]);
int y = int.Parse(line.Split(' ')[1]);
for (int a = 0; a <= n; a++) {
for (int b = 0; b ... | [["+", 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 | 178 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpressi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpressi... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 15, 16, 12, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 12, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 31, 22]... | 8 | 4,296 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class hawawa {
static Printer sw =
new Printer(Console.OpenStandardOutput()) { AutoFlush = false };
static void Main() {
Console.SetOut(sw);
... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class hawawa {
static Printer sw =
new Printer(Console.OpenStandardOutput()) { AutoFlush = false };
static void Main() {
Console.SetOut(sw);
... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 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], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 8, 1... | 8 | 455 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace Program {
public class ABC085D {
static public void Main(string[] args) {
var N = NextInt;
var H = NextLong;
var count = 0;
var maxa = 0L;
var sum = 0L;
var bary = new long[N];
for (int i = 0; ... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace Program {
public class ABC085D {
static public void Main(string[] args) {
var N = NextInt;
var H = NextLong;
var count = 0;
var maxa = 0L;
var sum = 0L;
var bary = new long[N];
for (int i = 0; ... | [["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 24], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 25], ["+", 0, 210, 8, 196, 0, 57, 64, 116, 0, 117]... | 8 | 485 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using stat... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57,... | 8 | 2,748 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static ABC085D.Input;
using static System.Math;
namespace ABC085D {
class Input {
private static String String() => Console.ReadLine();
private static IEnumerable<string> Split() => String().Split(' ');
private static lon... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static ABC085D.Input;
using static System.Math;
namespace ABC085D {
class Input {
private static String String() => Console.ReadLine();
private static IEnumerable<string> Split() => String().Split(' ');
private static lon... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 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], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["+", 0, 7... | 8 | 1,155 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using static kyoupuro.Input;
using static kyoupuro.MyMath;
namespace kyoupuro {
class MainClass {
public static void Main() {
var N = NextInt();
var H = NextLong();
long maxA = 0;
var b = new Li... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using static kyoupuro.Input;
using static kyoupuro.MyMath;
namespace kyoupuro {
class MainClass {
public static void Main() {
var N = NextInt();
var H = NextLong();
long maxA = 0;
var b = new Li... | [["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", ... | 8 | 474 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.