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.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
// https://atcoder.jp/contests/abc083/tasks/abc083_b
class Abc_083_B {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Consol... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
// https://atcoder.jp/contests/abc083/tasks/abc083_b
class Abc_083_B {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Consol... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 234 | 4 |
using System;
namespace test {
class atcorder123 {
static void Main(string[] args) {
int a, b, c;
string[] str = Console.ReadLine().Split(' ');
a = int.Parse(str[0]);
b = int.Parse(str[1]);
c = int.Parse(str[2]);
int n = 0;
for (int x = 1; x <= a; ++x) {
int p = x;
int q = p... | using System;
namespace test {
class atcorder123 {
static void Main(string[] args) {
int a, b, c;
string[] str = Console.ReadLine().Split(' ');
a = int.Parse(str[0]);
b = int.Parse(str[1]);
c = int.Parse(str[2]);
int n = 0;
for (int x = 1; x <= a; ++x) {
int p = x;
int q = p... | [["-", 64, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 22]] | 8 | 163 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main() {
var input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
var result = 0;
for (int i = 1; i < input[0] + 1; i++) {
var str = i.ToString();
var sum = 0;
for... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main() {
var input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
var result = 0;
for (int i = 1; i < input[0] + 1; i++) {
var str = i.ToString();
var sum = 0;
for... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22]] | 8 | 161 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
static void Main(string[] args) {
SolveA();
// SolveB();
// SolveC();
// SolveD();
}
private const long MOD = 1000000007;
static void SolveA() {
var o = ReadAndParseIn... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
static void Main(string[] args) {
SolveA();
// SolveB();
// SolveC();
// SolveD();
}
private const long MOD = 1000000007;
static void SolveA() {
var o = ReadAndParseIn... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]] | 8 | 507 | 4 |
using System;
using System.IO;
class Solve {
static void Main(string[] args) {
var arr = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
long X = arr[0], Y = arr[1];
var answer = 1;
while (X <= Y) {
X *= 2;
answer++;
}
var writer =
new StreamWriter(Console.OpenSt... | using System;
using System.IO;
class Solve {
static void Main(string[] args) {
var arr = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
long X = arr[0], Y = arr[1];
var answer = 0;
while (X <= Y) {
X *= 2;
answer++;
}
var writer =
new StreamWriter(Console.OpenSt... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 120 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_C {
class C083 {
static void Main(string[] args) {
string[] a0 = Console.ReadLine().Split(' ');
long X = long.Parse(a0[0]), Y = long.Parse(a0[1]);
long z = Y / X;
// int m... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_C {
class C083 {
static void Main(string[] args) {
string[] a0 = Console.ReadLine().Split(' ');
long X = long.Parse(a0[0]), Y = long.Parse(a0[1]);
long z = Y / X;
// int m... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 17, 33], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 12, 203]] | 8 | 157 | 6 |
using System;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
int x = int.Parse(input[0]);
int y = int.Parse(input[1]);
int answer = 1;
while (true) {
if (x * 2 <= y) {
x *= 2;
answer++;
} else
... | using System;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
long x = long.Parse(input[0]);
long y = long.Parse(input[1]);
int answer = 1;
while (true) {
if (x * 2 <= y) {
x *= 2;
answer++;
} el... | [["-", 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 | 98 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC083C {
class Program {
static void Main(string[] args) {
long[] input =
Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray();
long X = input[0];
long Y = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC083C {
class Program {
static void Main(string[] args) {
long[] input =
Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray();
long X = input[0];
long Y = ... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]] | 8 | 125 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace dwacon {
class Program {
static void Main(string[] args) {
var read = Console.ReadLine();
var split = read.Split(' ');
long a = long.Parse(split[0]);
long b = long.Parse(spli... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace dwacon {
class Program {
static void Main(string[] args) {
var read = Console.ReadLine();
var split = read.Split(' ');
long a = long.Parse(split[0]);
long b = long.Parse(spli... | [["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 136 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
using System.Numerics;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
// SetOut(new StreamWriter(OpenStandardOutput())... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
using System.Numerics;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
// SetOut(new StreamWriter(OpenStandardOutput())... | [["-", 0, 200, 0, 212, 0, 16, 31, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 16, 31, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 16, 31, 214, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22]] | 8 | 456 | 6 |
using System;
public class Hello {
public static void Main() {
var s = Console.ReadLine().Trim();
var sL = s.Length;
if (sL == 1)
Console.WriteLine(1);
else if (sL == 2)
Console.WriteLine(check2(s));
else {
var a = sL / 2;
if (sL % 2 == 0)
Console.WriteLine(a + che... | using System;
public class Hello {
public static void Main() {
var s = Console.ReadLine().Trim();
var sL = s.Length;
if (sL == 1)
Console.WriteLine(1);
else if (sL == 2)
Console.WriteLine(check2(s));
else {
var a = sL / 2;
if (sL % 2 == 0)
Console.WriteLine(a + che... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 303 | 2 |
using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC083D_2 {
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
int min = int.MaxValue;
for (int i = 0; i < S.Length - 1; i+... | using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC083D_2 {
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
int min = int.MaxValue;
for (int i = 0; i < S.Length - 1; i+... | [["-", 8, 196, 0, 57, 64, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 1, 0, 11, 12, 214, 205, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 214, 0, 131], ["+", 0, 57, 64, 1, 0, 11, 12, 214, 141, 22]] | 8 | 611 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class Contest {
public static void Main() {
int n;
string s;
// MyIO.ReadMulti(out n);
MyIO.ReadMulti(out s);
int ans = s.Length;
if (s.Length % 2 == 0) {
int left = 0;
int right = 0;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class Contest {
public static void Main() {
int n;
string s;
// MyIO.ReadMulti(out n);
MyIO.ReadMulti(out s);
int ans = s.Length;
if (s.Length % 2 == 0) {
int left = 0;
int right = 0;
... | [["-", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 2,131 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC083D {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
int len = S.Length;
int half = (len + 1) / 2;
int center = (len % 2 == 0) ? len / 2 ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC083D {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
int len = S.Length;
int half = (len + 1) / 2;
int center = (len % 2 == 0) ? len / 2 ... | [["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 98], ["+", 0, 52, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 52, 15, 16, 12, 16, 31, 16, 17, 72], ["+", 0, 52, 15, 16, 12, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 12, 22]] | 8 | 204 | 6 |
using System;
class Program {
private bool check(int[] s, int k) {
return (s[k] != s[k + 1]) ? true : false;
}
public static void Main() {
Program prog = new Program();
string str = Console.ReadLine();
int[] s = new int[str.Length];
for (int i = 0; i < str.Length; i++)
s[i] = (int)Char.G... | using System;
class Program {
private bool check(int[] s, int k) {
return (s[k] != s[k + 1]) ? true : false;
}
public static void Main() {
Program prog = new Program();
string str = Console.ReadLine();
int[] s = new int[str.Length];
for (int i = 0; i < str.Length; i++)
s[i] = (int)Char.G... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22]] | 8 | 210 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection.Emit;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
namespace Program {
class MainClass {
////... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection.Emit;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
namespace Program {
class MainClass {
////... | [["-", 0, 213, 3, 4, 0, 28, 0, 41, 64, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 64, 22]] | 8 | 4,086 | 2 |
using System;
namespace ABC082 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
A_RoundUptheMean.RoundUp(input);
}
}
public class A_RoundUptheMean {
public static int RoundUp(string input) {
var s = input.Split(' ');
var a = int.Parse(s[0]);
var b = int.Pa... | using System;
namespace ABC082 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
Console.WriteLine(A_RoundUptheMean.RoundUp(input));
}
}
public class A_RoundUptheMean {
public static int RoundUp(string input) {
var s = input.Split(' ');
var a = int.Parse(s[0]);... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]] | 8 | 108 | 5 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
using System.Threading.Tasks;
class Sobaya {
static void Main() {
new Sobaya().calc();
return;
}
Scanner cin;
void cal... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
using System.Threading.Tasks;
class Sobaya {
static void Main() {
new Sobaya().calc();
return;
}
Scanner cin;
void cal... | [["-", 0, 16, 31, 23, 0, 16, 31, 16, 31, 250], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 31, 250]] | 8 | 476 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
namespace AtcoderC {
class Program {
/*static void Main(string[] args)
{
}*/
// ABC132C
//全探索法
/*static void Main()
{
BigInteger N = int.Parse(Console.ReadLine(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
namespace AtcoderC {
class Program {
/*static void Main(string[] args)
{
}*/
// ABC132C
//全探索法
/*static void Main()
{
BigInteger N = int.Parse(Console.ReadLine(... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 139 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
decimal a = Convert.ToDecimal(input[0]);
decimal b = Convert.ToDecimal(input[0]);
Console.Wr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
decimal a = Convert.ToDecimal(input[0]);
decimal b = Convert.ToDecimal(input[1]);
Console.Wr... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 101 | 2 |
using System;
class Challenge {
static void Main() {
var input = Console.ReadLine().Split();
var a = int.Parse(input[0]);
var b = int.Parse(input[1]);
Console.WriteLine((a + b - 1) / 2);
}
}
| using System;
class Challenge {
static void Main() {
var input = Console.ReadLine().Split();
var a = int.Parse(input[0]);
var b = int.Parse(input[1]);
Console.WriteLine((a + b + 1) / 2);
}
}
| [["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72]] | 8 | 68 | 2 |
using System;
class Atcoder70 {
public static void Main() {
string[] input = Console.ReadLine().Split(' ');
double a = double.Parse(input[0]);
double b = double.Parse(input[1]);
double average = (a + b) / 2.0;
Console.WriteLine(Math.Round(average));
}
} | using System;
class Atcoder70 {
public static void Main() {
string[] input = Console.ReadLine().Split(' ');
double a = double.Parse(input[0]);
double b = double.Parse(input[1]);
double average = (a + b) / 2.0;
Console.WriteLine(Math.Ceiling(average));
}
} | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]] | 8 | 82 | 2 |
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[] a = System.Console.ReadLine().Split(' ');
float b = (int.Parse(a[0]) + int.Parse(a[1])) / 2f;
int c = (int... | 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[] a = System.Console.ReadLine().Split(' ');
float b = (int.Parse(a[0]) + int.Parse(a[1])) / 2f;
int c = (int... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 112 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp65 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
string t = Console.ReadLine();
var s_ = s.ToCharArray();
var t_ = t.ToCharArra... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp65 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
string t = Console.ReadLine();
var s_ = s.ToCharArray();
var t_ = t.ToCharArra... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18]] | 8 | 253 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp9 {
class Program {
static void Main(string[] args) {
char[] s = Console.ReadLine().ToArray();
char[] t = Console.ReadLine().ToArray();
Array.Sort(s);
Array.Sort(t);
string ans = null;
int Length;
int L... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp9 {
class Program {
static void Main(string[] args) {
char[] s = Console.ReadLine().ToArray();
char[] t = Console.ReadLine().ToArray();
Array.Sort(s);
Array.Sort(t);
string ans = null;
int Length;
int L... | [["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["-", 0, 57, 64, 1, 0, 11, 12, 5, 0, 222], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 222]] | 8 | 235 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
public static bool f = false, t = true;
static void Main(string[] args) {
long n = Read.Long();
long[] a = Read.longs();
long[] ans = new long[10000000];
long sum = 0;
for (int i = 0; i < n; i++) {
if (a[i] ... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
public static bool f = false, t = true;
static void Main(string[] args) {
long n = Read.Long();
long[] a = Read.longs();
long[] ans = new long[10000000];
long sum = 0;
for (int i = 0; i < n; i++) {
if (a[i] ... | [["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107]] | 8 | 535 | 2 |
using System;
using System.Linq;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var alist = Console.ReadLine().Split(' ').Select(int.Parse).OrderBy(x => x);
var good = 0;
var now = 0;
var nowcount = 0;
foreach (var a in... | using System;
using System.Linq;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var alist = Console.ReadLine().Split(' ').Select(int.Parse).OrderBy(x => x);
var good = 0;
var now = 0;
var nowcount = 0;
foreach (var a in... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203]] | 8 | 136 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
using static System.Console;
// using System.Numerics;
// using static System.Math;
class Program {
static void Main() {
// SetOut(new StreamWriter(OpenStan... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
using static System.Console;
// using System.Numerics;
// using static System.Math;
class Program {
static void Main() {
// SetOut(new StreamWriter(OpenStan... | [["-", 0, 57, 15, 16, 31, 16, 12, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 204, 205, 22]] | 8 | 930 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder02 {
class Program {
static void Main(string[] args) {
Console.WriteLine(Console.ReadLine().Split().Sum(x => int.Parse(x)));
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder02 {
class Program {
static void Main(string[] args) {
Console.WriteLine(
Console.ReadLine().ToCharArray().Sum(x => int.Parse(x.ToString())));
}
}
}
| [["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 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 | 73 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class QuestionD {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Co... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class QuestionD {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Co... | [["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22]] | 8 | 117 | 2 |
using System;
namespace ChokudaiScanner {
class MainClass {
static void Main() {
Scanner cin = new Scanner();
string s = cin.Next();
int ans = 0;
if (s[0] == '1')
ans++;
if (s[1] == '1')
ans++;
if (s[2] == '2')
ans++;
Console.WriteLine(ans);
}
}
class Scanner {
st... | using System;
namespace ChokudaiScanner {
class MainClass {
static void Main() {
Scanner cin = new Scanner();
string s = cin.Next();
int ans = 0;
if (s[0] == '1')
ans++;
if (s[1] == '1')
ans++;
if (s[2] == '1')
ans++;
Console.WriteLine(ans);
}
}
class Scanner {
st... | [["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253]] | 8 | 489 | 2 |
using System;
namespace myApp {
class Program {
static void Main() {
string s = Console.ReadLine();
s.Replace("0", "");
Console.WriteLine(s.Length);
}
}
}
| using System;
namespace myApp {
class Program {
static void Main() {
string s = Console.ReadLine();
s = s.Replace("0", "");
Console.WriteLine(s.Length);
// string[] input = Console.ReadLine().Split();
// int a= int.Parse(input[0]);
// int b=int.Parse(input[1]);
// int c = a*b;
... | [["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22]] | 8 | 48 | 2 |
using System;
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int count = 0;
if (s[0] == 1)
count++;
if (s[1] == 1)
count++;
if (s[2] == 1)
count++;
Console.WriteLine(count.ToString());
}
}
| using System;
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int count = 0;
if (s[0] == '1')
count++;
if (s[1] == '1')
count++;
if (s[2] == '1')
count++;
Console.WriteLine(count.ToString());
}
} | [["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 104]] | 8 | 79 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication4 {
class Program {
static void Main(string[] args) {
string w = Console.ReadLine();
int n = 0;
for (int i = 0; i < 3; i++) {
if (w[0] == '1')
n++... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication4 {
class Program {
static void Main(string[] args) {
string w = Console.ReadLine();
int n = 0;
for (int i = 0; i < 3; i++) {
if (w[i] == '1')
n++... | [["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22]] | 8 | 97 | 2 |
using static System.Console;
class Program {
static void Main(string[] args) {
string s = ReadLine();
int ans = 0;
foreach (char a in s) {
if (a == '0') {
ans++;
}
}
WriteLine(ans);
}
} | using static System.Console;
class Program {
static void Main(string[] args) {
string s = ReadLine();
int ans = 0;
foreach (char a in s) {
if (a == '1') {
ans++;
}
}
WriteLine(ans);
}
} | [["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253]] | 8 | 60 | 2 |
using System;
class Program {
static void Main(string[] args) {
int cnt;
int bollNum = 0;
string massNum;
massNum = Console.ReadLine();
for (cnt = 0; cnt < 3; cnt++) {
if (massNum[cnt] == 1) {
bollNum++;
}
}
Console.WriteLine(bollNum);
}
}
| using System;
class Program {
static void Main(string[] args) {
int cnt;
int bollNum = 0;
string massNum;
massNum = Console.ReadLine();
for (cnt = 0; cnt < 3; cnt++) {
if (massNum[cnt] == '1') {
bollNum++;
}
}
Console.WriteLine(bollNum);
}
}
| [["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 104]] | 8 | 73 | 2 |
using System;
class Program {
static void Main(string[] args) {
var inputLine = Console.ReadLine();
var b = 0;
foreach (var c in inputLine) {
if (inputLine[0] == '1')
b++;
}
Console.WriteLine(b);
}
} | using System;
class Program {
static void Main(string[] args) {
var inputLine = Console.ReadLine();
var b = 0;
foreach (var c in inputLine) {
if (c == '1')
b++;
}
Console.WriteLine(b);
}
} | [["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 31, 22]] | 8 | 62 | 5 |
using System;
namespace Sample101 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int counter = 0;
if (s[0] == '1')
++counter;
if (s[1] == '1')
++counter;
if (s[2] == '2')
++counter;
Console.WriteLine(counter);
}
}
} | using System;
namespace Sample101 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int counter = 0;
if (s[0] == '1')
++counter;
if (s[1] == '1')
++counter;
if (s[2] == '1')
++counter;
Console.WriteLine(counter);
}
}
} | [["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253]] | 8 | 85 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication92 {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int b = 0;
if (a == 111)
b = 3;
else if (a == 100 || a ==... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication92 {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int b = 0;
if (a == 111)
b = 3;
else if (a == 100 || a ==... | [["-", 0, 57, 75, 57, 64, 1, 0, 11, 12, 203], ["+", 0, 57, 75, 57, 64, 1, 0, 11, 12, 203], ["-", 75, 57, 75, 57, 64, 1, 0, 11, 12, 203], ["+", 75, 57, 75, 57, 64, 1, 0, 11, 12, 203]] | 8 | 131 | 4 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22]] | 8 | 577 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC081B {
class Input {
/// <summary>
/// 1行の入力を取得する
/// </summary>
/// <returns>文字列</returns>
public void String(out string s) { s = Console.ReadLine(); }
/// <summary>
/// 複数行の入力を取得
/// </summary>
/// <returns>文字列の配列</ret... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC081B {
class Input {
/// <summary>
/// 1行の入力を取得する
/// </summary>
/// <returns>文字列</returns>
public void String(out string s) { s = Console.ReadLine(); }
/// <summary>
/// 複数行の入力を取得
/// </summary>
/// <returns>文字列の配列</ret... | [["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 8 | 940 | 3 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
namespace PastQuestions {
class Program {
static void Main(string[] args) {
new Program().Solve(new Input(Console.In));
}
public void Solve(Input input) {
var n = input.ReadLine;
var a = input.ReadLongArray;
var ... | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
namespace PastQuestions {
class Program {
static void Main(string[] args) {
new Program().Solve(new Input(Console.In));
}
public void Solve(Input input) {
var n = input.ReadLine;
var a = input.ReadLongArray;
var ... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 60], ["-", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["-", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22]] | 8 | 339 | 6 |
using System;
namespace MyApp {
class Contest {
public static int Main() {
string[] ar = Console.ReadLine().Split(' ');
string[] g = Console.ReadLine().Split(' ');
int n = int.Parse(ar[0]);
int[] t = new int[n];
for (int i = 0; i < n; ++i) {
t[i] = int.Parse(g[i]);
}
int count = 0;
... | using System;
namespace MyApp {
class Contest {
public static int Main() {
string[] ar = Console.ReadLine().Split(' ');
string[] g = Console.ReadLine().Split(' ');
int n = int.Parse(ar[0]);
int[] t = new int[n];
for (int i = 0; i < n; ++i) {
t[i] = int.Parse(g[i]);
}
int count = 0;
... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79]] | 8 | 194 | 2 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] numbers =
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int count = 0;
bool cond = true;
while (cond) {
for (int i = 0; i < n; i++) {
... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] numbers =
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int count = 0;
bool cond = true;
while (cond) {
for (int i = 0; i < n; i++) {
... | [["-", 0, 52, 8, 196, 0, 57, 15, 241, 0, 111]] | 8 | 149 | 1 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Atcoder {
public class Class1 {
static void Main(string[] args) {
int count = 0;
int c = 1;
var f = 0;
var b = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split(',');
for... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Atcoder {
public class Class1 {
static void Main(string[] args) {
int count = 0;
int c = 1;
var f = 0;
var b = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split(' ');
for... | [["-", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253]] | 8 | 176 | 2 |
using System;
using System.Linq;
namespace AtCoder.ABC10 {
class Program {
static void Main(string[] args) {
var b081 = new B081();
b081.Answer();
}
}
public class B081 {
public void Answer() {
string _ = Console.ReadLine();
int[] numbers =
Console.ReadLine()
... | using System;
using System.Linq;
namespace AtCoder.ABC10 {
class Program {
static void Main(string[] args) {
var b081 = new B081();
b081.Answer();
}
}
public class B081 {
public void Answer() {
string _ = Console.ReadLine();
int[] numbers =
Console.ReadLine()
... | [["-", 8, 196, 0, 37, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 37, 0, 213, 63, 214, 141, 22]] | 8 | 193 | 2 |
using System;
class Program {
static void Main(string[] args) {
int num = Int32.Parse(Console.ReadLine());
string[] arr = Console.ReadLine().Split(' ');
int[] intarr = new int[num];
int i = 0;
foreach (string s in arr) {
intarr[i] = Int32.Parse(s);
if (intarr[i] % 2 == 1) {
C... | using System;
class Program {
static void Main(string[] args) {
int num = Int32.Parse(Console.ReadLine());
string[] arr = Console.ReadLine().Split(' ');
int[] intarr = new int[num];
int i = 0;
foreach (string s in arr) {
intarr[i] = Int32.Parse(s);
if (intarr[i] % 2 == 1) {
C... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]] | 8 | 179 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
Console.ReadLine();
var num = Console.ReadLine()
.Split()
.Select(int.Parse)
.Aggregate(0, (p, n) => p | n,
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
Console.ReadLine();
var num =
Console.ReadLine()
.Split()
.Select(int.Parse)
.Aggregate(0, (p, n) => p | n, p => Convert.ToStrin... | [["-", 8, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 8, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 104 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
var line = Console.ReadLine();
int n = int.Parse(line);
int sum = 0;
for (int i = 0; i < line.Length - 1; i++) {
sum += (n % (int)Math.Pow(10, i + 1)) / (int)M... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
var line = Console.ReadLine();
int n = int.Parse(line);
int sum = 0;
for (int i = 0; i < line.Length; i++) {
sum += (n % (int)Math.Pow(10, i + 1)) / (int)Math.... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 142 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpressi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpressi... | [["-", 0, 1, 0, 11, 12, 16, 12, 252, 0, 253], ["+", 0, 1, 0, 11, 12, 16, 12, 252, 0, 253]] | 8 | 3,860 | 2 |
#region using directives
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static System.Convert;
#endregion
class Program {
static void Main() {
int n = ToInt32(ReadLine());
int s =... | #region using directives
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static System.Convert;
#endregion
class Program {
static void Main() {
int n = ToInt32(ReadLine());
int s =... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 124 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { ABC080.C(); }
class ABC080 {
public static void A() {
var N = Read.Int();
var A = Read.Int();
var B = Read.Int();
Console.WriteLine(Math.Min(N * A, B)... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { ABC080.C(); }
class ABC080 {
public static void A() {
var N = Read.Int();
var A = Read.Int();
var B = Read.Int();
Console.WriteLine(Math.Min(N * A, B)... | [["-", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 2,073 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using static Input;
using static Util;
class Program {
static int N;
static bool[][] B;
static int[][] P;
static void INPUT() {
N = NextInt();
B = new bool [N][];
P ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using static Input;
using static Util;
class Program {
static int N;
static bool[][] B;
static int[][] P;
static void INPUT() {
N = NextInt();
B = new bool [N][];
P ... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 635 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
public class C {
public static void Main() {
int N = Int32.Parse(Console.ReadLine());
string[] args;
int[] F = new int[N];
for (int i = 0; i < N; i++) {
args = Console.ReadLine().Split(' ');
for ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
public class C {
public static void Main() {
int N = Int32.Parse(Console.ReadLine());
string[] args;
int[] F = new int[N];
for (int i = 0; i < N; i++) {
args = Console.ReadLine().Split(' ');
for ... | [["-", 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, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 456 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Linq;
using System.Diagnostics;
using System.Globalization;
using static System.Console;
using static System.Math;
namespace abc80_c {
class Program {
static void Main(string[] args) {
int n... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Linq;
using System.Diagnostics;
using System.Globalization;
using static System.Console;
using static System.Math;
namespace abc80_c {
class Program {
static void Main(string[] args) {
int n... | [["-", 0, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 12, 22]] | 8 | 331 | 2 |
using System;
using System.Linq;
class P {
static void Main() {
var i = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
var d = i[1] - i[2];
long c;
if (i[0] <= i[1])
c = 1;
if (d <= 0)
c = -1;
else
c = (((i[0] - i[1]) / d) + ((i[0] - i[1]) % d != 0 ? 1 : ... | using System;
using System.Linq;
class P {
static void Main() {
var i = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
var d = i[1] - i[2];
long c;
if (i[0] <= i[1])
c = 1;
else if (d <= 0)
c = -1;
else
c = (((i[0] - i[1]) / d) + ((i[0] - i[1]) % d != 0 ?... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]] | 8 | 148 | 1 |
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 ProblemB {
static bool SAIKI = false;
st... | 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 ProblemB {
static bool SAIKI = false;
st... | [["+", 75, 57, 75, 57, 75, 57, 75, 57, 0, 95]] | 8 | 1,704 | 1 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using static System.Console;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(ReadLine()); }
public static long[] Reads() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
publ... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using static System.Console;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(ReadLine()); }
public static long[] Reads() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
publ... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 345 | 4 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.Contracts;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Xml.Schema;
using System.Threading;
using System.Diagnostics.CodeAnalysis;
namespace AtCoder {
public static class Ex {
public stati... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.Contracts;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Xml.Schema;
using System.Threading;
using System.Diagnostics.CodeAnalysis;
namespace AtCoder {
public static class Ex {
public stati... | [["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203]] | 8 | 1,921 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace proconRCO2017 {
class Program {
static void Main(string[] args) {
// var string =
var input = Console.ReadLine();
var expected = "AKIHABARA";
var answer = "";
var inputInd... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace proconRCO2017 {
class Program {
static void Main(string[] args) {
// var string =
var input = Console.ReadLine();
var expected = "AKIHABARA";
var answer = "";
var inputInd... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19]] | 8 | 178 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
Console.WriteLine(s[1] == s[2] && s[1] == s[0] || s[1] == s[3] ? "Yes"
: "No");
}
}
| using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
Console.WriteLine((s[1] == s[2] && (s[1] == s[0] || s[1] == s[3])) ? "Yes"
: "No");
}
}
| [["+", 3, 4, 0, 28, 0, 41, 15, 23, 0, 24], ["+", 0, 41, 15, 23, 0, 16, 12, 23, 0, 24], ["+", 0, 41, 15, 23, 0, 16, 12, 23, 0, 25], ["+", 3, 4, 0, 28, 0, 41, 15, 23, 0, 25]] | 8 | 82 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace AtCoder {
class Program {
static void Main(string[] args) {
//[summary]A - Good Integer
string n = Console.ReadLine();
if (IsGoodInteger(n)) {
Console.WriteLine("Yes");
} else {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace AtCoder {
class Program {
static void Main(string[] args) {
//[summary]A - Good Integer
string n = Console.ReadLine();
if (IsGoodInteger(n)) {
Console.WriteLine("Yes");
} else {
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 148 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ziyuutyou {
class Program {
static void Main(string[] args) {
var x = Console.ReadLine();
if (x[0] == x[1] && x[1] == x[2] || x[0] == x[1] && x[2] == x[3]) {
Console.WriteLine("Yes");
} else {
Con... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ziyuutyou {
class Program {
static void Main(string[] args) {
var x = Console.ReadLine();
if (x[0] == x[1] && x[1] == x[2] || x[1] == x[2] && x[2] == x[3]) {
Console.WriteLine("Yes");
} else {
Con... | [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 113 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace At {
class Program {
static void Main(string[] args) {
var x = Read();
var list = new List<string>() { "111", "222", "333", "444", "555",
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace At {
class Program {
static void Main(string[] args) {
var x = Read();
var list = new List<string>() { "000", "111", "222", "333", "444",
... | [["+", 0, 212, 0, 230, 10, 229, 0, 5, 0, 222], ["+", 0, 212, 0, 230, 10, 229, 0, 5, 0, 62], ["+", 0, 200, 0, 212, 0, 230, 10, 229, 0, 21]] | 8 | 314 | 4 |
using System;
class A {
public static void Main() {
var s = Console.ReadLine();
Console.WriteLine(s[1] == s[2] && (s[0] == s[1] || s[0] == s[3]) ? "Yes"
: "No");
}
} | using System;
class A {
public static void Main() {
var s = Console.ReadLine();
Console.WriteLine(s[1] == s[2] && (s[1] == s[0] || s[1] == s[3]) ? "Yes"
: "No");
}
} | [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203]] | 8 | 69 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main() {
string s_data = Console.ReadLine();
string judge = string.Empty;
bool result = false;
for (int i = 0; i < 10; i++) {
foreach (var x in Enumerable.Repeat(i, 3))
judge += x;
resu... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main() {
string s_data = Console.ReadLine();
string judge = string.Empty;
bool result = false;
for (int i = 0; i < 10; i++) {
foreach (var x in Enumerable.Repeat(i, 3))
judge += x;
resu... | [["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 214, 205, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 11, 12, 214, 141, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 121 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
using System.Numerics;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
// SetOut(new StreamWriter(OpenStandardOutput())... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
using System.Numerics;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
// SetOut(new StreamWriter(OpenStandardOutput())... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 436 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
static class Program {
static void Main() {
Solve();
Console.ReadKey();
}
static void Solve() {
var N = GetInt();
var L = new int[N + 1];
L[0] = 2;
L[... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
static class Program {
static void Main() {
Solve();
Console.ReadKey();
}
static void Solve() {
var N = GetInt();
var L = new long[N + 1];
L[0] = 2;
L... | [["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]] | 8 | 742 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Atcoderrrrrrr {
static void Main(string[] args) {
string N = Console.ReadLine();
List<double> lucas = new List<double>();
for (int i = 0; i < 87; i++) {
if ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Atcoderrrrrrr {
static void Main(string[] args) {
string N = Console.ReadLine();
List<long> lucas = new List<long>();
for (int i = 0; i < 87; i++) {
if (i =... | [["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]] | 8 | 153 | 4 |
using System;
public class Hello {
public static void Main() {
int N = int.Parse(Console.ReadLine());
long[] num = new long[N];
num[0] = 1;
num[1] = 0;
for (int x = 2; x < N; x++) {
num[x] = num[x - 1] + num[x - 2];
}
Console.WriteLine(num[N - 1]);
}
}
| using System;
public class Hello {
public static void Main() {
int N = int.Parse(Console.ReadLine());
long[] num = new long[100];
num[0] = 2;
num[1] = 1;
for (int x = 2; x <= N; x++) {
num[x] = num[x - 1] + num[x - 2];
}
Console.WriteLine(num[N]);
}
}
| [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 17... | 8 | 102 | 10 |
using System;
class Program {
public static void Main() {
int N = int.Parse(Console.ReadLine());
long[] L = new long[N];
L[0] = 2;
L[1] = 1;
if (N >= 2) {
for (int i = 2; i <= N; i++) {
L[i] = L[i - 1] + L[i - 2];
}
}
Console.WriteLine(L[N]);
}
} | using System;
class Program {
public static void Main() {
int N = int.Parse(Console.ReadLine());
long[] L = new long[N + 1];
L[0] = 2;
L[1] = 1;
if (N >= 2) {
for (int i = 2; i <= N; i++) {
L[i] = L[i - 1] + L[i - 2];
}
}
Console.WriteLine(L[N]);
}
} | [["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203]] | 8 | 107 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ziyuutyou {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var str = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var list = new List<int>();
var count = 0;
var flag ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ziyuutyou {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var str = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var list = new List<int>();
var count = 0;
var flag ... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 60], ["-", 8, 196, 0, 52, 15, 16, 12, 211, 0, 146], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 15, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25]] | 8 | 183 | 6 |
using System;
class Program {
static void Main(string[] args) {
int num = int.Parse(Console.ReadLine());
string[] input = Console.ReadLine().Split(' ');
int count = 0;
bool canContinue = true;
while (canContinue) {
for (int i = 0; i < num; i++) {
int value = int.Parse(input[i]);
... | using System;
class Program {
static void Main(string[] args) {
int num = int.Parse(Console.ReadLine());
string[] input = Console.ReadLine().Split(' ');
int count = 0;
bool canContinue = true;
while (canContinue) {
for (int i = 0; i < num; i++) {
int value = int.Parse(input[i]);
... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 15, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 140 | 6 |
using System;
namespace Beginner081_B {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string[] fuge = Console.ReadLine().Split(' ');
long[] hoge = {};
for (int i = 0; i < n; i++) {
hoge[i] = long.Parse(fuge[i]);
}
int cnt = 0;
bool flag = t... | using System;
namespace Beginner081_B {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string[] fuge = Console.ReadLine().Split(' ');
long[] hoge = new long[n];
for (int i = 0; i < n; i++) {
hoge[i] = long.Parse(fuge[i]);
}
int cnt = 0;
bool... | [["-", 0, 198, 0, 200, 0, 212, 0, 229, 0, 45], ["-", 0, 198, 0, 200, 0, 212, 0, 229, 0, 46], ["+", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 70], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 212, 0, 227, 39, 224, 22... | 8 | 164 | 7 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpressi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpressi... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33],... | 8 | 4,243 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
using static System.Console;
// using System.Numerics;
// using static System.Math;
class Program {
static void Main() {
// SetOut(new StreamWriter(OpenStan... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
using static System.Console;
// using System.Numerics;
// using static System.Math;
class Program {
static void Main() {
// SetOut(new StreamWriter(OpenStan... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 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, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22]] | 8 | 430 | 6 |
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();
int k = sc.NextInt();
int[] a = sc.IntArray();
Dictionary<int, int> dic = new Dictionary<int, int>();
foreach (var... | 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();
int k = sc.NextInt();
int[] a = sc.IntArray();
Dictionary<int, int> dic = new Dictionary<int, int>();
foreach (var... | [["-", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73]] | 8 | 488 | 6 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
namespace abc81_c {
class Program {
static void Main(string[] args) {
int[] input = ReadLine().Split().Select(int.Parse).ToArray();
int[] nums = ReadLine().Split().Select(int.Parse).ToArr... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
namespace abc81_c {
class Program {
static void Main(string[] args) {
int[] input = ReadLine().Split().Select(int.Parse).ToArray();
int[] nums = ReadLine().Split().Select(int.Parse).ToArr... | [["-", 0, 57, 75, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 57, 75, 196, 0, 7, 15, 16, 17, 18]] | 8 | 221 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC080A {
class Program {
static void Main(string[] args) {
int n, a, b, p1, p2, x;
var word = Console.ReadLine().Split(' ');
n = int.Parse(word[0]);
a = int.Parse(word[1]);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC080A {
class Program {
static void Main(string[] args) {
int n, a, b, p1, p2, x;
var word = Console.ReadLine().Split(' ');
n = int.Parse(word[0]);
a = int.Parse(word[1]);
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]] | 8 | 149 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC080A {
class Program {
static void Main(string[] args) {
int n, a, b, p1, p2, x;
var word = Console.ReadLine().Split(' ');
n = int.Parse(word[0]);
a = int.Parse(word[1]);... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC080A {
class Program {
static void Main(string[] args) {
int n, a, b, p1, p2, x;
var word = Console.ReadLine().Split(' ');
n = int.Parse(word[0]);
a = int.Parse(word[1]);... | [["-", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253]] | 8 | 154 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC080A {
class Program {
static void Main(string[] args) {
int n, a, b, p1, p2, x = 0;
var word = Console.ReadLine().Split(' ');
n = int.Parse(word[0]);
a = int.Parse(word[... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC080A {
class Program {
static void Main(string[] args) {
int n, a, b, p1, p2, x = 0;
var word = Console.ReadLine().Split(' ');
n = int.Parse(word[0]);
a = int.Parse(word[... | [["-", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["-", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 31, 22], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 12, 22], ["-", 0, 195, 8, 196, 0, 57, 75, 57, 0, 25]] | 8 | 157 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class aaaa {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int A = int.Parse(input[1]);
int B = int.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class aaaa {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int A = int.Parse(input[1]);
int B = int.... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 135 | 2 |
using System;
using System.Linq;
public class Test {
public static void Main() {
int[] n = System.Console.ReadLine()
.Trim()
.Split(' ')
.Select(x => int.Parse(x))
.ToArray();
int[] m = { n[0] * n[1], n[2] };
System.Console.WriteLine(... | using System;
using System.Linq;
public class Test {
public static void Main() {
int[] n = System.Console.ReadLine()
.Trim()
.Split(' ')
.Select(x => int.Parse(x))
.ToArray();
int[] m = { n[0] * n[1], n[2] };
System.Console.WriteLine(... | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]] | 8 | 96 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc080 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int A = int.Parse(input[1]);
int B = int.Par... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc080 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int A = int.Parse(input[1]);
int B = int.Par... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 123 | 2 |
using System;
class Program {
static void Main(string[] args) {
// スペース区切りの整数の入力
string[] input = Console.ReadLine().Split(' ');
int _N = int.Parse(input[0]);
int _A = int.Parse(input[1]);
int _B = int.Parse(input[2]);
Console.WriteLine((int)Math.Max(_N * _A, _B));
}
} | using System;
class Program {
static void Main(string[] args) {
// スペース区切りの整数の入力
string[] input = Console.ReadLine().Split(' ');
int _N = int.Parse(input[0]);
int _A = int.Parse(input[1]);
int _B = int.Parse(input[2]);
// int d=0;
// if (_N*_A >_B){
// }else{
// }
Consol... | [["-", 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], ["-", 0, 28, 0, 74, 51, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]] | 8 | 95 | 5 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace AtCoder.Contest.B {
static class Program {
public static void Solve(Scanner cin) {
long n = cin.ReadLong();
long fn = 0;
long m = n;
while (m > 1) {
fn += m % 10;
... | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace AtCoder.Contest.B {
static class Program {
public static void Solve(Scanner cin) {
long n = cin.ReadLong();
long fn = 0;
long m = n;
while (m > 0) {
fn += m % 10;
... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 12, 203]] | 8 | 2,565 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999999;
public static void Main(string[] args) {
var s = Console.ReadLine();
var x = s.ToInt();
long wa = 0;
for (... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999999;
public static void Main(string[] args) {
var s = Console.ReadLine();
var x = s.ToLong();
long wa = 0;
for ... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]] | 8 | 330 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Atcoderrrrrrr {
static void Main(string[] args) {
string N = Console.ReadLine();
int obj = 0;
for (int i = 0; i < N.Length - 1; i++) {
obj += int.Parse(N[i]... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Atcoderrrrrrr {
static void Main(string[] args) {
string N = Console.ReadLine();
int obj = 0;
for (int i = 0; i < N.Length; i++) {
obj += int.Parse(N[i].ToS... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 120 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Int32;
using static System.Math;
class Program {
static void Main(string[] args) {
label:
WriteLine(hoge() ? "Yes" : "No");
}
static bool hoge() {
var org = Parse(ReadLi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Int32;
using static System.Math;
class Program {
static void Main(string[] args) {
label:
WriteLine(hoge() ? "Yes" : "No");
}
static bool hoge() {
var org = Parse(ReadLi... | [["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22]] | 8 | 122 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
public class ABC_080_B {
public static int SumDigits(int num) {
int sum = 0;
while (num != 0) {
sum += num % 10;
num /= 10;
}
return sum;
}
public static void Main() {
var n ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
public class ABC_080_B {
public static int SumDigits(int num) {
int sum = 0;
while (num != 0) {
sum += num % 10;
num /= 10;
}
return sum;
}
public static void Main() {
var n ... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 132 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace arc084_c {
class Program {
static List<int> Back(List<int> list, int max, int limitlen) {
if (list.Last() == 1) {
list.RemoveAt(list.Count - 1);
} else {
list[list.Count - 1]--;
if (list.Count != limitlen)
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace arc084_c {
class Program {
static List<int> Back(List<int> list, int max, int limitlen) {
if (list.Last() == 1) {
list.RemoveAt(list.Count - 1);
} else {
list[list.Count - 1]--;
while (list.Count != limitlen)
... | [["-", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 52, 0, 89]] | 8 | 299 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
if (K % 2 == 0) {
int[] ans = new int[N];
ans[0] = K / 2;
f... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
if (K % 2 == 0) {
int[] ans = new int[N];
ans[0] = K / 2;
f... | [["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]] | 8 | 559 | 6 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Xml.Schema;
namespace AtCoder {
public class Solver {
private readonly IInputReader _inputReader;
private readonly IOutputWriter _outputWriter;
public Solver(IInputReader inputReader, IOutp... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Xml.Schema;
namespace AtCoder {
public class Solver {
private readonly IInputReader _inputReader;
private readonly IOutputWriter _outputWriter;
public Solver(IInputReader inputReader, IOutp... | [["+", 205, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 213, 63, 214, 205, 23, 0, 25]] | 8 | 1,410 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace program {
class Program {
static void Main() {
int n = Input.ScanInt();
int m = Input.ScanInt();
Console.WriteLine(m + (m - n) * 2);
}
}
static class Input {
static public int ScanInt() { return int.Parse(Console.ReadLine(... | using System;
using System.Linq;
using System.Collections.Generic;
namespace program {
class Program {
static void Main() {
int n = Input.ScanInt();
int m = Input.ScanInt();
Console.WriteLine(n + (m - n) * 2);
}
}
static class Input {
static public int ScanInt() { return int.Parse(Console.ReadLine(... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22]] | 8 | 594 | 2 |
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) {
int n = int.Parse(System.Console.ReadLine());
int m = int.Parse(System.Console.ReadLine());
System.Console.WriteLin... | 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) {
int n = int.Parse(System.Console.ReadLine());
int m = int.Parse(System.Console.ReadLine());
System.Console.WriteLin... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]] | 8 | 93 | 2 |
using System;
class Problem {
public static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var k = int.Parse(Console.ReadLine());
var min = 0;
for (var i = 0; i < n; i++)
min = Math.Min(min * 2, min + k);
Console.WriteLine($"{min}");
}
} | using System;
class Problem {
public static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var k = int.Parse(Console.ReadLine());
var min = 1;
for (var i = 0; i < n; i++)
min = Math.Min(min * 2, min + k);
Console.WriteLine($"{min}");
}
}
| [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 92 | 2 |
using System;
using static System.Math;
class Program {
static void Main(string[] args) {
var n = long.Parse(Console.ReadLine());
var k = long.Parse(Console.ReadLine());
var count = 0L;
for (int i = 0; i < n; i++) {
count = Min(count * 2, count + k);
}
Console.WriteLine(count);
}
} | using System;
using static System.Math;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int k = int.Parse(Console.ReadLine());
var count = 1L;
for (int i = 0; i < n; i++) {
count = Min(count * 2, count + k);
}
Console.WriteLine(count);
}
} | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 93 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
static public void Main() {
var s = new Sol();
s.Solve1();
s.Solve2();
s.Solve3();
}
}
public class Sol {
// ARC076 C Dubious Document2
// https://atcoder.jp/contests/abc076/tasks/abc076_c
public void So... | using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
static public void Main() {
var s = new Sol();
s.Solve1();
s.Solve2();
s.Solve3();
}
}
public class Sol {
// ARC076 C Dubious Document2
// https://atcoder.jp/contests/abc076/tasks/abc076_c
public void So... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 64, 116, 0, 117], ["+", 0, 7, 8, 196, 0, 57, 64, 116, 0, 35], ["-", 0, 7, 8, 196, 0, 57, 64, 1, 0, 35], ["-", 8, 196, 0, 7, 8, 196, 0, 93, 0, 94]] | 8 | 340 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class MainClass {
static void Main() {
string S = ReadLine();
string T = ReadLine();
int N = S.Length;
int M = T.Length;
for (int i = N - M; i >= 0; i++) {
bool frag =... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class MainClass {
static void Main() {
string S = ReadLine();
string T = ReadLine();
int N = S.Length;
int M = T.Length;
for (int i = N - M; i >= 0; i--) {
bool frag =... | [["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 68]] | 8 | 228 | 2 |
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 = ... | [["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]] | 8 | 689 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.