buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
string[] Inputline1 = Console.ReadLine().Split(' ');
string[] Inputline2 = Console.ReadLine().Split(' ');
int K = i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
string[] Inputline1 = Console.ReadLine().Split(' ');
string[] Inputline2 = Console.ReadLine().Split(' ');
int K = i... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 195, 8, 196, 0, 57, 15, 16... | 8 | 260 |
using System;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int k = int.Parse(input[0]);
int n = int.Parse(input[1]);
string[] aaray = Console.ReadLine().Split(' ');
int[] hikaku = new int[n];
int saichou = 0;
int saichoukukan = 0;
f... | using System;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int k = int.Parse(input[0]);
int n = int.Parse(input[1]);
string[] aaray = Console.ReadLine().Split(' ');
int[] hikaku = new int[n];
int saichou = 0;
int saichoukukan = 0;
f... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 317 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class C {
static StreamWriter Out =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
static void Main(string[] args) {
long K, N;
Input(out K, out N);
long[] A;
Inputs(out A);
long[] P... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class C {
static StreamWriter Out =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
static void Main(string[] args) {
long K, N;
Input(out K, out N);
long[] A;
Inputs(out A);
Array.So... | [["+", 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], ["+", 12, ... | 8 | 932 |
using System;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var KN = Console.ReadLine().Split(' ');
var K = int.Parse(KN[0]);
var N = int.Parse(KN[1]);
var distances =
Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
long longdi... | using System;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var KN = Console.ReadLine().Split(' ');
var K = int.Parse(KN[0]);
var N = int.Parse(KN[1]);
var distances =
Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
long longdi... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 206, 207, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 206, 207, 0, 28, 0, 16, 31, 23, 0, 25], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 109], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, ... | 8 | 225 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
public class Program {
public static void Main() {
string[] input1 = Console.ReadLine().Split(' ');
string[] input2 = Console.ReadLine().Split... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
public class Program {
public static void Main() {
string[] input1 = Console.ReadLine().Split(' ');
string[] input2 = Console.ReadLine().Split... | [["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 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, 26, 223, 0, 22],... | 8 | 234 |
using System;
class ProgramC {
static void Main(string[] args) {
//入力
string[] s = Console.ReadLine().Split(' ');
long k = long.Parse(s[0]);
long n = long.Parse(s[1]);
string[] a = Console.ReadLine().Split(' ');
long ans = 10000000000;
for (long i = 0; i < n - 1; i++) {
long dis = ... | using System;
class ProgramC {
static void Main(string[] args) {
//入力
string[] s = Console.ReadLine().Split(' ');
long k = long.Parse(s[0]);
long n = long.Parse(s[1]);
string[] a = Console.ReadLine().Split(' ');
long ans = 10000000000;
for (long i = 0; i < n - 1; i++) {
long dis = ... | [["-", 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, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3... | 8 | 201 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using static System.Console;
using static System.Convert;
using static System.Math;
using static Template;
using Pi = Pair<int, i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using static System.Console;
using static System.Convert;
using static System.Math;
using static Template;
using Pi = Pair<int, i... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 17, 72], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["+"... | 8 | 1,641 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Console;
namespace AtCoder_1 {
class Program {
static void Main(string[] args) {
var KN = CinTAr();
var A = CinTAr();
// var f = ne... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Console;
namespace AtCoder_1 {
class Program {
static void Main(string[] args) {
var KN = CinLAr();
var A = CinLAr();
long max = 0;... | [["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 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,... | 8 | 1,186 |
using System;
using static System.Console;
using static System.Math;
using System.Linq;
using System.Collections.Generic;
namespace Main {
class Program {
static void Main(string[] args) {
decimal[] tmp = ReadLine().Split(' ').Select(decimal.Parse).ToArray();
decimal N = tmp[0];
decimal K = tmp[1];
... | using System;
using static System.Console;
using static System.Math;
using System.Linq;
using System.Collections.Generic;
namespace Main {
class Program {
static void Main(string[] args) {
decimal[] tmp = ReadLine().Split(' ').Select(decimal.Parse).ToArray();
decimal N = tmp[0];
decimal K = tmp[1];
... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 3, 4,... | 8 | 96 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var line1 =
Console.ReadLine().Split(' ').Select(n => long.Parse(n)).ToList();
var N = line1[0];
var K = line1[1];
var minN = N;
if (N > K) {
var x = (N / K) * K;
N -= x;
}
for (int i ... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var line1 =
Console.ReadLine().Split(' ').Select(n => long.Parse(n)).ToList();
var N = line1[0];
var K = line1[1];
var minN = N;
if (N > K) {
var x = (N / K) * K;
N -= x;
}
for (int i ... | [["-", 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 | 198 |
using System;
using System.Collections.Generic;
using System.Linq;
class Ho {
static void Main() {
var zennbu = Console.ReadLine().Split();
var N = long.Parse(zennbu[0]);
var K = long.Parse(zennbu[1]);
var j = 0;
if (K > N) {
Console.WriteLine(N);
} else if (N == K) {
Console.Write... | using System;
using System.Collections.Generic;
using System.Linq;
class Ho {
static void Main() {
var zennbu = Console.ReadLine().Split();
var N = long.Parse(zennbu[0]);
var K = long.Parse(zennbu[1]);
var j = 0;
if (K > N) {
long kotae1 = K - N;
if (kotae1 <= N) {
Console.Writ... | [["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 197, ... | 8 | 170 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
// var s = Console.ReadLine();
// var n = long.Parse(Console.ReadLine());
decimal[] nk = Console.ReadLine().Split().Select(decimal.Pa... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
// var s = Console.ReadLine();
// var n = long.Parse(Console.ReadLine());
decimal[] nk = Console.ReadLine().Split().Select(decimal.Pa... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["... | 8 | 169 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Numerics;
namespace AtCoderWorkspace {
public class Solver {
public void Solve() {
var cin = new Scanner();
var n = cin.nextLong();
var k = cin.nextLong();
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Numerics;
namespace AtCoderWorkspace {
public class Solver {
public void Solve() {
var cin = new Scanner();
var n = cin.nextLong();
var k = cin.nextLong();
... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0... | 8 | 582 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace C {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace C {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["-", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 16, 31, 204, 206, 207, 0, ... | 8 | 178 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
class program {
static public int mod = 1000000007;
static void Main() {
var k = rint();
long ans = 0;
var lunlun = new int[10];
var i... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
class program {
static public int mod = 1000000007;
static void Main() {
var k = rint();
long ans = 0;
var lunlun = new int[10];
var i... | [["+", 64, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 57, 75, 1, 0, 11, 31, 204, 205, 22], ["+", 75, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 75, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 75, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 75, 1, 0, 11, 12, 204, 205, 22],... | 8 | 971 |
using System;
using System.Text;
namespace ConsoleApp3 {
internal class Digit {
public Digit() {
Value = 0;
Left = new Digit(1, null, this);
}
private Digit(int value, Digit left, Digit right) {
Value = value;
Left = left;
Right = right;
}
public int Value { get; private set; }
public... | using System;
using System.Text;
namespace ConsoleApp3 {
internal class Digit {
public Digit() {
Value = 0;
Left = new Digit(1, null, this);
}
private Digit(int value, Digit left, Digit right) {
if (value < 0 && value > 10)
throw new ArgumentOutOfRangeException(nameof(value));
Value = valu... | [["+", 8, 201, 0, 263, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 263, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 263, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22... | 8 | 425 |
using System;
using System.Numerics;
using System.Linq;
using System.Collections.Generic;
using System.Text;
class ProgramD {
static void Main(string[] args) {
//入力
int k = int.Parse(Console.ReadLine());
var q = new Queue<int>();
for (int i = 0; i < 9; i++)
q.Enqueue(i + 1);
int temp = 0;... | using System;
using System.Numerics;
using System.Linq;
using System.Collections.Generic;
using System.Text;
class ProgramD {
static void Main(string[] args) {
//入力
int k = int.Parse(Console.ReadLine());
var q = new Queue<long>();
for (int i = 0; i < 9; i++)
q.Enqueue(i + 1);
long temp = ... | [["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 28, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 28, 0, 16, 31, 16, 12, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 12, 1... | 8 | 228 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
namespace AtCoder {
class Program {
static void Main() {
var K = int.Parse(ReadLine());
var que = new Queue<long>();
for (int i = 1; i <= 9; i++)
que.Enqueue... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
namespace AtCoder {
class Program {
static void Main() {
var K = int.Parse(ReadLine());
var que = new Queue<long>();
for (int i = 1; i <= 9; i++)
que.Enqueue... | [["+", 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, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17,... | 8 | 180 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using static System.Console;
using static System.Convert;
using static System.Math;
using static Template;
using Pi = Pair<int, i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using static System.Console;
using static System.Convert;
using static System.Math;
using static Template;
using Pi = Pair<int, i... | [["-", 0, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 141, 22], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 141, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, ... | 8 | 1,968 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
// (づ°ω°)づミe★゜・。。・゜゜・。。・゜☆゜・。。・゜゜・。。・゜
public class Solver {
long ans = -1;
int Fun(bool f, int d, int p, int x, long v) {
if (p == 0) {
if (x == 0) ... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
// (づ°ω°)づミe★゜・。。・゜゜・。。・゜☆゜・。。・゜゜・。。・゜
public class Solver {
long ans = -1;
int Fun(bool f, int d, int p, int x, long v) {
if (p == 0) {
if (x == 0) ... | [["+", 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, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 3... | 8 | 1,040 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Library;
using static Library.Input;
namespace AtCoderTemplate {
class ProgramE {
static void Main() {
int n = NextInt, k = NextInt, c = NextInt;
var line = Line;
var left = new List<int>();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Library;
using static Library.Input;
namespace AtCoderTemplate {
class ProgramE {
static void Main() {
int n = NextInt, k = NextInt, c = NextInt;
var line = Line;
var left = new List<int>();
... | [["-", 205, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["-", 205, 213, 63, 214, 205, 213, 3, 4, 0, 21], ["-", 63, 214... | 8 | 1,617 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using static System.Console;
using static System.Convert;
using static System.Math;
using static Template;
using Pi = Pair<int, i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using static System.Console;
using static System.Convert;
using static System.Math;
using static Template;
using Pi = Pair<int, i... | [["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 48], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["+"... | 8 | 1,848 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace q5 {
class Program {
static void Main(string[] args) {
var input1 =
Console.ReadLine().Split(' ').Select(x => Convert.ToInt32(x)).ToArray();
var N = input1[0];
var K = inp... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace q5 {
class Program {
static void Main(string[] args) {
var input1 =
Console.ReadLine().Split(' ').Select(x => Convert.ToInt32(x)).ToArray();
var N = input1[0];
var K = inp... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 211, 0, 14... | 8 | 359 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { ABC161.E(); }
class ABC161 {
public static void A() {
var X = Read.Int();
var Y = Read.Int();
var Z = Read.Int();
Console.WriteLine("{0} {1} {2}", Z,... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { ABC161.E(); }
class ABC161 {
public static void A() {
var X = Read.Int();
var Y = Read.Int();
var Z = Read.Int();
Console.WriteLine("{0} {1} {2}", Z,... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45]... | 8 | 2,303 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
class Program {
static void Main(string[] args) {
// いろいろ考察した結果
// Nの約数(1除く)とN-1の約数(1除く)それぞれの値をKとおき
// そのKで除算減算の交換処理を行いN=1になるものを求めればそれがKの個数となると思われる。
// 但し1兆もの値に対して 例えば 3等で除算減算してたらTimeOver必死
// →除... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
class Program {
static void Main(string[] args) {
// いろいろ考察した結果
// Nの約数(1除く)とN-1の約数(1除く)それぞれの値をKとおき
// そのKで除算減算の交換処理を行いN=1になるものを求めればそれがKの個数となると思われる。
// 但し1兆もの値に対して 例えば 3等で除算減算してたらTimeOver必死
// →除... | [["+", 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, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12... | 8 | 2,397 |
using System;
namespace debug {
class Program {
static void Main(string[] args) {
ProgramF2 a = new ProgramF2();
a.main();
}
}
// ABC162
class ProgramE {
public void main() {
string[] s = Console.ReadLine().Split(' ');
long n = long.Parse(s[0]);
long k = long.Parse(s[1]);
long MOD = 1000... | using System;
namespace debug {
class Program {
static void Main(string[] args) {
ProgramF2 a = new ProgramF2();
a.main();
}
}
// ABC162
class ProgramE {
public void main() {
string[] s = Console.ReadLine().Split(' ');
long n = long.Parse(s[0]);
long k = long.Parse(s[1]);
long MOD = 1000... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 942 |
using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC161F_2 {
class Program {
static void Main(string[] args) {
var N = RLong;
List<long> divs = new List<long>();
divs.Add(N - 1);
divs.Add(2);
... | using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC161F_2 {
class Program {
static void Main(string[] args) {
var N = RLong;
List<long> divs = new List<long>();
divs.Add(N - 1);
divs.Add(2);
... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 1, ... | 8 | 887 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
namespace AtCoder {
class Program {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
static public List<long> S... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
namespace AtCoder {
class Program {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
static public List<long> S... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 20... | 8 | 265 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
public static class P {
public static void Mai... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
public static class P {
public static void Mai... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 334 |
using System;
using System.Collections.Generic;
namespace F {
class Program {
static void Main(string[] args) {
string line = Console.ReadLine();
long N = long.Parse(line);
var n1 = Yakusu(N - 1);
var n = Yakusu(N);
var count = 0;
for (int i = 0; i < n.Count; i++) {
var now = N;
w... | using System;
using System.Collections.Generic;
namespace F {
class Program {
static void Main(string[] args) {
string line = Console.ReadLine();
long N = long.Parse(line);
var n1 = Yakusu(N - 1);
var n = Yakusu(N);
var count = 0;
for (int i = 0; i < n.Count; i++) {
var now = N;
w... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 37, 0, 38],... | 8 | 229 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
public class Coder {
public static int[] ReadArray() {
return Array.ConvertAll(Console.ReadLine().Split(' '),
m => Convert.ToInt32(m));
}
public static int ReadInt() { return Convert.ToI... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
public class Coder {
public static int[] ReadArray() {
return Array.ConvertAll(Console.ReadLine().Split(' '),
m => Convert.ToInt32(m));
}
public static int ReadInt() { return Convert.ToI... | [["+", 0, 230, 10, 229, 0, 41, 15, 16, 17, 47], ["+", 0, 230, 10, 229, 0, 41, 15, 16, 12, 203], ["+", 0, 212, 0, 230, 10, 229, 0, 41, 0, 101], ["+", 0, 230, 10, 229, 0, 41, 64, 16, 31, 22], ["+", 0, 230, 10, 229, 0, 41, 64, 16, 17, 33], ["+", 0, 230, 10, 229, 0, 41, 64, 16, 12, 203], ["+", 0, 212, 0, 230, 10, 229, 0, 4... | 8 | 302 |
using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
namespace Atcoder_0403 {
class Program {
static void Main(string[] args) {
long _targetNumber = GetInput_long()[0];
HashSet<long> _yakusuSet = new HashSet<long>();
HashSet<long> _resultSet = new HashSet<long>();
... | using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
namespace Atcoder_0403 {
class Program {
static void Main(string[] args) {
long _targetNumber = GetInput_long()[0];
HashSet<long> _yakusuSet = new HashSet<long>();
HashSet<long> _resultSet = new HashSet<long>();
... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 20... | 8 | 503 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
static class Program {
static int Solve(long N) {
var set = new HashSet<long> { N - 1, N };
for (long i = 2; i * i <= N - 1; ++i) {
if ((N - 1) % i == 0) {
set.Add(i);
if (i * i < N - 1) {
se... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
static class Program {
static int Solve(long N) {
var set = new HashSet<long> { N };
if (N > 2) {
set.Add(N - 1);
}
for (long i = 2; i * i <= N - 1; ++i) {
if ((N - 1) % i == 0) {
set.Add(i);
... | [["+", 0, 200, 0, 212, 0, 230, 10, 229, 0, 46], ["+", 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, 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, 20... | 8 | 210 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Library;
using static Library.Input;
namespace AtCoderTemplate {
class ProgramF {
static void Main() {
long n = NextLong;
var bigger = Enumerable.Repeat(false, 1000001).ToArray();
var smaller = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Library;
using static Library.Input;
namespace AtCoderTemplate {
class ProgramF {
static void Main() {
long n = NextLong;
var bigger = Enumerable.Repeat(false, 1000001).ToArray();
var smaller = ... | [["-", 0, 200, 0, 212, 0, 230, 10, 229, 0, 21], ["+", 0, 200, 0, 212, 0, 230, 10, 229, 0, 46], ["+", 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, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 2... | 8 | 1,693 |
using System;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
class Program {
// Main
static void Main(string[] args) {
//読み込む
long N = long.Parse(Console.ReadLine());
// Nの約数のうち、Kで割った商をKで割った余りが1のものをカウント
/*
即ち、N = pKとしたとき、
p = q... | using System;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
class Program {
// Main
static void Main(string[] args) {
//読み込む
long N = long.Parse(Console.ReadLine());
// Nの約数のうち、Kで割った商をKで割った余りが1のものをカウント
/*
即ち、N = pKとしたとき、
p = q... | [["-", 0, 57, 64, 196, 0, 52, 15, 16, 17, 98], ["-", 64, 196, 0, 52, 15, 16, 12, 16, 31, 22], ["-", 64, 196, 0, 52, 15, 16, 12, 16, 17, 47], ["-", 64, 196, 0, 52, 15, 16, 12, 16, 12, 203], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 64, 196, 0, 57, 64, 196, 0, 1, 0,... | 8 | 309 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace q6 {
class Program {
static IEnumerable<long> Div(long n) {
var x = 2L;
yield return 1;
while (true) {
if ((x * x) > n)
break;
if (n % x == 0) {
yield ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace q6 {
class Program {
static IEnumerable<long> Div(long n) {
var x = 2L;
yield return 1;
while (true) {
if ((x * x) > n)
break;
if (n % x == 0) {
yield ... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 0, 266], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 0, 195, 8, 196, 0, 210, 39, 216,... | 8 | 284 |
using System;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
using static System.Math;
using System.Numerics;
static class Program {
const int mod = (int)1e9 + 7;
const double eps = 1e-... | using System;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
using static System.Math;
using System.Numerics;
static class Program {
const int mod = (int)1e9 + 7;
const double eps = 1e-... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 1,208 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static ABC161F.Input;
namespace ABC161F {
static class Input {
private static Func<string, T[]>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray();
private static Func<string, T> Convert<T>() {
Type t = type... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static ABC161F.Input;
namespace ABC161F {
static class Input {
private static Func<string, T[]>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray();
private static Func<string, T> Convert<T>() {
Type t = type... | [["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 12, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25],... | 8 | 1,614 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Threading;
using System.Text;
using System.Text.RegularExpressions;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
class Program {
static void Main(string[] args) {
var sw =
new Stream... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Threading;
using System.Text;
using System.Text.RegularExpressions;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
class Program {
static void Main(string[] args) {
var sw =
new Stream... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 85], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, ... | 8 | 2,499 |
using System;
using System.Linq;
namespace A {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Trim().Split(' ');
Console.WriteLine((input[2] == input[3] && input[4] == input[5]) ? "Yes"
: "No");
}
}
}
| using System;
using System.Linq;
namespace A {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
Console.WriteLine((input[2] == input[3] && input[4] == input[5]) ? "Yes"
: "No");
}
}
}
| [["-", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 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, ... | 8 | 82 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace A {
class Program {
static void Main(string[] args) {
string line = Console.ReadLine();
// int N = int.Parse(line);
if (line[3] == line[4] && line[5] == line[6])
Console.Wr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace A {
class Program {
static void Main(string[] args) {
string line = Console.ReadLine();
// int N = int.Parse(line);
if (line[2] == line[3] && line[4] == line[5])
Console.Wr... | [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 16, 12, 204, 20... | 8 | 97 |
using System;
namespace ABC_160_A_Csharp_ver {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
if (S[3] == S[4] && S[5] == S[6])
Console.WriteLine("Yes");
else
Console.WriteLine("No");
Console.ReadKey();
}
}
}
| using System;
namespace ABC_160_A_Csharp_ver {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
if (S[2] == S[3] && S[4] == S[5])
Console.WriteLine("Yes");
else
Console.WriteLine("No");
Console.ReadKey();
}
}
} | [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 16, 12, 204, 20... | 8 | 78 |
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 line = Console.ReadLine();
if (CheckSimCoffee(line)) {
Console.WriteLine("Yes");
} else {
Console.W... | 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 line = Console.ReadLine();
if (CheckSimCoffee(line)) {
Console.WriteLine("Yes");
} else {
Console.W... | [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 16, 12, 204, 20... | 8 | 133 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
if (s.Length != 6)
return;
if (s[3] == s[4] && s[5] == s[6]) {
Console.WriteLine("Yes");
} else {
Console.WriteLine("No");
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
if (s.Length != 6)
return;
if (s[2] == s[3] && s[4] == s[5]) {
Console.WriteLine("Yes");
} else {
Console.WriteLine("No");
}
}
}
| [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 16, 12, 204, 20... | 8 | 94 |
using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
if (s[0] == s[1] && s[2] == s[3] && s[4] == s[5])
System.Console.WriteLine("Yes");
else
System.Console.WriteLine("No");
}
}
}
| using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
if (s[2] == s[3] && s[4] == s[5])
System.Console.WriteLine("Yes");
else
System.Console.WriteLine("No");
}
}
}
| [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 60], ["-", 15, 16, 31, 16, 31, 16, 12, 204, 205, 22], ["-", 31, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 31, 16, 12, 20... | 8 | 86 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public static void Main(string[] args) { new A().test(); }
}
public class A {
public void test() {
// スペース区切りの整数の入力
var input = CommonRead.ReadStr();
// 六文字以下は異なる
if (input.Length != 6) {
... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace CS.contests._160 {
public class Program {
public static void Main(string[] args) { new A().test(); }
}
}
public class A {
public void test() {
// スペース区切りの整数の入力
var input = CommonRead.ReadStr();
// 六... | [["+", 36, 36, 36, 36, 0, 208, 0, 209, 0, 256], ["+", 0, 208, 0, 209, 141, 232, 234, 232, 234, 22], ["+", 0, 208, 0, 209, 141, 232, 234, 232, 0, 131], ["+", 0, 208, 0, 209, 141, 232, 234, 232, 141, 22], ["+", 36, 36, 0, 208, 0, 209, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 209, 141, 232, 141, 22], ["+", 36, 36, 0, 2... | 8 | 565 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace CF {
class Program {
static void Main(string[] args) {
// 22222
// 11111
// 11111
// var c = long.Parse(Console.ReadLine());
var d = Console.ReadLine();
if (d[2] == d[3] && d[4] == d[5])
Console.WriteLine("YES... | using System;
using System.Collections.Generic;
using System.Linq;
namespace CF {
class Program {
static void Main(string[] args) {
// 22222
// 11111
// 11111
// var c = long.Parse(Console.ReadLine());
var d = Console.ReadLine();
if (d[2] == d[3] && d[4] == d[5])
Console.WriteLine("Yes... | [["-", 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, 75, 1, 0, 35], ["-", 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 | 93 |
using System;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int x = int.Parse(input[1]);
int y = int.Parse(input[2]);
int[] result = new int[n * 2];
int kouho1 = 0;
int kouho2 = 0;
int kouho3 = 0;
int kyori = 0;
... | using System;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int x = int.Parse(input[1]);
int y = int.Parse(input[2]);
int[] result = new int[n * 2];
int kouho1 = 0;
int kouho2 = 0;
int kouho3 = 0;
int kyori = 0;
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0... | 8 | 336 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC160 {
class D {
static void Main(string[] args) {
var nxy = Console.ReadLine().Split().Select(long.Parse).ToArray();
var n = nxy[0];
var x = nxy[1] - 1;
var y = nxy[2] - 1;
var dist1 = new long[n, n];
for (int i =... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC160 {
class D {
static void Main(string[] args) {
var nxy = Console.ReadLine().Split().Select(long.Parse).ToArray();
var n = nxy[0];
var x = nxy[1] - 1;
var y = nxy[2] - 1;
var dist1 = new long[n, n];
for (int i =... | [["-", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 21], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 2... | 8 | 296 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] NXY = Console.ReadLine().Split(' ');
int N = int.Parse(NXY[0]);
int X = int.Parse(NXY[1]);
int Y = int.Parse(NXY[2]);
int[] output = new int[N - 1];
int distance = 0;... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] NXY = Console.ReadLine().Split(' ');
int N = int.Parse(NXY[0]);
int X = int.Parse(NXY[1]);
int Y = int.Parse(NXY[2]);
int[] output = new int[N - 1];
int distance = 0;... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 31, 203], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 98], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 31... | 8 | 374 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderD {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
int x = sc.NextInt();
int y = sc.NextInt();
int[] answers = new int[n];
for (int i = 1; i <= n; i++) {
for ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderD {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
int x = sc.NextInt();
int y = sc.NextInt();
int[] answers = new int[n];
for (int i = 1; i <= n; i++) {
for ... | [["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", ... | 8 | 581 |
using System; // Console, IComparable
using System.IO; // StreamWriter
using System.Linq; // Select(), Where(), OrderBy(), Count()
using System.Collections.Generic; // List<T>
using System.Reflection; // PropertyInfo[], GetProperties[]
using static System.Con... | using System; // Console, IComparable
using System.IO; // StreamWriter
using System.Linq; // Select(), Where(), OrderBy(), Count()
using System.Collections.Generic; // List<T>
using System.Reflection; // PropertyInfo[], GetProperties[]
using static System.Con... | [["-", 0, 28, 0, 218, 8, 41, 15, 16, 31, 22], ["-", 0, 28, 0, 218, 8, 41, 15, 16, 17, 47], ["-", 3, 4, 0, 28, 0, 218, 8, 41, 0, 101], ["-", 3, 4, 0, 28, 0, 218, 8, 41, 64, 203], ["-", 3, 4, 0, 28, 0, 218, 8, 41, 0, 102], ["-", 3, 4, 0, 28, 0, 218, 8, 41, 75, 203], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 33], ["+", 3, 4, ... | 8 | 671 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Hello {
static public int mod = 1000000007;
public static void Main() {
// 方針
//
long[] n = longa();
long[] a = longa();
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Hello {
static public int mod = 1000000007;
public static void Main() {
// 方針
//
long[] n = longa();
long[] a = longa();
... | [["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["-", 64, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 57, 64, 196, 0, 57, 15, 16... | 8 | 1,741 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { ABC160.F(); }
class ABC160 {
public static void A() {
var s = Read.Str();
Console.WriteLine(s[2] == s[3] && s[4] == s[5] ? "Yes" : "No");
}
public static ... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { ABC160.F(); }
class ABC160 {
public static void A() {
var s = Read.Str();
Console.WriteLine(s[2] == s[3] && s[4] == s[5] ? "Yes" : "No");
}
public static ... | [["+", 8, 196, 0, 52, 8, 196, 0, 210, 0, 266], ["+", 8, 196, 0, 52, 8, 196, 0, 210, 0, 24], ["+", 0, 52, 8, 196, 0, 210, 39, 216, 0, 217], ["+", 8, 196, 0, 52, 8, 196, 0, 210, 31, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 210, 0, 267], ["+", 0, 52, 8, 196, 0, 210, 12, 204, 205, 22], ["+", 8, 196, 0, 210, 12, 204, 206, 207, ... | 8 | 3,442 |
using System;
namespace ConsoleApp2 {
public class Program {
public static void Main(string[] args) {
int n, m;
var buf = Console.ReadLine().Split(' ');
n = int.Parse(buf[0]);
m = int.Parse(buf[1]);
int count = 0;
count += n * (n - 1) / 2;
count += m * (m - 1) / 2;
Console.WriteLin... | using System;
namespace ConsoleApp2 {
public class Program {
public static void Main(string[] args) {
int n, m;
var buf = Console.ReadLine().Split(' ');
n = int.Parse(buf[0]);
m = int.Parse(buf[1]);
int count = 0;
count += n * (n - 1) / 2;
count += m * (m - 1) / 2;
Console.WriteLin... | [["-", 0, 28, 0, 16, 31, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 12, 22], ["-", 0, 28, 0, 16, 31, 16, 31, 23, 0, 25], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["-", 0, 28, 0, 16, 31, 16, 12, 23, 0, 24], ["-", 31,... | 8 | 130 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _159_A {
class Program {
static void Main(string[] args) {
var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
Console.WriteLine(((a[0] <= 1 ? 0 : a[0] * (a[0] - 1) / 2) ... | using System;
using System.Linq;
namespace _159_A {
internal class Program {
private static void Main(string[] args) {
var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
Console.WriteLine(((a[0] <= 1 ? 0 : a[0] * (a[0] - 1) / 2) +
(a[1] <= 1 ? 0 : a[1] * (a[1] - 1) / 2))
... | [["-", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["-", 0, 208, 0, 231, 141... | 8 | 135 |
using System;
namespace A {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split();
int N = int.Parse(input[0]);
int M = int.Parse(input[1]);
int ans = 0;
if (N != 0 && M != 0)
ans = N * (N - 1) / 2 + M * (M - 1) / 2;
Console.WriteLine(ans);
}
}
}
| using System;
namespace A {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split();
int N = int.Parse(input[0]);
int M = int.Parse(input[1]);
int ans = 0;
if (N != 0)
ans += N * (N - 1) / 2;
if (M != 0)
ans += M * (M - 1) / 2;
Console.Write... | [["-", 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, 79], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["-", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 107], ["-", 0, 57, 64, 1, 0, 11, 12, 16, 17, 72], ["+... | 8 | 105 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace CSharpSample01 {
class Program {
static void Main(string[] args) {
var inputNum = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var N = inputNum[0];
var M = inputNum[1];
var answer = ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace CSharpSample01 {
class Program {
static void Main(string[] args) {
var inputNum = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var N = inputNum[0];
var M = inputNum[1];
var answer = ... | [["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 48], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 31, 22], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 17, 33], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 12, 203], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+",... | 8 | 128 |
using System.Collections.Generic;
using System.Linq;
public class Hello {
public static void Main() {
hoge();
// System.Console.ReadLine();
}
public static void hoge() {
var vars =
System.Console.ReadLine().Split(' ').Select(ulong.Parse).ToArray();
ulong n = vars[0];
ulong m = vars[1... | using System.Collections.Generic;
using System.Linq;
public class Hello {
public static void Main() {
hoge();
System.Console.ReadLine();
}
public static void hoge() {
var vars =
System.Console.ReadLine().Split(' ').Select(ulong.Parse).ToArray();
ulong n = vars[0];
ulong m = vars[1];
... | [["+", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 141, 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, 2... | 8 | 144 |
using System;
using System.Linq;
class B {
static void Main() {
var s = Console.ReadLine();
var s1 = s.Remove(s.Length / 2);
var s2 = s.Substring(s1.Length + 1);
var s1r = new string(s1.Reverse().ToArray());
Console.WriteLine(s1r == s2 ? "Yes" : "No");
}
}
| using System;
using System.Linq;
class B {
static void Main() {
var s = Console.ReadLine();
var s1 = s.Remove(s.Length / 2);
var s2 = s.Substring(s1.Length + 1);
var s1r = string.Join("", s1.Reverse());
Console.WriteLine(s1 == s2 && s1 == s1r ? "Yes" : "No");
}
}
| [["-", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 2... | 8 | 90 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class QuestionJ {
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 QuestionJ {
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, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 39, 199], ["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["-", 0, 213, 63, 214, 205, 213, 63, 2... | 8 | 214 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using static Input;
using static Util;
class Program {
static string S;
static void INPUT() { S = NextString(); }
static void OUT() {
var len = S.Length;
var b = true;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using static Input;
using static Util;
class Program {
static string S;
static void INPUT() { S = NextString(); }
static void OUT() {
var len = S.Length;
var b = true;
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+",... | 8 | 523 |
using System;
using System.Collections.Generic;
using System.Numerics;
using System.Linq;
using static System.Math;
class MainClass {
public static void Main(string[] args) {
var Nums = LnStrs();
Console.WriteLine(Nums[1] + " " + Nums[2] + " " + Nums[0]);
}
public static long Gcd(long a, long b) {
... | using System;
using System.Collections.Generic;
using System.Numerics;
using System.Linq;
using static System.Math;
class MainClass {
public static void Main(string[] args) {
var Nums = LnStrs();
Console.WriteLine(Nums[2] + " " + Nums[0] + " " + Nums[1]);
}
public static long Gcd(long a, long b) {
... | [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 517 |
using System;
namespace atcoder {
class Program {
static void Main(string[] args) {
string[] In = Console.ReadLine().Split(' ');
Console.WriteLine(In[2] + In[0] + In[1]);
}
}
} | using System;
namespace atcoder {
class Program {
static void Main(string[] args) {
string[] In = Console.ReadLine().Split(' ');
Console.WriteLine(In[2] + " " + In[0] + " " + In[1]);
}
}
}
| [["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 222]] | 8 | 60 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
#region library
static bool debug = false;
static int n = 0;
static int m = 0;
static int r = 0;
static int c = 0;
static int x = 0;
static int y = 0;
static string s = "";
static string[] ss;
static... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
#region library
static bool debug = false;
static int n = 0;
static int m = 0;
static int r = 0;
static int c = 0;
static int x = 0;
static int y = 0;
static string s = "";
static string[] ss;
static... | [["+", 8, 196, 0, 57, 15, 16, 31, 74, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 74, 39, 199], ["+", 8, 196, 0, 57, 15, 16, 31, 74, 0, 25], ["+", 0, 57, 15, 16, 12, 16, 31, 74, 0, 24], ["+", 0, 57, 15, 16, 12, 16, 31, 74, 39, 199], ["+", 0, 57, 15, 16, 12, 16, 31, 74, 0, 25], ["+", 0, 57, 15, 16, 12, 16, 12, 74, 0, 24], ... | 8 | 1,534 |
using System;
using System.Collections.Generic;
using System.Linq;
public static class Program {
public static void Main(string[] args) {
var nm = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
var vals = Console.ReadLine().Split().Select(x => int.Parse(x)).ToList();
vals.Sort();
val... | using System;
using System.Collections.Generic;
using System.Linq;
public static class Program {
public static void Main(string[] args) {
var nm = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
var vals = Console.ReadLine().Split().Select(x => int.Parse(x)).ToList();
vals.Sort();
val... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 166 |
using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC161B {
class Program {
static void Main(string[] args) {
var N = RInt;
var M = RInt;
var A = RInts;
int meyasu = A.Sum() / (4 * M);
int cou... | using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC161B {
class Program {
static void Main(string[] args) {
var N = RInt;
var M = RInt;
var A = RInts;
int meyasu = A.Sum() / (4 * M);
if (A.S... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 205, 22], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 15, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 15, 16, 31, 16, 31, 213, 3, ... | 8 | 728 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class Test {
public static void Main() {
//入力
String[] R = Console.ReadLine().Split();
int N = int.Parse(R[0]);
int M = int.Parse(R[1]);
String[] _A = Console.ReadLine().Split();
int[] A = _A.... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class Test {
public static void Main() {
//入力
String[] R = Console.ReadLine().Split();
int N = int.Parse(R[0]);
double M = int.Parse(R[1]);
//条件
double M_ = 1 / (4 * M);
String[] _A = Con... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["+", 0, 200, 0, 212, 0, 16, 12, 23,... | 8 | 187 |
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Xml;
class Program {
static void Main(string[] args) {
int[] intArray =
Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
int N = intAr... | using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Xml;
class Program {
static void Main(string[] args) {
int[] intArray =
Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
int N = intAr... | [["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], [... | 8 | 242 |
using System;
using System.Linq;
namespace AtCoder20200404 {
class Program {
static void Main(string[] args) {
String[] inputs = Console.ReadLine().Split(' ');
int N = int.Parse(inputs[0]);
int M = int.Parse(inputs[1]);
int[] A = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int tota... | using System;
using System.Linq;
namespace AtCoder20200404 {
class Program {
static void Main(string[] args) {
String[] inputs = Console.ReadLine().Split(' ');
int N = int.Parse(inputs[0]);
int M = int.Parse(inputs[1]);
int[] A = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int tota... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 48], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 85], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20... | 8 | 161 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace ABC161 {
public class Solve {
public static void Main(string[] args) { new ABC_B(); }
}
public class ABC_A {
public ABC_A() {
var i = Ex.ReadIntArray();
Ex.Cw($"{i[2]} {i[0]} {i[1]}");
}
}
public class ... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace ABC161 {
public class Solve {
public static void Main(string[] args) { new ABC_B(); }
}
public class ABC_A {
public ABC_A() {
var i = Ex.ReadIntArray();
Ex.Cw($"{i[2]} {i[0]} {i[1]}");
}
}
public class ... | [["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 85], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 12, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 19], ["+", 0, 218, 8, 16, 12, 16, 31, 16, 17, 48], ["... | 8 | 938 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC161 {
class Program {
static void Main(string[] args) { b(); }
public static void b() {
int[] nm = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = nm[0], m = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC161 {
class Program {
static void Main(string[] args) { b(); }
public static void b() {
int[] nm = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = nm[0], m = ... | [["-", 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, 197, 0, 198, 0, 21], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 1... | 8 | 211 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
string[] str =
Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得
int N = int.Parse(str[0]);
int M = int.Parse(str[1]);
str = Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得
int[] a = new int[N];
f... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
string[] str =
Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得
int N = int.Parse(str[0]);
int M = int.Parse(str[1]);
str = Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得
int[] a = new int[N];
f... | [["+", 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, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3... | 8 | 204 |
using System;
using System.Linq;
class Program {
static void Main() {
int[] N = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
int[] A = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
long ASUM = A.Sum();
long MAX = ASUM / (4 * N[1]);
int j = 0;
for (... | using System;
using System.Linq;
class Program {
static void Main() {
int[] N = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
int[] A = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
long ASUM = A.Sum();
double MAX = (double)ASUM / (4 * N[1]);
int j = 0;
... | [["-", 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, 16, 31, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 14... | 8 | 180 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace atCoder161 {
class ClassB {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int N = int.Parse(str[0]);
int M = int.Parse(str[1]);
string[] ary = Console.ReadLine().Split('... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace atCoder161 {
class ClassB {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int N = int.Parse(str[0]);
int M = int.Parse(str[1]);
string[] ary = Console.ReadLine().Split('... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 39,... | 8 | 205 |
using System;
using System.Linq;
namespace AtCoderCS {
class Program {
static void Main(string[] args) {
var input1 = Console.ReadLine();
var input1array = input1.Split(' ');
var N = int.Parse(input1array[0]);
var M = int.Parse(input1array[1]);
var input2 = Console.ReadLine();
var Astr = i... | using System;
using System.Linq;
namespace AtCoderCS {
class Program {
static void Main(string[] args) {
var input1 = Console.ReadLine();
var input1Arr = input1.Split(' ');
var N = int.Parse(input1Arr[0]);
var M = int.Parse(input1Arr[1]);
var input2 = Console.ReadLine();
var input2Arr = inpu... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 0, 227, 39, 224, 225, 226, 0, 214, 205, 22], ["-", 0, 227, 39, 224, 225, 226, 0, 214, 0, 131], ["-", 0, 227, 39, 224, 225, 226,... | 8 | 196 |
using System;
using System.Linq;
namespace algo {
class Program {
static void Main(string[] args) {
var input1 = Console.ReadLine().Split(' ');
int N = int.Parse(input1[0]);
int M = int.Parse(input1[1]);
var input2 = Console.ReadLine().Split(' ');
int[] A = input2.Select(x => int.Parse(x)).ToArra... | using System;
using System.Linq;
namespace algo {
class Program {
static void Main(string[] args) {
var input1 = Console.ReadLine().Split(' ');
int N = int.Parse(input1[0]);
int M = int.Parse(input1[1]);
var input2 = Console.ReadLine().Split(' ');
int[] A = input2.Select(x => int.Parse(x)).ToArra... | [["-", 0, 195, 8, 196, 0, 7, 26, 241, 0, 29], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["-", 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, 16, 31, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 2... | 8 | 211 |
public class Hello {
public static void Main() {
var line = System.Console.ReadLine();
string[] array = line.Split(' ');
int n = int.Parse(array[0]);
int m = int.Parse(array[1]);
var line2 = System.Console.ReadLine();
string[] array2 = line2.Split(' ');
int sum = 0;
for (int i = 0; ... | public class Hello {
public static void Main() {
var line = System.Console.ReadLine();
string[] array = line.Split(' ');
int n = int.Parse(array[0]);
int m = int.Parse(array[1]);
var line2 = System.Console.ReadLine();
string[] array2 = line2.Split(' ');
int sum = 0;
for (int i = 0; ... | [["-", 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, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], [... | 8 | 213 |
using System;
using System.Linq;
namespace B {
class Program {
static void Main(string[] args) {
var NM = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var N = NM[0];
var M = NM[1];
var A = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var sum = A.Sum();
var limit ... | using System;
using System.Linq;
namespace B {
class Program {
static void Main(string[] args) {
var NM = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var N = NM[0];
var M = NM[1];
var A = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var sum = A.Sum();
var limit ... | [["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 0, 25], ["+", 0, 212, 0, 16, 12, 74, 51, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 74, 0, 24], ... | 8 | 153 |
using System;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string[] NM = Console.ReadLine().Split(' ');
int N = int.Parse(NM[0]);
int M = int.Parse(NM[1]);
string[] Astr = Console.ReadLine().Split(' ');
int[] A = new int[N];
for (int i = 0; i < ... | using System;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string[] NM = Console.ReadLine().Split(' ');
int N = int.Parse(NM[0]);
int M = int.Parse(NM[1]);
string[] Astr = Console.ReadLine().Split(' ');
int[] A = new int[N];
for (int i = 0; i < ... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 16, 31, 16, 12, 23, 0, 24], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 31, 203], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 17, 48... | 8 | 205 |
using System;
namespace AtCoder {
class MainClass {
public static void Main() {
string[] input1 = Console.ReadLine().Split(' ');
int N = int.Parse(input1[0]);
int M = int.Parse(input1[1]);
string[] input2 = Console.ReadLine().Split(' ');
int[] A = new int[N];
int total = 0;
for (int ... | using System;
namespace AtCoder {
class MainClass {
public static void Main() {
string[] input1 = Console.ReadLine().Split(' ');
int N = int.Parse(input1[0]);
int M = int.Parse(input1[1]);
string[] input2 = Console.ReadLine().Split(' ');
int[] A = new int[N];
int total = 0;
for (int ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74... | 8 | 214 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace B {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace B {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["-", 0, 212, 0, 16, 12, 23, 0, 16, 31, 203], ["-", 0, 212, 0, 16, 12, 23, 0, 16, 17, 48... | 8 | 245 |
using System;
class ProgramB {
static void Main(string[] args) {
//入力
string[] s = Console.ReadLine().Split(' ');
long n = long.Parse(s[0]);
long m = long.Parse(s[1]);
string[] a = Console.ReadLine().Split(' ');
long[] ai = new long[n];
long sum = 0;
long count = 0;
for (int i = ... | using System;
class ProgramB {
static void Main(string[] args) {
//入力
string[] s = Console.ReadLine().Split(' ');
long n = long.Parse(s[0]);
long m = long.Parse(s[1]);
string[] a = Console.ReadLine().Split(' ');
long[] ai = new long[n];
long sum = 0;
long count = 0;
for (int i = ... | [["+", 15, 16, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 15, 16, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 15, 16, 12, 16, 31, 16, 31, 74, 0, 25], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 250], ["+", 0, 57, 15, 16, 12, 16, 12, 74, 0, 24], ["+", 0, 57, 15, 16, 12, 16, 12, 74, 39,... | 8 | 197 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace AtCoder_Core {
class Program {
static void Main(string[] args) {
var line1 = Console.ReadLine()
.Trim()
.Split(' ')
.Select(b => int.Parse... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace AtCoder_Core {
class Program {
static void Main(string[] args) {
var line1 = Console.ReadLine()
.Trim()
.Split(' ')
.Select(b => int.Parse... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 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, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214,... | 8 | 214 |
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, 200, 0, 212, 0, 16, 31, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25], ["-", 0, 212, 0, 16, 12, 23, 0, 16, 31, 203], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 31, 250], ["+", 0, 16, 12, 23, 0, 16, 12, 74, 0, 24], ["+", 0, 16, 12, 23, 0, 16, 12, 74, 39, 199], ... | 8 | 552 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using static System.Console;
class Program {
static void Main(string[] args) {
// 整数の入力
// int a = int.Parse(Console.ReadLine());
// スペース区切りの整数の入力
string[] NMK = Console.ReadLine().Split(' ');
int N = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using static System.Console;
class Program {
static void Main(string[] args) {
// 整数の入力
// int a = int.Parse(Console.ReadLine());
// スペース区切りの整数の入力
string[] NMK = Console.ReadLine().Split(' ');
int N = ... | [["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22]... | 8 | 243 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
// var s = Console.ReadLine();
// var n = int.Parse(Console.ReadLine());
int[] nm = Console.ReadLine().Split().Select(int.Parse).ToAr... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
// var s = Console.ReadLine();
// var n = int.Parse(Console.ReadLine());
int[] nm = Console.ReadLine().Split().Select(int.Parse).ToAr... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["-", 0, 212, 0, 16, 12, 23, 0, 16, 31, ... | 8 | 195 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
var n = inputs[0];
var m = inputs[1];
var ai = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
var count = ai.Where(t => t >= (a... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var n = inputs[0];
var m = inputs[1];
var ai = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var count =
ai.Where(t => (... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 16, 31, 74, 0, 24], ["+", 0, 28, 0, 218, 8, 16, 31, 74, 39, 199], ["+", 0, 28, 0, 218, 8, 16, 31, 74, 0, 25], ["+", 0, 28, 0, 218, 8, 16, 12, 74, 0, 24], ["+", 0, 28, 0, 218, 8, 16, 12, 74, 39, 199],... | 8 | 148 |
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;
public static long mod = 100... | 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;
public static long mod = 100... | [["+", 0, 7, 8, 57, 15, 16, 31, 74, 0, 24], ["+", 0, 7, 8, 57, 15, 16, 31, 74, 39, 199], ["+", 0, 7, 8, 57, 15, 16, 31, 74, 0, 25], ["+", 8, 57, 15, 16, 12, 16, 31, 74, 0, 24], ["+", 8, 57, 15, 16, 12, 16, 31, 74, 39, 199], ["+", 8, 57, 15, 16, 12, 16, 31, 74, 0, 25], ["+", 12, 16, 12, 23, 0, 16, 12, 74, 0, 24], ["+", ... | 8 | 1,016 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace b {
class Program {
static void Main(string[] args) {
var _ = Console.ReadLine().Split();
var n = int.Parse(_[0]);
var m = int.Parse(_[1]);
var a = Console.ReadLine()
.Split()
.Select(i => int... | using System;
using System.Linq;
using System.Collections.Generic;
namespace b {
class Program {
static void Main(string[] args) {
var _ = Console.ReadLine().Split();
var n = int.Parse(_[0]);
var m = int.Parse(_[1]);
var a = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray();
var cou... | [["-", 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], ["-", 205, 213, 3, 4, 0, 28, 0, 218, 8, 22], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 0, 200, 0, 212, 0, 213, 63, ... | 8 | 181 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var firstLine = Console.ReadLine()
.Split(' ')
.Select(value => int.Parse(value))
.To... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var firstLine = Console.ReadLine()
.Split(' ')
.Select(value => int.Parse(value))
.To... | [["+", 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, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 51, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 8... | 8 | 157 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999999;
public static void Main(string[] args) {
var p = Input().ToInt();
var n = p[0];
var m = p[1];
var a = Inpu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999999;
public static void Main(string[] args) {
var p = Input().ToInt();
var n = p[0];
var m = p[1];
var a = Inpu... | [["+", 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, 200, 0, 212, 0, 16, 31, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 51,... | 8 | 367 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleTest {
static partial class Program {
static void Main(string[] args) {
var v = Ints();
int n = v[0];
int m = v[1];
var a = Ints();
var sum = a.Sum();
int thr = sum / (4 * m);
int num =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleTest {
static partial class Program {
static void Main(string[] args) {
var v = Ints();
int n = v[0];
int m = v[1];
var a = Ints();
var sum = a.Sum();
int thr = sum;
int num = 0;
fo... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["-", 0, 212, 0, 16, 12, 23, 0, 16, 31, 203], ["-", 0, 212, 0, 16, 12, 23, 0, 16, 17, 48], ["-", 0, 212, 0, 16, 12, 23, 0, 16, 12, 22], ["-", 0, 200, 0, 212, 0, 16, 12, 23, 0, 25], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 203], ... | 8 | 335 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class B {
static StreamWriter Out =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
static void Main(string[] args) {
int N, M;
Input(out N, out M);
int[] A;
Inputs(out A);
int count ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class B {
static StreamWriter Out =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
static void Main(string[] args) {
int N, M;
Input(out N, out M);
int[] A;
Inputs(out A);
double sum... | [["+", 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, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 2... | 8 | 912 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading.Tasks;
using AtCoderBeginnerContest161.Questions;
using AtCoderBeginnerContest161.Extensions;
namespace AtCoderBeginnerContest161 {
class Program {
static void Main(string[] args) {
IAtCo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading.Tasks;
using AtCoderBeginnerContest161.Questions;
using AtCoderBeginnerContest161.Extensions;
namespace AtCoderBeginnerContest161 {
class Program {
static void Main(string[] args) {
IAtCo... | [["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 0, 1, 0, 11, 12, 16, 12, 16, 31, 22], ["-", 0, 1, 0, 11, 12, 16, 12, 16, 17, 48], ["-", 0, 11, 12, 16, 12, 16, 12, 23, 0, 24], ["-", 12, 16, 12, 16, 12, 23, 0, 16, 31, 22], ["-", 12,... | 8 | 546 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
// var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush =
// false }; Console.SetOut(sw);
var N = sc.ReadLong();
var K = sc.ReadLong();
if (N == 0 ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
// var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush =
// false }; Console.SetOut(sw);
var N = sc.ReadLong();
var K = sc.ReadLong();
if (N == 0)... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, ... | 8 | 1,121 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc161_c {
class Program {
static void Main(string[] args) {
string[] NK = Console.ReadLine().Split(' ');
double N = double.Parse(NK[0]);
double K = double.Parse(NK[1]);
doub... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc161_c {
class Program {
static void Main(string[] args) {
string[] NK = Console.ReadLine().Split(' ');
long N = long.Parse(NK[0]);
long K = long.Parse(NK[1]);
if (N % K ==... | [["-", 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, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200,... | 8 | 160 |
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Xml;
class Program {
static void Main(string[] args) {
long[] longArray =
Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray();
long N = l... | using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Xml;
class Program {
static void Main(string[] args) {
long[] longArray =
Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray();
long N = l... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25],... | 8 | 171 |
using System;
namespace C {
class Program {
static void Main(string[] args) {
string line = Console.ReadLine();
string[] strs = line.Split(' ');
long N = long.Parse(strs[0]);
long K = long.Parse(strs[1]);
long min;
if (N < K) {
min = Math.Abs(N - K);
if (min > Math.Abs(K - N))
... | using System;
namespace C {
class Program {
static void Main(string[] args) {
string line = Console.ReadLine();
string[] strs = line.Split(' ');
long N = long.Parse(strs[0]);
long K = long.Parse(strs[1]);
long min = N;
if (N < K) {
if (min > Math.Abs(N - K))
min = Math.Abs(N - ... | [["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 205, ... | 8 | 154 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace task3 {
class Program {
static void Main(string[] args) {
Int64[] input = Console.ReadLine().Split(' ').Select(Int64.Parse).ToArray();
Int64 N = input[0];
Int64 K = input[1];
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace task3 {
class Program {
static void Main(string[] args) {
Int64[] input = Console.ReadLine().Split(' ').Select(Int64.Parse).ToArray();
Int64 N = input[0];
Int64 K = input[1];
... | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["-", 0, 28, ... | 8 | 121 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.