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 static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var num = ToInt64(ReadLine());
var dig = num.ToString().Length;
var max = (dig - 1) * 9 + (ToInt32(num.T... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var num = ToInt64(ReadLine());
var dig = num.ToString().Length;
var max = (dig - 1) * 9 + (ToInt32(num.T... | [["+", 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, 60], ["+", 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, 93, 0, 94], ["+", 0, 7, 8... | 8 | 179 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Solver {
Scanner sc = new Scanner();
public void Solve() {
var N = ReadLine();
WriteLine((int.Parse(N[0].ToString()) - 1) + ((N.Length - 1) * 9));
}
}
class Scanner {
string[] s;
int i;
char[] ... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Solver {
Scanner sc = new Scanner();
public void Solve() {
var N = ReadLine();
var first = int.Parse(N[0].ToString());
first -= (N.Skip(1).Any(c => c != '9')) ? 1 : 0;
WriteLine(first + ((N.Leng... | [["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 31, 23, 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, 28, 0, 16, 31, 23, 0, 16, 17, 33], ["+"... | 8 | 459 |
using System;
using System.Collections.Generic;
namespace Competitive {
internal class Program {
public static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
List<int> digits = new List<int>();
while (N > 0) {
digits.Add(N % 10);
N /= 10;
}
bool flag = true;
f... | using System;
using System.Collections.Generic;
namespace Competitive {
internal class Program {
public static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
var digits = new List<int>();
while (N > 0) {
int n = (int)(N % 10);
digits.Add(n);
N /= 10;
}
boo... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["-", 0, 197, 0, 198, 39,... | 8 | 174 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] x = new int[n], y = new int[n];
for (int i = 0; i < n; i++) {
string[] pos = Console.ReadLine().Split(' ');
x[i] = int.Parse(pos[0]);
y[i] = int.... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
long[] x = new long[n], y = new long[n];
for (int i = 0; i < n; i++) {
string[] pos = Console.ReadLine().Split(' ');
x[i] = int.Parse(pos[0]);
y[i] = i... | [["-", 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]] | 8 | 427 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AGC021B {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int num = 100000;
double[] max = new double[num];
double[] min = new double[... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AGC021B {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int num = 50000;
// double[] max = new double[num];
// double[] min = new do... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 70], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 0, 213, 63, 214, 205, ... | 8 | 656 |
using System;
namespace practice {
class programpractice {
static void Main(string[] args) {
var A = int.Parse(Console.ReadLine());
var N = int.Parse(Console.ReadLine());
if (N % 500 <= A) {
Console.WriteLine("Yes");
} else {
Console.WriteLine("No");
}
}
}
} | using System;
namespace practice {
class programpractice {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var A = int.Parse(Console.ReadLine());
if (N % 500 <= A) {
Console.WriteLine("Yes");
} else {
Console.WriteLine("No");
}
}
}
} | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22]] | 8 | 81 |
using System;
namespace ProgrammingContest {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int a = int.Parse(Console.ReadLine());
n %= 500;
Console.WriteLine((n < a) ? "Yes" : "No");
}
}
}
| using System;
namespace ProgrammingContest {
class Program {
static void Main(string[] args) {
// 1 <= n <= 10000
int n = int.Parse(Console.ReadLine());
// 0 <= a <= 1000
int a = int.Parse(Console.ReadLine());
Console.WriteLine((((n %= 500) <= a) ? "Yes" : "No"));
}
}
}
| [["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 23, 0, 24], ["-", 0, 28, 0, 41, 15, 23, 0, 16, 17, 18], ["+", 0, 16, 3... | 8 | 73 |
using System;
class Program {
static void Main(string[] args) {
// 支払総額N円
string input = Console.ReadLine();
int payTotal = int.Parse(input);
// 1円硬貨枚数A
input = Console.ReadLine();
int one = int.Parse(input);
// 支払総額を500円で割った余りを計算
int surplus = payTotal % 500;
if (surplus <= on... | using System;
class Program {
static void Main(string[] args) {
// 支払総額N円
string input = Console.ReadLine();
int payTotal = int.Parse(input);
// 1円硬貨枚数A
input = Console.ReadLine();
int one = int.Parse(input);
// 支払総額を500円で割った余りを計算
if ((payTotal % 500) <= one) {
Console.WriteLi... | [["-", 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], ["+", 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, 23, 0, 24], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, ... | 8 | 94 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace program {
class Program {
static void Main() {
int N = Input.ScanInt();
int A = Input.ScanInt() % 500;
Console.WriteLine(A <= N ? "Yes" : "No");
}
}
static class Input {
static public int ScanInt() { return int.Parse(Conso... | using System;
using System.Linq;
using System.Collections.Generic;
namespace program {
class Program {
static void Main() {
int N = Input.ScanInt() % 500;
int A = Input.ScanInt();
Console.WriteLine(N <= A ? "Yes" : "No");
}
}
static class Input {
static public int ScanInt() { return int.Parse(Conso... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19], ["... | 8 | 598 |
using System;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。
int a = int.Parse(Console.ReadLine());
if (n % 500 <= a)
Console.WriteLine("YES"); // WriteLineをWriteとすると、改行なしで出力。
else
Console.WriteLine("NO");
}
}
| using System;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。
int a = int.Parse(Console.ReadLine());
if ((n % 500) <= a) {
Console.WriteLine("Yes"); // WriteLineをWriteとすると、改行なしで出力。
} else {
Console.WriteLine("No");
}
}
}
| [["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0... | 8 | 71 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoderBS {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int n = int.Parse(Console.ReadLine());
if ((a % 500) < n) {
Console.Wri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoderBS {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int n = int.Parse(Console.ReadLine());
if ((a % 500) <= n) {
Console.Wr... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-... | 8 | 113 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class A {
static void Main(string[] args) {
int A = int.Parse(Console.ReadLine());
int N = int.Parse(Console.ReadLine());
if (N % 500 > A || N == 0) {
Console.Wri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class A {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int A = int.Parse(Console.ReadLine());
if (N % 500 > A || N == 0) {
Console.Wri... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22]] | 8 | 109 |
using System;
using System.IO;
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
Array.Sort(a);
var answer = 0;
for (int i = 0; i < N; i++)
if (i % 2 == 0)
answer -= a[i];
e... | using System;
using System.IO;
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
Array.Sort(a);
Array.Reverse(a);
var answer = 0;
for (int i = N - 1; i >= 0; i--)
if (i % 2 == 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, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 7... | 8 | 148 |
using System;
namespace ChokudaiScanner {
class MainClass {
static void Main() {
Scanner cin = new Scanner();
int N = cin.NextInt();
int[] a = cin.ArrayInt(N);
int A = 0;
int B = 0;
Array.Sort(a);
Array.Reverse(a);
for (int i = 0; i < a.Length; i++) {
if (!(i % 2 == 0)) {
... | using System;
namespace ChokudaiScanner {
class MainClass {
static void Main() {
Scanner cin = new Scanner();
int N = cin.NextInt();
int[] a = cin.ArrayInt(N);
int A = 0;
int B = 0;
int C = 1;
Array.Sort(a);
Array.Reverse(a);
for (int i = 0; i < a.Length; i++) {
if (C % 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, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 15, 241, 0, 11... | 8 | 528 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
// 自分の得意な言語で
// Let's チャレンジ!!
var line = System.Console.ReadLine();
int N = Convert.ToInt16(line);
int[] cards = new int[N];
line = Console.ReadLine();
var nums = line.Split(new char[] { ' '... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var line = System.Console.ReadLine();
int N = Convert.ToInt16(line);
int[] cards = new int[N];
line = Console.ReadLine();
var nums = line.Split(new char[] { ' ' });
for (int i = 0; i < N; i++) {... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131]] | 8 | 190 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace B {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var a = Console.ReadLine()
.Split()
.Select(int.Parse)
.OrderByDescending(x => x)
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace B {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var a = Console.ReadLine()
.Split()
.Select(int.Parse)
.OrderByDescending(x => x)
... | [["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 24], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 21], ["+", 0, 28, 0, 218, 54, 55, 0, 220, 141, 22], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 25], ["-", 0, 28, 0, 218, 8, 16, 31, 16, 31, 22], ["+", 0, 28, 0, 218, 8, 16, 31, 16, 31, 22], ["-", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-"... | 8 | 123 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
var N = int.Parse(Console.ReadLine());
var A = Console.ReadLine().Split().Select(int.Parse).ToList();
A.Reverse();
var alice = 0;
var bob = 0;
for (var i = 0; i < A.Count; i++) {
if (... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
var N = int.Parse(Console.ReadLine());
var A =
Console.ReadLine().Split().Select(int.Parse).OrderBy(x => -x).ToList();
var alice = 0;
var bob = 0;
for (var i = 0; i < A.Count; i++) {
... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 3, 4, 0, 28, 0, 218, 8, 241, 0, 33], ["+", 3, 4, 0, 28, 0, 218, 8, 241, 0, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, ... | 8 | 134 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main() {
var num = int.Parse(Console.ReadLine());
var input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
input.Sort((x, y) => y - x);
var result = 0;
for (int i = 0; i < i... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main() {
var num = int.Parse(Console.ReadLine());
var input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
input.Sort((x, y) => y - x);
var result = 0;
for (int i = 0; i < i... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 31, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60... | 8 | 146 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace ABC091.C
{
using static Util;
public class Solver : SolverBase
{
public void Run() {
var N = ReadInt();
List<XY> ListA = new List<XY>(N);
List<XY> ListB = new List<XY>(N);
for (i... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace ABC091.C
{
using static Util;
public class Solver : SolverBase
{
public void Run() {
var N = ReadInt();
List<XY> ListA = new List<XY>(N);
List<XY> ListB = new List<XY>(N);
for (i... | [["+", 0, 57, 15, 16, 31, 16, 31, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 16, 31, 16, 12, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 16, 12, 21... | 8 | 1,857 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp1 {
class Program {
static void Main(string[] a_asArgs) {
int l_iN = int.Parse(Console.ReadLine());
List<Point> l_lpRed = new List<Point>();
List<Point> l_lpBlue = new List<Point>();
for (int l_iIndex = 0; l_iInd... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp1 {
class Program {
static void Main(string[] a_asArgs) {
int l_iN = int.Parse(Console.ReadLine());
List<Point> l_lpRed = new List<Point>();
List<Point> l_lpBlue = new List<Point>();
for (int l_iIndex = 0; l_iInd... | [["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 98], ["+", 0, 218, 8, 16, 12, 16, 31, 214, 205, 22], ["+", 0, 218, 8, 16, 12, 16, 31, 214, 0, 131], ["+", 0, 218, 8, 16, 12, 16, 31, 214, 141, 22], ["+", 0, 28, 0, 218, 8, 16, 12, 16, 17, 18], ["+", 0, 218, 8, 16, 12, 16, 12, 214, 205, 22], ["+", 0, 218, 8, 16, 12, 16, 12, 214, 0,... | 8 | 386 |
// Wrote after ended the contest
using System;
using System.Linq;
public class Program {
public static void Main() {
int N = int.Parse(Console.ReadLine());
int[][] red = new int [N][];
int[][] blue = new int [N][];
for (int i = 0; i < N; i++)
red[i] = Console.ReadLine().Split(' ').Select(int.Par... | // Wrote after ended the contest
using System;
using System.Linq;
public class Program {
public static void Main() {
int N = int.Parse(Console.ReadLine());
int[][] red = new int [N][];
int[][] blue = new int [N][];
for (int i = 0; i < N; i++)
red[i] = Console.ReadLine().Split(' ').Select(int.Par... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 15, 16, 12, 16, 31, 204, 205, 204, 205, 22], ["+", 12, 16, 31, 204, 205, 204, 206, 207, 0, 70], ["+", 31, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 16, 31, 204, 205, 204, 206, 207, 0, 73], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, ... | 8 | 275 |
namespace AtCoder.ABC.C092 {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.IO;
using AtCoder.ABC.IO;
public class Quest {
public object Solve(Parser parser) {
int n = parser.Integer();
var red = parser.... | namespace AtCoder.ABC.C092 {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.IO;
using AtCoder.ABC.IO;
public class Quest {
public object Solve(Parser parser) {
int n = parser.Integer();
var red = parser.... | [["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 3, 4, 0, 28, 0, 218, 8, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 218, 8, 214, 14... | 8 | 1,266 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static void Main() {
long answer = 0;
long n = long.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。
long[][] vertexesRed = new long [n][]; // x座標、y座標、使ったら1
long[][] vertexesBlue = new long [n][]; // x座標、y座標... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static void Main() {
long answer = 0;
long n = long.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。
long[][] vertexesRed = new long [n][]; // x座標、y座標、使ったら1
long[][] vertexesBlue = new long [n][]; // x座標、y座標... | [["-", 0, 1, 0, 11, 12, 204, 205, 204, 205, 22], ["-", 0, 11, 12, 204, 205, 204, 206, 207, 0, 70], ["-", 0, 11, 12, 204, 205, 204, 206, 207, 0, 73], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], ["+", 0, 7, 8, 196, 0, 7, 8, 19... | 8 | 492 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp36 {
class Program {
static void Main(string[] args) {
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
string s3 = Console.ReadLine();
Console.Write... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp36 {
class Program {
static void Main(string[] args) {
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
string s3 = Console.ReadLine();
Console.Write... | [["+", 0, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0... | 8 | 93 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace A {
class Program {
static void Main(string[] args) {
for (int i = 0; i < 3; i++) {
Console.WriteLine(Console.ReadLine().ToCharArray()[i]);
}
}
}
}
| using System;
using System.Linq;
using System.Collections.Generic;
namespace A {
class Program {
static void Main(string[] args) {
for (int i = 0; i < 3; i++) {
Console.Write(Console.ReadLine().ToCharArray()[i]);
}
Console.WriteLine();
}
}
}
| [["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 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, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 68 |
using System;
namespace AtCoder.ABC090 {
public class A {
public static void Solve() {
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
string s3 = Console.ReadLine();
Console.WriteLine(s1[0] + s2[1] + s3[2]);
}
}
}
namespace AtCoder {
class Program {
static void ... | using System;
namespace AtCoder.ABC090 {
public class A {
public static void Solve() {
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
string s3 = Console.ReadLine();
Console.WriteLine(s1[0].ToString() + s2[1].ToString() + s3[2].ToString());
}
}
}
namespace AtCoder... | [["+", 0, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0... | 8 | 96 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
string s1 = Cin.Next();
string s2 = Cin.Next();
string s3 = Cin.Next();
Console.WriteLine(s1[0] + s2[1] + s3[2]);
}
}
public class Cin {
private static string[] s = new string[0];
private static int i = 0;
pr... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
string s1 = Cin.Next();
string s2 = Cin.Next();
string s3 = Cin.Next();
Console.WriteLine(s1[0].ToString() + s2[1].ToString() + s3[2].ToString());
}
}
public class Cin {
private static string[] s = new string[0];
... | [["+", 0, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0... | 8 | 235 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc090_b {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int sum = 0;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc090_b {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int sum = 0;
... | [["-", 15, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 31, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 15, 16, 31, 16, 31, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 15, 16, 31, 16, 12, 213, 63, 214, 205, 22], ["+", 15, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 15, 16, 31, 16, 12, 213, 63, 214,... | 8 | 152 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace atcoder_問題5_B2問目 {
class Program {
static void Main(string[] args) {
//問題5
string[] input = Console.ReadLine().Split(' ');
int c = Convert.ToInt32(input[0]);
int d = Convert.T... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace atcoder_問題5_B2問目 {
class Program {
static void Main(string[] args) {
//問題5
//入力を受け取る
string[] input = Console.ReadLine().Split(' ');
int a = Convert.ToInt32(input[0]);
int... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 2... | 8 | 216 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
var t = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }),
number => int.Parse(number));
var n = t[0] == 1 ? 1 : t[0] - 2;
var m = t[1] == 1 ? 1 : t[1] - 2;
Con... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
var t = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }),
number => long.Parse(number));
long n = t[0] == 1 ? 1 : t[0] - 2;
long m = t[1] == 1 ? 1 : t[1] - 2;
l... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 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... | 8 | 115 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class QuestionD {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Co... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class QuestionD {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Co... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 31, 22], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 17, 72]... | 8 | 257 |
// C - Flip,Flip, and Flip......
using System;
using System.Linq;
using System.Collections.Generic;
namespace C {
class Program {
static void Main(string[] args) {
var nm = Console.ReadLine().Split().Select(long.Parse).ToArray();
var ans = 0L;
if (nm[0] > 1 && nm[1] > 1) {
ans = (nm[0] - 2) * (n... | // C - Flip,Flip, and Flip......
using System;
using System.Linq;
using System.Collections.Generic;
namespace C {
class Program {
static void Main(string[] args) {
var nm = Console.ReadLine().Split().Select(long.Parse).ToArray();
var ans = 0L;
if (nm[0] > 1 && nm[1] > 1) {
ans = (nm[0] - 2) * (n... | [["-", 0, 57, 75, 57, 15, 16, 31, 23, 0, 24], ["-", 15, 16, 31, 23, 0, 16, 12, 16, 17, 47], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 17, 60], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 106], ["-", 0, 57, 75, 57, 15, 16, 12, 23, 0, 24], ["-", 12, 23, 0, 16, 31, 16, 31, 204, 205, 22], ["-", 0, 16, 31, 16, 31, 204, 206, 207, 0,... | 8 | 172 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
public class C {
public static void Main() {
string[] args = Console.ReadLine().Split(' ');
long N = Int64.Parse(args[0]);
long M = Int64.Parse(args[1]);
long ans = 0;
if (N == 1)
ans = M - 2;
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
public class C {
public static void Main() {
string[] args = Console.ReadLine().Split(' ');
long N = Int64.Parse(args[0]);
long M = Int64.Parse(args[1]);
long ans = 0;
if ((N == 1) && (M == 1))
ans... | [["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 0, 57, 15, 16, 12, 23, 0, 16, 31, 22], ["... | 8 | 129 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) { Solve(); }
static void Solve() {
Scan sc = new Scan();
write wr = new write();
var s = sc.longarr;
long n = s[0];
long m = s[1... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) { Solve(); }
static void Solve() {
Scan sc = new Scan();
write wr = new write();
var s = sc.longarr;
long n = s[0];
long m = s[1... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22],... | 8 | 269 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var nm = Array.ConvertAll(ReadLine().Split(' '), int.Parse);
var eg = nm[0] + 2 * (nm[1] - 1) + nm[0] - 2;
... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var nm = Array.ConvertAll(ReadLine().Split(' '), int.Parse);
var eg = (long)nm[0] + 2 * (nm[1] - 1) + nm[0] ... | [["+", 0, 16, 31, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 16, 31, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 16, 31, 16, 31, 16, 31, 74, 0, 25], ["+", 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, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0,... | 8 | 171 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Numerics;
#if DEBUG
using Microsoft.VisualStudio.TestTools.UnitTesting;
#endif
namespace competitive_programming {
public class Program {
static void Main(string[] args) ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Numerics;
#if DEBUG
using Microsoft.VisualStudio.TestTools.UnitTesting;
#endif
namespace competitive_programming {
public class Program {
static void Main(string[] args) ... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 64, 1, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ... | 8 | 1,064 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
private static int ReadAndParseInt() { return int.Parse(Console.ReadLine()); }
private static int[] ReadAndParseIntArr() {
return Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
private static int ReadAndParseInt() { return int.Parse(Console.ReadLine()); }
private static int[] ReadAndParseIntArr() {
return Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse)... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 2... | 8 | 264 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Program {
internal static void Main(string[] args) {
long[] inp = ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray();
long N = inp[0];
long M = inp[1];
if (N == 1 || M == 1) {
WriteLin... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Program {
internal static void Main(string[] args) {
long[] inp = ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray();
long N = inp[0];
long M = inp[1];
if (N == 1 && M == 1) {
WriteLin... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 213, 63, 22]... | 8 | 154 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Atcoder;
using System.Threading.Tasks;
using System.ComponentModel;
public class Hello {
public static void Main() {
string[] n = SpRead(' ');
long N = long.Parse(n[0]);
long M = long.Parse(n[1]);
/*
000 110 001 010... | using System;
using System.Collections.Generic;
using System.Linq;
using static Atcoder;
using System.Threading.Tasks;
using System.ComponentModel;
public class Hello {
public static void Main() {
string[] n = SpRead(' ');
long N = long.Parse(n[0]);
long M = long.Parse(n[1]);
/*
000 110 001 010... | [["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 17, 60], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 25], ["+", 75, 57, 64, 1, 0, 213, 63, 214, 205, 2... | 8 | 378 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
namespace Atcoder {
class Program {
static void Main(string[] args) {
// var N = int.Parse(Console.ReadLine());
// var inputList = new List<int>();
// foreach (var i ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
namespace Atcoder {
class Program {
static void Main(string[] args) {
// var N = int.Parse(Console.ReadLine());
// var inputList = new List<int>();
// foreach (var i ... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 195, 8, 196, 0, 57, 75... | 8 | 215 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AtCoder.ABC090.C {
class Program {
static void Main() {
int[] inputs = Console.ReadLine()
.Split(' ')
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AtCoder.ABC090.C {
class Program {
static void Main() {
decimal[] inputs = Console.ReadLine()
.Split(... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 57, 64, 196, 0, 1,... | 8 | 179 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc_090c {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int M = int.Parse(input[1]);
long res... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc_090c {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int M = int.Parse(input[1]);
long res... | [["+", 12, 16, 31, 23, 0, 16, 31, 74, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 31, 74, 39, 199], ["+", 12, 16, 31, 23, 0, 16, 31, 74, 0, 25], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+... | 8 | 170 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder2 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
long n = int.Parse(str[0]);
long m = int.Parse(str[1]);
long ans;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder2 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
long n = int.Parse(str[0]);
long m = int.Parse(str[1]);
long ans;
... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22],... | 8 | 137 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_D {
class D090 {
static void Main(string[] args) {
int[] h = Console.ReadLine().Split(' ').Select(z => int.Parse(z)).ToArray();
int N = h[0], K = h[1];
long counter = 0;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_D {
class D090 {
static void Main(string[] args) {
int[] h = Console.ReadLine().Split(' ').Select(z => int.Parse(z)).ToArray();
int N = h[0], K = h[1];
long counter = 0;
... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 200, 0, 212, 0, 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, 212, 0, 213, 3, 4, 0, 28... | 8 | 178 |
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var k = int.Parse(line[1]);
var ret = 0L;
for (int i = 1; i <= n; i++)
ret += getAns(n, i, k);
Console.WriteLine(ret);
}
public static int... | using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var k = int.Parse(line[1]);
var ret = 0L;
for (int i = 1; i <= n; i++)
ret += getAns(n, i, k);
Console.WriteLine(ret);
}
public static int... | [["-", 8, 201, 0, 195, 8, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, ... | 8 | 158 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
namespace Atcoder {
class Program {
static void Main(string[] args) {
// var N = int.Parse(Console.ReadLine());
// var inputList = new List<int>();
// foreach (var i ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
namespace Atcoder {
class Program {
static void Main(string[] args) {
// var N = int.Parse(Console.ReadLine());
// var inputList = new List<int>();
// foreach (var i ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 45], ["+", 8, 196, 0, 1, 0, 11, 12, 23, 0, 24], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 12,... | 8 | 181 |
using System;
using System.Collections.Generic;
using System.Linq;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
#endif
#e... | using System;
using System.Collections.Generic;
using System.Linq;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
#endif
#e... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46... | 8 | 1,698 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
long n = long.Parse(input[0]);
long k = long.Parse(input[1]);
long answer = 0;
for (long i = 1; i <... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
long n = long.Parse(input[0]);
long k = long.Parse(input[1]);
long answer = 0;
for (long i = 1; i <... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 1, 0, 213, 3, 4, 0, 25], ["... | 8 | 148 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Competitive {
internal class Solution {
private int N, K;
public void Run() {
int[] ary = Input.ReadIntArray();
N = ary[0];
K = ary[1];
long ret = 0;
for (int b = K + 1; b <= N; b++) {
ret += (N / b) * (b - K) ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Competitive {
internal class Solution {
private int N, K;
public void Run() {
int[] ary = Input.ReadIntArray();
N = ary[0];
K = ary[1];
long ret = 0;
for (int b = K + 1; b <= N; b++) {
int res = K == 0 ? N % b ... | [["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 0, 11, 12, 16, 31, 16, 31, 23, 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], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 31, 22], ["... | 8 | 223 |
using System;
using System.Collections.Generic;
public class Program {
private int N, A, B;
public void Solve() {
var sc = new Scanner();
N = sc.NextInt();
A = sc.NextInt();
B = sc.NextInt();
if (A + B - 1 > N) {
Console.WriteLine(-1);
return;
}
if ((long)A * B < N) {
... | using System;
using System.Collections.Generic;
public class Program {
private int N, A, B;
public void Solve() {
var sc = new Scanner();
N = sc.NextInt();
A = sc.NextInt();
B = sc.NextInt();
if (A + B - 1 > N) {
Console.WriteLine(-1);
return;
}
if ((long)A * B < N) {
... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 719 |
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, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 72... | 8 | 4,375 |
#pragma warning disable
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Diagnostics;
using System.Collections;
static class MainClass {
public static void Main() {
var a = Console.ReadLine()... | #pragma warning disable
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Diagnostics;
using System.Collections;
static class MainClass {
public static void Main() {
var a = Console.ReadLine()... | [["-", 0, 28, 0, 41, 15, 16, 31, 16, 17, 109], ["-", 0, 28, 0, 41, 15, 16, 31, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["-", 3, 4, 0, 28, 0, 41, 64, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 41, 64, 16, 17, 85], ["-", 3, 4,... | 8 | 1,244 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_ABC089_A {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
Console.WriteLine(n % 3);
}
}
} | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_ABC089_A {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
Console.WriteLine(((int)(n / 3)).ToString());
}
}
}
| [["+", 0, 28, 0, 213, 63, 214, 205, 23, 0, 24], ["+", 0, 213, 63, 214, 205, 23, 0, 74, 0, 24], ["+", 0, 213, 63, 214, 205, 23, 0, 74, 39, 199], ["+", 0, 213, 63, 214, 205, 23, 0, 74, 0, 25], ["+", 63, 214, 205, 23, 0, 74, 51, 23, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 205, 23, 0, 74, 51, 23, 0, 16, 1... | 8 | 69 |
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, 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, 214, 205, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 1... | 8 | 4,215 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderB {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
char[] s = sc.NextCharArray();
int count = s.Distinct().Count();
string answer = count == 3 ? "Three" : "Four";
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderB {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
List<char> s = new List<char>();
for (int i = 0; i < n; i++) {
s.Add(sc.NextChar());
}
int count = s.Distinc... | [["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 47], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212... | 8 | 389 |
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, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 19... | 8 | 2,245 |
using System;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long m = 0;
long a = 0;
long r = 0;
long c = 0;
long h = 0;
string s;
for (int i = 0; i < N; i++) {
s = Console.ReadLine();
if (s[0] == 'M')
... | using System;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long m = 0;
long a = 0;
long r = 0;
long c = 0;
long h = 0;
string s;
for (int i = 0; i < N; i++) {
s = Console.ReadLine();
if (s[0] == 'M')
... | [["+", 31, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 17, 48], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 48], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 23, 0, 25], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 72... | 8 | 247 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtCodeeeer {
class AtCOOOOOOOOOOOder {
static void Main(string[] args) {
//組み合わせを自らの手によって全列挙してしまえば難しいアルゴリズムなどは必要なくなる
int[] P = { 0, 0, 0, 0, ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtCodeeeer {
class AtCOOOOOOOOOOOder {
static void Main(string[] args) {
//組み合わせを自らの手によって全列挙してしまえば難しいアルゴリズムなどは必要なくなる
int[] P = { 0, 0, 0, 0, ... | [["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 25], ["+", 12, 16, 31, 16, 31, 74, 51, 23, 0, 24], ["+", 12, 16, 31, 16, 31, 74, 51, 23, 0, 25], ["+", 0, 11, 12, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 12, 74, 39, 199]... | 8 | 316 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder {
class Program {
static void Main(string[] args) { MainStream(); }
static void MainStream() {
Scan sc = new Scan();
write wr = new write();
int[] march = new int[5];
int[] P = { 0, 0, 0, 0, 0, 0, 1, 1, 1, 2 };
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder {
class Program {
static void Main(string[] args) { MainStream(); }
static void MainStream() {
Scan sc = new Scan();
write wr = new write();
int[] march = new int[5];
int[] P = { 0, 0, 0, 0, 0, 0, 1, 1, 1, 2 };
... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["-", 0, 7, 8, 196, 0, 57, 75, 57, 0, 95], ["-", 8, 196, 0, 57, 75, 57, 75, 57, 0, 95], ["-", 0, 57, 75, 57, 75, 57, 75, 57, 0, 95], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 25], ["-", ... | 8 | 494 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] l = new int[5] { 0, 0, 0, 0, 0 };
for (int i = 0; i < n; i++) {
string s = Console.ReadLine();
if (s[0] == 'M')
l[0]++;
if (s[0] == 'A')
l[1]++... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
long n = long.Parse(Console.ReadLine());
long[] l = new long[5] { 0, 0, 0, 0, 0 };
for (long i = 0; i < n; i++) {
string s = Console.ReadLine();
if (s[0] == 'M')
l[0]++;
if (s[0] == 'A')
l... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, ... | 8 | 326 |
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) {
int N = int.Parse(Console.ReadLine());
int m = 0, a = 0, r = 0, c = 0, h = 0;
for (int i = 0; i < N; i++) {
string S... | 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 = int.Parse(Console.ReadLine());
long m = 0, a = 0, r = 0, c = 0, h = 0;
for (long i = 0; i < N; i++) {
strin... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199]] | 8 | 338 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Numerics;
#if DEBUG
using Microsoft.VisualStudio.TestTools.UnitTesting;
#endif
namespace competitive_programming {
public class Program {
static void Main(string[] args) ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Numerics;
#if DEBUG
using Microsoft.VisualStudio.TestTools.UnitTesting;
#endif
namespace competitive_programming {
public class Program {
static void Main(string[] args) ... | [["+", 12, 23, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 12, 23, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 12, 23, 0, 16, 31, 16, 31, 74, 0, 25], ["+", 12, 23, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 12, 23, 0, 16, 31, 16, 12, 74, 39, 199], ["+", 12, 23, 0, 16, 31, 16, 12, 74, 0, 25], ["+", 0, 11, 12, 23, 0, 16, 12, 74, 0, 24], [... | 8 | 1,475 |
using System;
using System.Collections.Generic;
using System.Text;
namespace AtTest.C_Challenge {
class ABC_088 {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
int n = ReadInt();
var marchCnt = new ulong[5];
for (i... | using System;
using System.Collections.Generic;
using System.Text;
namespace AtTest.C_Challenge {
class ABC_088 {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
int n = ReadInt();
var marchCnt = new ulong[5];
for (i... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22]] | 8 | 412 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Program {
internal static void Main(string[] args) {
var N = int.Parse(ReadLine());
var S = new Dictionary<String, int>() {
{ "M", 0 }, { "A", 0 }, { "R", 0 }, { "C", 0 }, { "H", 0 }
};
for (in... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Program {
internal static void Main(string[] args) {
var N = int.Parse(ReadLine());
var S = new Dictionary<String, long>() {
{ "M", 0 }, { "A", 0 }, { "R", 0 }, { "C", 0 }, { "H", 0 }
};
for (i... | [["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 8, 196, 0, 7, 8, 196, 0, 99, 0, 155], ["-", 8, 196, 0, 7, 8, 196, 0, 99, 0, 24], ["-", 8, 196, 0, 7, 8, 196, 0, 99, 51, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 99, 0, 25], ["-", 0, 7, 8, 196, 0, 99, 8, 254, 0, 45], ["... | 8 | 376 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Linq;
using System.Diagnostics;
using System.Globalization;
using static System.Console;
using static System.Math;
namespace abc90_c {
class Program {
static void Main(string[] args) {
int n... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Linq;
using System.Diagnostics;
using System.Globalization;
using static System.Console;
using static System.Math;
namespace abc90_c {
class Program {
static void Main(string[] args) {
int n... | [["+", 31, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 16, 31, 23, 0, 25], ["+", 31, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 16, 12, 23, 0, 25], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 72], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 48], ["+", 0, 16, 31, 16, 31, 16, 12, 23, 0, 24... | 8 | 278 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc089c {
class Abc089c {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
double m = 0, a = 0, r = 0, c = 0, h = 0;
for (var i = 0; i != n; ++i) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc089c {
class Abc089c {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
double m = 0, a = 0, r = 0, c = 0, h = 0;
for (var i = 0; i != n; ++i) {
... | [["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 19... | 8 | 249 |
using System;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] a_asArgs) {
int l_iN =
Console.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray()[0];
char[] l_acHead = new char[] { 'M', 'A', 'R', 'C', 'H' };
int[] l_aiCount = new int[5];
for (int l_iI... | using System;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] a_asArgs) {
long l_iN =
Console.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray()[0];
char[] l_acHead = new char[] { 'M', 'A', 'R', 'C', 'H' };
long[] l_aiCount = new long[5];
for (long... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 22... | 8 | 363 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
// using System.Text;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
// using System.Numerics;
// using static System.Math;
// using pair = Pair<int, int... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
// using System.Text;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
// using System.Numerics;
// using static System.Math;
// using pair = Pair<int, int... | [["-", 0, 11, 12, 16, 31, 16, 31, 16, 17, 109], ["-", 0, 11, 12, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["-", 0, ... | 8 | 542 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main() {
Solve();
Console.ReadKey();
}
static void Solve() {
var A = GetInt();
var B = GetInt();
var X = GetInt();
var ans... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main() {
Solve();
Console.ReadKey();
}
static void Solve() {
var X = GetInt();
var A = GetInt();
var B = GetInt();
var ans... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22]] | 8 | 633 |
using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
// 整数の入力
long x = long.Parse(Console.ReadLine());
long a = long.Parse(Console.ReadLine());
long b = long.Parse(Console.ReadLine());
long remain = x - a;
while (remain > b) {
remain -= b;
}
Cons... | using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
// 整数の入力
long x = long.Parse(Console.ReadLine());
long a = long.Parse(Console.ReadLine());
long b = long.Parse(Console.ReadLine());
long remain = x - a;
while (remain >= b) {
remain -= b;
}
Con... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", ... | 8 | 103 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC087A {
class Program {
static void Main(string[] args) {
int n, a, b, c;
var word = Console.ReadLine().Split(' ');
c = int.Parse(Console.ReadLine());
a = int.Parse(Console.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC087A {
class Program {
static void Main(string[] args) {
int n, a, b, c;
c = int.Parse(Console.ReadLine());
a = int.Parse(Console.ReadLine());
b = int.Parse(Console.ReadLi... | [["-", 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, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 0, 213, 63, 214,... | 8 | 133 |
using System;
namespace AtCoder_20190705 {
class Program {
static int Solve() {
int money = int.Parse(Console.ReadLine());
int balance = money - int.Parse(Console.ReadLine());
int someCake = int.Parse(Console.ReadLine());
while (balance > someCake) {
balance -= someCake;
}
return balanc... | using System;
namespace AtCoder_20190705 {
class Program {
static int Solve() {
int money = int.Parse(Console.ReadLine());
int balance = money - int.Parse(Console.ReadLine());
int someCake = int.Parse(Console.ReadLine());
while (balance >= someCake) {
balance -= someCake;
}
if (true) {
... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20], ["+", 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, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25],... | 8 | 97 |
using System;
using System.Collections.Generic;
namespace cswork {
class Program {
static void Main(string[] args) {
long a = Read();
long b = Read();
long c = Read();
long x = Read();
long ans = 0;
for (int i = 0; i < a; i++) {
for (int j = 0; j < b; j++) {
for (int k = 0; k <... | using System;
using System.Collections.Generic;
namespace cswork {
class Program {
static void Main(string[] args) {
long a = Read();
long b = Read();
long c = Read();
long x = Read();
long ans = 0;
for (int i = 0; i <= a; i++) {
for (int j = 0; j <= b; j++) {
for (int k = 0; k... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["-", 31, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["-",... | 8 | 291 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int target = int.Parse(Console.ReadLine());
int a = int.Parse(Console.ReadLine()); // 500
int s = int.Parse... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine()); // 500
int s = int.Parse(Console.ReadLine()); // 100
int d = int.Pa... | [["-", 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, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25]] | 8 | 190 |
using System;
namespace ABC087_B {
class Program {
static void Main(string[] args) {
var a = int.Parse(Console.ReadLine());
var b = int.Parse(Console.ReadLine());
var c = int.Parse(Console.ReadLine());
var x = int.Parse(Console.ReadLine());
var count = 0;
for (var i = 0; i <= b; i++)
f... | using System;
namespace ABC087_B {
class Program {
static void Main(string[] args) {
var a = int.Parse(Console.ReadLine());
var b = int.Parse(Console.ReadLine());
var c = int.Parse(Console.ReadLine());
var x = int.Parse(Console.ReadLine());
var count = 0;
for (var i = 0; i <= b; i++)
f... | [["+", 8, 196, 0, 7, 8, 7, 8, 7, 0, 88], ["+", 8, 196, 0, 7, 8, 7, 8, 7, 0, 24], ["+", 8, 7, 8, 7, 10, 198, 39, 216, 0, 217], ["+", 8, 7, 8, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 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 | 143 |
using System;
using System.Collections.Generic;
using System.Linq;
class MainClass {
static void Main(string[] args) { AnswerB(); }
public static void AnswerB() {
int A = int.Parse(Console.ReadLine());
int B = int.Parse(Console.ReadLine());
int C = int.Parse(Console.ReadLine());
int X = int.Parse(Co... | using System;
using System.Collections.Generic;
using System.Linq;
class MainClass {
static void Main(string[] args) { AnswerB(); }
public static void AnswerB() {
int A = int.Parse(Console.ReadLine());
int B = int.Parse(Console.ReadLine());
int C = int.Parse(Console.ReadLine());
int X = int.Parse(Co... | [["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 295], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 45], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 22], ["-... | 8 | 215 |
using System;
using System.Text.RegularExpressions;
namespace algorithm {
class Program {
static void Main(string[] args) {
int i, j, k, l;
i = int.Parse(Console.ReadLine());
j = int.Parse(Console.ReadLine());
k = int.Parse(Console.ReadLine());
l = int.Parse(Console.ReadLine());
int cnt = 0;... | using System;
using System.Text.RegularExpressions;
namespace algorithm {
class Program {
static void Main(string[] args) {
int i, j, k, l;
i = int.Parse(Console.ReadLine());
j = int.Parse(Console.ReadLine());
k = int.Parse(Console.ReadLine());
l = int.Parse(Console.ReadLine());
int cnt = 0;... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 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, 48], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-... | 8 | 190 |
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, ' '));
}
... | [["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 98], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 12, 22], ["+", 0, 52, 8, 196, 0, 52, 15, 16, 17, 98], ["-", 8, 196, 0, 52, 15, 16, 31, 16, 17, 72], ["+", 0, 52, 15, 16, 31, 16, 31, 16, 17, 48]... | 8 | 540 |
using System;
namespace AtCoder {
class B_Coins_087 {
public static void Main() {
var coin500Num = int.Parse(Console.ReadLine());
var coin100Num = int.Parse(Console.ReadLine());
var coin50Num = int.Parse(Console.ReadLine());
var totalPrice = int.Parse(Console.ReadLine());
Console.WriteLine(Count... | using System;
namespace AtCoder {
class B_Coins_087 {
public static void Main() {
var coin500Num = int.Parse(Console.ReadLine());
var coin100Num = int.Parse(Console.ReadLine());
var coin50Num = int.Parse(Console.ReadLine());
var totalPrice = int.Parse(Console.ReadLine());
Console.WriteLine(Count... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 8, 196,... | 8 | 240 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int total = int.Parse(Console.ReadLine());
string[] buff_1 = Console.ReadLine().Split(' ');
string[] buff_2 = Console.ReadLine().Split(' ');
int[] line_1 = new int[total];
int[] line_2 = new int[total];
int cnt... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int total = int.Parse(Console.ReadLine());
string[] buff_1 = Console.ReadLine().Split(' ');
string[] buff_2 = Console.ReadLine().Split(' ');
int[] line_1 = new int[total];
int[] line_2 = new int[total];
int cnt... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110... | 8 | 234 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var line1 = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var line2 = Array.ConvertAll(Console.Read... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var line1 = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var line2 = Array.ConvertAll(Console.Read... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 8, 201... | 8 | 184 |
using static System.Console;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
int N = int.Parse(ReadLine());
var ue = ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var shita = ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
... | using static System.Console;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
int N = int.Parse(ReadLine());
var ue = ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var shita = ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88]... | 8 | 188 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
Func cin2;
void calc() {
cin = new... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
Func cin2;
void calc() {
cin = new... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 2... | 8 | 723 |
using System;
using System.Linq;
namespace kozaiyApp {
public class KagamiMochi {
static void Main() {
int N = int.Parse(Console.ReadLine());
int[] d = new int[N];
int[] Mochi = Enumerable.Repeat<int>(1000, N).ToArray();
for (int i = 0; i < N; i++) {
d[i] = int.Parse(Console.ReadLine());
}... | using System;
using System.Linq;
namespace kozaiyApp {
public class KagamiMochi {
static void Main() {
int N = int.Parse(Console.ReadLine());
int[] d = new int[N];
int[] Mochi = Enumerable.Repeat<int>(1000, N).ToArray();
for (int i = 0; i < N; i++) {
d[i] = int.Parse(Console.ReadLine());
}... | [["+", 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, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 12, 213, 63, 214,... | 8 | 179 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace easy_Atcoder {
class Program {
static void Main(string[] args) {
int[] NY = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
int thousand = -1;
int five_thousand = -1;
int ten_thousand = -1;
for (int i = 0; i <= ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace easy_Atcoder {
class Program {
static void Main(string[] args) {
int[] NY = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
int thousand = -1;
int five_thousand = -1;
int ten_thousand = -1;
for (int i = 0; i <= ... | [["-", 12, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["-", 0, 16, 12, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 16, 12, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 16, 12, 16, 12, 23, 0, 16, 12, 22], ["-", 12, 16, 31, 23, 0, 16, 31, 16, 17, 33], ["-", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 17, 33], ... | 8 | 236 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static StreamWriter sw =
new StreamWriter(OpenStandardOutput()) { AutoFlush = ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static StreamWriter sw =
new StreamWriter(OpenStandardOutput()) { AutoFlush = ... | [["-", 0, 200, 0, 212, 0, 16, 31, 204, 205, 22], ["-", 0, 212, 0, 16, 31, 204, 206, 207, 0, 70], ["-", 0, 212, 0, 16, 31, 204, 206, 207, 0, 73], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 31, 16, ... | 8 | 578 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var Instance = new Otoshidama();
Instance.Exec();
}
}
public class Otoshidama {
public void Exec() {
var array =
Console.ReadLine().Split(' ').Select(i => ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var Instance = new Otoshidama();
Instance.Exec();
}
}
public class Otoshidama {
public void Exec() {
var array =
Console.ReadLine().Split(' ').Select(i => ... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["-... | 8 | 269 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO.Pipes;
namespace cswork {
class Program {
public Program() {}
Scanner cin;
const int MAXIN = 1024;
bool[] used = new bool[MAXIN];
int[] perm = new int[MAXIN];
List<int[]> permList = new List<int[]>();
void Omam... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO.Pipes;
namespace cswork {
class Program {
public Program() {}
Scanner cin;
const int MAXIN = 1024;
bool[] used = new bool[MAXIN];
int[] perm = new int[MAXIN];
List<int[]> permList = new List<int[]>();
void Omam... | [["+", 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 | 484 |
using System;
using System.Collections.Generic;
namespace cswork {
class Program {
public Program() {}
Scanner cin;
void Omame() {
cin = new Scanner();
long n = cin.nextLong();
long y = cin.nextLong();
for (int i = 0; i <= n; i++) {
for (int j = 0; j <= n - i; j++) {
for (int k ... | using System;
using System.Collections.Generic;
namespace cswork {
class Program {
public Program() {}
Scanner cin;
void Omame() {
cin = new Scanner();
int n = cin.nextInt();
long y = cin.nextLong();
for (int i = 0; i <= n; i++) {
for (int j = 0; j <= n - i; j++) {
int k = n - i... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 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, 2... | 8 | 344 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var inputLine = Console.ReadLine();
var splitInput = inputLine.Split(' ');
var billNum = int.Parse(splitInput[0]);
var targetTotalAmount... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var inputLine = Console.ReadLine();
var splitInput = inputLine.Split(' ');
var billNum = int.Parse(splitInput[0]);
var targetTotalAmount... | [["-", 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 | 291 |
using System;
using System.Linq;
public class Program {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int Y = int.Parse(input[1]);
int x = -1;
int y = -1;
int z = -1;
int c;
for (int a = 0; a <= N; a++) {
for (int b = 0; b <= N... | using System;
using System.Linq;
public class Program {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int Y = int.Parse(input[1]);
int x = -1, y = -1, z = -1;
int c;
for (int a = 0; a <= N; a++) {
for (int b = 0; a + b <= N; b++) {
... | [["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 72], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 15, 16, 12, 16, 31, 16, 31, 16, 31, 22]... | 8 | 182 |
using System;
using System.Collections;
using System.Collections.Generic;
namespace 練習問題 {
class Program {
static void Main(string[] args) {
List<int> pattern = new List<int>();
var sw = new System.Diagnostics.Stopwatch();
long n = 0;
long y = 0;
List<int> result = new List<int>();
debug Debu... | using System;
using System.Collections;
using System.Collections.Generic;
namespace 練習問題 {
class Program {
static void Main(string[] args) {
List<int> pattern = new List<int>();
var sw = new System.Diagnostics.Stopwatch();
long n = 0;
long y = 0;
List<int> result = new List<int>();
debug Debu... | [["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 25], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 45], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-... | 8 | 1,189 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
bool flag = false;
for (int x = 0; x <= input[0]; x++) {
if (flag)
break;
for (int y = 0; y <= input[0] - x; y++) {
if ((10... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
bool flag = false;
for (int x = 0; x <= input[0]; x++) {
if (flag)
break;
for (int y = 0; y <= input[0] - x; y++) {
var a =... | [["-", 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], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["... | 8 | 199 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace competitive_programming {
class Program {
static void Main(string[] args) {
var main = new Program();
main.solve();
}
void solve() {
long[] ny =
Console.ReadLine().Split(' ').Select(val => ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace competitive_programming {
class Program {
static void Main(string[] args) {
var main = new Program();
main.solve();
}
void solve() {
long[] ny =
Console.ReadLine().Split(' ').Select(val => ... | [["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 15, 16, 31, 16, 17, 18], ["-", 8, 196, 0, 7, 15, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 19], ["+", 0, 7, 15, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 7, 15, 16, 31, 16, 12, 16, 17, 85], ... | 8 | 271 |
using System;
class at {
static void Main() {
var line = Console.ReadLine().Split(' ');
int n = int.Parse(line[0]);
int say = int.Parse(line[1]);
bool lay = false;
int x = -1;
int y = -1;
int z = -1;
for (int i = 0; i <= n; i++) {
for (int j = 0; j <= n - i; j++) {
for (i... | using System;
class at {
static void Main() {
var line = Console.ReadLine().Split(' ');
int n = int.Parse(line[0]);
int say = int.Parse(line[1]);
bool lay = false;
int x = -1;
int y = -1;
int z = -1;
for (int i = 0; i <= n; i++) {
for (int j = 0; j <= n - i; j++) {
int su... | [["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["-", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 35], ["-", 0, 7... | 8 | 187 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace abc085_c {
class Program {
static void Main(string[] args) {
int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int billCount = input[0];
int sum = input[1];
for (int x = 0; x <= billCount; x++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace abc085_c {
class Program {
static void Main(string[] args) {
int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int billCount = input[0];
int sum = input[1];
for (int x = 0; x <= billCount; x++) {
... | [["-", 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 | 181 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
namespace PastQuestions {
class Program {
static void Main(string[] args) {
new Program().Solve(new Input(Console.In));
}
public void Solve(Input input) {
var answer = Solve2(input);
Console.Write($"{answer[0]} {answ... | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
namespace PastQuestions {
class Program {
static void Main(string[] args) {
new Program().Solve(new Input(Console.In));
}
public void Solve(Input input) {
var answer = Solve2(input);
Console.Write($"{answer[0]} {answ... | [["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 8, 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], ["... | 8 | 504 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Competitive {
internal class Solution {
public int N, M;
public int[] L, R;
public long[] D;
public Graph G;
public void Run() {
// インプット
{
var line = Input.ReadIntArray();
N = line[0];
M... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Competitive {
internal class Solution {
public int N, M;
public int[] L, R;
public long[] D;
public Graph G;
public void Run() {
// インプット
{
var line = Input.ReadIntArray();
N = line[0];
M... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 205, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 16, 12, 16, 12, 214, 205, 22], ["+", 0, 57, 15, 16, 12, 16, 12, 21... | 8 | 951 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var ks = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var N = ks[0];
var Y = ks[1];
var count ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var ks = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var N = ks[0];
var Y = ks[1];
for (int i... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 2... | 8 | 195 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var NY = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var N = NY[0];
var Y = NY[1];
var count = 0;... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var NY = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var N = NY[0];
var Y = NY[1];
var count = 0;... | [["-", 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 | 215 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.