buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
using System;
using System.Linq;
class C {
static int[] Read() => Console.ReadLine().Split().Select(int.Parse).ToArray();
static void Main() {
var h = Read();
int n = h[0], m = h[1];
var scs = new int [m].Select(_ => Read()).ToArray();
var r = Enumerable.Range(0, 1000)
.Select(i =>... | using System;
using System.Linq;
class C {
static int[] Read() => Console.ReadLine().Split().Select(int.Parse).ToArray();
static void Main() {
var h = Read();
int n = h[0], m = h[1];
var scs = new int [m].Select(_ => Read()).ToArray();
var r =
Enumerable.Range(0, 1000)
.Select(... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]] | 8 | 163 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc157_c {
class Program {
static void Main(string[] args) {
var N = CIn.ReadInt();
var M = CIn.ReadInt();
var s = new int[M];
var c = new int[M];
for (var i = 0; i < M; ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc157_c {
class Program {
static void Main(string[] args) {
var N = CIn.ReadInt();
var M = CIn.ReadInt();
var s = new int[M];
var c = new int[M];
for (var i = 0; i < M; ... | [["+", 0, 200, 0, 212, 0, 41, 15, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 60], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 12, 203], ["+", 10, 198, 0, 200, 0, 212, 0, 41, 0, 101], ["+", 10, 198, 0, 200, 0, 212, 0, 41, 64, 203], ["+", 10, 198, 0, 200, 0, 212, 0, 41, 0, 102]] | 8 | 551 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace C {
class Program {
static void Main(string[] args) {
var nm = Console.ReadLine().Split(' ');
var keta = int.Parse(nm[0]);
var time = int.Parse(nm[1]);
var info = new string[t... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace C {
class Program {
static void Main(string[] args) {
var nm = Console.ReadLine().Split(' ');
var keta = int.Parse(nm[0]);
var time = int.Parse(nm[1]);
var info = new string[t... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 15, 16, 12, 16, 12, 16, 12, 252, 0, 253], ["+", 15, 16, 12, 16, 12, 16, 12, 252, 0, 253]] | 8 | 456 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
public static void Main(string[] args) {
var nm = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var dict = new Dictionary<int, int>();
for (int i = 0; i < nm[1]; i++) {
var vals =
... | using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
public static void Main(string[] args) {
var nm = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var dict = new Dictionary<int, int>();
for (int i = 0; i < nm[1]; i++) {
var vals =
... | [["-", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22]] | 8 | 328 |
using System;
using System.Collections.Generic;
namespace CsAtCoderSubmitExam {
class BeginnerContest157 {
// C - Guess The Number
class SC {
public int S;
public int C;
public SC(int s, int c) {
S = s;
C = c;
}
public override string ToString() { return $"S:{S}, C:{C}"; }
}
s... | using System;
using System.Collections.Generic;
namespace CsAtCoderSubmitExam {
class BeginnerContest157 {
// C - Guess The Number
class SC {
public int S;
public int C;
public SC(int s, int c) {
S = s;
C = c;
}
public override string ToString() { return $"S:{S}, C:{C}"; }
}
s... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 410 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Console = System.Console;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var nm = ReadIntArray();
IList<int[]> pairs = new List<int[]>();
for (int i = 0; i < nm[1]... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Console = System.Console;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var nm = ReadIntArray();
IList<int[]> pairs = new List<int[]>();
for (int i = 0; i < nm[1]... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 393 |
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... | [["+", 15, 16, 12, 16, 31, 16, 12, 16, 31, 22], ["+", 15, 16, 12, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 16, 12, 16, 31, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 98]] | 8 | 2,326 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace MyProject {
class Program {
static void Main(string[] args) {
#if Local
var sw = new Stopwatch();
sw.Start();
Console.SetIn(new StreamReader("input.in"));
#endif
var solver = new S... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace MyProject {
class Program {
static void Main(string[] args) {
#if Local
var sw = new Stopwatch();
sw.Start();
Console.SetIn(new StreamReader("input.in"));
#endif
var solver = new S... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 283, 0, 295], ["+", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296], ["+", 3, 4, 0, 28, 0, 283, 0, 284, 0, 45], ["+", 3, 4, 0, 28, 0, 283, 0, 284, 0, 22], ["+", 3, 4, 0, 28, 0, 283, 0, 284, 0, 46]] | 8 | 427 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main() {
var nm = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var n = nm[0];
var m = nm[1];
var sc = new int [m][];
for (int i = 0; i < m; i++) {
sc[i] = Console... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main() {
var nm = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var n = nm[0];
var m = nm[1];
var sc = new int [m][];
for (int i = 0; i < m; i++) {
sc[i] = Console... | [["+", 0, 1, 0, 11, 12, 41, 15, 16, 17, 98], ["+", 0, 11, 12, 41, 15, 16, 12, 16, 31, 22], ["+", 0, 11, 12, 41, 15, 16, 12, 16, 17, 47], ["+", 0, 11, 12, 41, 15, 16, 12, 16, 12, 203]] | 8 | 325 |
using System;
namespace AtC157 {
class Program {
static void Main(string[] args) {
string[] NM = Console.ReadLine().Split(' ');
int N = int.Parse(NM[0]);
int M = int.Parse(NM[1]);
int[] s = new int[M];
int[] c = new int[M];
bool[] a = new bool[N + 1];
int[] b = new int[N + 1];
bool e... | using System;
namespace AtC157 {
class Program {
static void Main(string[] args) {
string[] NM = Console.ReadLine().Split(' ');
int N = int.Parse(NM[0]);
int M = int.Parse(NM[1]);
int[] s = new int[M];
int[] c = new int[M];
bool[] a = new bool[N + 1];
int[] b = new int[N + 1];
bool e... | [["+", 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, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]] | 8 | 335 |
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
#if DEBUG
MyDebugger.Test(process, "../TextFile1.txt");
// MyDebugger.Test(process, "../TextFile2.txt");
// MyDebugger.MakeTes... | using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
#if DEBUG
MyDebugger.Test(process, "../TextFile1.txt");
// MyDebugger.Test(process, "../TextFile2.txt");
// MyDebugger.MakeTes... | [["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98]] | 8 | 346 |
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;
using MethodImplAttribute = System.Runtime.Compi... | 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;
using MethodImplAttribute = System.Runtime.Compi... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 256 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using stat... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 3,674 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var S = sc.ReadStr().ToArray();
var bit = new BinaryIndexedTree[26];
for (int i = 0; i < 26; i++)
bit[i] = new BinaryIndexedTree(N);
for (int i = 0; i <... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var S = sc.ReadStr().ToArray();
var bit = new BinaryIndexedTree[26];
for (int i = 0; i < 26; i++)
bit[i] = new BinaryIndexedTree(N);
for (int i = 0; i <... | [["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 1,463 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static ABC157.E.Cin;
using static ABC157.E.Util;
using Pair = ABC157.E.VTuple<long, long>;
namespace ABC157 {
public class E {
public static void Main(string[] args) {
int N = ri;
char[] S = rs.ToArray();
i... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static ABC157.E.Cin;
using static ABC157.E.Util;
using Pair = ABC157.E.VTuple<long, long>;
namespace ABC157 {
public class E {
public static void Main(string[] args) {
int N = ri;
char[] S = rs.ToArray();
i... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22]] | 8 | 4,006 |
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, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 2,380 |
using System;
namespace ABC157_E___Simple_String_Queries {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var S = Console.ReadLine();
var seg = new SegmentTree[26];
for (int i = 0; i < 26; i++)
seg[i] = new SegmentTree(N);
for (int i = 0; i < N; i+... | using System;
namespace ABC157_E___Simple_String_Queries {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var S = Console.ReadLine();
var seg = new SegmentTree[26];
for (int i = 0; i < 26; i++)
seg[i] = new SegmentTree(N);
for (int i = 0; i < N; i+... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 546 |
using System;
using System.Collections.Generic;
using System.Linq;
public class AtCoderE {
static void Main() {
int n = int.Parse(Console.ReadLine());
char[] s = Console.ReadLine().ToArray();
BinaryIndexedTree[] counts = new BinaryIndexedTree[26];
for (int i = 0; i < 26; i++) {
counts[i] = new... | using System;
using System.Collections.Generic;
using System.Linq;
public class AtCoderE {
static void Main() {
int n = int.Parse(Console.ReadLine());
char[] s = Console.ReadLine().ToArray();
BinaryIndexedTree[] counts = new BinaryIndexedTree[26];
for (int i = 0; i < 26; i++) {
counts[i] = new... | [["-", 31, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 31, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 549 |
using System;
using System.Linq;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using static program.Input;
using static program.MyMath;
using static System.Console;
using static program.Const;
namespace program {
static class Const {
public static string alp = "abcdefghijklmnopqrstuvwxyz";
... | using System;
using System.Linq;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using static program.Input;
using static program.MyMath;
using static System.Console;
using static program.Const;
namespace program {
static class Const {
public static string alp = "abcdefghijklmnopqrstuvwxyz";
... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 2,042 |
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... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 2,875 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var n = inputs[0];
var k = inputs[1];
var pk = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
v... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var n = inputs[0];
var k = inputs[1];
var pk = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
v... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 394 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Console;
using static System.Math;
namespace CP {
class Atria {
static void Main(string[] args) {
int[] nk = ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = nk[0];
int k =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Console;
using static System.Math;
namespace CP {
class Atria {
static void Main(string[] args) {
int[] nk = ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = nk[0];
int k =... | [["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 2... | 8 | 278 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
//文字列を読み込む
int[] line =
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int N = line[0];
int K = line[1];
int[] Pk =
Console.ReadLine().Split(' '... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
//文字列を読み込む
int[] line =
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int N = line[0];
int K = line[1];
int[] Pk =
Console.ReadLine().Split(' '... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 201 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_20190707_1 {
class Program {
static void Main(string[] args) {
string[] NK = Console.ReadLine().Split(' ');
int N = int.Parse(NK[0]);
int K = int.Parse(NK[1]);
strin... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_20190707_1 {
class Program {
static void Main(string[] args) {
string[] NK = Console.ReadLine().Split(' ');
int N = int.Parse(NK[0]);
int K = int.Parse(NK[1]);
strin... | [["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 239 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using System.Runtime.CompilerServices;
using System.Diagnostics;
using ll=System.Int64;
using static Contest_D.Lib_IO;
using static Contest_D.Lib_Minifunc;
public static class Contest_D
{
public static ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using System.Runtime.CompilerServices;
using System.Diagnostics;
using ll=System.Int64;
using static Contest_D.Lib_IO;
using static Contest_D.Lib_Minifunc;
public static class Contest_D
{
public static ... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22]] | 8 | 2,999 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
// 入力
double[] nk = Console.ReadLine().Split().Select(double.Parse).ToArray();
double[] p = Console.ReadLine().Split().Select(double.Parse).ToArray();
double ans = 0;
//出目1-1000の期待値を求める
double[] ex = new doubl... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
// 入力
double[] nk = Console.ReadLine().Split().Select(double.Parse).ToArray();
double[] p = Console.ReadLine().Split().Select(double.Parse).ToArray();
double ans = 0;
//出目1-1000の期待値を求める
double[] ex = new doubl... | [["+", 12, 204, 206, 207, 0, 28, 0, 74, 0, 24], ["+", 12, 204, 206, 207, 0, 28, 0, 74, 39, 199], ["+", 12, 204, 206, 207, 0, 28, 0, 74, 0, 25], ["+", 206, 207, 0, 28, 0, 74, 51, 204, 205, 22], ["+", 0, 28, 0, 74, 51, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 74, 51, 204, 206, 207, 0, 73]] | 8 | 250 |
using System;
using System.Linq;
public class Hello {
public static void Main() {
var s = Console.ReadLine().Split();
var n = int.Parse(s[0]);
var k = int.Parse(s[1]);
var p = Console.ReadLine().Trim().Split().Select(int.Parse).ToArray();
var pexp = new double[n];
var spex = new double[n + 1]... | using System;
using System.Linq;
public class Hello {
public static void Main() {
var s = Console.ReadLine().Split();
var n = int.Parse(s[0]);
var k = int.Parse(s[1]);
var p = Console.ReadLine().Trim().Split().Select(int.Parse).ToArray();
var pexp = new double[n];
var spex = new double[n + 1]... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]] | 8 | 225 |
using System;
using System.Linq;
namespace AtCoderBiginnerContest154 {
class Program {
static void Main(string[] args) {
var numbers = ReadIntArray();
var inputs = ReadIntArray();
var totals = new int[numbers[0]];
totals[0] = inputs[0];
for (var i = 1; i < numbers[0]; i++) {
if (i < number... | using System;
using System.Linq;
namespace AtCoderBiginnerContest154 {
class Program {
static void Main(string[] args) {
var numbers = ReadIntArray();
var inputs = ReadIntArray();
var totals = new long[numbers[0]];
totals[0] = inputs[0];
for (var i = 1; i < numbers[0]; i++) {
if (i < numbe... | [["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 205, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 381 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace A {
class Solver {
public void Solve() {
var s = sc.Str;
var k = sc.Int;
var n = s.Length;
var dp = new int[n + 1, n + 1, 2];
dp[0, 0, 0] = 0;
dp[0, 0, 1] = 1;
for (int i = 1; i <= n; i++) {
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace A {
class Solver {
public void Solve() {
var s = sc.Str;
var k = sc.Int;
var n = s.Length;
var dp = new int[n + 1, k + 1, 2];
dp[0, 0, 0] = 0;
dp[0, 0, 1] = 1;
for (int i = 1; i <= n; i++) {
... | [["-", 0, 227, 39, 224, 225, 226, 0, 16, 31, 22], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 31, 22]] | 8 | 2,005 |
using System;
using System.Linq;
using CompLib.Mathematics;
using CompLib.Util;
public class Program {
int R1, C1, R2, C2;
ModInt[] F;
public void Solve() {
var sc = new Scanner();
R1 = sc.NextInt();
C1 = sc.NextInt();
R2 = sc.NextInt();
C2 = sc.NextInt();
F = new ModInt[2000001];
F... | using System;
using System.Linq;
using CompLib.Mathematics;
using CompLib.Util;
public class Program {
int R1, C1, R2, C2;
ModInt[] F;
public void Solve() {
var sc = new Scanner();
R1 = sc.NextInt();
C1 = sc.NextInt();
R2 = sc.NextInt();
C2 = sc.NextInt();
F = new ModInt[3000001];
F... | [["-", 0, 11, 12, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 11, 12, 227, 39, 224, 225, 226, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 1,180 |
using CompLib.Util;
using System;
public class Program {
int R1, R2, C1, C2;
ModInt[] Fact;
public void Solve() {
var sc = new Scanner();
R1 = sc.NextInt();
C1 = sc.NextInt();
R2 = sc.NextInt();
C2 = sc.NextInt();
Fact = new ModInt[500001];
Fact[0] = 1;
for (int i = 1; i <= 5000... | using CompLib.Util;
using System;
public class Program {
int R1, R2, C1, C2;
ModInt[] Fact;
public void Solve() {
var sc = new Scanner();
R1 = sc.NextInt();
C1 = sc.NextInt();
R2 = sc.NextInt();
C2 = sc.NextInt();
Fact = new ModInt[5000001];
Fact[0] = 1;
for (int i = 1; i <= 500... | [["-", 0, 11, 12, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 11, 12, 227, 39, 224, 225, 226, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 876 |
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, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 2,221 |
using System;
namespace ABC154_F___Many_Many_Paths {
class Program {
static void Main(string[] args) {
var read = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var r1 = read[0];
var c1 = read[1];
var r2 = read[2];
var c2 = read[3];
var MOD = 1000000007;
Combination.combInit(... | using System;
namespace ABC154_F___Many_Many_Paths {
class Program {
static void Main(string[] args) {
var read = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var r1 = read[0];
var c1 = read[1];
var r2 = read[2];
var c2 = read[3];
var MOD = 1000000007;
Combination.combInit(... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 430 |
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;
static void Main() {
... | 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;
static void Main() {
... | [["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110]] | 8 | 1,947 |
using System.Collections;
using System.Text;
using System.Threading.Tasks;
using static System.Math;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System;
using System.Numerics;
class Program {
static void Main() {
int[] AH = ReadInts;
int A = AH[0];
int H = AH[... | using System.Collections;
using System.Text;
using System.Threading.Tasks;
using static System.Math;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System;
using System.Numerics;
class Program {
static void Main() {
int[] AH = ReadInts;
int A = AH[1];
int H = AH[... | [["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 2,145 |
using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
static void Main(string[] args) {
var r = ReadSplit();
var H = r[0].ToInt();
var A = r[1].ToInt();
int i = 0;
int su... | using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
static void Main(string[] args) {
var r = ReadSplit();
var H = r[0].ToInt();
var A = r[1].ToInt();
int i = 0;
int su... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 250 |
using System;
using System.Linq;
class P {
public static void Main() {
var n = Console.ReadLine().Split().Select(int.Parse).ToArray();
int count = n[1] / n[0];
Console.WriteLine(n[1] % n[0] == 0 ? count : count + 1);
}
} | using System;
using System.Linq;
class P {
public static void Main() {
var n = Console.ReadLine().Split().Select(int.Parse).ToArray();
int count = n[0] / n[1];
Console.WriteLine(n[0] % n[1] == 0 ? count : count + 1);
}
} | [["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 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], ["-", 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, 2... | 8 | 80 |
using System;
class Program {
static void Main(string[] args) {
var inp = Console.ReadLine().Split(' ');
float a = float.Parse(inp[0]);
float b = float.Parse(inp[1]);
int r = (int)(a / b) + 1;
if (a % b == 0) {
Console.WriteLine(r);
} else {
Console.WriteLine(r - 1);
}
}
} | using System;
class Program {
static void Main(string[] args) {
var inp = Console.ReadLine().Split(' ');
float a = float.Parse(inp[0]);
float b = float.Parse(inp[1]);
int r = (int)(a / b) + 1;
if (!(a % b == 0)) {
Console.WriteLine(r);
} else {
Console.WriteLine(r - 1);
}
}
} | [["+", 0, 195, 8, 196, 0, 57, 15, 241, 0, 111], ["+", 8, 196, 0, 57, 15, 241, 0, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 241, 0, 23, 0, 25]] | 8 | 103 |
using System;
class A {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int N = int.Parse(s[0]);
int A = int.Parse(s[1]);
if (A == 1) {
Console.WriteLine(N);
return;
}
if (N % A == 0) {
Console.WriteLine(N % A);
return;
}
Console.Wr... | using System;
class A {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int N = int.Parse(s[0]);
int A = int.Parse(s[1]);
if (A == 1) {
Console.WriteLine(N);
return;
}
if (N % A == 0) {
Console.WriteLine(N / A);
return;
}
Console.Wr... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85]] | 8 | 111 |
using System;
namespace abca153 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int c = a % b;
if (a < b)
Console.WriteLine(1);
else if (c > 0)
Console.WriteLine(c + 1);
i... | using System;
namespace abca153 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int c = a % b;
if (a < b)
Console.WriteLine(1);
else if (c > 0)
Console.WriteLine(a / b + 1);
... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 85], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22]] | 8 | 125 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Sample {
class Sample {
static void Main() {
var p = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
int tai = p[0];
int atk = p[1];
for (int i = 0; i < 10000; i++) {
if (tai - i * atk <... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Sample {
class Sample {
static void Main() {
var p = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
int tai = p[0];
int atk = p[1];
for (int i = 1; i < 1000000; i++) {
if (tai - i * atk... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 110 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
public class Program {
static public void Main(string[] args) {
string str = Console.ReadLine();
int[] data = str.Split(' ').Select(x => int.Parse(x)).ToArray();
int n = data[0] / data[1];
int mod = data[0] %... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
public class Program {
static public void Main(string[] args) {
string str = Console.ReadLine();
int[] data = str.Split(' ').Select(x => int.Parse(x)).ToArray();
int n = data[0] / data[1];
int mod = data[0] %... | [["-", 0, 16, 12, 23, 0, 41, 15, 16, 17, 20], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 17, 47]] | 8 | 119 |
using System;
using System.Linq;
namespace CSharp {
class Program {
static void Main() {
var input = Console.ReadLine().Split().Select(int.Parse).ToArray();
var H = input[0];
var A = input[1];
Console.WriteLine(Math.Floor(H / (double)A));
}
}
} | using System;
using System.Linq;
namespace CSharp {
class Program {
static void Main() {
var input = Console.ReadLine().Split().Select(int.Parse).ToArray();
var H = input[0];
var A = input[1];
Console.WriteLine(Math.Ceiling(H / (double)A));
}
}
} | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]] | 8 | 80 |
using System;
using System.Text;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string[] input1 = Console.ReadLine().Split();
int h = int.Parse(input1[0]);
int a = int.Parse(input1[1]);
int count = 0;
while (h <= 0) {
h = h - a;
count++;
}
Console... | using System;
using System.Text;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string[] input1 = Console.ReadLine().Split();
int h = int.Parse(input1[0]);
int a = int.Parse(input1[1]);
int count = 0;
while (h > 0) {
h = h - a;
count++;
}
Console.... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47]] | 8 | 97 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel.Design;
using System.Globalization;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threadin... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel.Design;
using System.Globalization;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threadin... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19]] | 8 | 226 |
using System;
using System.Linq;
namespace ConsoleApp12 {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
uint H = uint.Parse(input[0]);
uint N = uint.Parse(input[1]);
int[] A = Console.ReadLine()
.Trim()
.Split(' ... | using System;
using System.Linq;
namespace ConsoleApp12 {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
uint H = uint.Parse(input[0]);
uint N = uint.Parse(input[1]);
int[] A = Console.ReadLine()
.Trim()
.Split(' ... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22]] | 8 | 143 |
using System;
using System.Collections.Generic;
using System.Linq;
static class Program {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
//入力
var list = Console.ReadLine().Split(' ').Select(int.P... | using System;
using System.Collections.Generic;
using System.Linq;
static class Program {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
//入力
var list = Console.ReadLine().Split(' ').Select(int.P... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 155 |
using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
int h, sum;
sum = 0;
string[] i = Console.ReadLine().Split(' ');
h = int.Parse(i[0]);
string[] a = Console.ReadLine().Split(' ');
foreach (string s in a) {
sum = sum + int.Parse(s);
}
if (... | using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
int h, sum;
sum = 0;
string[] i = Console.ReadLine().Split(' ');
h = int.Parse(i[0]);
string[] a = Console.ReadLine().Split(' ');
foreach (string s in a) {
sum = sum + int.Parse(s);
}
if (... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 128 |
using System;
using System.Linq;
public class B {
public static void Main() {
int h = int.Parse(Console.ReadLine().Split(' ')[0]);
var a = Console.ReadLine().Split(' ').Select(int.Parse);
Console.WriteLine((h <= a.Sum()) ? "YES" : "NO");
}
}
| using System;
using System.Linq;
public class B {
public static void Main() {
long h = long.Parse(Console.ReadLine().Split(' ')[0]);
var a = Console.ReadLine().Split(' ').Select(long.Parse);
Console.WriteLine((h <= a.Sum()) ? "Yes" : "No");
}
}
| [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 3, 4, 0, 28, 0, 41, 64, 5... | 8 | 91 |
using System;
namespace ConsoleApp21 {
class Program {
static void Main(string[] args) {
string line = Console.ReadLine();
string[] array = line.Split(' ');
//モンスターの数
int n = int.Parse(array[0]);
//使用可能な必殺技の数
int k = int.Parse(array[1]);
// HP
string li = Console.ReadLine();
str... | using System;
namespace ConsoleApp21 {
class Program {
static void Main(string[] args) {
string line = Console.ReadLine();
string[] array = line.Split(' ');
//モンスターの数
int n = int.Parse(array[0]);
//使用可能な必殺技の数
int k = int.Parse(array[1]);
// HP
string li = Console.ReadLine();
str... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 193 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string[] original_enemy = Console.ReadLine().Split();
int enemy = int.Parse(original_enemy[0]);
int special_attack = in... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string[] original_enemy = Console.ReadLine().Split();
int enemy = int.Parse(original_enemy[0]);
int special_attack = in... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]] | 8 | 190 |
using System;
using System.Linq;
using static System.Console;
class P {
public static void Main() {
var n = ReadLine().Split().Select(int.Parse).ToArray();
var enemy =
ReadLine().Split().Select(long.Parse).OrderBy(a => a).Skip(n[1]).Sum();
WriteLine(enemy);
}
} | using System;
using System.Linq;
using static System.Console;
class P {
public static void Main() {
var n = ReadLine().Split().Select(int.Parse).ToArray();
var enemy =
ReadLine().Split().Select(long.Parse).OrderBy(a => -a).Skip(n[1]).Sum();
WriteLine(enemy);
}
} | [["+", 3, 4, 0, 28, 0, 218, 8, 241, 0, 33]] | 8 | 90 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var line = System.Console.ReadLine();
var l = line.Split(' ');
var N = int.Parse(l[0]);
var K = int.Parse(l[1]);
var line2 = Syst... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var line = System.Console.ReadLine();
var l = line.Split(' ');
var N = int.Parse(l[0]);
var K = int.Parse(l[1]);
var line2 = Syst... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 19... | 8 | 201 |
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, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 12... | 8 | 522 |
using System.Linq;
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var k = int.Parse(line[1]);
line = Console.ReadLine().Trim().Split(' ');
var h = Array.ConvertAll(line, int.Parse);
if (k >= n) {... | using System.Linq;
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var k = int.Parse(line[1]);
line = Console.ReadLine().Trim().Split(' ');
var h = Array.ConvertAll(line, long.Parse);
if (k >= n) ... | [["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 23, 0, 25]] | 8 | 154 |
using System;
class FennecVsMonster {
static void Main(string[] args) {
string[] line1 = System.Console.ReadLine().Trim().Split(' ');
string[] line2 = System.Console.ReadLine().Trim().Split(' ');
int[] H = new int[int.Parse(line1[0])];
for (int i = 0; i < int.Parse(line1[0]); i++) {
H[i] = int.... | using System;
class FennecVsMonster {
static void Main(string[] args) {
string[] line1 = System.Console.ReadLine().Trim().Split(' ');
string[] line2 = System.Console.ReadLine().Trim().Split(' ');
long[] H = new long[int.Parse(line1[0])];
for (int i = 0; i < int.Parse(line1[0]); i++) {
H[i] = lo... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 19... | 8 | 190 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace abc153 {
class Program {
static void Main(string[] args) {
var n = Console.ReadLine().Split().Select(s => int.Parse(s)).ToArray();
var h = Console.ReadLine().Split().Select(s => int.Parse(s)).ToList();
// var remove = n[0] - n[1... | using System;
using System.Linq;
using System.Collections.Generic;
namespace abc153 {
class Program {
static void Main(string[] args) {
var n = Console.ReadLine().Split().Select(s => int.Parse(s)).ToArray();
var h = Console.ReadLine().Split().Select(s => long.Parse(s)).ToList();
long ans = h.OrderByDesce... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 124 |
using System;
using System.Collections.Generic;
class Program {
static void Main() {
var n = Array.ConvertAll(Console.ReadLine().Split(), ulong.Parse);
var p = Array.ConvertAll(Console.ReadLine().Split(), ulong.Parse);
Array.Sort(p);
ulong sum = 0;
for (ulong i = n[0] - 1; i > 0; i--) {
if (... | using System;
using System.Collections.Generic;
class Program {
static void Main() {
var n = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
var p = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
Array.Sort(p);
long sum = 0;
for (long i = n[0] - 1; i >= 0; i--) {
if (i <... | [["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 1... | 8 | 130 |
using System;
using System.Linq;
namespace ABC152C {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
if (input[0] <= input[1])
Console.WriteLine("0");
var monsters = Console.ReadLine()
.Split(' ')
... | using System;
using System.Linq;
namespace ABC152C {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
if (input[0] <= input[1]) {
Console.WriteLine("0");
return;
}
var monsters = Console.ReadLine()
... | [["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 128 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Sample {
class Sample {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
int ans = 0;
while (N > 0) {
N /= 2;
ans = ans * 2 + 1;
}
Console.WriteLine(ans);
}
}
}
| using System;
using System.Linq;
using System.Collections.Generic;
namespace Sample {
class Sample {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long ans = 0;
while (N > 0) {
N /= 2;
ans = ans * 2 + 1;
}
Console.WriteLine(ans);
}
}
}
| [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 80 |
using System;
using System.Collections.Generic;
using System.Linq;
class Ho {
static void Main() {
var h = long.Parse(Console.ReadLine());
var i = 1;
if (h <= 2) {
Console.WriteLine("1");
return;
}
while (h > 1) {
i += 1;
h = h / 2;
}
if (i == 1) {
Console.Wri... | using System;
using System.Collections.Generic;
using System.Linq;
class Ho {
static void Main() {
var h = long.Parse(Console.ReadLine());
var i = 1;
if (h <= 1) {
Console.WriteLine("1");
return;
}
while (h > 1) {
i += 1;
h = h / 2;
}
if (i == 1) {
Console.Wri... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 135 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoders {
class Program {
static void Main(string[] args) {
var inputArray = retreiveLongArray();
var inputCount = 1;
// 不正な入力は処理しない
if (inputArray.Length != inputCount) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoders {
class Program {
static void Main(string[] args) {
var inputArray = retreiveLongArray();
var inputCount = 1;
// 不正な入力は処理しない
if (inputArray.Length != inputCount) {
... | [["-", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 284 |
using System;
class Program {
public static void Main() {
long n = int.Parse(Console.ReadLine());
long sum = 0;
double count = 0;
do {
n = n / 2;
sum += (long)Math.Pow(2.0, count);
count++;
} while (n >= 1);
Console.WriteLine(sum);
}
}
| using System;
class Program {
public static void Main() {
long n = long.Parse(Console.ReadLine());
long sum = 0;
double count = 0;
do {
n = n / 2;
sum += (long)Math.Pow(2.0, count);
count++;
} while (n >= 1);
Console.WriteLine(sum);
}
}
| [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]] | 8 | 79 |
using System;
using System.Linq;
namespace ABC153D {
class Program {
static void Main(string[] args) {
long h = int.Parse(Console.ReadLine());
string h2 = Convert.ToString(h, 2);
Console.WriteLine(Math.Pow(2, h2.Length) - 1);
}
}
} | using System;
using System.Linq;
namespace ABC153D {
class Program {
static void Main(string[] args) {
long h = long.Parse(Console.ReadLine());
string h2 = Convert.ToString(h, 2);
Console.WriteLine(Math.Pow(2, h2.Length) - 1);
}
}
}
| [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]] | 8 | 71 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace MyProject {
class Program {
static void Main(string[] args) {
#if Local
var sw = new Stopwatch();
sw.Start();
Console.SetIn(new StreamReader("input.in"));
#endif
var solver = new S... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace MyProject {
class Program {
static void Main(string[] args) {
#if Local
var sw = new Stopwatch();
sw.Start();
Console.SetIn(new StreamReader("input.in"));
#endif
var solver = new S... | [["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 8 | 173 |
using System;
class Program {
static void Main(string[] args) {
var inp = Console.ReadLine().Split(' ');
double hp = double.Parse(inp[0]);
double count = 1;
double count2 = 0;
while (true) {
if (hp <= 1) {
count2++;
break;
} else {
hp /= 2d;
}
cou... | using System;
class Program {
static void Main(string[] args) {
var inp = Console.ReadLine().Split(' ');
long hp = long.Parse(inp[0]);
double count = 1;
double count2 = 0;
while (true) {
if (hp <= 1) {
count2++;
break;
} else {
hp /= 2;
}
count2 +... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 57, 75, 196, 0, 1, 0, 11, 12, 250], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203]] | 8 | 104 |
using System;
class Program {
static void Main(string[] args) {
Console.WriteLine(
Math.Pow(
2, 1 + Math.Floor(Math.Log(2, double.Parse(Console.ReadLine())))) -
1);
}
} | using System;
class Program {
static void Main(string[] args) {
Console.WriteLine(
Math.Pow(
2, 1 + Math.Floor(Math.Log(double.Parse(Console.ReadLine()), 2))) -
1);
}
} | [["-", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 57 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp12 {
class Program {
static void Main(string[] args) {
long H = int.Parse(Console.ReadLine());
for (int i = 0; i < 50; i++) {
long pow = (long)Math.Pow(2, i);
i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp12 {
class Program {
static void Main(string[] args) {
long H = long.Parse(Console.ReadLine());
for (int i = 0; i < 50; i++) {
long pow = (long)Math.Pow(2, i);
... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]] | 8 | 110 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var H = sc.ReadInt();
var N = sc.ReadInt();
var A = new int[N];
var B = new int[N];
for (int i = 0; i < N; i++) {
A[i] = sc.ReadInt();
B[i] = sc.ReadInt();
}
va... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var H = sc.ReadInt();
var N = sc.ReadInt();
var A = new int[N];
var B = new int[N];
for (int i = 0; i < N; i++) {
A[i] = sc.ReadInt();
B[i] = sc.ReadInt();
}
va... | [["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 22]] | 8 | 1,234 |
using System;
namespace kozaiyApp {
public class CrestedIbisVsMonster {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int H = int.Parse(input[0]); // モンスター体力
int N = int.Parse(input[1]); // まほう種類
int[][] AB = new int [N][]; // A奪う体力 B奪われる体力
for (int i = 0; i < N; i++) {
... | using System;
namespace kozaiyApp {
public class CrestedIbisVsMonster {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int H = int.Parse(input[0]); // モンスター体力
int N = int.Parse(input[1]); // まほう種類
int[][] AB = new int [N][]; // A奪う体力 B奪われる体力
for (int i = 0; i < N; i++) {
... | [["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 439 |
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Numerics;
namespace abc153 {
class Program {
static void Main(string[] args) {
if (File.Exists("input.txt")) {
Console.SetIn(new StreamReader("input.txt"));
}
solve_abc153E();
}
public static void ... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Numerics;
namespace abc153 {
class Program {
static void Main(string[] args) {
if (File.Exists("input.txt")) {
Console.SetIn(new StreamReader("input.txt"));
}
solve_abc153E();
}
public static void ... | [["-", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203]] | 8 | 718 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public class Magic {
public int Index { get; set; }
public int Damage { get; set; }
public int Cost { get; set; }
}
public static void Main(string[] a... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public class Magic {
public int Index { get; set; }
public int Damage { get; set; }
public int Cost { get; set; }
}
public static void Main(string[] a... | [["-", 0, 7, 8, 7, 8, 1, 0, 11, 12, 203], ["+", 0, 7, 8, 7, 8, 1, 0, 11, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8,... | 8 | 641 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
String input1 = Console.ReadLine();
String[] input = input1.Split(' ');
int h = int.Parse(input[0]);
int n = int.Parse(input[1]);
int[,] table = new int[n, ... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
String input1 = Console.ReadLine();
String[] input = input1.Split(' ');
int h = int.Parse(input[0]);
int n = int.Parse(input[1]);
int[,] table = new int[n, ... | [["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203]] | 8 | 334 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using static Template;
using static System.Console;
using static System.Convert;
using static System.Math;
using Pi = Pair<int, int>;
class Solver {
public void Solve(Scanner ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using static Template;
using static System.Console;
using static System.Convert;
using static System.Math;
using Pi = Pair<int, int>;
class Solver {
public void Solve(Scanner ... | [["+", 10, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25]] | 8 | 1,788 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Tasks {
public class F {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Consol... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Tasks {
public class F {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Consol... | [["-", 0, 57, 15, 16, 31, 16, 31, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 141, 22]] | 8 | 730 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Math;
using static System.Array;
using static AtCoder.Tool;
using static AtCoder.CalcL;
namespace AtCoder {
class AC {
const int MOD = 1000000007;
// const int MOD = 998244353;
const int INF ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Math;
using static System.Array;
using static AtCoder.Tool;
using static AtCoder.CalcL;
namespace AtCoder {
class AC {
const int MOD = 1000000007;
// const int MOD = 998244353;
const int INF ... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 31, 203], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 17, 48], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 12, 22], ["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]] | 8 | 1,388 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
using static Prog;
using NX = System.Int64;
public class Solver {
public void Solve() {
int N = NextInt();
NX D = NextLong() * 2, A = NextLong();
List<Tuple<NX, NX>> input = new List<Tuple<NX, NX>>();
for (int i = ... | using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
using static Prog;
using NX = System.Int64;
public class Solver {
public void Solve() {
int N = NextInt();
NX D = NextLong() * 2, A = NextLong();
List<Tuple<NX, NX>> input = new List<Tuple<NX, NX>>();
for (int i = ... | [["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107]] | 8 | 1,387 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static System.Math;
using System.Text;
using System.Threading;
using System.Globalization;
using System.Runtime.CompilerServices;
using Library;
namespace Program {
public static class ABC153F {
static public int numberOfRandom... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static System.Math;
using System.Text;
using System.Threading;
using System.Globalization;
using System.Runtime.CompilerServices;
using Library;
namespace Program {
public static class ABC153F {
static public int numberOfRandom... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 5,209 |
using System;
using System.Linq;
using System.Collections.Generic;
public static class Program {
public static void Main() {
long[] nda = Console.ReadLine().Split().Select(long.Parse).ToArray();
long n = nda[0];
long d = nda[1];
long a = nda[2];
var data = new List<Tuple<long, long>>();
for ... | using System;
using System.Linq;
using System.Collections.Generic;
public static class Program {
public static void Main() {
long[] nda = Console.ReadLine().Split().Select(long.Parse).ToArray();
long n = nda[0];
long d = nda[1];
long a = nda[2];
var data = new List<Tuple<long, long>>();
for ... | [["-", 0, 52, 15, 16, 12, 16, 12, 16, 17, 72], ["-", 0, 52, 15, 16, 12, 16, 12, 16, 12, 203]] | 8 | 306 |
using System;
using System.Linq;
using System.Collections.Generic;
public static class Program {
public static void Main() {
long[] nda = Console.ReadLine().Split().Select(long.Parse).ToArray();
long n = nda[0];
long d = nda[1];
long a = nda[2];
var data = new List<Tuple<long, long>>();
for ... | using System;
using System.Linq;
using System.Collections.Generic;
public static class Program {
public static void Main() {
long[] nda = Console.ReadLine().Split().Select(long.Parse).ToArray();
long n = nda[0];
long d = nda[1];
long a = nda[2];
var data = new List<Tuple<long, long>>();
for ... | [["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25]] | 8 | 330 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoders {
class Program {
static void Main(string[] args) {
var inputArray = retreiveLongArray();
var inputCount = 2;
// 不正な入力は処理しない
if (inputArray.Length != inputCount) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoders {
class Program {
static void Main(string[] args) {
var inputArray = retreiveLongArray();
var inputCount = 2;
// 不正な入力は処理しない
if (inputArray.Length != inputCount) {
... | [["-", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["-", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222]] | 8 | 240 |
using System;
using System.Collections.Generic;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var a = Console.ReadLine().Split();
int N, M;
Int32.TryParse(a[0], out N);
Int32.TryParse(a[1], out M);
string a2 = (N == M) ? "YES" : "NO";
Console.WriteLine(a2);
}
}
}... | using System;
using System.Collections.Generic;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var a = Console.ReadLine().Split();
int N, M;
Int32.TryParse(a[0], out N);
Int32.TryParse(a[1], out M);
string a2 = (N == M) ? "Yes" : "No";
Console.WriteLine(a2);
}
}
}... | [["-", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["-", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222]] | 8 | 97 |
using System;
class ACorWA {
static void Main(string[] args) {
string[] line = System.Console.ReadLine().Trim().Split('\t');
if (line[0] == line[1]) {
System.Console.WriteLine("Yes");
} else {
System.Console.WriteLine("No");
}
}
}
| using System;
class ACorWA {
static void Main(string[] args) {
string[] line = System.Console.ReadLine().Trim().Split(' ');
if (line[0] == line[1]) {
System.Console.WriteLine("Yes");
} else {
System.Console.WriteLine("No");
}
}
}
| [["-", 0, 213, 3, 4, 0, 28, 0, 252, 0, 44], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253]] | 8 | 81 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC152A {
class Program {
static void Main(string[] args) {
int N, M;
var word = Console.ReadLine().Split(' ');
M = int.Parse(word[0]);
N = int.Parse(word[1]);
if (N == M)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC152A {
class Program {
static void Main(string[] args) {
int N, M;
var word = Console.ReadLine().Split(' ');
M = int.Parse(word[0]);
N = int.Parse(word[1]);
if (N == M)... | [["-", 0, 57, 64, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 0, 57, 75, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 57, 75, 1, 0, 213, 63, 214, 141, 22]] | 8 | 122 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication15 {
class Program {
static void Main(string[] args) {
int a, b;
string[] str = Console.ReadLine().Split(' ');
a = int.Parse(str[0]);
b = int.Parse(str[1]);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication15 {
class Program {
static void Main(string[] args) {
int a, b;
string[] str = Console.ReadLine().Split(' ');
a = int.Parse(str[0]);
b = int.Parse(str[1]);
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 118 |
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, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 460 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var input = IntInput(' ');
if (input[0] == input[1])
Output("YES");
else
Output("No");
}
#region ReadLineメソッド
/// <summary>
/// 文字列をリストで返す
/// </su... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var input = IntInput(' ');
if (input[0] == input[1]) {
Output("Yes");
} else {
Output("No");
}
}
#region ReadLineメソッド
/// <summary>
/// 文字列をリストで返... | [["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 46]] | 8 | 238 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
// https://atcoder.jp/contests/abc141/tasks/abc152_a
public class QuestionA {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
// https://atcoder.jp/contests/abc141/tasks/abc152_a
public class QuestionA {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
... | [["-", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["-", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222]] | 8 | 159 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atc_0027 {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
int a = int.Parse(str.Split(' ')[0]);
int b = int.Parse(str.Split(' ')[1]);
string... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atc_0027 {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
int a = int.Parse(str.Split(' ')[0]);
int b = int.Parse(str.Split(' ')[1]);
string... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]] | 8 | 185 |
using System;
using System.Collections.Generic;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args)
{
var a = Console.ReadLine().Split();
int N, M;
Int32.TryParse(a[0], out N);
Int32.TryParse(a[1], out M);
var a2 = (N <= M) ? N : M;
string ans = "";
for (int i = 0; ... | using System;
using System.Collections.Generic;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args)
{
var a = Console.ReadLine().Split();
int N, M;
Int32.TryParse(a[0], out N);
Int32.TryParse(a[1], out M);
var a2 = (N <= M) ? N : M;
string ans = "";
for (int i = 0; ... | [["+", 8, 196, 0, 7, 15, 16, 12, 23, 0, 24], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 17, 72], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["+", 0, 7, 15, 16, 12, 23, 0, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 23, 0, 25]] | 8 | 123 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
public static void Main() {
var sw ... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
public static void Main() {
var sw ... | [["-", 0, 7, 8, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 7, 8, 1, 0, 213, 63, 214, 141, 22]] | 8 | 193 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace abc152b {
class Program {
static void Main(string[] args) {
var inp = Console.ReadLine().Split().Select(s => int.Parse(s)).ToArray();
if (inp[0] > inp[1]) {
foreach (var a in Enumerable.Repeat(inp[0], inp[1]).ToList()) {
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace abc152b {
class Program {
static void Main(string[] args) {
var inp = Console.ReadLine().Split().Select(s => int.Parse(s)).ToArray();
if (inp[0] > inp[1]) {
foreach (var a in Enumerable.Repeat(inp[1], inp[0]).ToList()) {
... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 194 |
using System;
class sample {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int[] inputnum = new int[2];
string input0 = "";
string input1 = "";
inputnum[0] = Convert.ToInt32(input[0]);
inputnum[1] = Convert.ToInt32(input[1]);
for (int i = 0; i < inputnum[0]; i++)... | using System;
class sample {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int[] inputnum = new int[2];
string input0 = "";
string input1 = "";
inputnum[0] = Convert.ToInt32(input[0]);
inputnum[1] = Convert.ToInt32(input[1]);
for (int i = 0; i < inputnum[0]; i++)... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 167 |
using System;
using System.Collections.Generic;
namespace ATCoder {
class Program {
static void Main(string[] args) {
var list = new List<string>();
var input = Console.ReadLine();
string[] token = input.Split(' ');
string a = token[0];
string b = token[1];
string str_a = ConvertStr(a, int.P... | using System;
using System.Collections.Generic;
namespace ATCoder {
class Program {
static void Main(string[] args) {
var list = new List<string>();
var input = Console.ReadLine();
string[] token = input.Split(' ');
string a = token[0];
string b = token[1];
string str_a = ConvertStr(a, int.P... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18]] | 8 | 180 |
using System;
using System.Linq;
namespace AtCoder_Begginer_Contest1 {
class Program {
static void Main(string[] args) {
string[] ab = Console.ReadLine().Split();
int a = int.Parse(ab[0]);
int b = int.Parse(ab[1]);
if (a > b) {
b = a;
ab[0] = ab[1];
}
string ans = ab[1];
for (i... | using System;
using System.Linq;
namespace AtCoder_Begginer_Contest1 {
class Program {
static void Main(string[] args) {
string[] ab = Console.ReadLine().Split();
int a = int.Parse(ab[0]);
int b = int.Parse(ab[1]);
if (a > b) {
b = a;
ab[0] = ab[1];
}
string ans = ab[0];
for (i... | [["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 130 |
using System;
using System.Collections.Generic;
using System.Linq;
static class MainClass {
public static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var list = Console.ReadLine().Split(' ').Select(long.Parse).ToList();
var ans = new List<long>();
var c = 0;
var min = list.... | using System;
using System.Collections.Generic;
using System.Linq;
static class MainClass {
public static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var list = Console.ReadLine().Split(' ').Select(long.Parse).ToList();
var ans = new List<long>();
var c = 0;
var min = list.... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 300 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC152C {
class Program {
static void Main(string[] args) {
int N, min, a;
a = 0;
N = int.Parse(Console.ReadLine());
min = N;
int[] P = new int[N];
var word = Console.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC152C {
class Program {
static void Main(string[] args) {
int N, min, a;
a = 0;
N = int.Parse(Console.ReadLine());
min = N + 1;
int[] P = new int[N];
var word = Cons... | [["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]] | 8 | 168 |
using System;
using System.Linq;
namespace C {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var p = Console.ReadLine().Split().Select(int.Parse).ToList();
var count = 0;
var min = int.MaxValue;
foreach (var x in p) {
if (min < x) {
min =... | using System;
using System.Linq;
namespace C {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var p = Console.ReadLine().Split().Select(int.Parse).ToList();
var count = 0;
var min = int.MaxValue;
foreach (var x in p) {
if (min > x) {
min =... | [["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 47]] | 8 | 108 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
public class Program {
static public void Main(string[] args) {
string str = Console.ReadLine();
int[] data =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int num = 0;
int max =... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
public class Program {
static public void Main(string[] args) {
string str = Console.ReadLine();
int[] data =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int num = 0;
int min =... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+"... | 8 | 146 |
using System;
namespace tst {
class Program {
public static void Main() {
int n = int.Parse(Console.ReadLine());
string[] In = Console.ReadLine().Split(' ');
int[] P = new int[n];
for (int i = 0; i < n; i++) {
P[i] = int.Parse(In[i]);
}
int cnt = 0;
if (n == 1) {
cnt++;
}... | using System;
namespace tst {
class Program {
public static void Main() {
int n = int.Parse(Console.ReadLine());
string[] In = Console.ReadLine().Split(' ');
int[] P = new int[n];
for (int i = 0; i < n; i++) {
P[i] = int.Parse(In[i]);
}
int cnt = 0;
if (n == 1) {
cnt++;
}... | [["-", 75, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 75, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 163 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.