buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleTest {
class Program {
static void Main(string[] args) {
int[] p = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
// Console.WriteLine(string.Join(',', p.Select(i => i.ToString())));
var n = p[0] / (... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleTest {
class Program {
static void Main(string[] args) {
long[] p =
Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray();
// Console.WriteLine(string.Join(',', p.Select(i => i.ToString())));
long n... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 138 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
static void Main(string[] args) {
string[] input_line = Console.ReadLine().Split(' ');
long a = long.Parse(input_line[0]);
long b = long.Parse(input_line... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
static void Main(string[] args) {
string[] input_line = Console.ReadLine().Split(' ');
long a = long.Parse(input_line[0]);
long b = long.Parse(input_line... | [["+", 0, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25]] | 8 | 140 |
using System;
namespace ConsoleApp2 {
class Program {
static void Main() {
var info = Console.ReadLine().Split(' ');
var range = Int32.Parse(info[0]);
var blue = Int32.Parse(info[1]);
var red = Int32.Parse(info[2]);
if (blue + red == 0) {
Console.WriteLine(0);
} else {
int time = ... | using System;
namespace ConsoleApp2 {
class Program {
static void Main() {
var info = Console.ReadLine().Split(' ');
var range = Int64.Parse(info[0]);
var blue = Int64.Parse(info[1]);
var red = Int64.Parse(info[2]);
if (blue + red == 0) {
Console.WriteLine(0);
} else {
Int64 time ... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 57, 75, 196, 0, 197, 0, 198, 39, 22]] | 8 | 149 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Hayadoki20200309A {
class Input {
/// <summary>
/// 1行の入力を取得する
/// </summary>
/// <returns>文字列</returns>
public void String(out string s) { s = Console.ReadLine(); }
/// <summary>
/// 複数行の入力を取得
/// </summary>
/// <returns>文... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Hayadoki20200309A {
class Input {
/// <summary>
/// 1行の入力を取得する
/// </summary>
/// <returns>文字列</returns>
public void String(out string s) { s = Console.ReadLine(); }
/// <summary>
/// 複数行の入力を取得
/// </summary>
/// <returns>文... | [["-", 0, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 16, 12, 213, 3, 4, 0, 28, 0, 22]] | 8 | 901 |
using System;
using System.Linq;
namespace CSharp {
class Program {
static void Main() {
var input = Console.ReadLine().Split().Select(long.Parse).ToArray();
var N = input[0];
var A = input[1];
var B = input[2];
var result = A * N / (A + B) + Math.Min(A, N % (A + B));
Console.WriteLine(resul... | using System;
using System.Linq;
namespace CSharp {
class Program {
static void Main() {
var input = Console.ReadLine().Split().Select(long.Parse).ToArray();
var N = input[0];
var A = input[1];
var B = input[2];
var result = N / (A + B) * A + Math.Min(A, N % (A + B));
Console.WriteLine(resul... | [["-", 0, 212, 0, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 212, 0, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 48], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22]] | 8 | 106 |
using static System.Console;
using System;
namespace Main {
class Program {
static void Main(string[] args) {
string line = ReadLine();
string[] l = line.Split(' ');
long N = int.Parse(l[0]);
long A = int.Parse(l[1]);
long B = int.Parse(l[2]);
long tmp1 = N / (A + B);
long tmp2 = N % (A +... | using static System.Console;
using System;
namespace Main {
class Program {
static void Main(string[] args) {
string line = ReadLine();
string[] l = line.Split(' ');
long N = long.Parse(l[0]);
long A = long.Parse(l[1]);
long B = long.Parse(l[2]);
long tmp1 = N / (A + B);
long tmp2 = N % (... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]] | 8 | 126 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
public static void Main(string[] args) {
var vals =
Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
if (vals[0] > vals[1] + vals[2]) {
var tmp = vals[0] % (vals[1] + vals[2]);
var... | using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
public static void Main(string[] args) {
var vals =
Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
if (vals[0] > vals[1] + vals[2]) {
var tmp = vals[0] % (vals[1] + vals[2]);
var... | [["-", 0, 41, 64, 16, 12, 16, 12, 74, 39, 199], ["+", 0, 41, 64, 16, 12, 16, 12, 74, 39, 199], ["-", 0, 41, 75, 16, 12, 16, 12, 74, 39, 199], ["+", 0, 41, 75, 16, 12, 16, 12, 74, 39, 199]] | 8 | 198 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
long[] nab = Console.ReadLine().Split().Select(long.Parse).ToArray();
long n = nab[0];
long a = nab[1];
long b = nab[2];
lon... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
long[] nab = Console.ReadLine().Split().Select(long.Parse).ToArray();
long n = nab[0];
long a = nab[1];
long b = nab[2];
lon... | [["-", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 31, 22], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 17, 33], ["-", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25]] | 8 | 170 |
using System;
using static System.Console;
using System.Linq;
namespace AC {
public class shiokara {
static void Main(string[] args) {
int[] n = new int[3];
n = ReadLine().Split(' ').Select(int.Parse).ToArray();
if (n[1] == 0) {
WriteLine(0);
return;
} else if (n[2] == 0) {
WriteLi... | using System;
using static System.Console;
using System.Linq;
namespace AC {
public class shiokara {
static void Main(string[] args) {
long[] n = new long[3];
n = ReadLine().Split(' ').Select(long.Parse).ToArray();
if (n[1] == 0) {
WriteLine(0);
return;
} else if (n[2] == 0) {
Writ... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 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, 19... | 8 | 199 |
using System;
class Program {
static void Main(string[] args) {
var line = Console.ReadLine();
var list = line.Split(' ');
var sum = long.Parse(list[0]);
var blue = long.Parse(list[1]);
var red = long.Parse(list[2]);
if (blue != 0 && red != 0) {
var perfectSet = sum / (blue + red);
... | using System;
class Program {
static void Main(string[] args) {
var line = Console.ReadLine();
var list = line.Split(' ');
var sum = long.Parse(list[0]);
var blue = long.Parse(list[1]);
var red = long.Parse(list[2]);
if (blue != 0 || red != 0) {
var perfectSet = sum / (blue + red);
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106]] | 8 | 167 |
using System;
using System.Collections.Generic;
using System.Linq;
public class ABC158_B {
public static void Main() {
int n = 0, b = 0, r = 0, result;
InLine(ref n, ref b, ref r);
if (n < b)
result = n;
else if (n < b + r)
result = b;
else {
int c = n / (b + r), p = n % (b + r... | using System;
using System.Collections.Generic;
using System.Linq;
public class ABC158_B {
public static void Main() {
long n = 0, b = 0, r = 0, result;
InLine(ref n, ref b, ref r);
if (n < b)
result = n;
else if (n < b + r)
result = b;
else {
long c = n / (b + r), p = n % (b +... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 75, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["+", 75, 57, 75, 196, 0, 197, 0, 198, 39, 199]] | 8 | 2,853 |
using System;
using System.Linq;
public class ABC158_B {
private static void Main(string[] args) {
var input = ReadIntsAsArray();
var n = input[0];
var a = input[1];
var b = input[2];
var quotient = n / (a + b);
var remainder = n % (a + b);
var answer = quotient * a + Math.Min(a, remain... | using System;
using System.Linq;
public class ABC158_B {
private static void Main(string[] args) {
var input = ReadLongsAsArray();
var n = input[0];
var a = input[1];
var b = input[2];
var quotient = n / (a + b);
var remainder = n % (a + b);
var answer = quotient * a + Math.Min(a, remai... | [["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 0, 235, 8, 201, 0, 195, 39, 224, 39, 199], ["+", 0, 235, 8, 201, 0, 195, 39, 224, 39, 199], ["-", 0, 208, 0, 235, 8, 201, 0, 195, 141, 22], ["+", 0, 208, 0, 235, 8, 201, 0, 195, 141, 22], ["-", 0, 28, 0, 218, 8, 213, 63... | 8 | 140 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ABC157 {
public class B {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var c = inputs[0];
var between = inputs[1] + inputs[2];
var answer = c /... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ABC157 {
public class B {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
var c = inputs[0];
var between = inputs[1] + inputs[2];
var answer = c ... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]] | 8 | 121 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999999;
public static void Main(string[] args) {
var p = Input();
var n = p[0].ToLong();
var a = p[1].ToLong();
va... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999999;
public static void Main(string[] args) {
var p = Input();
var n = p[0].ToLong();
var a = p[1].ToLong();
va... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 369 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Library;
using static Library.Input;
namespace AtCoderTemplate {
class ProgramB {
static void Main() {
int N = NextInt, A = NextInt, B = NextInt;
int value = (N / (A + B)) * A;
N = N % (A + B);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Library;
using static Library.Input;
namespace AtCoderTemplate {
class ProgramB {
static void Main() {
long N = NextLong, A = NextLong, B = NextLong;
long value = (N / (A + B)) * A;
N = N % (A +... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22]] | 8 | 1,487 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Numerics;
namespace AtCoderWorkspace {
public class Solver {
public void Solve() {
var cin = new Scanner();
var n = cin.nextLong();
var a = cin.nextLong();
v... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Numerics;
namespace AtCoderWorkspace {
public class Solver {
public void Solve() {
var cin = new Scanner();
var n = cin.nextLong();
var a = cin.nextLong();
v... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22]] | 8 | 621 |
using System;
using CompLib.Util;
public class Program {
public void Solve() {
var sc = new Scanner();
int n = sc.NextInt();
long a = sc.NextInt();
long b = sc.NextInt();
if (a + b == 0) {
Console.WriteLine(0);
return;
}
long d = n / (a + b);
long ans = d * a;
long ... | using System;
using CompLib.Util;
public class Program {
public void Solve() {
var sc = new Scanner();
var n = sc.NextLong();
long a = sc.NextLong();
long b = sc.NextLong();
if (a + b == 0) {
Console.WriteLine(0);
return;
}
long d = n / (a + b);
long ans = d * a;
lo... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]] | 8 | 449 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
class program {
static public int mod = 1000000007;
static void Main() {
var z = inta();
var a = new int[2];
var b = new int[2];
a[1] ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
class program {
static public int mod = 1000000007;
static void Main() {
var z = inta();
var a = new int[2];
var b = new int[2];
a[0] ... | [["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203]] | 8 | 864 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Sample {
class Sample {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
double A = double.Parse(str[0]);
double B = double.Parse(str[1]);
for (int i = 1; i <= 1250; i++) {
if (((int)(i *... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Sample {
class Sample {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
double A = double.Parse(str[0]);
double B = double.Parse(str[1]);
for (int i = 1; i <= 1250; i++) {
if (((int)(i *... | [["-", 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], ["-", 3, 4, 0, 28, 0, 16, 31, 74, 51, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 250], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 154 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel.Design;
using System.Globalization;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threadin... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel.Design;
using System.Globalization;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threadin... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 282 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace atcoder {
class Program {
static void Main(string[] args) {
var ab =
Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray();
var a = (int)(Math.Ceiling((double)ab[0] * 12.5));
var b ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace atcoder {
class Program {
static void Main(string[] args) {
var ab =
Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray();
var a = (int)(Math.Ceiling((double)ab[0] * 12.5));
var b ... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 180 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using stat... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 2,663 |
using System;
using System.Text;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using static System.Array;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
// var N = long.Parse(Console.ReadLine());
var NKM =
Console.ReadLine().Split(' ').Selec... | using System;
using System.Text;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using static System.Array;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
// var N = long.Parse(Console.ReadLine());
var NKM =
Console.ReadLine().Split(' ').Selec... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 157 |
using System;
using System.Text;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using static System.Array;
namespace DigitsParades {
class Programk {
static void Main(string[] args) {
var AB =
Console.ReadLine().Split(' ').Select(x => double.Parse(x)).ToArray();
var A... | using System;
using System.Text;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using static System.Array;
namespace DigitsParades {
class Programk {
static void Main(string[] args) {
var AB =
Console.ReadLine().Split(' ').Select(x => double.Parse(x)).ToArray();
var A... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 582 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
namespace AtCoder {
class Program {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
static public List<long> S... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
namespace AtCoder {
class Program {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
static public List<long> S... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 206 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
long[] inp =
Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray();
long a, b;
a = inp[0];
b = inp[1];
long ans = -1;
for (int i = 1; i < 101; i++) {
if (Math.Floor(i * 0.08) == a ... |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
long[] inp =
Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray();
long a, b;
a = inp[0];
b = inp[1];
long ans = -1;
for (int i = 1; i < 2001; i++) {
if (Math.Floor(i * 0.08) == ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 137 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class QuestionC {
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 QuestionC {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Co... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 212 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class C {
public static void Main() {
var ab = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int a = ab[0];
int b = ab[1];
int i;
for (i = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class C {
public static void Main() {
var ab = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int a = ab[0];
int b = ab[1];
int i;
for (i = ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 156 |
using System;
namespace TaxIncrease {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine().Split(' ');
int eight = int.Parse(str[0]);
double ten = int.Parse(str[1]);
int kotae = -1;
for (int i = 0; i < 1000; i++) {
if ((Math.Floor(i * 0.08) == eight) && (Math.Floor... | using System;
namespace TaxIncrease {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine().Split(' ');
int eight = int.Parse(str[0]);
double ten = int.Parse(str[1]);
int kotae = -1;
for (int i = 0; i <= 1000; i++) {
if ((Math.Floor(i * 0.08) == eight) && (Math.Floo... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 133 |
using System;
class Test {
public static void Main() {
var str = Console.ReadLine().Split(' ');
double tax8 = double.Parse(str[0]);
double tax10 = double.Parse(str[1]);
double val8 = Math.Ceiling(tax8 / 0.08);
double val10 = Math.Ceiling(tax8 / 0.1);
if (val8 >= val10) {
if (Math.Floor... | using System;
class Test {
public static void Main() {
var str = Console.ReadLine().Split(' ');
double tax8 = double.Parse(str[0]);
double tax10 = double.Parse(str[1]);
double val8 = Math.Ceiling(tax8 / 0.08);
double val10 = Math.Ceiling(tax10 / 0.1);
if (val8 >= val10) {
if (Math.Floo... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22]] | 8 | 158 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/// <summary>
/// todo:
/// https://atcoder.jp/contests/abc158/tasks/abc158_c
/// </summary>
namespace ABC_Training {
public class Program {
static void Main(string[] args) {
var ab = Console.Read... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/// <summary>
/// todo:
/// https://atcoder.jp/contests/abc158/tasks/abc158_c
/// </summary>
namespace ABC_Training {
public class Program {
static void Main(string[] args) {
var ab = Console.Read... | [["-", 0, 210, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 210, 12, 213, 3, 4, 0, 28, 0, 203]] | 8 | 164 |
using System;
namespace A {
class Program {
static void Main(string[] args) {
var A = Console.ReadLine().Split(' ');
var a = int.Parse(A[0]);
var b = int.Parse(A[1]);
for (int i = 0; i < 1500; i++) {
if (a == Math.Floor(i / 0.08) && b == Math.Floor(i / 0.1)) {
Console.WriteLine(i);
... | using System;
namespace A {
class Program {
static void Main(string[] args) {
var A = Console.ReadLine().Split(' ');
var a = int.Parse(A[0]);
var b = int.Parse(A[1]);
for (int i = 0; i < 1500; i++) {
if (a == Math.Floor(i * 0.08) && b == Math.Floor(i * 0.1)) {
Console.WriteLine(i);
... | [["-", 12, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 132 |
using System;
namespace ABC158c {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine().Split(' ');
int a = int.Parse(s[0]);
int b = int.Parse(s[1]);
for (int i = 1; i <= 100; i++) {
int g1 = (int)Math.Floor(i * 0.08);
if (g1 != a) {
continue;
}
... | using System;
namespace ABC158c {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine().Split(' ');
int a = int.Parse(s[0]);
int b = int.Parse(s[1]);
for (int i = 1; i <= 1009; i++) {
int g1 = (int)Math.Floor(i * 0.08);
if (g1 != a) {
continue;
}
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 147 |
using System;
using static System.Console;
using System.Linq;
namespace AC {
public class shiokara {
static void Main(string[] args) {
int[] n = ReadLine().Split(' ').Select(int.Parse).ToArray();
int[] b = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
for (int i = 0; i < 10; i++) {
b[i] += n[1] * 10... | using System;
using static System.Console;
using System.Linq;
namespace AC {
public class shiokara {
static void Main(string[] args) {
int[] n = ReadLine().Split(' ').Select(int.Parse).ToArray();
int[] b = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
for (int i = 0; i < 10; i++) {
b[i] += n[1] * 10... | [["-", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22]] | 8 | 201 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 520 |
using System;
using System.Linq;
class Program {
public static void Main() {
int[] input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
double a = input[0] * 100 / 8, b = input[1] * 10;
if (a > b) {
if (a < (input[1] + 1) * 10) {
Console.WriteLine(Math.Ceiling(... | using System;
using System.Linq;
class Program {
public static void Main() {
double[] input =
Console.ReadLine().Split(' ').Select(x => double.Parse(x)).ToArray();
double a = input[0] * 100 / 8, b = input[1] * 10;
if (a > b) {
if (a < (input[1] + 1) * 10) {
Console.WriteLine(Math.Ce... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199]] | 8 | 168 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
input_iter = LazyLoadAllLines();
//------------------------------------------------//
// var n = Read<long>();
// var s = Read();
// var als = Read<long>(n);
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
input_iter = LazyLoadAllLines();
//------------------------------------------------//
// var n = Read<long>();
// var s = Read();
// var als = Read<long>(n);
... | [["-", 0, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 12, 250], ["+", 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]] | 8 | 666 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace CsharpSpiral {
partial class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = true };
Console.SetOut(sw);
new Program()... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace CsharpSpiral {
partial class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = true };
Console.SetOut(sw);
new Program()... | [["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203]] | 8 | 646 |
using System;
using System.Linq;
using System.Collections.Generic;
public class AtCoderC {
static void Main() {
long a;
long b;
{
var line = Console.ReadLine();
var words = line.Split(' ');
a = long.Parse(words[0]);
b = long.Parse(words[1]);
}
int answer = -1;
for (in... | using System;
using System.Linq;
using System.Collections.Generic;
public class AtCoderC {
static void Main() {
long a;
long b;
{
var line = Console.ReadLine();
var words = line.Split(' ');
a = long.Parse(words[0]);
b = long.Parse(words[1]);
}
int answer = -1;
for (in... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 149 |
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
#if DEBUG
MyDebugger.Test(process, "../TextFile1.txt");
// MyDebugger.Test(process, "../TextFile2.txt");
// MyDebugger.MakeTes... | using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
#if DEBUG
MyDebugger.Test(process, "../TextFile1.txt");
// MyDebugger.Test(process, "../TextFile2.txt");
// MyDebugger.MakeTes... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 192 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using static System.Console;
using static System.Convert;
using static System.Math;
using static Template;
using Pi = Pair<int, i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using static System.Console;
using static System.Convert;
using static System.Math;
using static Template;
using Pi = Pair<int, i... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 1,558 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace D {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace D {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
... | [["+", 0, 212, 0, 230, 3, 4, 0, 28, 0, 22], ["-", 0, 212, 0, 41, 64, 16, 31, 16, 12, 22], ["-", 0, 200, 0, 212, 0, 41, 64, 16, 17, 72], ["-", 0, 212, 0, 41, 75, 16, 31, 16, 17, 72], ["-", 0, 212, 0, 41, 75, 16, 31, 16, 12, 22]] | 8 | 382 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var bodystr = Console.ReadLine();
var bodyArray = bodystr.Split();
var countNum = int.Parse(Console.ReadLine());
var endArray = new string[200000];
var firstArray = new string[2000... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var bodystr = Console.ReadLine();
var bodyArray = bodystr.ToCharArray();
var countNum = int.Parse(Console.ReadLine());
var endArray = new string[200000];
var firstArray = new strin... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]] | 8 | 338 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var sol = new Solve();
sol.Exec();
}
}
class Solve {
public void Exec() {
var S = Console.ReadLine().ToCharArray();
var Q = int.Parse(Console.ReadLine());
var first = new Stac... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var sol = new Solve();
sol.Exec();
}
}
class Solve {
public void Exec() {
var S = Console.ReadLine().ToCharArray();
var Q = int.Parse(Console.ReadLine());
var first = new Stac... | [["-", 0, 210, 8, 1, 0, 213, 63, 214, 205, 22], ["+", 0, 210, 8, 1, 0, 213, 63, 214, 205, 22]] | 8 | 257 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplAttribute = System.Runtime.Compi... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplAttribute = System.Runtime.Compi... | [["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 79], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["-", 12, 227, 39, 224, 225, 226, 0, 16, ... | 8 | 963 |
using System;
using System.Numerics;
using System.Linq;
using System.Collections.Generic;
using System.Text;
class ProgramD {
static void Main(string[] args) {
//入力
string s = Console.ReadLine();
StringBuilder f = new StringBuilder();
StringBuilder l = new StringBuilder();
int n = int.Parse(Conso... | using System;
using System.Numerics;
using System.Linq;
using System.Collections.Generic;
using System.Text;
class ProgramD {
static void Main(string[] args) {
//入力
string s = Console.ReadLine();
StringBuilder f = new StringBuilder();
StringBuilder l = new StringBuilder();
int n = int.Parse(Conso... | [["-", 0, 57, 64, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 141, 22], ["-", 64, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["-", 0, 57, 64, 1, 0, 213, 3, 4, 0, 21]] | 8 | 301 |
using System;
using System.Text;
using System.Linq;
public class ABC158_D {
private static void Main(string[] args) {
var s = ReadStr();
var q = ReadInt();
var isReversed = false;
var sbHead = new StringBuilder("");
var sbTail = new StringBuilder("");
for (int i = 0; i < q; i++) {
var... | using System;
using System.Text;
using System.Linq;
public class ABC158_D {
private static void Main(string[] args) {
var s = ReadStr();
var q = ReadInt();
var isReversed = false;
var sbHead = new StringBuilder("");
var sbTail = new StringBuilder("");
for (int i = 0; i < q; i++) {
var... | [["-", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22]] | 8 | 353 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
internal static class CR {
public static string GetText() { return Console.ReadLine(); }
public static List<string> GetTexts() {
return Console.ReadLine().Split(' ').ToList();
}
public static lon... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
internal static class CR {
public static string GetText() { return Console.ReadLine(); }
public static List<string> GetTexts() {
return Console.ReadLine().Split(' ').ToList();
}
public static lon... | [["+", 0, 37, 0, 16, 31, 16, 12, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 23, 0, 41, 15, 22], ["+", 0, 16, 31, 16, 12, 23, 0, 41, 0, 101], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["+", 0, 16, 31, 16, 12, 23, 0, 41, 0, 102], ["+", 0, 16, 31, 16, 12, 23, 0, 41, 75, 22]] | 8 | 376 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderD {
static void Main() {
string s = Console.ReadLine();
int q = int.Parse(Console.ReadLine());
bool isReverse = false;
StringBuilder sbAfter = new StringBuilder();
StringBuilder sbBefore = n... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderD {
static void Main() {
string s = Console.ReadLine();
int q = int.Parse(Console.ReadLine());
bool isReverse = false;
StringBuilder sbAfter = new StringBuilder();
StringBuilder sbBefore = n... | [["+", 0, 11, 12, 16, 31, 16, 12, 213, 63, 22], ["+", 12, 16, 31, 16, 12, 213, 3, 4, 0, 24], ["+", 12, 16, 31, 16, 12, 213, 3, 4, 0, 25]] | 8 | 290 |
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 ABC158D {
static public int numberOfRandom... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static System.Math;
using System.Text;
using System.Threading;
using System.Globalization;
using System.Runtime.CompilerServices;
using Library;
namespace Program {
public static class ABC158D {
static public int numberOfRandom... | [["-", 75, 196, 0, 57, 15, 16, 12, 241, 0, 111], ["+", 75, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 75, 196, 0, 57, 15, 16, 12, 23, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 15, 241, 0, 111]] | 8 | 1,615 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush();
}
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush();
}
... | [["+", 12, 23, 0, 16, 12, 16, 12, 252, 0, 104]] | 8 | 1,325 |
using System;
namespace ABC_157_A_Csharp_ver {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
if (N % 2 == 0)
Console.WriteLine(N / 2);
if (N % 2 != 0)
Console.WriteLine(N % 2 + 1);
Console.ReadKey();
}
}
} | using System;
namespace ABC_157_A_Csharp_ver {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
if (N % 2 == 0)
Console.WriteLine(N / 2);
if (N % 2 != 0)
Console.WriteLine(N % 2 + N / 2);
Console.ReadKey();
}
}
} | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 17, 85], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 12, 203]] | 8 | 78 |
using System;
class Progarm {
static void Main() {
var n = Int32.Parse(Console.ReadLine());
int ans;
if (n / 2 != 0) {
ans = n / 2 + 1;
} else {
ans = n / 2;
}
Console.WriteLine(ans);
}
} | using System;
class Progarm {
static void Main() {
var n = Int32.Parse(Console.ReadLine());
int ans;
if (n % 2 == 1) {
ans = n / 2 + 1;
} else {
ans = n / 2;
}
Console.WriteLine(ans);
}
} | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 85], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 65 |
using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var line = Console.ReadLine();
var i = int.Parse(line);
Console.WriteLine(i / 2);
}
}
} | using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var line = Console.ReadLine();
var i = int.Parse(line);
Console.WriteLine((i + 1) / 2);
}
}
}
| [["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25]] | 8 | 50 |
using System;
class Program {
static void Main() {
String[] arr = Console.ReadLine().Split();
double A = double.Parse(arr[0]);
Console.WriteLine(Math.Ceiling(A));
}
} | using System;
class Program {
static void Main() {
String[] arr = Console.ReadLine().Split();
double A = double.Parse(arr[0]);
Console.WriteLine(Math.Ceiling(A / 2));
}
} | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 54 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
Console.WriteLine(a / 2 + 1);
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
Console.WriteLine(a / 2 + a % 2);
}
}
}
| [["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 17, 109], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 12, 203]] | 8 | 71 |
using System;
namespace Atcorder {
class Program {
static void Main(string[] args) {
double N = double.Parse(Console.ReadLine());
double a = N / 4;
Console.WriteLine(Math.Ceiling(a));
}
}
}
| using System;
namespace Atcorder {
class Program {
static void Main(string[] args) {
double N = double.Parse(Console.ReadLine());
double a = N / 2;
Console.WriteLine(Math.Ceiling(a));
}
}
}
| [["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 55 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
Console.WriteLine((N - (N % 2)) / 2);
}
} | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
Console.WriteLine((N + (N % 2)) / 2);
}
} | [["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72]] | 8 | 61 |
using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
double a, b, c;
a = double.Parse(
Console.ReadLine()); //標準入力
// string[] str = Console.ReadLine().Split('
// ');//2つ以上のスペース区切り入力の取得 b =
... | using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
double a;
a = double.Parse(
Console.ReadLine()); //標準入力
// string[] str = Console.ReadLine().Split('
// ');//2つ以上のスペース区切り入力の取得 b =
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]] | 8 | 65 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atc_0027 {
class Program {
static void Main(string[] args) {
List<string> strs = new List<string>();
for (int i = 0; i < 3; i++) {
strs.Add(Console.ReadLine());
}
int ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atc_0027 {
class Program {
static void Main(string[] args) {
List<string> strs = new List<string>();
for (int i = 0; i < 3; i++) {
strs.Add(Console.ReadLine());
}
int ... | [["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 590 |
using System;
namespace q1 {
class q2 {
static void Main() {
string[] nyuuryoku = Console.ReadLine().Split();
int sanka = int.Parse(nyuuryoku[0]);
int Rating = int.Parse(nyuuryoku[1]);
if (sanka < 10) {
Console.WriteLine(Rating - 100 * (10 - sanka));
} else {
Console.WriteLine(Rating);... | using System;
namespace q1 {
class q2 {
static void Main() {
string[] nyuuryoku = Console.ReadLine().Split();
int sanka = int.Parse(nyuuryoku[0]);
int Rating = int.Parse(nyuuryoku[1]);
if (sanka < 10) {
Console.WriteLine(Rating + 100 * (10 - sanka));
} else {
Console.WriteLine(Rating);... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]] | 8 | 92 |
using System;
using System.Linq;
namespace AtCoderPractice0704 {
class MainClass {
public static void Main(string[] args) {
int[] NR =
Console.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
int N = NR[0];
int R = NR[1];
int ans;
if (N >= 10) {
ans = R;
} else {
... | using System;
using System.Linq;
namespace AtCoderPractice0704 {
class MainClass {
public static void Main(string[] args) {
long[] NR =
Console.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray();
long N = NR[0];
long R = NR[1];
long ans;
if (N >= 10) {
ans = R;
} else ... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 12, 16, 12, 16, 12, 2... | 8 | 115 |
using System;
namespace abc156_a {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int k = int.Parse(input[0]);
int r = int.Parse(input[1]);
if (k >= 10) {
Console.WriteLine(r);
} else {
Console.WriteLine(r - 100 * (10 - k));
}
... | using System;
namespace abc156_a {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int k = int.Parse(input[0]);
int r = int.Parse(input[1]);
if (k >= 10) {
Console.WriteLine(r);
} else {
Console.WriteLine(r + 100 * (10 - k));
}
... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]] | 8 | 105 |
using System;
namespace Sample {
class Sample {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int R = int.Parse(input[1]);
if (N >= 10) {
Console.WriteLine(R);
} else {
int nr = R + 1000 - 10 * N;
Console.WriteLine(... | using System;
namespace Sample {
class Sample {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int R = int.Parse(input[1]);
if (N >= 10) {
Console.WriteLine(R);
} else {
int nr = R + 1000 - 100 * N;
Console.WriteLine... | [["-", 0, 200, 0, 212, 0, 16, 12, 16, 31, 203], ["+", 0, 200, 0, 212, 0, 16, 12, 16, 31, 203]] | 8 | 102 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static void Main(string[] args) {
try {
Solve.Answer();
} catch (Exception ex) {
WriteLine(ex.ToString());
}
}
}
public class Solve ... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static void Main(string[] args) {
try {
Solve.Answer();
} catch (Exception ex) {
WriteLine(ex.ToString());
}
}
}
public class Solve ... | [["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 25]] | 8 | 469 |
using System;
using static System.Console;
using System.Linq;
namespace Main {
class main {
static void Main(string[] args) {
int[] tmp = ReadLine().Split(' ').Select(int.Parse).ToArray();
WriteLine(tmp[0] >= 10 ? tmp[1] : tmp[1] - 100 * (10 - tmp[0]));
}
}
} | using System;
using static System.Console;
using System.Linq;
namespace Main {
class main {
static void Main(string[] args) {
int[] tmp = ReadLine().Split(' ').Select(int.Parse).ToArray();
WriteLine(tmp[0] >= 10 ? tmp[1] : tmp[1] + 100 * (10 - tmp[0]));
}
}
} | [["-", 3, 4, 0, 28, 0, 41, 75, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 17, 72]] | 8 | 91 |
namespace AtCoderCS
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Linq;
using static System.Console;
using static System.Math;
using static Macro;
using static Library;
class Program
{
void Solve()
{
... | namespace AtCoderCS
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Linq;
using static System.Console;
using static System.Math;
using static Macro;
using static Library;
class Program
{
void Solve()
{
... | [["-", 0, 16, 12, 16, 12, 23, 0, 16, 12, 22], ["+", 0, 16, 12, 16, 12, 23, 0, 16, 12, 22]] | 8 | 895 |
using System;
class test {
public static void Main() {
var str = Console.ReadLine().Split(' ');
if (int.Parse(str[0]) >= 10) {
Console.Write(str[1]);
} else {
Console.Write(int.Parse(str[1]) - (100 * (10 - int.Parse(str[0]))));
}
}
} | using System;
class test {
public static void Main() {
var str = Console.ReadLine().Split(' ');
if (int.Parse(str[0]) >= 10) {
Console.Write(str[1]);
} else {
Console.Write(int.Parse(str[1]) + (100 * (10 - int.Parse(str[0]))));
}
}
} | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]] | 8 | 93 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_156 {
class A {
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_156 {
class A {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | [["-", 3, 4, 0, 28, 0, 41, 64, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 41, 64, 16, 17, 72]] | 8 | 326 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
Func cin2;
void calc() {
cin = new... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
Func cin2;
void calc() {
cin = new... | [["-", 0, 57, 64, 1, 0, 11, 0, 202, 0, 110], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 107]] | 8 | 726 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Console;
namespace AtCoder_1 {
class Program {
static void Main(string[] args) {
var n = CinTAr();
if (n[0] >= 10) {
Cout(n[1]);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Console;
namespace AtCoder_1 {
class Program {
static void Main(string[] args) {
var n = CinTAr();
if (n[0] >= 10) {
Cout(n[1]);
... | [["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 1,122 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Console = System.Console;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var r = ReadIntArray();
var N = r[0];
var R = r[1];
if (N < 10) {
Console.Write... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Console = System.Console;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var r = ReadIntArray();
var N = r[0];
var R = r[1];
if (N < 10) {
Console.Write... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]] | 8 | 285 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
//文字列を読み込む
int[] input =
Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
int N = input[0];
int R = input[1];
if (N < 9) {
R += 100 * (10 - N);
... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
//文字列を読み込む
int[] input =
Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
int N = input[0];
int R = input[1];
if (N < 10) {
R += 100 * (10 - N);
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 106 |
using System;
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int count = int.Parse(s.Split(' ')[0]);
int rate = int.Parse(s.Split(' ')[1]);
if (count < 10) {
rate = rate - 100 * (10 - count);
}
Console.WriteLine(rate);
}
} | using System;
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int count = int.Parse(s.Split(' ')[0]);
int rate = int.Parse(s.Split(' ')[1]);
if (count < 10) {
rate = rate + 100 * (10 - count);
}
Console.WriteLine(rate);
}
} | [["-", 0, 208, 0, 235, 8, 201, 0, 195, 8, 196], ["-", 0, 235, 8, 201, 0, 195, 8, 196, 0, 197], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 198], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 199, 0, 200], ["-", 0, 197, 0, 198, 39, 199, 0, 200, 0, 197], ["-", 0, 198, 39, 199, 0, 200, 0, ... | 8 | 95 |
using System;
using System.Collections.Generic;
using System.Linq;
public class ABC156_A {
public static void Main() {
int a = 0, b = 0;
InLine(ref a, ref b);
if (a < 10)
b += 100 * (10 - a);
else
Out(b);
}
// Template
private static object[] nullobjs = null;
private static obje... | using System;
using System.Collections.Generic;
using System.Linq;
public class ABC156_A {
public static void Main() {
int a = 0, b = 0;
InLine(ref a, ref b);
if (a < 10)
b += 100 * (10 - a);
Out(b);
}
// Template
private static object[] nullobjs = null;
private static object nullobj ... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]] | 8 | 869 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
// 入力
long[] nr = Console.ReadLine().Split().Select(long.Parse).ToArray();
// abcがすべて異なる場合
if (nr[0] <= 10) {
Console.WriteLine((100 - (10 - nr[0])) + nr[1]);
} else {
Console.WriteLine(nr[1]);
}
... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
// 入力
long[] nr = Console.ReadLine().Split().Select(long.Parse).ToArray();
// abcがすべて異なる場合
if (nr[0] <= 10) {
Console.WriteLine((100 * (10 - nr[0])) + nr[1]);
} else {
Console.WriteLine(nr[1]);
}
... | [["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 48]] | 8 | 98 |
using System;
using System.Linq;
namespace ABC156A {
class MainClass {
public static void Main(string[] args) {
int[] nk = Console.ReadLine().Split().Select(int.Parse).ToArray();
Console.WriteLine(nk[0] >= 10 ? nk[1] : nk[1] - (100 * (10 - nk[0])));
}
}
}
| using System;
using System.Linq;
namespace ABC156A {
class MainClass {
public static void Main(string[] args) {
int[] nk = Console.ReadLine().Split().Select(int.Parse).ToArray();
Console.WriteLine(nk[0] >= 10 ? nk[1] : nk[1] + (100 * (10 - nk[0])));
}
}
}
| [["-", 3, 4, 0, 28, 0, 41, 75, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 17, 72]] | 8 | 89 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class A {
static StreamWriter Out =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
static void Main(string[] args) {
int N, R;
Input(out N, out R);
if (N >= 10) {
Console.WriteLine(R);... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class A {
static StreamWriter Out =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
static void Main(string[] args) {
int N, R;
Input(out N, out R);
if (N >= 10) {
Console.WriteLine(R);... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]] | 8 | 866 |
using System;
namespace AtCoder {
class Program {
static void Main() {
var line = Console.ReadLine().Split(' ');
var N = int.Parse(line[0]);
var R = int.Parse(line[1]);
var result = R;
if (N < 9) {
Console.WriteLine(R + (100 * (10 - N)));
} else {
Console.WriteLine(R);
}
... | using System;
namespace AtCoder {
class Program {
static void Main() {
var line = Console.ReadLine().Split(' ');
var N = int.Parse(line[0]);
var R = int.Parse(line[1]);
var result = R;
if (N <= 9) {
Console.WriteLine(R + (100 * (10 - N)));
} else {
Console.WriteLine(R);
}
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 100 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Numerics;
namespace AtCoderWorkspace {
public class Solver {
public void Solve() {
var cin = new Scanner();
var n = cin.nextInt();
var r = cin.nextInt();
if ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Numerics;
namespace AtCoderWorkspace {
public class Solver {
public void Solve() {
var cin = new Scanner();
var n = cin.nextInt();
var r = cin.nextInt();
if ... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72]] | 8 | 597 |
using CompLib.Util;
using System;
using System.Linq;
public class Program {
public void Solve() {
var sc = new Scanner();
int n = sc.NextInt();
int r = sc.NextInt();
if (n >= 10) {
Console.WriteLine(r);
} else {
// q - 100 * (10-n) = r
Console.WriteLine(r + 100 * (10 - r));
... | using CompLib.Util;
using System;
using System.Linq;
public class Program {
public void Solve() {
var sc = new Scanner();
int n = sc.NextInt();
int r = sc.NextInt();
if (n >= 10) {
Console.WriteLine(r);
} else {
Console.WriteLine(r + 100 * (10 - n));
}
}
public static void M... | [["-", 0, 16, 12, 16, 12, 23, 0, 16, 12, 22], ["+", 0, 16, 12, 16, 12, 23, 0, 16, 12, 22]] | 8 | 374 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var l1 = ReadIntArray();
int n = l1[0];
int r = l1[1];
var result = n >= 10 ? r : r - 100 * (10 - n);
Console.WriteLine(result);
}
static string[] ReadStringArray() {
return Console.ReadLine().Trim().Spl... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var l1 = ReadIntArray();
int n = l1[0];
int r = l1[1];
var result = n >= 10 ? r : r + 100 * (10 - n);
Console.WriteLine(result);
}
static string[] ReadStringArray() {
return Console.ReadLine().Trim().Spl... | [["-", 0, 200, 0, 212, 0, 41, 75, 16, 17, 33], ["+", 0, 200, 0, 212, 0, 41, 75, 16, 17, 72]] | 8 | 159 |
using System;
public class Program {
public static void Main(string[] args) {
// 整数の入力
string[] input = Console.ReadLine().Split(' ');
int b = int.Parse(input[0]);
int c = int.Parse(input[1]);
//出力
Console.WriteLine(b > 10 ? c : c - (100 * (10 - b)));
}
}
| using System;
public class Program {
public static void Main(string[] args) {
// 整数の入力
string[] input = Console.ReadLine().Split(' ');
int b = int.Parse(input[0]);
int c = int.Parse(input[1]);
//出力
Console.WriteLine(b > 10 ? c : c + (100 * (10 - b)));
}
}
| [["-", 3, 4, 0, 28, 0, 41, 75, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 17, 72]] | 8 | 89 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
var input = ReadLine().Split(' ').Select(double.Parse).ToArray();
Write(Math.Ceiling(Math.Log(input[0], input[1])));
}
}
| using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
var input = ReadLine().Split(' ').Select(double.Parse).ToArray();
Write(Math.Floor(Math.Log(input[0], input[1])) + 1);
}
} | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 80 |
using System;
using System.Text;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using static System.Array;
namespace ConsoleApp2 {
class Program {
static string[] S;
static long H;
static long W;
static long K;
static void Main(string[] args) {
var HWK = Console.ReadLine()... | using System;
using System.Text;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using static System.Array;
namespace ConsoleApp2 {
class Program {
static string[] S;
static long H;
static long W;
static long K;
static void Main(string[] args) {
var HWK = Console.ReadLine()... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 79]] | 8 | 516 |
using System;
using System.Collections.Generic;
using System.Linq;
static class MainClass {
public struct arch {}
public static void Main(string[] args) {
var temp = Console.ReadLine().Split(' ').Select(long.Parse);
var N = temp.ElementAt(0);
var K = temp.ElementAt(1);
var c = 0;
while (true) ... | using System;
using System.Collections.Generic;
using System.Linq;
static class MainClass {
public struct arch {}
public static void Main(string[] args) {
var temp = Console.ReadLine().Split(' ').Select(long.Parse);
var N = temp.ElementAt(0);
var K = temp.ElementAt(1);
var c = 0;
while (true) ... | [["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 47]] | 8 | 121 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Math;
using static Solve.Methods;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Math;
using static Solve.Methods;
using stat... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47]] | 8 | 5,463 |
using System;
public class ABC156_B {
private static void Main(string[] args) {
var inputs = Console.ReadLine().Trim().Split();
var n = int.Parse(inputs[0]);
var k = int.Parse(inputs[1]);
var answer = Math.Ceiling(Math.Log(n, k));
Console.WriteLine(answer);
}
} | using System;
public class ABC156_B {
private static void Main(string[] args) {
var inputs = Console.ReadLine().Trim().Split();
var n = int.Parse(inputs[0]);
var k = int.Parse(inputs[1]);
var answer = Math.Floor(Math.Log(n, k) + 1);
Console.WriteLine(answer);
}
} | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 87 |
using System;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var a = Console.ReadLine();
var l = a.Split(' ');
var b = int.Parse(l[0]);
var c = int.Parse(l[1]);
int cnt = 0;
var d = b;
for (int i = 0; i < b; i++) {
var e = d % c;
if (b == c) {
... | using System;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var a = Console.ReadLine();
var l = a.Split(' ');
var b = int.Parse(l[0]);
var c = int.Parse(l[1]);
int cnt = 0;
var d = b;
for (int i = 0; i < b; i++) {
var e = d % c;
if (b == 1) {
... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 153 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var NK = ReadLongs();
long n = NK[0];
long k = NK[1];
long a = 1;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var NK = ReadLongs();
long n = NK[0];
long k = NK[1];
long a = 1;
... | [["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 47]] | 8 | 291 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
// 入力
long[] nr = Console.ReadLine().Split().Select(long.Parse).ToArray();
// n < rのk乗の最小値を求める
long k = 0;
while (nr[0] > Math.Pow(nr[1], k)) {
k++;
}
Console.WriteLine(k);
}
} | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
// 入力
long[] nr = Console.ReadLine().Split().Select(long.Parse).ToArray();
// n < rのk乗の最小値を求める
long k = 0;
while (nr[0] >= Math.Pow(nr[1], k)) {
k++;
}
Console.WriteLine(k);
}
} | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20]] | 8 | 87 |
using System;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var n = double.Parse(input[0]);
var k = double.Parse(input[1]);
Console.WriteLine(Math.Ceiling(Math.Log(n) / Math.Log(k)));
}
} | using System;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var n = double.Parse(input[0]);
var k = double.Parse(input[1]);
Console.WriteLine(Math.Floor(Math.Log(n) / Math.Log(k) + 1));
}
} | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 84 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
internal static class CR {
public static string Get() { return Console.ReadLine(); }
public static IEnumerable<string> GetTexts() {
return Console.ReadLine().Split(' ');
}
public static int GetInteger() { return in... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
internal static class CR {
public static string Get() { return Console.ReadLine(); }
public static IEnumerable<string> GetTexts() {
return Console.ReadLine().Split(' ');
}
public static int GetInteger() { return in... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20]] | 8 | 246 |
using System;
public class Program {
public static void Main(string[] args) {
// 整数の入力
string[] input = Console.ReadLine().Split(' ');
int b = int.Parse(input[0]);
int c = int.Parse(input[1]);
int ans = 1;
while (b > c) {
b = b / c;
ans++;
}
//出力
Console.WriteLine(ans);... | using System;
public class Program {
public static void Main(string[] args) {
// 整数の入力
string[] input = Console.ReadLine().Split(' ');
int b = int.Parse(input[0]);
int c = int.Parse(input[1]);
int ans = 1;
while (b >= c) {
b = b / c;
ans++;
}
//出力
Console.WriteLine(ans)... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20]] | 8 | 95 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Numerics;
namespace AtCoder {
class Program {
private static void Main(string[] args) {
var n = Scanner.Integer();
var x = Scanner.ArrayInt... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Numerics;
namespace AtCoder {
class Program {
private static void Main(string[] args) {
var n = Scanner.Integer();
var x = Scanner.ArrayInt... | [["+", 205, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 205, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 1,325 |
using System;
using System.Linq;
class c {
static void Main() {
int n = int.Parse(Console.ReadLine());
var x = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var ans = int.MaxValue;
for (int i = x.Min(); i < x.Max(); i++) {
var temp = 0;
for (int j = 0; j < n; j++) {
temp... | using System;
using System.Linq;
class c {
static void Main() {
int n = int.Parse(Console.ReadLine());
var x = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var ans = int.MaxValue;
for (int i = x.Min(); i <= x.Max(); i++) {
var temp = 0;
for (int j = 0; j < n; j++) {
tem... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 144 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 1,017 |
using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
static void Main(string[] args) {
var N = Console.ReadLine().ToInt();
var x = Console.ReadLine().Split(' ');
var target = ne... | using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
static void Main(string[] args) {
var N = Console.ReadLine().ToInt();
var x = Console.ReadLine().Split(' ');
var target = ne... | [["-", 0, 7, 15, 16, 12, 213, 63, 214, 205, 22], ["-", 0, 7, 15, 16, 12, 213, 63, 214, 0, 131], ["-", 0, 7, 15, 16, 12, 213, 63, 214, 141, 22], ["-", 0, 7, 15, 16, 12, 213, 3, 4, 0, 24], ["-", 0, 7, 15, 16, 12, 213, 3, 4, 0, 25], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 292 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
Func cin2;
void calc() {
cin = new... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
Func cin2;
void calc() {
cin = new... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 813 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string[] input = Console.ReadLine().Split(' ');
int[] X = new int[N];
for (var i = 0; i < N; i++) {
X[i] = int.Parse(input[i]);
}
GetResult(N, X);
}
static void... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string[] input = Console.ReadLine().Split(' ');
int[] X = new int[N];
for (var i = 0; i < N; i++) {
X[i] = int.Parse(input[i]);
}
GetResult(N, X);
}
static void... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 254 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.