buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k | change_count int64 0 100 |
|---|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStan... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStan... | [["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 3,054 | 2 |
using System;
namespace Project {
class Mains {
static void Main() {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
int K = int.Parse(Console.ReadLine());
char n = S[K];
char[] ca = S.ToCharArray();
for (int i = 0; i < ca.Length; i++) {
if (ca[i] != n) {
... | using System;
namespace Project {
class Mains {
static void Main() {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
int K = int.Parse(Console.ReadLine());
char n = S[K - 1];
char[] ca = S.ToCharArray();
for (int i = 0; i < ca.Length; i++) {
if (ca[i] != n) {
... | [["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 123 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoderCS {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
int K = int.Parse(Console.ReadLine());
for... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoderCS {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
int K = int.Parse(Console.ReadLine());
for... | [["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 144 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp6 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
char[] S = Console.ReadLine().ToArray();
int K = int.Parse(Console.ReadLine(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp6 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
char[] S = Console.ReadLine().ToArray();
int K = int.Parse(Console.ReadLine(... | [["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 140 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var S = Console.ReadLine();
var K = int.Parse(Console.ReadLine());
var target = S[K];
var result = new char[N];
for (int i = 0;... | using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var S = Console.ReadLine();
var K = int.Parse(Console.ReadLine());
var target = S[K - 1];
var result = new char[N];
for (int i ... | [["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 138 | 2 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int input1 = int.Parse(Console.ReadLine());
var input2 = Console.ReadLine();
int input3 = int.Parse(Console.ReadLine());
var moji = input2.Substring(input3, 1);
var tmp = "";
var output = "";
... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int input1 = int.Parse(Console.ReadLine());
var input2 = Console.ReadLine();
int input3 = int.Parse(Console.ReadLine());
var moji = input2.Substring(input3 - 1, 1);
var tmp = "";
var output = "";... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 148 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace T1PBC2019B {
class MainClass {
static int[] s;
static int[] n;
public static void Main(string[] args) {
s = Array.ConvertAll(Console.ReadLine().Split().ToArray(), int.Parse);
string str = Console.ReadLine();
n = Array.Con... | using System;
using System.Collections.Generic;
using System.Linq;
namespace T1PBC2019B {
class MainClass {
static int[] s;
static int[] n;
public static void Main(string[] args) {
s = Array.ConvertAll(Console.ReadLine().Split().ToArray(), int.Parse);
string str = Console.ReadLine();
n = Array.Con... | [["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 173 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
class myon {
public static void Main(string[] args) { var myon = new myon(); }
public myon() {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
int K = int.Parse(Console.ReadLine());
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
class myon {
public static void Main(string[] args) { var myon = new myon(); }
public myon() {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
int K = int.Parse(Console.ReadLine());
... | [["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 171 | 2 |
using System;
using System.Linq;
namespace TBCB {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var S = Console.ReadLine().ToArray();
var K = int.Parse(Console.ReadLine());
for (var i = 0; i < N; i++) {
if (S[K] != S[i]) {
S[i] = '*';
}
... | using System;
using System.Linq;
namespace TBCB {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var S = Console.ReadLine().ToArray();
var K = int.Parse(Console.ReadLine());
for (var i = 0; i < N; i++) {
if (S[K - 1] != S[i]) {
S[i] = '*';
... | [["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 114 | 2 |
using System;
public class Program {
public static void Main() {
//°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸Kobato
//Love°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸
int a, c;
string b;
a = int.Parse(Console.ReadLine());
b = Console.ReadLine();
c = int.Parse(Console.ReadLine());
string ... | using System;
public class Program {
public static void Main() {
//°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸Kobato
//Love°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸
int a, c;
string b;
a = int.Parse(Console.ReadLine());
b = Console.ReadLine();
c = int.Parse(Console.ReadLine());
string ... | [["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 121 | 2 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace AtCoder124 {
class Program {
public static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
int K = int.Parse(Console.ReadLine());
char s = S[K - 1];
... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace AtCoder124 {
class Program {
public static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
int K = int.Parse(Console.ReadLine());
char s = S[K - 1];
... | [["-", 0, 11, 12, 41, 15, 23, 0, 16, 17, 60], ["+", 0, 11, 12, 41, 15, 23, 0, 16, 17, 79]] | 8 | 153 | 2 |
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());
char[] s = Console.ReadLine().ToCharArray();
var ans = lo... | 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());
char[] s = Console.ReadLine().ToCharArray();
var ans = lo... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 359 | 4 |
using System;
//黒白を累積和で保存する
namespace C {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
int b = 0, w = 0;
int[] A = new int[n];
int[] C = new int[n + 1]; // Cumulative sum
for (int i = 0; i < n; i++) {
if (s[i] == ... | using System;
//黒白を累積和で保存する
namespace C {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
int b = 0, w = 0;
int[] A = new int[n];
int[] C = new int[n]; // Cumulative sum
for (int i = 0; i < n; i++) {
if (s[i] == '.')... | [["-", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22]] | 8 | 370 | 4 |
using System;
using System.Linq;
namespace C___Stones {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var S = Console.ReadLine();
var S_rev = string.Join("", S.Reverse());
int[] w_arr = new int[N + 1], b_arr = new int[N + 1];
int cost = 0, min = int.Max... | using System;
using System.Linq;
namespace C___Stones {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var S = Console.ReadLine();
var S_rev = string.Join("", S.Reverse());
int[] w_arr = new int[N + 1], b_arr = new int[N + 1];
int cost = 0, min = int.Max... | [["-", 0, 1, 0, 11, 12, 41, 64, 241, 0, 29], ["+", 0, 1, 0, 11, 12, 41, 64, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 41, 64, 16, 12, 203]] | 8 | 251 | 6 |
using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
char[] c = Console.ReadLine().ToCharArray();
if (N == 1) {
Console.WriteLine("0");
return;
}
int[] white = new int[N];
if (c[0] == '.')
white[0] = 1;... | using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
char[] c = Console.ReadLine().ToCharArray();
if (N == 1) {
Console.WriteLine("0");
return;
}
int[] white = new int[N];
if (c[0] == '.')
white[0] = 1;... | [["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22]] | 8 | 231 | 4 |
using System;
using System.Linq;
namespace T1PBC {
class Program {
static void Main(string[] args) {
int input = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
int Rwhite = s.Count(x => x == '.');
int RBlack = s.Count(x => x == '#');
int LBlack = 0;
int result = Rwhite + RBl... | using System;
using System.Linq;
namespace T1PBC {
class Program {
static void Main(string[] args) {
int input = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
int Rwhite = s.Count(x => x == '.');
int RBlack = s.Count(x => x == '#');
int LBlack = 0;
int result = Rwhite + LBl... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]] | 8 | 157 | 2 |
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) {
int n = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
int[] white = new int[n];
int[] black = new ... | 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) {
int n = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
int[] white = new int[n];
int[] black = new ... | [["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 68], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 290 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
// using System.Text;
// using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
//黒から白に変わるポイントを消すための対処法は次の二通り。
//最初に黒から白に変わるポイント以降を全部黒にする
//最後に黒から白に変わるポイント以前を全部白にする
int N = int.Parse(Console.ReadLine());
... | using System;
using System.Collections.Generic;
using System.Linq;
// using System.Text;
// using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
//黒から白に変わるポイントを消すための対処法は次の二通り。
//最初に黒から白に変わるポイント以降を全部黒にする
//最後に黒から白に変わるポイント以前を全部白にする
int N = int.Parse(Console.ReadLine());
... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 253 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
using E = System.Linq.Enumerable;
public class Program {
public static void Main() {
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine().Trim().Select(x => x == '.' ? 0 : 1).ToArray();
var sum = new int [s.Length + 1][];
... | using System;
using System.Linq;
using System.Collections.Generic;
using E = System.Linq.Enumerable;
public class Program {
public static void Main() {
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine().Trim().Select(x => x == '.' ? 0 : 1).ToArray();
var sum = new int [s.Length + 1][];
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 275 | 2 |
using System;
using System.IO;
using System.Linq;
class Program {
static void Solve() {
// . -> white, # -> black
var N = ReadInt();
var S = Read();
var whites = new int[N];
if (S[0] == '.')
whites[0]++;
for (var i = 1; i < N; i++) {
whites[i] = whites[i - 1];
if (S[i] =... | using System;
using System.IO;
using System.Linq;
class Program {
static void Solve() {
// . -> white, # -> black
var N = ReadInt();
var S = Read();
var whites = new int[N];
if (S[0] == '.')
whites[0]++;
for (var i = 1; i < N; i++) {
whites[i] = whites[i - 1];
if (S[i] =... | [["+", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73]] | 8 | 411 | 5 |
using System;
using System.Linq;
namespace Sample {
class Sample {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int A = int.Parse(str[0]);
int B = int.Parse(str[1]);
int ans = 0;
for (int i = 1; i <= 2; i++) {
if (A <= B) {
ans += A;
A = A -... | using System;
using System.Linq;
namespace Sample {
class Sample {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int A = int.Parse(str[0]);
int B = int.Parse(str[1]);
int ans = 0;
for (int i = 1; i <= 2; i++) {
if (A >= B) {
ans += A;
A = A -... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 130 | 2 |
using System;
using static System.Console;
using System.Linq;
namespace Main {
class Program {
static void Main(string[] args) {
int[] tmp = ReadLine().Split(' ').Select(int.Parse).ToArray();
Array.Sort(tmp);
WriteLine(tmp[0] == tmp[1] ? tmp[0] * tmp[1] : tmp[1] + tmp[1] - 1);
}
}
} | using System;
using static System.Console;
using System.Linq;
namespace Main {
class Program {
static void Main(string[] args) {
int[] tmp = ReadLine().Split(' ').Select(int.Parse).ToArray();
Array.Sort(tmp);
WriteLine(tmp[0] == tmp[1] ? tmp[0] + tmp[1] : tmp[1] + tmp[1] - 1);
}
}
} | [["-", 3, 4, 0, 28, 0, 41, 64, 16, 17, 48], ["+", 3, 4, 0, 28, 0, 41, 64, 16, 17, 72]] | 8 | 102 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main() {
Solve();
Console.ReadKey();
}
static void Solve() {
var s = GetIntArray().OrderBy(p => p).ToArray();
var ans = 0;
ans... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main() {
Solve();
Console.ReadKey();
}
static void Solve() {
var s = GetIntArray().OrderByDescending(p => p).ToArray();
var ans = ... | [["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22]] | 8 | 645 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC124A {
class Program {
static void Main(string[] args) {
{
var word = Console.ReadLine().Split();
int a = int.Parse(word[0]);
int b = int.Parse(word[1]);
int m... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC124A {
class Program {
static void Main(string[] args) {
{
var word = Console.ReadLine().Split();
int a = int.Parse(word[0]);
int b = int.Parse(word[1]);
int m... | [["-", 8, 196, 0, 196, 0, 7, 15, 16, 12, 203], ["+", 8, 196, 0, 196, 0, 7, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 35], ["-", 0, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]] | 8 | 152 | 7 |
using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Par... | using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Par... | [["-", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253]] | 8 | 149 | 2 |
using System;
class Program {
static void Main(string[] args) {
string[] str =
Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得
int A = int.Parse(str[0]); //数値で受け取りたい場合は変換する
int B = int.Parse(str[1]);
int C = 0;
for (int i = 0; i < 2; i++) {
if (A < B) {
C = C + B;
... | using System;
class Program {
static void Main(string[] args) {
string[] str =
Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得
int A = int.Parse(str[0]); //数値で受け取りたい場合は変換する
int B = int.Parse(str[1]);
int C = 0;
for (int i = 0; i < 2; i++) {
if (A < B) {
C = C + B;
... | [["-", 0, 57, 75, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 75, 196, 0, 1, 0, 223, 0, 22]] | 8 | 121 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder2 {
class Program {
static void Main(string[] args) {
// スペース区切りの整数の入力
string[] x = Console.ReadLine().Split(' ');
int a = int.Parse(x[0]);
int b = int.Parse(x[1]);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder2 {
class Program {
static void Main(string[] args) {
// スペース区切りの整数の入力
string[] x = Console.ReadLine().Split(' ');
int a = int.Parse(x[0]);
int b = int.Parse(x[1]);
... | [["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]] | 8 | 146 | 2 |
using System;
namespace ABC124 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var a = int.Parse(input[0]);
var b = int.Parse(input[1]);
var res = (a == b) ? (a + b) : ((a > b) ? (a * 2 - 1) : (b * 2 - 1));
Console.WriteLine("result=" + res.ToStrin... | using System;
namespace ABC124 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var a = int.Parse(input[0]);
var b = int.Parse(input[1]);
var res = (a == b) ? (a + b) : ((a > b) ? (a * 2 - 1) : (b * 2 - 1));
Console.WriteLine(res.ToString());
}
}
... | [["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 62], ["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]] | 8 | 118 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
const int MOD = 1000000007;
const int INF = 1 << 30;
static void Main(string[] args) { Solve(); }
static void Solve() {
Scan sc = new Scan();
write wr = new write();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
const int MOD = 1000000007;
const int INF = 1 << 30;
static void Main(string[] args) { Solve(); }
static void Solve() {
Scan sc = new Scan();
write wr = new write();
... | [["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 223, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 223, 0, 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 | 236 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC124_D {
class Program {
static void Main(string[] args) {
var NK = Console.ReadLine().Split().Select(int.Parse).ToArray();
var N = NK[0];
var K = NK[1];
var S = Console.ReadLine();
var list = new List<int>();
var... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC124_D {
class Program {
static void Main(string[] args) {
var NK = Console.ReadLine().Split().Select(int.Parse).ToArray();
var N = NK[0];
var K = NK[1];
var S = Console.ReadLine();
var list = new List<int>();
var... | [["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 28, 0, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 28, 0, 16, 31, 16, 12, 16, 12, 22]] | 8 | 317 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
/**
* 0と1の連続する数を配列に格納する
* 1010111の場合
* 0- 0 0
* 1-1 1 3 => 10103
* 0を1に変えていけばよいからK=1の場合
* 0を変えた直後の1の数を数えるので2*1+1回分の1をかぞえる
* 1010111 => 1110111であれば最初の111で3個
* 1010111 => 1011111であれば3~7(3+2*1+1-1)を数える
*
*
... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
/**
* 0と1の連続する数を配列に格納する
* 1010111の場合
* 0- 0 0
* 1-1 1 3 => 10103
* 0を1に変えていけばよいからK=1の場合
* 0を変えた直後の1の数を数えるので2*1+1回分の1をかぞえる
* 1010111 => 1110111であれば最初の111で3個
* 1010111 => 1011111であれば3~7(3+2*1+1-1)を数える
*
*
... | [["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 8, 196, 0, 7, 26, 11, 0, 202, 0, 107], ["+", 0, 195, 8, 196, 0, 7, 26, 11, 12, 203]] | 8 | 317 | 3 |
using System.Linq;
using System.Collections.Generic;
using static System.Math;
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var k = int.Parse(line[1]);
var s = Console.ReadLine().Trim();
if (n == 1... | using System.Linq;
using System.Collections.Generic;
using static System.Math;
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var k = int.Parse(line[1]);
var s = Console.ReadLine().Trim();
if (n == 1... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 367 | 4 |
using System;
using System.Globalization;
using System.IO.Pipes;
using System.Runtime.InteropServices;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
int[] s = new int[5] { 0, 0, 0, 0, 0 };
int k;
for (k = 0; k < 5; k++) {
s[k] = int.Parse(Console.ReadLine());
}
i... | using System;
using System.Globalization;
using System.IO.Pipes;
using System.Runtime.InteropServices;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
int[] s = new int[5] { 0, 0, 0, 0, 0 };
int k;
for (k = 0; k < 5; k++) {
s[k] = int.Parse(Console.ReadLine());
}
i... | [["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]] | 8 | 196 | 2 |
using System;
namespace ConsoleApp18 {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int c = int.Parse(Console.ReadLine());
int d = int.Parse(Console.ReadLine());
int e = int.Parse(Console.ReadLine());
int k = i... | using System;
namespace ConsoleApp18 {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int c = int.Parse(Console.ReadLine());
int d = int.Parse(Console.ReadLine());
int e = int.Parse(Console.ReadLine());
int k = i... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]] | 8 | 137 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace atcoder03a {
class Program {
static void Main(string[] args) {
int[] a = new int[5];
for (int b = 0; b < 5; ++b) {
a[b] = int.Parse(Console.ReadLine());
}
int k = int.P... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace atcoder03a {
class Program {
static void Main(string[] args) {
int[] a = new int[5];
for (int b = 0; b < 5; ++b) {
a[b] = int.Parse(Console.ReadLine());
}
int k = int.P... | [["-", 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, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 171 | 4 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
namespace Equeue {
class Equeue {
static Node[] Nodes;
static void Main(string[] args) {
long nil = 10000000;
// var N = long.Parse(Console.ReadLine());
var a = long.Parse(Console.ReadLine()... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
namespace Equeue {
class Equeue {
static Node[] Nodes;
static void Main(string[] args) {
long nil = 10000000;
// var N = long.Parse(Console.ReadLine());
var a = long.Parse(Console.ReadLine()... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 1,066 | 2 |
using System;
using System.Linq;
class Program {
static void Main() {
var xs = Console.In.ReadToEnd().Split().Select(n => int.Parse(n)).ToArray();
int k = xs[xs.Length - 1];
int min = xs[0];
int max = xs[xs.Length - 2];
Console.WriteLine(max - min <= k ? "Yay!" : ":(");
}
}
| using System;
using System.Linq;
class Program {
static void Main() {
var xs = Console.In.ReadToEnd()
.TrimEnd()
.Split()
.Select(n => int.Parse(n))
.ToArray();
int k = xs[xs.Length - 1];
int min = xs[0];
int max = xs[xs.Length - 2]... | [["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131]] | 8 | 101 | 4 |
using System;
namespace ABC123A {
class Program {
static void Main(string[] args) {
int a, b, c, d, e, k;
a = int.Parse(Console.ReadLine());
b = int.Parse(Console.ReadLine());
c = int.Parse(Console.ReadLine());
d = int.Parse(Console.ReadLine());
e = int.Parse(Console.ReadLine());
k = int... | using System;
namespace ABC123A {
class Program {
static void Main(string[] args) {
int a, b, c, d, e, k;
a = int.Parse(Console.ReadLine());
b = int.Parse(Console.ReadLine());
c = int.Parse(Console.ReadLine());
d = int.Parse(Console.ReadLine());
e = int.Parse(Console.ReadLine());
k = int... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 146 | 2 |
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 a = cin.ArrayInt(5);
var k = cin.nextInt();
... | 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 a = cin.ArrayInt(5);
var k = cin.nextInt();
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]] | 8 | 599 | 2 |
using System;
using System.Linq;
namespace A {
class Program {
static void Main(string[] args) {
// Console.WriteLine("Hello World!");
int[] abcdek = new int[6];
for (int i = 0; i < 6; i++) {
abcdek[i] = int.Parse(Console.ReadLine());
}
Console.WriteLine(abcdek[4] - abcdek[0] > abcdek[5] ?... | using System;
using System.Linq;
namespace A {
class Program {
static void Main(string[] args) {
// Console.WriteLine("Hello World!");
int[] abcdek = new int[6];
for (int i = 0; i < 6; i++) {
abcdek[i] = int.Parse(Console.ReadLine());
}
Console.WriteLine(abcdek[4] - abcdek[0] <= abcdek[5] ... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19]] | 8 | 99 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
public static void Main() {
List<int> list = new List<int>();
for (int i = 0; i < 6; i++) {
list.Add(int.Parse(Console.ReadLine()));
}
Console.WriteLine(list[4] - list[0] <= list[5] ? ":(" : "Yay!");
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
class Program {
public static void Main() {
List<int> list = new List<int>();
for (int i = 0; i < 6; i++) {
list.Add(int.Parse(Console.ReadLine()));
}
Console.WriteLine(list[4] - list[0] <= list[5] ? "Yay!" : ":(");
}
} | [["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 101 | 4 |
using System;
namespace ABC123_a {
class Program {
static void Main(string[] args)
{
int[] array = new int[6];
for (int i = 0; i < array.Length; i++) {
array[i] = int.Parse(Console.ReadLine());
}
if ((array[4] - array[0]) < array[5]) {
Console.WriteLine("Yay!");
} else {
Con... | using System;
namespace ABC123_a {
class Program {
static void Main(string[] args)
{
int[] array = new int[6];
for (int i = 0; i < array.Length; i++) {
array[i] = int.Parse(Console.ReadLine());
}
if ((array[4] - array[0]) <= array[5]) {
Console.WriteLine("Yay!");
} else {
Co... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 109 | 2 |
using System;
class plogram {
static void Main() {
var line = new int[6];
for (var i = 0; i < 6; i++) {
line[i] = int.Parse(Console.ReadLine());
}
string str = "Yay!";
for (var i = 0; i < 4; i++) {
for (var j = 0; j < 4; j++) {
if (Math.Abs(line[i] - line[j]) > line[5]) {
... | using System;
class plogram {
static void Main() {
var line = new int[6];
for (var i = 0; i < 6; i++) {
line[i] = int.Parse(Console.ReadLine());
}
string str = "Yay!";
for (var i = 0; i < 5; i++) {
for (var j = 0; j < 5; j++) {
if (Math.Abs(line[i] - line[j]) > line[5]) {
... | [["-", 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, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 131 | 4 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using static System.Console;
namespace ABC123A {
static class Program {
static void Main(string[] args) {
var l = ReadLineOne<int>(5);
var k = ReadLine().TryParse<int>();
string a = l.All(x... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using static System.Console;
namespace ABC123A {
static class Program {
static void Main(string[] args) {
var l = ReadLineOne<int>(5);
var k = ReadLine().TryParse<int>();
string a = l.All(x... | [["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 19]] | 8 | 594 | 2 |
using System;
class Program {
static void Main(string[] args) {
var A = int.Parse(Console.ReadLine());
var B = int.Parse(Console.ReadLine());
var C = int.Parse(Console.ReadLine());
var D = int.Parse(Console.ReadLine());
var E = int.Parse(Console.ReadLine());
var K = int.Parse(Console.ReadLine... | using System;
class Program {
static void Main(string[] args) {
var A = int.Parse(Console.ReadLine());
var B = int.Parse(Console.ReadLine());
var C = int.Parse(Console.ReadLine());
var D = int.Parse(Console.ReadLine());
var E = int.Parse(Console.ReadLine());
var K = int.Parse(Console.ReadLine... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 132 | 2 |
using System;
class abc123a {
static void Main() {
var p = new int[5];
for (int i = 0; i < 5; i++) {
p[i] = int.Parse(Console.ReadLine());
}
var k = int.Parse(Console.ReadLine());
for (int i = 0; i < 5; i++) {
for (int j = i + 1; j < 5; j++) {
var l = p[j] - p[i];
if (l... | using System;
class abc123a {
static void Main() {
var p = new int[5];
for (int i = 0; i < 5; i++) {
p[i] = int.Parse(Console.ReadLine());
}
var k = int.Parse(Console.ReadLine());
for (int i = 0; i < 5; i++) {
for (int j = i + 1; j < 5; j++) {
var l = p[j] - p[i];
if (l... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 146 | 4 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int c = int.Parse(Console.ReadLine());
int d = int.Parse(Console.ReadLine());
int e = int.Parse(Console.ReadLine());
int k = int.Pars... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int c = int.Parse(Console.ReadLine());
int d = int.Parse(Console.ReadLine());
int e = int.Parse(Console.ReadLine());
int k = int.Pars... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19]] | 8 | 126 | 2 |
using System;
using System.Linq;
namespace atcoder {
class Program {
static void Main(string[] args) {
int[] abcde = Enumerable.Range(1, 5)
.Select(_ => Console.ReadLine())
.Select(x => int.Parse(x))
.ToArray();
int k = int.Parse(Console.ReadL... | using System;
using System.Linq;
namespace atcoder {
class Program {
static void Main(string[] args) {
int[] abcde = Enumerable.Range(1, 5)
.Select(_ => Console.ReadLine())
.Select(x => int.Parse(x))
.ToArray();
int k = int.Parse(Console.ReadL... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 164 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_3 {
class Program {
static void Main(string[] args) {
int[] n = new int[6];
for (int i = 0; i < 6; i++) {
n[i] = int.Parse(Console.ReadLine());
}
int g;
stri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_3 {
class Program {
static void Main(string[] args) {
int[] n = new int[6];
for (int i = 0; i < 6; i++) {
n[i] = int.Parse(Console.ReadLine());
}
int g;
stri... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 181 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ATCode_Five_Antennas {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int c = int.Parse(Console.Re... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ATCode_Five_Antennas {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int c = int.Parse(Console.Re... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 161 | 4 |
using System;
using static System.Console;
class program {
static void Main(string[] args) {
program p = new program();
p.Run();
}
void Run() {
int a = int.Parse(ReadLine());
ReadLine();
ReadLine();
ReadLine();
int e = int.Parse(ReadLine());
int k = int.Parse(ReadLine());
if (... | using System;
using static System.Console;
class program {
static void Main(string[] args) {
program p = new program();
p.Run();
}
void Run() {
int a = int.Parse(ReadLine());
ReadLine();
ReadLine();
ReadLine();
int e = int.Parse(ReadLine());
int k = int.Parse(ReadLine());
if (... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 124 | 2 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
string[] str = new string[5];
for (var i = 0; i < 5; i++)
str[i] = Console.ReadLine();
int K = int.Parse(Console.ReadLine());
var ary = str.Select(int.Parse);
int x = ary.Max() - ary.Min();
if (K > x) {... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
string[] str = new string[5];
for (var i = 0; i < 5; i++)
str[i] = Console.ReadLine();
int K = int.Parse(Console.ReadLine());
var ary = str.Select(int.Parse);
int x = ary.Max() - ary.Min();
if (K >= x) ... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 129 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp4 {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int c = int.Parse(Console.ReadLine())... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp4 {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int c = int.Parse(Console.ReadLine())... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 167 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
using E = System.Linq.Enumerable;
public class Program {
public static void Main() {
var antennas = new int[5];
for (int i = 0; i < antennas.Length; i++) {
antennas[i] = int.Parse(Console.ReadLine());
}
var k = int.Parse(Consol... | using System;
using System.Linq;
using System.Collections.Generic;
using E = System.Linq.Enumerable;
public class Program {
public static void Main() {
var antennas = new int[5];
for (int i = 0; i < antennas.Length; i++) {
antennas[i] = int.Parse(Console.ReadLine());
}
var k = int.Parse(Consol... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19]] | 8 | 119 | 2 |
using System;
class Program {
static void Main(string[] args) {
int[] a = new int[6];
for (int i = 0; i < 6; i++) {
a[i] = int.Parse(Console.ReadLine());
}
bool isYay = true;
for (int i = 0; i < 4; i++)
for (int j = i + 1; j < 4; j++) {
if ((a[j] - a[i]) > a[5]) {
isY... | using System;
class Program {
static void Main(string[] args) {
int[] a = new int[6];
for (int i = 0; i < 6; i++) {
a[i] = int.Parse(Console.ReadLine());
}
bool isYay = true;
for (int i = 0; i < 5; i++)
for (int j = i + 1; j < 5; j++) {
if ((a[j] - a[i]) > a[5]) {
isY... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 8, 196, 0, 7, 8, 7, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 7, 15, 16, 12, 203]] | 8 | 138 | 4 |
using System;
public class Hello {
public static void Main() {
var a = new int[5];
for (int i = 0; i < 5; i++)
a[i] = int.Parse(Console.ReadLine().Trim());
Console.WriteLine(a[4] - a[0] > a[5] ? ":(" : "Yay!");
}
} | using System;
public class Hello {
public static void Main() {
var a = new int[6];
for (int i = 0; i < 6; i++)
a[i] = int.Parse(Console.ReadLine().Trim());
Console.WriteLine(a[4] - a[0] > a[5] ? ":(" : "Yay!");
}
} | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 87 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
static void Main(string[] args) {
var array = new int[5];
for (int i = 0; i < 5; i++) {
array[i] = int.Parse(Console.ReadLine());
}
var limit = int.Parse(Console.ReadLine());
var flag = true;
for ... | using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
static void Main(string[] args) {
var array = new int[5];
for (int i = 0; i < 5; i++) {
array[i] = int.Parse(Console.ReadLine());
}
var limit = int.Parse(Console.ReadLine());
var flag = true;
for ... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47]] | 8 | 170 | 2 |
using System;
using System.Linq;
namespace A_Five_Antennas {
class Program {
static void Main(string[] args) {
var antennas = new int[5];
antennas[0] = int.Parse(Console.ReadLine());
antennas[1] = int.Parse(Console.ReadLine());
antennas[2] = int.Parse(Console.ReadLine());
antennas[3] = int.Parse(... | using System;
using System.Linq;
namespace A_Five_Antennas {
class Program {
static void Main(string[] args) {
var antennas = new int[5];
antennas[0] = int.Parse(Console.ReadLine());
antennas[1] = int.Parse(Console.ReadLine());
antennas[2] = int.Parse(Console.ReadLine());
antennas[3] = int.Parse(... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 167 | 4 |
using System;
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleTest {
class Program {
static void Main(string[] args) {
int[] a = new int[5];
a[0] = int.Parse(Console.ReadLine());
a[1] = int.Parse(Console.ReadLine().Split('\n')[0]);
a[2] = int.Parse(Console.ReadLine... | using System;
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleTest {
class Program {
static void Main(string[] args) {
int[] a = new int[5];
a[0] = int.Parse(Console.ReadLine());
a[1] = int.Parse(Console.ReadLine().Split('\n')[0]);
a[2] = int.Parse(Console.ReadLine... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 270 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace atcoder {
class Program {
static void Main(string[] args) {
var a = int.Parse(Console.ReadLine());
var b = int.Parse(Console.ReadLine());
var c = int.Parse(Console.ReadLine());
var d = int.Parse(Console.ReadLine());
var ... | using System;
using System.Linq;
using System.Collections.Generic;
namespace atcoder {
class Program {
static void Main(string[] args) {
var a = int.Parse(Console.ReadLine());
var b = int.Parse(Console.ReadLine());
var c = int.Parse(Console.ReadLine());
var d = int.Parse(Console.ReadLine());
var ... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 154 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
class Amondai {
static void Main() {
var line = new List<int>();
for (int i = 0; i < 6; ++i) {
line.Add(Int32.Parse(Console.ReadLine()));
}
var canable = true;
for (int i = 0; i < 4; ++i) {
for (int j = i + 1; j < 3; +... | using System;
using System.Linq;
using System.Collections.Generic;
class Amondai {
static void Main() {
var line = new List<int>();
for (int i = 0; i < 6; ++i) {
line.Add(Int32.Parse(Console.ReadLine()));
}
var canable = true;
for (int i = 0; i < 4; ++i) {
for (int j = i + 1; j < 5; +... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 57, 15, 16, 12, 213, 3, 4, 0, 25... | 8 | 144 | 7 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp {
class Program {
static int N = 0;
static void Main(string[] args) {
var a = new int[5];
for (int i = 0; i < 5; i++) {
a[i] = int.Parse(Console.ReadLine());
}
var k = int.Parse(Console.ReadLine());
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp {
class Program {
static int N = 0;
static void Main(string[] args) {
var a = new int[5];
for (int i = 0; i < 5; i++) {
a[i] = int.Parse(Console.ReadLine());
}
var k = int.Parse(Console.ReadLine());
... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47]] | 8 | 186 | 2 |
using System;
using System.Collections.Generic;
namespace B {
class Program {
static void Main(string[] args) {
var L = new List<int>();
int min = 999;
for (int i = 0; i < 5; i++) {
int x = int.Parse(Console.ReadLine());
if ((x % 10 != 0) && (x % 10 < min % 10))
min = x;
L.Add(x... | using System;
using System.Collections.Generic;
namespace B {
class Program {
static void Main(string[] args) {
var L = new List<int>();
int min = 999;
for (int i = 0; i < 5; i++) {
int x = int.Parse(Console.ReadLine());
if ((x % 10 != 0) && (x % 10 <= min % 10))
min = x;
L.Add(... | [["-", 0, 57, 15, 16, 12, 23, 0, 16, 17, 18], ["+", 0, 57, 15, 16, 12, 23, 0, 16, 17, 19]] | 8 | 202 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace cs {
public class Program {
public static void Main(string[] args) {
int min = 11;
int sum = 0;
int input = 0;
int t = 0;
for (int i = 0; i < 5; i++) {
input = int.Parse(Console.ReadLine());
if ((t = input... | using System;
using System.Collections.Generic;
using System.Linq;
namespace cs {
public class Program {
public static void Main(string[] args) {
int min = 11;
int sum = 0;
int input = 0;
int t = 0;
for (int i = 0; i < 5; i++) {
input = int.Parse(Console.ReadLine());
if ((t = input... | [["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 152 | 2 |
using System;
using System.Linq;
namespace B___Five_Dishes {
class Program {
static void Main(string[] args) {
var ABCDE = new int [5].Select(_ => int.Parse(Console.ReadLine())).ToList();
var roundSum = ABCDE.Select(x => Math.Ceiling((double)x / 10) * 10).Sum();
var min = ABCDE.Select(x => x % 10).All(x ... | using System;
using System.Linq;
namespace B___Five_Dishes {
class Program {
static void Main(string[] args) {
var ABCDE = new int [5].Select(_ => int.Parse(Console.ReadLine())).ToList();
var roundSum = ABCDE.Select(x => Math.Ceiling((double)x / 10) * 10).Sum();
var ajust = ABCDE.Select(x => x % 10).All(... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 200, 0, 212, 0, 41, 75, 16, 17, 33], ["+", 0, 200, 0, 212, 0, 41, 75, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ... | 8 | 144 | 8 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp2 {
public class Program {
public static void Main(string[] args) {
int A = int.Parse(Console.ReadLine());
int B = int.Parse(Console.ReadLine());
int C = int.Parse(Console.ReadLine());
int D = int.Parse(Console.Rea... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp2 {
public class Program {
public static void Main(string[] args) {
int A = int.Parse(Console.ReadLine());
int B = int.Parse(Console.ReadLine());
int C = int.Parse(Console.ReadLine());
int D = int.Parse(Console.Rea... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 286 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC123B {
class Program {
static void Main(string[] args) {
// 整数の入力
int n = 5;
int[] cookingTime = new int[n];
int[] nextOrderTime = new int[n];
for (int i = 0; i < n; i+... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC123B {
class Program {
static void Main(string[] args) {
// 整数の入力
int n = 5;
int[] cookingTime = new int[n];
int[] nextOrderTime = new int[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 | 240 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleTest {
class Program {
static void Main(string[] args) {
int[] a = new int[5];
a[0] = int.Parse(Console.ReadLine());
a[1] = int.Parse(Console.ReadLine());
a[2] = int.Parse(Console.ReadLine());
a[3] = int.Parse(Con... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleTest {
class Program {
static void Main(string[] args) {
int[] a = new int[5];
a[0] = int.Parse(Console.ReadLine());
a[1] = int.Parse(Console.ReadLine());
a[2] = int.Parse(Console.ReadLine());
a[3] = int.Parse(Con... | [["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 20]] | 8 | 263 | 2 |
using System;
using System.Linq;
namespace B___Five_Dishes {
class Program {
static void Main(string[] args) {
var dishes = new int[5];
dishes[0] = int.Parse(Console.ReadLine());
dishes[1] = int.Parse(Console.ReadLine());
dishes[2] = int.Parse(Console.ReadLine());
dishes[3] = int.Parse(Console.Re... | using System;
using System.Linq;
namespace B___Five_Dishes {
class Program {
static void Main(string[] args) {
var dishes = new int[5];
dishes[0] = int.Parse(Console.ReadLine());
dishes[1] = int.Parse(Console.ReadLine());
dishes[2] = int.Parse(Console.ReadLine());
dishes[3] = int.Parse(Console.Re... | [["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["-", 0, 212, 0, 16, 12, 23, 0, 16, 17, 109], ["-", 0, 212, 0, 16, 12, 23, 0, 16, 12, 203], ["-", 0, 200, 0, 212, 0, 16, 12, 23, 0, 25]] | 8 | 215 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
class ABC123B {
public static void Main() {
var ae = new List<int>();
ae.Add(int.Parse(Console.ReadLine()));
ae.Add(int.Parse(Console.ReadLine()));
ae.Add(int.Parse(Console.ReadLine()));
ae.Add(int.Parse(Console.ReadLine()));
... | using System;
using System.Collections.Generic;
using System.Linq;
class ABC123B {
public static void Main() {
var ae = new List<int>();
ae.Add(int.Parse(Console.ReadLine()));
ae.Add(int.Parse(Console.ReadLine()));
ae.Add(int.Parse(Console.ReadLine()));
ae.Add(int.Parse(Console.ReadLine()));
... | [["-", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22]] | 8 | 194 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
class Bmondai {
static void Main() {
var line = new List<int>();
var min = int.MaxValue;
var minIndex = 0;
for (int i = 0; i < 5; ++i) {
var a = Int32.Parse(Console.ReadLine());
line.Add(a);
var ten = a % 10;
i... | using System;
using System.Linq;
using System.Collections.Generic;
class Bmondai {
static void Main() {
var line = new List<int>();
var min = int.MaxValue;
var minIndex = 0;
for (int i = 0; i < 5; ++i) {
var a = Int32.Parse(Console.ReadLine());
line.Add(a);
var ten = a % 10;
i... | [["-", 0, 16, 12, 23, 0, 41, 15, 16, 12, 203], ["+", 12, 23, 0, 41, 15, 16, 12, 214, 205, 199], ["+", 12, 23, 0, 41, 15, 16, 12, 214, 0, 131], ["+", 12, 23, 0, 41, 15, 16, 12, 214, 141, 22]] | 8 | 160 | 4 |
using System;
using System.Linq;
using static System.Console;
public class B {
static void Main(string[] args) {
var s = Array.ConvertAll(new string[] { ReadLine(), ReadLine(), ReadLine(),
ReadLine(), ReadLine() },
int.Parse);
var sum =... | using System;
using System.Linq;
using static System.Console;
public class B {
static void Main(string[] args) {
var s = Array.ConvertAll(new string[] { ReadLine(), ReadLine(), ReadLine(),
ReadLine(), ReadLine() },
int.Parse);
var sum =... | [["+", 0, 200, 0, 212, 0, 41, 64, 16, 17, 33], ["+", 0, 200, 0, 212, 0, 41, 64, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 33], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 203]] | 8 | 151 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace b {
class Program {
static void Main(string[] args) {
var lis = new List<int>();
for (int i = 0; i < 5; i++)
lis.Add(int.Parse(Console.ReadLine()));
lis = lis.OrderBy(i => ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace b {
class Program {
static void Main(string[] args) {
var lis = new List<int>();
for (int i = 0; i < 5; i++)
lis.Add(int.Parse(Console.ReadLine()));
lis = lis.OrderBy(i => ... | [["-", 0, 218, 8, 41, 15, 16, 31, 16, 12, 203], ["+", 0, 218, 8, 41, 15, 16, 31, 16, 12, 203]] | 8 | 158 | 2 |
using System;
using System.Numerics;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace debug {
class ProgramD {
static void Main(string[] args) {
//入力
long n = long.Parse(Console.ReadLine());
long[] m = new long[n];
m[0] = long.Parse(Console.ReadLine());
m[1] = lo... | using System;
using System.Numerics;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace debug {
class ProgramD {
static void Main(string[] args) {
//入力
long n = long.Parse(Console.ReadLine());
long[] m = new long[5];
m[0] = long.Parse(Console.ReadLine());
m[1] = lo... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203]] | 8 | 175 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long n = sc.NextLong();
long[] capa = new long[5];
for (int i = 0; i < 5; i++) {
capa[i] = sc.NextLong();
}
long min = capa.Min();... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long n = sc.NextLong();
long[] capa = new long[5];
for (int i = 0; i < 5; i++) {
capa[i] = sc.NextLong();
}
long min = capa.Min();... | [["-", 0, 11, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33]] | 8 | 412 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
public static class Program {
public static void Main(string[] args) {
var n = long.Parse(Console.ReadLine());
var list = Enumerable.Range(0, 5)
.Select(x => long.Parse(Console.ReadLine()))
.ToList();
... | using System;
using System.Collections.Generic;
using System.Linq;
public static class Program {
public static void Main(string[] args) {
var n = long.Parse(Console.ReadLine());
var list = Enumerable.Range(0, 5)
.Select(x => long.Parse(Console.ReadLine()))
.ToList();
... | [["-", 0, 28, 0, 23, 0, 16, 31, 74, 39, 199], ["+", 0, 28, 0, 23, 0, 16, 31, 74, 39, 199]] | 8 | 104 | 2 |
using System;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
long n = long.Parse(Console.ReadLine());
long[] abcde = new long[5];
abcde[0] = long.Parse(Console.ReadLine());
abcde[1] = long.Parse(Console.ReadLine());
abcde[2] = long.Parse(Console.... | using System;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
long n = long.Parse(Console.ReadLine());
long[] abcde = new long[5];
abcde[0] = long.Parse(Console.ReadLine());
abcde[1] = long.Parse(Console.ReadLine());
abcde[2] = long.Parse(Console.... | [["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107]] | 8 | 175 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace MyProgram {
class AtCoder {
static void Main() {
long N = long.Parse(Console.ReadLine());
long A = long.Parse(Console.ReadLine());
long B = long.Parse(Console.ReadLine());
long C = long.Parse(Console.ReadLine());
long D ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace MyProgram {
class AtCoder {
static void Main() {
long N = long.Parse(Console.ReadLine());
long A = long.Parse(Console.ReadLine());
long B = long.Parse(Console.ReadLine());
long C = long.Parse(Console.ReadLine());
long D ... | [["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25]] | 8 | 189 | 3 |
using System;
using System.Linq;
namespace CSharp {
class Program {
public static void Main() {
var N = long.Parse(Console.ReadLine());
var city =
new long [5].Select(_ => long.Parse(Console.ReadLine())).ToArray();
Console.WriteLine(Math.Ceiling((double)N / city.Min()) + 4);
}
}
} | using System;
using System.Linq;
namespace CSharp {
class Program {
public static void Main() {
var N = long.Parse(Console.ReadLine());
var city =
new long [5].Select(_ => long.Parse(Console.ReadLine())).ToArray();
Console.WriteLine((long)Math.Ceiling((double)N / city.Min()) + 4);
}
}
} | [["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25]] | 8 | 90 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
public static void Main() {
var N = long.Parse(Console.ReadLine());
List<long> list = new List<long>();
list.Add(long.Parse(Console.ReadLine()));
list.Add(long.Parse(Console.ReadLine()));
list.Add(long.Parse(Conso... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
public static void Main() {
var N = long.Parse(Console.ReadLine());
List<long> list = new List<long>();
list.Add(long.Parse(Console.ReadLine()));
list.Add(long.Parse(Console.ReadLine()));
list.Add(long.Parse(Conso... | [["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25]] | 8 | 166 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace kp {
public class Program {
// static long[,] cmb;
static int MAX_INT = 1000000007;
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
// int[] inp... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace kp {
public class Program {
// static long[,] cmb;
static int MAX_INT = 1000000007;
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
// int[] inp... | [["+", 0, 28, 0, 16, 31, 23, 0, 16, 31, 203], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 48], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 17, 33], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 12, 203], ["+", ... | 8 | 227 | 8 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStan... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStan... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["-", 0, 212, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 16, 12, 213, 63, 214, 141, 22]] | 8 | 3,221 | 4 |
using System;
using System.Linq;
namespace C___Five_Transportations {
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var ABCDE =
new int [5].Select(x => long.Parse(Console.ReadLine())).ToArray();
Console.WriteLine(4 + Math.Ceiling((double)N / ABCDE.Min(... | using System;
using System.Linq;
namespace C___Five_Transportations {
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var ABCDE =
new int [5].Select(x => long.Parse(Console.ReadLine())).ToArray();
Console.WriteLine(4 + Math.Ceiling((decimal)N / ABCDE.Min... | [["-", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199]] | 8 | 93 | 2 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using static System.Console;
namespace ABC123C {
static class Program {
static void Main(string[] args) {
var l = ReadLineOne<long>(6);
var n = l.FirstOrDefault();
var min = l.Min();
... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using static System.Console;
namespace ABC123C {
static class Program {
static void Main(string[] args) {
var l = ReadLineOne<long>(6);
var n = l.FirstOrDefault();
var min = l.Min();
... | [["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25]] | 8 | 496 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) { A(); }
static void A() {
Println(Ceiling((double)ReadLong() /
new List<long> {
ReadLong(),
... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) { A(); }
static void A() {
Println(Ceiling((decimal)ReadLong() /
new List<long> {
ReadLong(),
... | [["-", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199]] | 8 | 605 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC123_C_Five_Transportations {
class Program {
static void Main(string[] args) {
long n = long.Parse(Console.ReadLine());
long[] persons = new long[5];
for (int j = 0; j < 5; j++... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC123_C_Five_Transportations {
class Program {
static void Main(string[] args) {
long n = long.Parse(Console.ReadLine());
long[] persons = new long[5];
for (int j = 0; j < 5; j++... | [["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199]] | 8 | 177 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace Algorithm {
class Program {
const int NumberOfCities = 6;
const int NumberOfVehicle = 5;
static void Main(string[] args) {
var n = long.Parse(Console.ReadLine());
var citiesPeople = new long[NumberOfCities];
... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace Algorithm {
class Program {
const int NumberOfCities = 6;
const int NumberOfVehicle = 5;
static void Main(string[] args) {
var n = long.Parse(Console.ReadLine());
var citiesPeople = new long[NumberOfCities];
... | [["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199]] | 8 | 152 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC123 {
class ABC123_C {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var capacityList = new List<double>();
for (int i = 0; i < "ABCDE".Length; i++)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC123 {
class ABC123_C {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var capacityList = new List<double>();
for (int i = 0; i < "ABCDE".Length; i++)... | [["-", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199]] | 8 | 130 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC123C {
class Program {
static void Main(string[] args) {
// 人数
long N = long.Parse(Console.ReadLine());
long[] capacity = new long[5];
for (int i = 0; i < 5; i++) {
c... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC123C {
class Program {
static void Main(string[] args) {
// 人数
long N = long.Parse(Console.ReadLine());
long[] capacity = new long[5];
for (int i = 0; i < 5; i++) {
c... | [["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199]] | 8 | 136 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc119d {
class Program {
static void Main(string[] args) {
var N = Readlong();
var ABCDE = new long[5];
for (long i = 0; i < 5; i++) {
ABCDE[i] = Readlong();
}
var ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc119d {
class Program {
static void Main(string[] args) {
var N = Readlong();
var ABCDE = new long[5];
for (long i = 0; i < 5; i++) {
ABCDE[i] = Readlong();
}
var ... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 437 | 6 |
using System;
using System.Linq;
public class App {
public static void Main(string[] args) {
long n = long.Parse(Console.ReadLine());
long[] a = new long[5];
a[0] = long.Parse(Console.ReadLine());
a[1] = long.Parse(Console.ReadLine());
a[2] = long.Parse(Console.ReadLine());
a[3] = long.Parse(... | using System;
using System.Linq;
public class App {
public static void Main(string[] args) {
long n = long.Parse(Console.ReadLine()) - 1;
long[] a = new long[5];
a[0] = long.Parse(Console.ReadLine());
a[1] = long.Parse(Console.ReadLine());
a[2] = long.Parse(Console.ReadLine());
a[3] = long.Pa... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 145 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
class Cmondai {
static void Main() {
var line = new List<long>();
long N = 0;
for (int i = 0; i < 6; ++i) {
var a = Int64.Parse(Console.ReadLine());
if (i == 0)
N = a;
else
line.Add(a);
}
var min ... | using System;
using System.Linq;
using System.Collections.Generic;
class Cmondai {
static void Main() {
var line = new List<long>();
long N = 0;
for (int i = 0; i < 6; ++i) {
var a = Int64.Parse(Console.ReadLine());
if (i == 0)
N = a;
else
line.Add(a);
}
var min ... | [["+", 0, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 33]] | 8 | 136 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
class Cmondai {
static void Main() {
var line = new List<decimal>();
decimal N = 0;
for (int i = 0; i < 6; ++i) {
var a = decimal.Parse(Console.ReadLine());
if (i == 0)
N = a;
else
line.Add(a);
}
... | using System;
using System.Linq;
using System.Collections.Generic;
class Cmondai {
static void Main() {
var line = new List<decimal>();
decimal N = 0;
for (int i = 0; i < 6; ++i) {
var a = decimal.Parse(Console.ReadLine());
if (i == 0)
N = a;
else
line.Add(a);
}
... | [["-", 8, 196, 0, 57, 75, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 75, 1, 0, 11, 12, 203]] | 8 | 135 | 2 |
using System;
using System.Linq;
namespace ABC123_C {
class Program {
static void Main(string[] args) {
var n = long.Parse(Console.ReadLine());
var p = new long[5];
p[0] = long.Parse(Console.ReadLine());
p[1] = long.Parse(Console.ReadLine());
p[2] = long.Parse(Console.ReadLine());
p[3] = long... | using System;
using System.Linq;
namespace ABC123_C {
class Program {
static void Main(string[] args) {
var n = long.Parse(Console.ReadLine());
var p = new long[5];
p[0] = long.Parse(Console.ReadLine());
p[1] = long.Parse(Console.ReadLine());
p[2] = long.Parse(Console.ReadLine());
p[3] = long... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 75, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 46]] | 8 | 177 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
class Program {
static void Main(string[] args) {
// var input = Console.ReadLine().Split(' ').Select(x =>
// long.Parse(x)).ToArray();
decimal n = decimal.Parse(Cons... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
class Program {
static void Main(string[] args) {
// var input = Console.ReadLine().Split(' ').Select(x =>
// long.Parse(x)).ToArray();
decimal n = decimal.Parse(Cons... | [["-", 0, 212, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 192 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static int Main() {
long ans = 0;
long[] nin = new long[5];
long n = long.Parse(Console.ReadLine());
for (int i = 0; i < 5; i++) {
nin[i] = long.Parse(Console.ReadLine());
}
// ここまで入力
if (nin.Min... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static int Main() {
long ans = 0;
long[] nin = new long[5];
long n = long.Parse(Console.ReadLine());
for (int i = 0; i < 5; i++) {
nin[i] = long.Parse(Console.ReadLine());
}
// ここまで入力
if (nin.Min... | [["+", 0, 16, 31, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0, 25], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 33]] | 8 | 138 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp {
class Program {
static int N = 0;
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var capacity = new long[5];
for (int i = 0; i < 5; i++) {
capacity[i] = int.Parse(Console.ReadLine(... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp {
class Program {
static int N = 0;
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var capacity = new long[5];
for (int i = 0; i < 5; i++) {
capacity[i] = long.Parse(Console.ReadLine... | [["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199]] | 8 | 130 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
public static partial class Program {
public static void Main() {
var n = CRL().ToInt();
var canMove = new long[5];
for (int i = 0; i < 5; i++) {
canMove[i] = CRL().ToInt();
}
var count = Math.Ceiling(1.0 * n / canMove.Min(... | using System;
using System.Collections.Generic;
using System.Linq;
public static partial class Program {
public static void Main() {
var n = CRL().ToInt();
var canMove = new long[5];
for (int i = 0; i < 5; i++) {
canMove[i] = CRL().ToInt();
}
var count = (long)Math.Ceiling(1.0 * n / canMov... | [["+", 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 | 472 | 3 |
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 n = long.Parse(Console.ReadLine());
var l = new List<long>();
for (int i = 0; i < 5; i++)
l.Add(int.Parse(Console.R... | 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 n = long.Parse(Console.ReadLine());
var l = new List<long>();
for (int i = 0; i < 5; i++)
l.Add(long.Parse(Console.... | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199]] | 8 | 148 | 2 |
using System;
using System.Linq;
namespace AtC {
class Program {
static void Main(string[] args) {
double N = long.Parse(Console.ReadLine());
var count = new long[5];
for (int i = 0; i < count.Length; i++)
count[i] = int.Parse(Console.ReadLine());
long bottleNeck = count.Min();
Console.Writ... | using System;
using System.Linq;
namespace AtC {
class Program {
static void Main(string[] args) {
double N = long.Parse(Console.ReadLine());
var count = new long[5];
for (int i = 0; i < count.Length; i++)
count[i] = long.Parse(Console.ReadLine());
long bottleNeck = count.Min();
Console.Wri... | [["-", 8, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 8, 1, 0, 11, 12, 213, 63, 214, 205, 199]] | 8 | 110 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.