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;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
int[] inp = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
Console.WriteLine(inp.Sum() > 22 ? "bust" : "win");
}
}
}
| using System;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
int[] inp = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
Console.WriteLine(inp.Sum() > 21 ? "bust" : "win");
}
}
}
| [["-", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203]] | 8 | 75 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC147A {
class Program {
static void Main(string[] args) {
int A, B, C, D;
var word = Console.ReadLine().Split(' ');
A = int.Parse(word[0]);
B = int.Parse(word[0]);
C = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC147A {
class Program {
static void Main(string[] args) {
int A, B, C, D;
var word = Console.ReadLine().Split(' ');
A = int.Parse(word[0]);
B = int.Parse(word[1]);
C = ... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 160 |
using System;
public class Program {
public static void Main(string[] args) {
var input = Console.ReadLine().Split();
var a1 = int.Parse(input[0]);
var a2 = int.Parse(input[1]);
var a3 = int.Parse(input[2]);
if (a1 + a2 + a2 >= 22) {
Console.WriteLine("bust");
} else {
Cons... | using System;
public class Program {
public static void Main(string[] args) {
var input = Console.ReadLine().Split();
var a1 = int.Parse(input[0]);
var a2 = int.Parse(input[1]);
var a3 = int.Parse(input[2]);
if (a1 + a2 + a3 >= 22) {
Console.WriteLine("bust");
} else {
Cons... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]] | 8 | 105 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC147A {
class Program {
static void Main(string[] args) {
int A1, A2, A3;
var word = Console.ReadLine().Split(' ');
A1 = int.Parse(word[0]);
A2 = int.Parse(word[1]);
A3... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC147A {
class Program {
static void Main(string[] args) {
int A1, A2, A3;
var word = Console.ReadLine().Split(' ');
A1 = int.Parse(word[0]);
A2 = int.Parse(word[1]);
A3... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 149 |
using System;
public class test {
public static void Main() {
var input = Console.ReadLine().Split(' ');
var result =
int.Parse(input[0]) + int.Parse(input[1]) + int.Parse(input[2]);
if (result >= 22) {
Console.WriteLine("burst");
} else if (result <= 21) {
Console.WriteLine("win"... | using System;
public class test {
public static void Main() {
var input = Console.ReadLine().Split(' ');
var result =
int.Parse(input[0]) + int.Parse(input[1]) + int.Parse(input[2]);
if (result >= 22) {
Console.WriteLine("bust");
} else if (result <= 21) {
Console.WriteLine("win")... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 100 |
using System;
using static System.Console;
namespace brackjack {
class Program {
static void Main(string[] args) {
string[] ss = ReadLine().Split(' ');
if (int.Parse(ss[0]) + int.Parse(ss[1]) + int.Parse(ss[2]) <= 21) {
WriteLine("Win");
return;
} else {
WriteLine("bust");
return;... | using System;
using static System.Console;
namespace brackjack {
class Program {
static void Main(string[] args) {
string[] ss = ReadLine().Split(' ');
if (int.Parse(ss[0]) + int.Parse(ss[1]) + int.Parse(ss[2]) <= 21) {
WriteLine("win");
return;
} else {
WriteLine("bust");
return;... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 101 |
using System;
class ACBC1208_A {
public static void Main() {
var ss = Console.ReadLine().Split(' ');
int i = 0;
foreach (var s in ss)
i += int.Parse(s);
if (i > 21)
Console.WriteLine("win");
else
Console.WriteLine("bust");
}
} | using System;
class ACBC1208_A {
public static void Main() {
var ss = Console.ReadLine().Split(' ');
int i = 0;
foreach (var s in ss)
i += int.Parse(s);
if (i < 22)
Console.WriteLine("win");
else
Console.WriteLine("bust");
}
} | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 77 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
class Program {
static void Main(string[] args) {
var sc = new Scanner();
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (a + b + c <= 21)
Console.WriteLine("Win");
else
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
class Program {
static void Main(string[] args) {
var sc = new Scanner();
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (a + b + c <= 21)
Console.WriteLine("win");
else
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 450 |
using System;
using System.Linq;
class Atcoder {
static void Main(string[] args) {
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
int b = a[0] + a[1] + a[2];
if (b >= 21) {
Console.WriteLine("bust");
} else {
Console.WriteLine("win");
}
}
} | using System;
using System.Linq;
class Atcoder {
static void Main(string[] args) {
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
int b = a[0] + a[1] + a[2];
if (b >= 22) {
Console.WriteLine("bust");
} else {
Console.WriteLine("win");
}
}
} | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 96 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc147_b {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
string N = string.Concat(S.Reverse());
int H = 0;
for (int i = 0; i < S.Length; i+... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc147_b {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
string N = string.Concat(S.Reverse());
int H = 0;
for (int i = 0; i < S.Length / 2... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 85], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 126 |
using System;
using System.Linq;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using static System.Console;
using static Program.Input;
using static Program.MyMath;
using static Program.Const;
namespace Program {
static class Const {
public static string alp = "abcdefghijklmnopqrstuvwxyz";
... | using System;
using System.Linq;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using static System.Console;
using static Program.Input;
using static Program.MyMath;
using static Program.Const;
namespace Program {
static class Const {
public static string alp = "abcdefghijklmnopqrstuvwxyz";
... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 2,014 |
using System;
class Program {
static void Main(string[] args) {
// スペース区切りの整数の入力
string[] input = Console.ReadLine().Split(' ');
string msg = input[0];
int replaceCount = 0;
for (int i = 0; i < msg.Length / 2; i++)
if (msg[i] != msg[msg.Length - 1])
replaceCount++;
Console.WriteL... | using System;
class Program {
static void Main(string[] args) {
// スペース区切りの整数の入力
string[] input = Console.ReadLine().Split(' ');
string msg = input[0];
int replaceCount = 0;
for (int i = 0; i < msg.Length / 2; i++)
if (msg[i] != msg[msg.Length - 1 - i])
replaceCount++;
Console.Wr... | [["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 22]] | 8 | 94 |
using System;
class Program {
static void Main() {
var line = Console.ReadLine();
byte cnt = 0;
var len = line.Length;
if (len == 1) {
Console.WriteLine("0");
return;
}
var half = len / 2;
len -= 1;
for (byte i = 0; i <= half; i++) {
var a = line[i];
var b... | using System;
class Program {
static void Main() {
var line = Console.ReadLine();
byte cnt = 0;
var len = line.Length;
if (len == 1) {
Console.WriteLine("0");
return;
}
var half = len / 2;
len -= 1;
for (byte i = 0; i < half; i++) {
var a = line[i];
var b ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18]] | 8 | 117 |
using System;
class Program {
static void Main() {
int L, l, count = 0;
string s = Console.ReadLine();
L = s.Length;
l = L - 1;
for (int i = 0; i < L; i++) {
if (s[i] != s[l - i])
count++;
}
Console.WriteLine(count);
}
} | using System;
class Program {
static void Main() {
int L, l, count = 0;
string s = Console.ReadLine();
L = s.Length;
l = L - 1;
for (int i = 0; i < L / 2; i++) {
if (s[i] != s[l - i])
count++;
}
Console.WriteLine(count);
}
} | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 85], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 84 |
using System;
class Program {
static void Main(string[] args) {
string str1 = Console.ReadLine();
decimal hug = 0;
decimal num = Math.Floor((decimal)str1.Length / 2) + 1;
for (int i = 0; i < num; i++) {
if (str1[i] != str1[str1.Length - 1 - i]) {
hug++;
}
}
Console.Writ... | using System;
class Program {
static void Main(string[] args) {
string str1 = Console.ReadLine();
decimal hug = 0;
decimal num = Math.Floor((decimal)str1.Length / 2);
for (int i = 0; i < num; i++) {
if (str1[i] != str1[str1.Length - 1 - i]) {
hug++;
}
}
Console.WriteLin... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 101 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
static class CHonestOrUnkind2 {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var list = new List<List<Tuple<int, int>>>();
for (int i = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
static class CHonestOrUnkind2 {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var list = new List<List<Tuple<int, int>>>();
for (int i = ... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22]] | 8 | 442 |
using System;
using System.Collections.Generic;
using System.Numerics;
using System.Linq;
namespace c {
class Program {
public static readonly long INF = 999999999999;
public static readonly long MOD = 1000000007;
static void Main(string[] args) {
var n = Scanner.IntScan()[0];
var xy = new List<List<int... | using System;
using System.Collections.Generic;
using System.Numerics;
using System.Linq;
namespace c {
class Program {
public static readonly long INF = 999999999999;
public static readonly long MOD = 1000000007;
static void Main(string[] args) {
var n = Scanner.IntScan()[0];
var xy = new List<List<int... | [["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]] | 8 | 656 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var waaaa = new waaaa();
waaaa.Solve();
}
}
public class waaaa {
const int MOD = 1000000007;
const int INF = 1 << 20;
const long INFL ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var waaaa = new waaaa();
waaaa.Solve();
}
}
public class waaaa {
const int MOD = 1000000007;
const int INF = 1 << 20;
const long INFL ... | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 79], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 12, 203], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 12, 203]] | 8 | 1,168 |
using System;
using System.Collections.Generic;
using System.Linq;
public static class Bits {
public static int PopCount(int bits) {
bits = (bits & 0x55555555) + (bits >> 1 & 0x55555555);
bits = (bits & 0x33333333) + (bits >> 2 & 0x33333333);
bits = (bits & 0x0f0f0f0f) + (bits >> 4 & 0x0f0f0f0f);
bit... | using System;
using System.Collections.Generic;
using System.Linq;
public static class Bits {
public static int PopCount(int bits) {
bits = (bits & 0x55555555) + (bits >> 1 & 0x55555555);
bits = (bits & 0x33333333) + (bits >> 2 & 0x33333333);
bits = (bits & 0x0f0f0f0f) + (bits >> 4 & 0x0f0f0f0f);
bit... | [["-", 15, 16, 12, 23, 0, 16, 12, 23, 0, 24], ["-", 12, 23, 0, 16, 12, 23, 0, 16, 17, 33], ["-", 12, 23, 0, 16, 12, 23, 0, 16, 12, 203], ["-", 15, 16, 12, 23, 0, 16, 12, 23, 0, 25]] | 8 | 485 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Numerics;
using static System.Math;
using static System.Array;
using static AtCoder.IO_ShortCut;
using static AtCoder.Tool;
namespace AtCoder {
class AC {
const int MOD = 1000000007;
// const int MOD ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Numerics;
using static System.Math;
using static System.Array;
using static AtCoder.IO_ShortCut;
using static AtCoder.Tool;
namespace AtCoder {
class AC {
const int MOD = 1000000007;
// const int MOD ... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 109], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22]] | 8 | 2,019 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray()... | using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray()... | [["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 109], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["-", 12, 23, 0, 74, 51, 213, 3, 4, 0, 25], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25]] | 8 | 310 |
using System;
using System.Collections.Generic;
using System.ComponentModel.Design;
using System.Diagnostics;
using System.Linq;
using System.Runtime;
using System.Text;
using Microsoft.Win32;
using static System.Console;
public static class Program {
private static readonly long INF = long.MaxValue / 2;
private s... | using System;
using System.Collections.Generic;
using System.ComponentModel.Design;
using System.Diagnostics;
using System.Linq;
using System.Runtime;
using System.Text;
using Microsoft.Win32;
using static System.Console;
public static class Program {
private static readonly long INF = long.MaxValue / 2;
private s... | [["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 1,851 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
// modをかける場所がわからない
int N = int.Parse(Console.ReadLine());
long[] A = new long[N];
string[] str = Console.ReadLine().Split();
for (var i = 0; i < N; i++) {
A[i] = long.Parse(str[i]);
}
l... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
// modをかける場所がわからない
int N = int.Parse(Console.ReadLine());
long[] A = new long[N];
string[] str = Console.ReadLine().Split();
for (var i = 0; i < N; i++) {
A[i] = long.Parse(str[i]);
}
l... | [["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]] | 8 | 239 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_147 {
class D {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_147 {
class D {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22]] | 8 | 461 |
// ReSharper disable ArrangeTypeMemberModifiers
// ReSharper disable ConvertIfStatementToSwitchStatement
// ReSharper disable FunctionRecursiveOnAllPaths
// ReSharper disable InconsistentNaming
// ReSharper disable InlineOutVariableDeclaration
// ReSharper disable InvertIf
// ReSharper disable JoinDeclarationAndInitial... | // ReSharper disable ArrangeTypeMemberModifiers
// ReSharper disable ConvertIfStatementToSwitchStatement
// ReSharper disable FunctionRecursiveOnAllPaths
// ReSharper disable InconsistentNaming
// ReSharper disable InlineOutVariableDeclaration
// ReSharper disable InvertIf
// ReSharper disable JoinDeclarationAndInitial... | [["-", 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, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22]] | 8 | 3,316 |
using System;
namespace E {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var A = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
long MOD = 1000000007;
long result = 1;
var colorCount = new int[3];
for (int i = 0; i < N; i++) {
if... | using System;
namespace E {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var A = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
long MOD = 1000000007;
long result = 1;
var colorCount = new int[3];
for (int i = 0; i < N; i++) {
if... | [["+", 75, 57, 75, 57, 75, 57, 75, 57, 0, 95], ["+", 75, 57, 75, 57, 75, 1, 0, 11, 31, 22], ["+", 75, 57, 75, 1, 0, 11, 0, 202, 0, 32], ["+", 75, 57, 75, 57, 75, 1, 0, 11, 12, 203], ["+", 75, 57, 75, 57, 75, 57, 75, 1, 0, 35]] | 8 | 292 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using E = System.Linq.Enumerable;
internal partial class Solver {
public void Run() {
var t1 = ni();
var t2 = ni();
var a1 = nl();
var a2 = nl();
var b1 = nl(... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using E = System.Linq.Enumerable;
internal partial class Solver {
public void Run() {
var t1 = ni();
var t2 = ni();
var a1 = nl();
var a2 = nl();
var b1 = nl(... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 1,179 |
using System;
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
int ans = 0;
switch (input) {
case "SUN":
ans = 7;
break;
case "MON":
ans = 6;
break;
case "THE":
ans = 5;
break;
case "WED":
ans = 4;
break;
... | using System;
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
int ans = 0;
switch (input) {
case "SUN":
ans = 7;
break;
case "MON":
ans = 6;
break;
case "TUE":
ans = 5;
break;
case "WED":
ans = 4;
break;
... | [["-", 8, 254, 0, 239, 0, 264, 0, 5, 0, 222], ["+", 8, 254, 0, 239, 0, 264, 0, 5, 0, 222]] | 8 | 122 |
using System;
using System.Collections.Generic;
class Prog {
static void Main(string[] args) {
var a = Console.ReadLine();
var list = new List<string>();
list.Add("SUN");
list.Add("MON");
list.Add("TUE");
list.Add("WED");
list.Add("THU");
list.Add("FRI");
list.Add("SUT");
for ... | using System;
using System.Collections.Generic;
class Prog {
static void Main(string[] args) {
var a = Console.ReadLine();
var list = new List<string>();
list.Add("SUN");
list.Add("MON");
list.Add("TUE");
list.Add("WED");
list.Add("THU");
list.Add("FRI");
list.Add("SAT");
for ... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 145 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
string read = rstr();
string[] list =
new string[] { "SUN", "SAT", "FRI", "THU", "WED", "TUE", "MON" };
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
string read = rstr();
string[] list =
new string[] { "", "SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"... | [["-", 0, 212, 0, 227, 0, 229, 0, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 227, 0, 229, 0, 21], ["+", 0, 212, 0, 227, 0, 229, 0, 5, 0, 62], ["+", 0, 212, 0, 227, 0, 229, 0, 5, 0, 222], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 648 |
using System;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
string[] weekdays = { "SUN", "SAT", "FRI", "THU", "WED", "TUE", "MON" };
string s = Console.ReadLine();
for (int i = 0; i < weekdays.Length; i++) {
if (weekdays[i] == s) {
Console.WriteLine(i.ToString()... | using System;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
string[] weekdays = { "", "SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN" };
string s = Console.ReadLine();
for (int i = 0; i < weekdays.Length; i++) {
if (weekdays[i] == s) {
Console.WriteLine(i.ToStri... | [["-", 0, 200, 0, 212, 0, 229, 0, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 229, 0, 5, 0, 62], ["+", 0, 198, 0, 200, 0, 212, 0, 229, 0, 21], ["+", 0, 200, 0, 212, 0, 229, 0, 5, 0, 222]] | 8 | 112 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProCon {
class Program {
static void Main(string[] args) {
string inStr = args[0];
string ret = string.Empty;
switch (inStr) {
case "SUN":
ret = "7";
break;
c... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProCon {
class Program {
static void Main(string[] args) {
string inStr = Console.ReadLine();
string ret = string.Empty;
switch (inStr) {
case "SUN":
ret = "7";
b... | [["-", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, ... | 8 | 165 |
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/abc141_a
public class QuestionA {
public static void Main(string[] args) {
// 文字列の入力
string s = Console.ReadLine();... | 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/abc141_a
public class QuestionA {
public static void Main(string[] args) {
// 文字列の入力
string s = Console.ReadLine();... | [["-", 0, 212, 0, 230, 10, 229, 0, 5, 0, 222], ["+", 0, 212, 0, 230, 10, 229, 0, 5, 0, 222]] | 8 | 153 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace A {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
var ans = 0;
if (s == "SUN")
ans = 0;
else if (s == "MON")
ans = 6;
else if (s == "TUE")
ans = 5;
else if (s == "WED... | using System;
using System.Linq;
using System.Collections.Generic;
namespace A {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
var ans = 0;
if (s == "SUN")
ans = 7;
else if (s == "MON")
ans = 6;
else if (s == "TUE")
ans = 5;
else if (s == "WED... | [["-", 8, 196, 0, 57, 64, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 12, 203]] | 8 | 145 |
using System;
public class WaitingHoliday {
public static void Main(string[] argc) {
string input = Console.ReadLine();
int remainDays = HowManyDaysToNextHoliday(input);
Console.WriteLine(remainDays);
}
public static int HowManyDaysToNextHoliday(string inputStr) {
switch (inputStr) {
case "S... | using System;
public class WaitingHoliday {
public static void Main(string[] argc) {
string input = Console.ReadLine();
int remainDays = HowManyDaysToNextHoliday(input);
Console.WriteLine(remainDays);
}
public static int HowManyDaysToNextHoliday(string inputStr) {
switch (inputStr) {
case "S... | [["-", 8, 254, 0, 239, 0, 264, 0, 5, 0, 222], ["+", 8, 254, 0, 239, 0, 264, 0, 5, 0, 222]] | 8 | 135 |
using System;
using System.Text;
class AtCoder {
static void Main() {
string s = Console.ReadLine();
int cnt = 0;
if (s == "SUN") {
Console.WriteLine("7");
} else if (s == "MON") {
Console.WriteLine("6");
} else if (s == "TUE") {
Console.WriteLine("5");
} else if (s == "WED"... | using System;
using System.Text;
class AtCoder {
static void Main() {
string s = Console.ReadLine();
int cnt = 0;
if (s == "SUN") {
Console.WriteLine("7");
} else if (s == "MON") {
Console.WriteLine("6");
} else if (s == "TUE") {
Console.WriteLine("5");
} else if (s == "WED"... | [["-", 75, 57, 75, 57, 15, 16, 12, 5, 0, 222], ["+", 75, 57, 75, 57, 15, 16, 12, 5, 0, 222]] | 8 | 172 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
//入力
string youbi;
youbi = Console.ReadLine();
//計算
string cntDay = "";
switch (youbi) {
case "SUN... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
//入力
string youbi;
youbi = Console.ReadLine();
//計算
string cntDay = "";
switch (youbi) {
case "SUN... | [["-", 8, 254, 0, 239, 0, 264, 0, 5, 0, 222], ["+", 8, 254, 0, 239, 0, 264, 0, 5, 0, 222]] | 8 | 174 |
using System;
using System.Collections.Generic;
namespace practice_csharp {
class Program {
private static Dictionary<string, int> Day =
new Dictionary<string, int>() { { "SUN", 0 }, { "SAT", 1 }, { "FRI", 2 },
{ "THU", 3 }, { "WED", 4 }, { "TUE", 5 },
... | using System;
using System.Collections.Generic;
namespace practice_csharp {
class Program {
private static Dictionary<string, int> Day =
new Dictionary<string, int>() { { "SUN", 7 }, { "SAT", 1 }, { "FRI", 2 },
{ "THU", 3 }, { "WED", 4 }, { "TUE", 5 },
... | [["-", 0, 212, 0, 230, 10, 229, 0, 229, 0, 203], ["+", 0, 212, 0, 230, 10, 229, 0, 229, 0, 203]] | 8 | 125 |
using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string str = Console.ReadLine();
int ans = 0;
if (str == "SUN")
ans = 7;
else if (str == "MON")
ans = 6;
else if (str == "THE")
ans = 5;
else if (str == "WED")
ans = 4;
else if (st... | using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string str = Console.ReadLine();
int ans = 0;
if (str == "SUN")
ans = 7;
else if (str == "MON")
ans = 6;
else if (str == "TUE")
ans = 5;
else if (str == "WED")
ans = 4;
else if (st... | [["-", 75, 57, 75, 57, 15, 16, 12, 5, 0, 222], ["+", 75, 57, 75, 57, 15, 16, 12, 5, 0, 222]] | 8 | 126 |
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, 230, 10, 229, 0, 229, 0, 5, 0, 222], ["+", 0, 230, 10, 229, 0, 229, 0, 5, 0, 222]] | 8 | 215 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Solution {
public static void Main() {
var s = Console.ReadLine();
int result = 0;
switch (s) {
case "SUN":
result = 7;
break;
case "MON":
result = 6;
break;
case "TUE":
result = 7;
... | using System;
using System.Collections.Generic;
using System.Linq;
public class Solution {
public static void Main() {
var s = Console.ReadLine();
int result = 0;
switch (s) {
case "SUN":
result = 7;
break;
case "MON":
result = 6;
break;
case "TUE":
result = 5;
... | [["-", 8, 254, 0, 239, 0, 1, 0, 11, 12, 203], ["+", 8, 254, 0, 239, 0, 1, 0, 11, 12, 203]] | 8 | 132 |
using System;
class P {
static void Main() {
var s = Console.ReadLine();
if (s == "MON")
Console.WriteLine("1");
if (s == "TUE")
Console.WriteLine("2");
if (s == "WED")
Console.WriteLine("3");
if (s == "THU")
Console.WriteLine("4");
if (s == "FRI")
Console.WriteL... | using System;
class P {
static void Main() {
var s = Console.ReadLine();
if (s == "MON")
Console.WriteLine("6");
if (s == "TUE")
Console.WriteLine("5");
if (s == "WED")
Console.WriteLine("4");
if (s == "THU")
Console.WriteLine("3");
if (s == "FRI")
Console.WriteL... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 142 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atc_0028 {
class Program {
static void Main(string[] args) {
char N = char.Parse(Console.ReadLine());
string S = Console.ReadLine();
string result = "";
for (int i = 0; i <... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atc_0028 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
string result = "";
for (int i = 0; i < S... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 74, ... | 8 | 160 |
//どうかACをお恵みくださいお願いしますお願いしますお願います何もしませんから
using System;
namespace AtCoder {
class Program {
static void Main() {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
int n = S.Length;
int[] s = new int[n];
for (int x = 0; x < n; x++) {
s[x] = ((int)S[x] + N - 64) % 26 + 64;
... | //どうかACをお恵みくださいお願いしますお願いしますお願います何もしませんから
using System;
namespace AtCoder {
class Program {
static void Main() {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
int n = S.Length;
int[] s = new int[n];
for (int x = 0; x < n; x++) {
s[x] = ((int)S[x] + N - 64) % 26 + 64;
... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203]] | 8 | 130 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp11 {
class Program {
static void Main(string[] args) {
int N = Convert.ToInt32(Console.ReadLine());
string S = Console.ReadLine();
char[] A = new char[S.Length];
in... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp11 {
class Program {
static void Main(string[] args) {
int N = Convert.ToInt32(Console.ReadLine());
string S = Console.ReadLine();
char[] A = new char[S.Length];
in... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203]] | 8 | 156 |
using System;
using System.Linq;
namespace Sample {
class Sample {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
char[] Schar = S.ToCharArray();
for (int i = 0; i < Schar.Length; i++) {
int Sint = (int)Schar[i];
Sint += N;
if... | using System;
using System.Linq;
namespace Sample {
class Sample {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string S = Console.ReadLine();
char[] Schar = S.ToCharArray();
for (int i = 0; i < Schar.Length; i++) {
int Sint = (int)Schar[i];
Sint += N;
if... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203]] | 8 | 125 |
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());
string S = Console.ReadLine();
char[] X = { 'A', 'B', 'C', 'D', 'E', 'F', '... | 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());
string S = Console.ReadLine();
char[] X = { 'A', 'B', 'C', 'D', 'E', 'F', '... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21]] | 8 | 242 |
//曜日判定
using System;
namespace tst {
class Program {
public static void Main() {
//アルファベット配列//alphas[0]="A"
string alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
string[] alphas = new string[26];
for (int i = 0; i < 26; i++) {
alphas[i] = alpha.Substring(i, 1);
}
// int読み込み
int n = int.Pa... | //曜日判定
using System;
namespace tst {
class Program {
public static void Main() {
//アルファベット配列//alphas[0]="A"
string alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
string[] alphas = new string[26];
for (int i = 0; i < 26; i++) {
alphas[i] = alpha.Substring(i, 1);
}
// int読み込み
int n = int.Pa... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203]] | 8 | 211 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine();
Dictionary<string, int> dicDay = new Dictionary<string, int>();
dicDay.Add("A", 0);
dicDay.Add("B", 1);
dicDa... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine();
Dictionary<string, int> dicDay = new Dictionary<string, int>();
dicDay.Add("A", 0);
dicDay.Add("B", 1);
dicDa... | [["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 427 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSharp_practice {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
for (int i = 0; i < s.Length; i++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSharp_practice {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
for (int i = 0; i < s.Length; i++) {
... | [["+", 0, 213, 3, 4, 0, 28, 0, 74, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 74, 39, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 74, 0, 25], ["+", 3, 4, 0, 28, 0, 74, 51, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 74, 51, 23, 0, 25]] | 8 | 126 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Console;
using static System.Math;
using static Atcoder.IO;
namespace Atcoder {
class Program {
static StreamWriter sw =
new StreamWriter(OpenStandar... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Console;
using static System.Math;
using static Atcoder.IO;
namespace Atcoder {
class Program {
static StreamWriter sw =
new StreamWriter(OpenStandar... | [["-", 0, 57, 75, 57, 75, 57, 15, 16, 12, 203], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 12, 203]] | 8 | 588 |
using System;
namespace ddcc2020 {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int t = 0;
if (int.Parse(s[0]) == 1 && int.Parse(s[0]) == 1) {
t = 400000;
}
Console.WriteLine(t + Func(int.Parse(s[0])) + Func(int.Parse(s[1])));
}
static in... | using System;
namespace ddcc2020 {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int t = 0;
if (int.Parse(s[0]) == 1 && int.Parse(s[1]) == 1) {
t = 400000;
}
Console.WriteLine(t + Func(int.Parse(s[0])) + Func(int.Parse(s[1])));
}
static in... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 155 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
string[] str =
Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得
int b = int.Parse(str[0]); //数値で受け取りたい場合は変換す... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
string[] str =
Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得
int b = int.Parse(str[0]); //数値で受け取りたい場合は変換す... | [["-", 0, 11, 12, 16, 12, 23, 0, 16, 12, 22], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 12, 22]] | 8 | 156 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AC {
class Program {
static void Main(string[] args) {
var input = ReadArrayInt();
var X = input[0];
var Y = input[1];
var ans = 0;
if (X == 1 && Y == 1) {
ans = 1000000;
} else {
ans += X == 3 ? 100000 :... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AC {
class Program {
static void Main(string[] args) {
var input = ReadArrayInt();
var X = input[0];
var Y = input[1];
var ans = 0;
if (X == 1 && Y == 1) {
ans = 1000000;
} else {
ans += X == 3 ? 100000 :... | [["-", 0, 11, 12, 41, 75, 41, 15, 16, 31, 22], ["+", 0, 11, 12, 41, 75, 41, 15, 16, 31, 22], ["-", 12, 41, 75, 41, 75, 41, 15, 16, 31, 22], ["+", 12, 41, 75, 41, 75, 41, 15, 16, 31, 22]] | 8 | 260 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.DDCC2019_qual {
class D {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.DDCC2019_qual {
class D {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | [["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107]] | 8 | 422 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
struct mint : IEquatable<mint> {
// static uint mod = 998244353;
static uint mod = 1000000007;
uint _v;
public mint(long v) : this((uint)(v % mod + mod)) {}
private mint(uint v) { _v = v < mod ?... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
struct mint : IEquatable<mint> {
// static uint mod = 998244353;
static uint mod = 1000000007;
uint _v;
public mint(long v) : this((uint)(v % mod + mod)) {}
private mint(uint v) { _v = v < mod ?... | [["+", 0, 28, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 28, 0, 16, 12, 16, 31, 23, 0, 25]] | 8 | 3,502 |
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 DDCC2020_QUALD {
static public int numberO... | 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 DDCC2020_QUALD {
static public int numberO... | [["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32]] | 8 | 903 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplAttribute = System.Runtime.CompilerServices.MethodImplA... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplAttribute = System.Runtime.CompilerServices.MethodImplA... | [["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]] | 8 | 198 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
int read = rint();
WriteLine(read * 2);
}
//各種読取
static string rstr() { return ReadLine(); }
static int ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
int read = rint();
WriteLine(read * read);
}
//各種読取
static string rstr() { return ReadLine(); }
static i... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 582 |
using System;
class Program {
static void Main(string[] args) {
string str = Console.ReadLine();
// string[] str = Console.ReadLine().Split('
// ');//2つ以上のスペース区切り入力の取得 string str = "<>>><<><<<<<>>><";
long N = Int64.Parse(str);
// string[] strA = Console.ReadLine().Split('
// ');//2つ以上のスペース区切り... | using System;
class Program {
static void Main(string[] args) {
string str = Console.ReadLine();
// string[] str = Console.ReadLine().Split('
// ');//2つ以上のスペース区切り入力の取得 string str = "<>>><<><<<<<>>><";
long N = Int64.Parse(str);
// string[] strA = Console.ReadLine().Split('
// ');//2つ以上のスペース区切... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 140], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]] | 8 | 62 |
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Numerics;
namespace abc145 {
class Program {
static void Main(string[] args) {
// Console.SetIn(new StreamReader("input.txt"));
solve_abc145A();
}
public static void solve_abc145B() {}
public static void ... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Numerics;
namespace abc145 {
class Program {
static void Main(string[] args) {
// Console.SetIn(new StreamReader("input.txt"));
solve_abc145A();
}
public static void solve_abc145B() {}
public static void ... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["-", 0, 213, 3, 4, 0, 28, 0, 41, 64, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["-", 3, 4, 0, 28, 0, 41, 75, 16, 31, 22]] | 8 | 94 |
#define Local
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 ... | 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... | [["-", 36, 36, 36, 36, 36, 36, 36, 36, 0, 208], ["-", 36, 36, 36, 36, 36, 36, 0, 208, 0, 323], ["-", 36, 36, 36, 36, 0, 208, 0, 323, 0, 22], ["-", 36, 36, 0, 208, 0, 323, 0, 22, 0, 231], ["-", 0, 208, 0, 323, 0, 22, 0, 231, 141, 22], ["-", 0, 323, 0, 22, 0, 231, 141, 22, 0, 231], ["-", 0, 22, 0, 231, 141, 22, 0, 231, 1... | 8 | 156 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using Debug = System.Diagnostics.Trace;
using SB = System.Text.StringBuilder;
using System.Numerics;
using static System.Math;
using Number = System.Int32;
namespace Program {
public class Solver {
Random rnd = new Random();... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using Debug = System.Diagnostics.Trace;
using SB = System.Text.StringBuilder;
using System.Numerics;
using static System.Math;
using Number = System.Int32;
namespace Program {
public class Solver {
Random rnd = new Random();... | [["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]] | 8 | 2,342 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using static System.Console;
using static System.Math;
using static MyIO;
using static MyUtil;
public class D {
public static void Main() => (new Solver()).Solve();
}
public class Solver {
p... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using static System.Console;
using static System.Math;
using static MyIO;
using static MyUtil;
public class D {
public static void Main() => (new Solver()).Solve();
}
public class Solver {
p... | [["-", 12, 230, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 12, 230, 3, 4, 0, 28, 0, 16, 31, 203]] | 8 | 1,094 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long[] A = new long[N];
string[] str = Console.ReadLine().Split();
for (var i = 0; i < N; i++) {
A[i] = long.Parse(str[i]);
}
long[] D1 = new long[61];... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long[] A = new long[N];
string[] str = Console.ReadLine().Split();
for (var i = 0; i < N; i++) {
A[i] = long.Parse(str[i]);
}
long[] D1 = new long[61];... | [["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 0, 11, 12, 16, 31, 16, 31, 16, 17, 109], ["+", 0, 11, 12, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22]] | 8 | 264 |
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() {
... | [["-", 0, 200, 0, 212, 0, 16, 31, 16, 31, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 203], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32]... | 8 | 2,822 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Numerics;
using static System.Math;
using static System.Array;
using static AtCoder.Tool;
namespace AtCoder {
class AC {
// const int MOD = 1000000007;
const int MOD = 998244353;
const int INF = int... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Numerics;
using static System.Math;
using static System.Array;
using static AtCoder.Tool;
namespace AtCoder {
class AC {
// const int MOD = 1000000007;
const int MOD = 998244353;
const int INF = int... | [["+", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 64, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102]] | 8 | 1,661 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.IO.Compression;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.RegularExpressions;
using Console ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.IO.Compression;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.RegularExpressions;
using Console ... | [["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 163 |
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 {
class Program {
static void Main() {
var n1 = ScanIntArray();
var n2 =... | 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 {
class Program {
static void Main() {
var n1 = ScanIntArray();
var n2 =... | [["-", 3, 4, 0, 28, 0, 41, 75, 241, 0, 33]] | 8 | 1,427 |
#define A
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using static System.Console;
using static System.Math;
class Program {
static void Main() {
#if A
FastIO.Int();
var D = FastIO.Int();
FastIO.Int();
var K = FastIO.Int();
WriteLine(D < K ? 1 : 0);
#... | #define A
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using static System.Console;
using static System.Math;
class Program {
static void Main() {
#if A
FastIO.Int();
var D = FastIO.Int();
FastIO.Int();
var K = FastIO.Int();
WriteLine(D > K ? 1 : 0);
#... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47]] | 8 | 922 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp5 {
class Program {
static void Main(string[] args) {
String S = Console.ReadLine();
String[] L = S.Split(' ');
int M1 = int.Parse(L[0]);
int D1 = int.Parse(L[1]);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp5 {
class Program {
static void Main(string[] args) {
String S = Console.ReadLine();
String[] L = S.Split(' ');
int M1 = int.Parse(L[0]);
int D1 = int.Parse(L[1]);
... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]] | 8 | 174 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace AtCoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return long.P... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace AtCoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return long.P... | [["-", 0, 28, 0, 41, 15, 16, 12, 204, 205, 22], ["+", 0, 28, 0, 41, 15, 16, 12, 204, 205, 22]] | 8 | 230 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
namespace FertiLib.Contest.G {
static class Program {
public static void Solve(Scanner cin) {
int n = cin.ReadInt();
for (int i = 0; i < 50000; i++) {
... | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
namespace FertiLib.Contest.G {
static class Program {
public static void Solve(Scanner cin) {
int n = cin.ReadInt();
for (int i = 0; i < 50000; i++) {
... | [["+", 0, 7, 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, 7, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 2,877 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static StreamWriter sw =
new StreamWriter(OpenStandardOutput()) { AutoFlush = ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static StreamWriter sw =
new StreamWriter(OpenStandardOutput()) { AutoFlush = ... | [["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["+", 0, 200, 0, 212, 0, 74, 51, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 74, 51, 23, 0, 25]] | 8 | 525 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static Libraries.Input;
namespace Libraries {
static class Input {
private static Func<string, T[]>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray();
private static Func<string, T> Convert<T>() {
Type t = ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static Libraries.Input;
namespace Libraries {
static class Input {
private static Func<string, T[]>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray();
private static Func<string, T> Convert<T>() {
Type t = ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 1,426 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
namespace B_SMTB2019 {
class MainClass {
static int[] s;
public static void Main(string[] args) {
s = Array.ConvertAll(ReadLine().Split().ToArray(), int.Parse);
double m = s[0] + 0.49... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
namespace B_SMTB2019 {
class MainClass {
static int[] s;
public static void Main(string[] args) {
s = Array.ConvertAll(ReadLine().Split().ToArray(), int.Parse);
double m = s[0] + 0.99... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 250], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 250]] | 8 | 139 |
using System;
public class Program {
static void Main() {
string line = Console.ReadLine().Trim();
var zeikomiKingaku = long.Parse(line);
var zeinukiKingaku = CalcZeinuki(zeikomiKingaku);
Console.WriteLine(zeinukiKingaku == 0 ? ":(" : zeinukiKingaku.ToString());
}
/// <summary>
/// 税抜き金額算出
... | using System;
public class Program {
static void Main() {
string line = Console.ReadLine().Trim();
var zeikomiKingaku = long.Parse(line);
var zeinukiKingaku = CalcZeinuki(zeikomiKingaku);
Console.WriteLine(zeinukiKingaku == 0 ? ":(" : zeinukiKingaku.ToString());
}
/// <summary>
/// 税抜き金額算出
... | [["+", 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], ["-", 0, 37, 0, 41, 15, 16, 31, 16, 31, 22], ["-", 0, 37, 0, 41, 15, 16, 31, 16, 17, 60], ["+", 0, 37, 0, 41, 15, 16, 31, 16, 31, 22], ["+", 0, 37, 0, 41, 15, 16, 31, 16, 17, 79]] | 8 | 122 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace B {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
Func<int, int> withoutTax = x => (int)((x / 1.08) + 0.5);
var a = (int)(withoutTax(n) * 1.08);
if (a == n) {
Console.Write... | using System;
using System.Linq;
using System.Collections.Generic;
namespace B {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
Func<int, int> withoutTax = x => (int)(Math.Ceiling(x / 1.08));
var a = (int)(withoutTax(n) * 1.08);
if (a == n) {
Console... | [["+", 8, 74, 51, 23, 0, 213, 63, 214, 205, 22], ["+", 8, 74, 51, 23, 0, 213, 63, 214, 0, 131], ["+", 8, 74, 51, 23, 0, 213, 63, 214, 141, 22], ["-", 0, 218, 8, 74, 51, 23, 0, 16, 17, 72], ["-", 0, 218, 8, 74, 51, 23, 0, 16, 12, 250]] | 8 | 116 |
using System;
class Program {
static void Main(string[] args) {
string str1 = Console.ReadLine();
int N = Int32.Parse(str1);
int X = (int)Math.Ceiling(N / 1.08);
int NR = (int)Math.Floor(X * 1.08);
if (N == NR) {
Console.WriteLine("1");
} else {
Console.WriteLine(":(");
}
}... | using System;
class Program {
static void Main(string[] args) {
string str1 = Console.ReadLine();
int N = Int32.Parse(str1);
int X = (int)Math.Ceiling(N / 1.08);
int NR = (int)Math.Floor(X * 1.08);
if (N == NR) {
Console.WriteLine(X.ToString());
} else {
Console.WriteLine(":(");
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]] | 8 | 96 |
using System;
using System.Linq;
namespace MSBPC2019 {
class B {
static void Main(string[] args) {
long N = int.Parse(Console.ReadLine());
for (int i = 0; i < N; i++) {
if (N == (long)(i * 1.08)) {
Console.WriteLine(i);
return;
}
}
Console.WriteLine(":(");
}
}
}
| using System;
using System.Linq;
namespace MSBPC2019 {
class B {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
for (double i = 0; i <= N; i++) {
// Console.WriteLine((long)(i * 1.08));
if (N == (long)(i * 1.08)) {
Console.WriteLine(i);
return;
}... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 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, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 90 |
using System;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int X_cand = (int)(N / 1.08);
int X = (int)(X_cand * 1.08);
if (X == N)
Console.WriteLine(X_cand);
else {
int X_cand2 = (int)((X_cand + 1) * 1.08);
if (X_cand2 == N)
C... | using System;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int X_cand = (int)(N / 1.08);
int X = (int)(X_cand * 1.08);
if (X == N)
Console.WriteLine(X_cand);
else {
int X_cand2 = (int)((X_cand + 1) * 1.08);
if (X_cand2 == N)
C... | [["-", 64, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 111 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
int pay = int.Parse(Console.ReadLine());
decimal rate = decimal.Parse("1.08");
for (decimal i = 0; i < pay; i++) {
decimal price = (int)(i * rate);
// in... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
int pay = int.Parse(Console.ReadLine());
decimal rate = decimal.Parse("1.08");
for (decimal i = 0; i <= pay; i++) {
decimal price = (int)(i * rate);
// i... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 122 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var waaaa = new waaaa();
waaaa.Solve();
}
}
public class waaaa {
const int MOD = 1000000007;
const int INF = 1 << 30;
const long INFL ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var waaaa = new waaaa();
waaaa.Solve();
}
}
public class waaaa {
const int MOD = 1000000007;
const int INF = 1 << 30;
const long INFL ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 819 |
using System;
class ProgramB {
static void Main(string[] args) {
//入力
string input = Console.ReadLine();
int n = int.Parse(input);
//
int x = (int)((double)n / 1.08) + 1;
int xn = (int)(x * 1.08);
if (xn == n)
Console.WriteLine(x);
else {
Console.WriteLine(":(");
}
... | using System;
class ProgramB {
static void Main(string[] args) {
//入力
string input = Console.ReadLine();
int n = int.Parse(input);
//
int x = (int)(Math.Ceiling((double)n / 1.08));
int xn = (int)(x * 1.08);
if (xn == n)
Console.WriteLine(x);
else {
Console.WriteLine(":("... | [["+", 0, 74, 51, 23, 0, 213, 63, 214, 205, 22], ["+", 0, 74, 51, 23, 0, 213, 63, 214, 0, 131], ["+", 0, 74, 51, 23, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 24], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 74, 51, 23, 0, 2... | 8 | 93 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var swr =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(swr... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var swr =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(swr... | [["-", 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, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 8, 196, 0, 57, 64, 196, 0, ... | 8 | 165 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace sumitrust2019_B {
class Program {
static void Main(string[] args) {
var x = int.Parse(Console.ReadLine());
var ans = -1;
for (int i = 0; i < x; i++) {
if (Math.Floor(i * 1.0... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace sumitrust2019_B {
class Program {
static void Main(string[] args) {
var x = int.Parse(Console.ReadLine());
var ans = -1;
for (int i = 0; i <= x; i++) {
if (Math.Floor(i * 1.... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 123 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long x = sc.NextLong();
long up = x / 100;
long down = x % 100;
long count = 0;
while (down > 0) {
if (down > 5) {
down -... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long x = sc.NextLong();
long up = x / 100;
long down = x % 100;
long count = 0;
while (down > 0) {
if (down > 5) {
down -... | [["+", 0, 200, 0, 212, 0, 41, 15, 23, 0, 24], ["-", 0, 200, 0, 212, 0, 41, 15, 16, 12, 22], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 41, 15, 23, 0, 25]] | 8 | 410 |
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 n = int.Parse(ReadLine());
bool[] dp = new bool[101000];
dp[0] = true;
for (... | 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 n = int.Parse(ReadLine());
bool[] dp = new bool[101000];
dp[0] = true;
for (... | [["-", 15, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 15, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 179 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderCs {
class Program {
static void Main() {
var Arg = int.Parse(Console.ReadLine());
if (2000 < Arg || Arg == 100)
Console.WriteLine(1);
else if (Arg < 100)
Console.WriteLine(0);
else {
var Num = Ar... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderCs {
class Program {
static void Main() {
var Arg = int.Parse(Console.ReadLine());
if (2000 < Arg || Arg == 100)
Console.WriteLine(1);
else if (Arg < 100)
Console.WriteLine(0);
else {
var Num = Ar... | [["+", 0, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 109], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 16, 31, 23, 0, 16, 31, 23, 0, 25]] | 8 | 117 |
using System;
using System.Collections;
using System.Collections.Generic;
using static Exter;
using System.Linq;
using System.Numerics;
#if DEBUG
#else
using console = System.Console;
#endif
public class App {
public static void Main(string[] args) {
var v = readarr[0];
cout = (v / 100) * 105 > v ? 1 : 0;
... | using System;
using System.Collections;
using System.Collections.Generic;
using static Exter;
using System.Linq;
using System.Numerics;
#if DEBUG
#else
using console = System.Console;
#endif
public class App {
public static void Main(string[] args) {
var v = readarr[0];
cout = (v / 100) * 105 >= v ? 1 : 0;
... | [["-", 0, 1, 0, 11, 12, 41, 15, 16, 17, 47], ["+", 0, 1, 0, 11, 12, 41, 15, 16, 17, 20]] | 8 | 1,552 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int X = int.Parse(Console.ReadLine());
if (X >= 2000) {
Console.WriteLine("1");
} else {
if (X % 100 < (X / 100) * 5) {
Console.WriteLine("1");
} else {
Co... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int X = int.Parse(Console.ReadLine());
if (X >= 2000) {
Console.WriteLine("1");
} else {
if (X % 100 <= (X / 100) * 5) {
Console.WriteLine("1");
} else {
C... | [["-", 0, 57, 75, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 19]] | 8 | 101 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AC {
class Program {
static void Main(string[] args) {
var X = ReadInt();
var div = X / 100;
var rem = X % 100;
if (rem >= div && rem <= div * 5) {
Console.WriteLine(1);
return;
}
Console.WriteLine(0);
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AC {
class Program {
static void Main(string[] args) {
var X = ReadInt();
var div = X / 100;
var rem = X % 100;
if (rem >= 0 && rem <= div * 5) {
Console.WriteLine(1);
return;
}
Console.WriteLine(0);
... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]] | 8 | 213 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
int x = int.Parse(Console.ReadLine());
bool[] dp = new bool[x + 1];
for (int i = 0; i <= 5; i++)
dp[100 + i] = true;
for (int i = 200; i <= x; i++) ... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
int x = int.Parse(Console.ReadLine());
bool[] dp = new bool[100001];
for (int i = 0; i <= 5; i++)
dp[100 + i] = true;
for (int i = 200; i <= x; i++)... | [["-", 0, 227, 39, 224, 225, 226, 0, 16, 31, 22], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203]] | 8 | 153 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
var cin = new Scanner2();
int x = cin.Int();
int num = x / 100;
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
var cin = new Scanner2();
int x = cin.Int();
int num = x / 100;
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79]] | 8 | 575 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
string s = sc.Next();
int answer = 0;
for (int i = 0; i <= 9; i++) {
for (int j = 0; j <= 9; j++) {
for ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
string s = sc.Next();
int answer = 0;
for (int i = 0; i <= 9; i++) {
for (int j = 0; j <= 9; j++) {
for ... | [["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 551 |
using System;
using System.Collections.Generic;
using System.Linq;
class TEST {
public static void Main() {
int num = int.Parse(Console.ReadLine());
string str = Console.ReadLine();
string x = str.Substring(0, num / 2 - 1);
string y = str.Substring(num / 2);
if (x == y)
Console.WriteLine("Y... | using System;
using System.Collections.Generic;
using System.Linq;
class TEST {
public static void Main() {
int num = int.Parse(Console.ReadLine());
string str = Console.ReadLine();
string x = str.Substring(0, num / 2);
string y = str.Substring(num / 2);
// Console.WriteLine(x);
// Conso... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 103 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace atcoder {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var str = Console.ReadLine();
if (n % 2 == 1)
Console.WriteLine("No");
var head = new string(st... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace atcoder {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var str = Console.ReadLine();
if (n % 2 == 1) {
Console.WriteLine("No");
return;
}
va... | [["+", 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 | 118 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static void Main(string[] args) {
try {
Solve.Answer();
} catch (Exception ex) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static void Main(string[] args) {
try {
Solve.Answer();
} catch (Exception ex) {
... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 1,025 |
using System;
class Program {
static void Main(string[] args) {
int a;
string b;
a = Int32.Parse(Console.ReadLine());
b = Console.ReadLine();
if (b.Length != a) {
return;
}
if (a % 2 != 0) {
Console.WriteLine("No");
return;
}
string strHarf = b.Substring(0, 2... | using System;
class Program {
static void Main(string[] args) {
int a;
string b;
a = Int32.Parse(Console.ReadLine());
b = Console.ReadLine();
if (b.Length != a) {
return;
}
if (a % 2 != 0) {
Console.WriteLine("No");
return;
}
string strHarf = b.Substring(0, a... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 135 |
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
const string Yes = "Yes";
const string No = "No";
const long Mod = 1000000007;
static void Main(string[] args) {
#if DEBUG
MyDebugger.Test(process, "../TextFile1.... | using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
const string Yes = "Yes";
const string No = "No";
const long Mod = 1000000007;
static void Main(string[] args) {
#if DEBUG
MyDebugger.Test(process, "../TextFile1.... | [["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 22]] | 8 | 193 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.