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.Linq;
using System.Collections;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
// 入力
long n = long.Parse(Console.ReadLine());
long ans = n - 1;
for (long i = 2; i * i < n; i++) {
if (n % i == 0) {
ans = Math.Min(ans, i + n... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
// 入力
long n = long.Parse(Console.ReadLine());
long ans = n - 1;
for (long i = 2; i * i <= n; i++) {
if (n % i == 0) {
ans = Math.Min(ans, i + ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 28, 0, 16, 31, 16, 12, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 16, 12, 23, 0, 25]] | 8 | 109 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cook {
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long rowPoint = N;
long colPoint = 1;
while (N > colPoint * colPoint) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cook {
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long rowPoint = N;
long colPoint = 1;
while (N >= colPoint * colPoint) {
... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20]] | 8 | 122 | 2 |
using System;
class Program {
static void Main(string[] args) {
var n = long.Parse(Console.ReadLine());
var ans = long.MaxValue;
for (long i = 1; i * i < n; i++) {
if (n % i == 0) {
ans = Math.Min(ans, i + n / i - 2);
}
}
Console.WriteLine(ans);
}
}
| using System;
class Program {
static void Main(string[] args) {
var n = long.Parse(Console.ReadLine());
var ans = long.MaxValue;
for (long i = 1; i * i <= n; i++) {
if (n % i == 0) {
ans = Math.Min(ans, i + n / i - 2);
}
}
Console.WriteLine(ans);
}
}
| [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 91 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Numerics;
namespace AtCoderWorkspace {
public class Solver {
public void Solve() {
var cin = new Scanner();
var n = cin.nextLong();
var ans = long.MaxValue;
... | 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 ans = long.MaxValue;
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25]] | 8 | 2,195 | 4 |
using System;
namespace ABC144c_2 {
class Program {
static void Main(string[] args) {
var n = long.Parse(Console.ReadLine());
var sqrt = (long)Math.Sqrt(n);
for (var i = sqrt; i > 0; i--) {
if (n % i == 0) {
Console.WriteLine(i + n / i - 2);
}
}
}
}
} | using System;
namespace ABC144c_2 {
class Program {
static void Main(string[] args) {
var n = long.Parse(Console.ReadLine());
var sqrt = (long)Math.Sqrt(n);
for (var i = sqrt; i > 0; i--) {
if (n % i == 0) {
Console.WriteLine(i + n / i - 2);
return;
}
}
}
}
} | [["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]] | 8 | 88 | 2 |
using System;
namespace testes {
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
bool flag = false;
long A;
double B = N;
A = (long)Math.Sqrt(B) + 1;
long ansA = 0, ansB = 0;
for (long i = A; i > 0; i--) {
if (N % i == 0) {
ansA =... | using System;
namespace testes {
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
bool flag = false;
long A;
double B = N;
A = (long)Math.Sqrt(B) + 1;
long ansA = 0, ansB = 0;
for (long i = A; i > 0; i--) {
if (N % i == 0) {
ansA =... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 140 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC144C {
class Program {
static void Main(string[] args) {
// var inputArr = Console.ReadLine().Split().Select(int.Parse).ToArray();
var inputLong = long.Parse(Console.ReadLine());
long ans = inputLong - 1;
// string ans =... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC144C {
class Program {
static void Main(string[] args) {
// var inputArr = Console.ReadLine().Split().Select(int.Parse).ToArray();
var inputLong = long.Parse(Console.ReadLine());
long ans = inputLong - 1;
// string ans =... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 120 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contest20191029 {
class Program {
static void Main(string[] args) {
double n = double.Parse(Console.ReadLine());
List<double> ans = new List<double>();
double k = n;
for (int... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contest20191029 {
class Program {
static void Main(string[] args) {
double n = double.Parse(Console.ReadLine());
List<double> ans = new List<double>();
double k = n;
for (int... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 153 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
public static void Main() {
var sw ... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
public static void Main() {
var sw ... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 197 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
//
public class ABC144_C // ←Class名変更!! Program
{
public static void Main() {
var n = Rl();
// var c = n / 2;
double root = Math.Sqrt(n);
var c = (int)Ceil... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
// C - Walk on Multiplication Table
// https://atcoder.jp/contests/abc144/tasks/abc144_c
public class ABC144_C // ←Class名変更!! Program
{
public static void Main() {
var ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 309 | 2 |
using System;
namespace C {
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
var s = Math.Sqrt(N);
long minMove = 100000000000000;
for (long i = 2; i <= s; i++) {
if (N % i == 0) {
var move = i + (N / i);
if (minMove > move)
m... | using System;
namespace C {
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
var s = Math.Sqrt(N);
long minMove = 10000000000000;
for (long i = 1; i <= s; i++) {
if (N % i == 0) {
var move = i + (N / i);
if (minMove > move)
mi... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 107 | 4 |
using System;
class p {
static void Main() {
long N = long.Parse(Console.ReadLine());
long move = long.MaxValue;
for (long i = 1; i <= 100; i++) {
if (N % i == 0) {
move = Math.Min(move, (i - 1) + ((N / i) - 1));
}
}
Console.WriteLine(move);
}
} | using System;
class p {
static void Main() {
long N = long.Parse(Console.ReadLine());
long move = long.MaxValue;
for (long i = 1; i <= Math.Sqrt(N); i++) {
if (N % i == 0) {
move = Math.Min(move, (i - 1) + ((N / i) - 1));
}
}
Console.WriteLine(move);
}
}
| [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 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], ["+", 15, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 7, 15, 16, 12, 213, 3, 4, 0, 25]] | 8 | 93 | 7 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace AtCoder {
static class Program {
static void Main() {
//ここから
long N = IO.ReadLineToLong();
long min = long.MaxValue;
for (long i = 1; i < Math.Sqrt(N)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace AtCoder {
static class Program {
static void Main() {
//ここから
long N = IO.ReadLineToLong();
long min = long.MaxValue;
for (long i = 1; i <= Math.Sqrt(N... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 625 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
long min = long.MaxValue;
var rootN = Math.Sqrt(N);
for (int i = 1; i < rootN;... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
long min = long.MaxValue;
var rootN = Math.Sqrt(N);
for (int i = 1; i <= rootN... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 137 | 2 |
using System;
using System.Collections;
public class KukuC {
public static void Main() {
int N = int.Parse(Console.ReadLine());
int so = (int)Math.Floor(Math.Sqrt(N));
int ans = N - 1;
for (int i = so; i > 1; i--) {
if (N % i == 0) {
ans = i + N / i - 2;
break;
}
}
... | using System;
using System.Collections;
public class KukuC {
public static void Main() {
ulong N = ulong.Parse(Console.ReadLine());
ulong so = (ulong)Math.Floor(Math.Sqrt(N));
ulong ans = N - 1;
for (ulong i = so; i > 1; i--) {
if (N % i == 0) {
ans = i + N / i - 2;
break;
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 1... | 8 | 105 | 12 |
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Numerics;
namespace abc144 {
class Program {
static void Main(string[] args) {
// Console.SetIn(new StreamReader("input.txt"));
solve_abc144C();
}
public static void solve_abc144C() {
long n = Convert.To... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Numerics;
namespace abc144 {
class Program {
static void Main(string[] args) {
// Console.SetIn(new StreamReader("input.txt"));
solve_abc144C();
}
public static void solve_abc144C() {
long n = Convert.To... | [["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 0, 28, 0, 41, 15, 16, 12, 214, 205, 199], ["+", 0, 28, 0, 41, 15, 16, 12, 214, 205, 199]] | 8 | 492 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace C___Walk_on_Multiplication_Table {
class Program {
static void Main(string[] args) {
Int64 N = Int64.Parse(Console.ReadLine());
Int64 a = 100000000001;
Int64 j = 0;
for (Int6... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace C___Walk_on_Multiplication_Table {
class Program {
static void Main(string[] args) {
Int64 N = Int64.Parse(Console.ReadLine());
Int64 a = 1000000000000;
Int64 j = 0;
for (Int... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 160 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
ulong N = ulong.Parse(Console.ReadLine());
ulong[] A = new ulong[1000000];
for (ulong i = 1; i <= 1000000; i++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
ulong N = ulong.Parse(Console.ReadLine());
ulong[] A = new ulong[1000000];
for (ulong i = 1; i <= 1000000; i++) {
... | [["-", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203]] | 8 | 132 | 2 |
using System;
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
double n = double.Parse(input);
double sho1 = n;
double sho2 = 0;
double i1 = 1;
double i2 = 0;
for (double i = 1; i < Math.Sqrt(n); i++) {
double amari = n % i;
if (amari == 0) {... | using System;
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
double n = double.Parse(input);
double sho1 = n;
double sho2 = 0;
double i1 = 1;
double i2 = 0;
for (double i = 1; i < Math.Sqrt(n) + 1; i++) {
double amari = n % i;
if (amari == ... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 146 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
long n = long.Parse(Console.ReadLine());
long length = long.MaxValue;
for (long i = 1; i < Math.Sqrt(n); i++) {
if (n % i == 0) {
if (n / i + i - 2 < le... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
long n = long.Parse(Console.ReadLine());
long length = long.MaxValue;
for (long i = 1; i <= Math.Sqrt(n); i++) {
if (n % i == 0) {
if (n / i + i - 2 < l... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 117 | 2 |
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, 7, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 7, 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, 60], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 25]] | 8 | 773 | 6 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long result = N;
for (long a = 1; a < Math.Sqrt(N); a++) {
if (N % a == 0) {
long b = N / a;
if (a + b - 2 < result) {
result = a ... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long result = N;
for (long a = 1; a <= Math.Sqrt(N); a++) {
if (N % a == 0) {
long b = N / a;
if (a + b - 2 < result) {
result = a... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 109 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public static void Main(string[] args) {
var n = Console.ReadLine().ToLong();
var divisor = new List<long>();
for (long i = 1; i * i <= n; i++) {
i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public static void Main(string[] args) {
var n = Console.ReadLine().ToLong();
var divisor = new List<long>();
for (long i = 1; i * i <= n; i++) {
i... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0... | 8 | 442 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC144_C {
class Program {
static void Main(string[] args) {
var n = long.Parse(Console.ReadLine());
var ans = PrimeFactors(n);
Console.WriteLine(ans);
}
public static long P... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC144_C {
class Program {
static void Main(string[] args) {
var n = long.Parse(Console.ReadLine());
var ans = PrimeFactors(n);
Console.WriteLine(ans);
}
public static long P... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 151 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Solution {
public static List<long> GetDivisors(long n) {
var divisors = new List<long>();
for (int i = 1; i <= Math.Sqrt(n) + 1; i++) {
if (n % i == 0) {
divisors.Add(i);
if (i != n / i) {
divisor... | using System;
using System.Collections.Generic;
using System.Linq;
public class Solution {
public static List<long> GetDivisors(long n) {
var divisors = new List<long>();
for (int i = 1; i <= Math.Sqrt(n) + 1; i++) {
if (n % i == 0) {
divisors.Add(i);
if (i != n / i) {
divisor... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]] | 8 | 163 | 2 |
using System;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
double[] abx = doublea();
abx[2] /= abx[0];
double a = abx[0];
double b = abx[1];
double x = abx[2];
double ans = 0;
if (x / a >= b / 2) {
ans = Atan((b - (x / a)) /... | using System;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
double[] abx = doublea();
abx[2] /= abx[0];
double a = abx[0];
double b = abx[1];
double x = abx[2];
double ans = 0;
if (x / a >= b / 2) {
ans = Atan((b - (x / a)) /... | [["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 85], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25]] | 8 | 600 | 4 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace AtCoder.Contest.C {
static class Program {
public static void Solve(Scanner cin) {
const double pi = Math.PI;
var (a, b, x) = cin.ReadValue<int, int, int>();
if (x == 0)
... | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace AtCoder.Contest.C {
static class Program {
public static void Solve(Scanner cin) {
const double pi = Math.PI;
var (a, b, x) = cin.ReadValue<int, int, int>();
if (x == 0)
... | [["-", 64, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 64, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 2,656 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
using System.Collections;
namespace Atcoder {
public class CPair<T, U> : IComparable
where T : IComparable<T> {
public readonly T Item1;
public readon... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
using System.Collections;
namespace Atcoder {
public class CPair<T, U> : IComparable
where T : IComparable<T> {
public readonly T Item1;
public readon... | [["-", 0, 28, 0, 16, 12, 23, 0, 16, 12, 22], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 12, 22]] | 8 | 9,636 | 2 |
using System;
public class Hello {
public static void Main() {
// Your code here!
var stArrayData = System.Console.ReadLine().Split(' ');
var a = double.Parse(stArrayData[0]);
var b = double.Parse(stArrayData[1]);
var v = double.Parse(stArrayData[2]);
var V = a * a * b;
if (v >= V / 2) {
... | using System;
public class Hello {
public static void Main() {
// Your code here!
var stArrayData = System.Console.ReadLine().Split(' ');
var a = double.Parse(stArrayData[0]);
var b = double.Parse(stArrayData[1]);
var v = double.Parse(stArrayData[2]);
var V = a * a * b;
if (v >= V / 2) {
... | [["-", 31, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 31, 22]] | 8 | 182 | 2 |
using System;
class waterbottle {
public static void Main() {
String[] str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int x = int.Parse(str[2]);
double s = Math.Atan((double)(2 * a * a * b - 2 * x) / (a * a * a));
if (b < a * Math.Tan(s)) {
s =... | using System;
class waterbottle {
public static void Main() {
String[] str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int x = int.Parse(str[2]);
double s = Math.Atan((double)(2 * a * a * b - 2 * x) / (a * a * a));
if (b < a * Math.Tan(s)) {
s =... | [["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25], ["+", 0, 28, 0, 16, 31, 74, 51, 23, 0, 24]] | 8 | 156 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC144D_Water_Bottle {
class Program {
static void Main(string[] args) {
double[] input =
Console.ReadLine().Split(' ').Select(z => double.Parse(z)).ToArray();
double a = inpu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC144D_Water_Bottle {
class Program {
static void Main(string[] args) {
double[] input =
Console.ReadLine().Split(' ').Select(z => double.Parse(z)).ToArray();
double a = inpu... | [["-", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25]] | 8 | 205 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using SB = System.Text.StringBuilder;
// using System.Threading.Tasks;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
using System.Numerics;
using static... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using SB = System.Text.StringBuilder;
// using System.Threading.Tasks;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
using System.Numerics;
using static... | [["+", 0, 212, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 212, 0, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 212, 0, 16, 12, 213, 63, 214, 0, 131]] | 8 | 898 | 6 |
using System;
using System.Linq;
namespace abc140_c {
static class Program {
static void Main(string[] args) {
var n = Console.ReadLine().ToInteger();
// var a = new int[n];
var b = Console.ReadLine().ToIntArray();
// b[i] >= Math.Max(a[i], a[i + 1]);
var ans = 0L;
// a[0] = b[0];
for (i... | using System;
using System.Linq;
namespace abc140_c {
static class Program {
static void Main(string[] args) {
var n = Console.ReadLine().ToInteger();
// var a = new int[n];
var b = Console.ReadLine().ToIntArray();
// b[i] >= Math.Max(a[i], a[i + 1]);
var ans = b[0];
// a[0] = b[0];
for ... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73]] | 8 | 199 | 5 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
const int MOD = 1000000007;
const int INF = 1 << 30;
static void Main(string[] args) { Solve(); }
static void Solve() {
Scaner cin = new Scaner();
write cout = new write... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
const int MOD = 1000000007;
const int INF = 1 << 30;
static void Main(string[] args) { Solve(); }
static void Solve() {
Scaner cin = new Scaner();
write cout = new write... | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]] | 8 | 1,430 | 2 |
using System;
public class D {
static void Main() {
var w = Console.ReadLine().Split(' ');
int n = int.Parse(w[0]);
int k = int.Parse(w[1]);
var s = Console.ReadLine();
int a = 0;
for (int i = 1; i < n; i++) {
if (s[i] == s[i - 1])
a++;
}
Console.WriteLine(n - a / 2 <... | using System;
public class D {
static void Main() {
var w = Console.ReadLine().Split(' ');
int n = int.Parse(w[0]);
int k = int.Parse(w[1]);
var s = Console.ReadLine();
int a = 0;
for (int i = 1; i < n; i++) {
if (s[i] == s[i - 1])
a++;
}
Console.WriteLine((n - a) / 2... | [["+", 0, 41, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 41, 15, 16, 31, 16, 31, 23, 0, 25]] | 8 | 127 | 2 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace Practice {
class Program {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush(... | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace Practice {
class Program {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush(... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 2,395 | 2 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCorder {
class Program {
static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
public void S... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCorder {
class Program {
static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
public void S... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 743 | 2 |
using System;
using System.Windows;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
//入力を受け取る
string[] tmp = Console.ReadLine().Split(' ');
int N = int.Parse(tmp[0]);
int K = int.Parse(tmp[1]);
string S = Console.ReadLine();
int cnt = 0;
... | using System;
using System.Windows;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
//入力を受け取る
string[] tmp = Console.ReadLine().Split(' ');
int N = int.Parse(tmp[0]);
int K = int.Parse(tmp[1]);
string S = Console.ReadLine();
int cnt = 0;
... | [["+", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98]] | 8 | 264 | 4 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using E = System.Linq.Enumerable;
partial class Solver {
public void Run() {
var N = ni();
var P = ni(N);
var perm = P.Select((p, index) => new { Index = index, Value = p })... | using System;
using System.IO;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using E = System.Linq.Enumerable;
partial class Solver {
public void Run() {
var N = ni();
var P = ni(N);
var perm = P.Select((p, index) => new { Index = index, Value = p })... | [["+", 0, 11, 12, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 16, 31, 213, 3, 4, 0, 25]] | 8 | 2,691 | 5 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder2 {
class Program {
static void Main(string[] args) {
var inputArray = retreiveLongArray();
var inputCount = 2;
// 不正な入力は処理しない
if (inputArray.Length != inputCount) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder2 {
class Program {
static void Main(string[] args) {
var inputArray = retreiveLongArray();
var inputCount = 2;
// 不正な入力は処理しない
if (inputArray.Length != inputCount) {
... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 416 | 2 |
using System;
using System.Collections.Generic; // list用
using System.Text; // StringBuilder用
using System.Collections; //ハッシュテーブル用
using System.Linq;
class Program {
// Hashtable ht = new Hashtable();
static List<int> A = new List<int>();
static decimal result;
static int N, K;
// Str... | using System;
using System.Collections.Generic; // list用
using System.Text; // StringBuilder用
using System.Collections; //ハッシュテーブル用
using System.Linq;
class Program {
// Hashtable ht = new Hashtable();
static List<int> A = new List<int>();
static decimal result;
static int N, K;
// Str... | [["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73]] | 8 | 1,262 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderD {
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]);
}
long gcd ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderD {
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]);
}
long gcd ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]] | 8 | 343 | 2 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
partial class Program {
static long mod = 1000000007;
static void Swap<T>(ref T a, ref T b) {
T temp = a;
a = b;
b = temp;
}
static void Main() {
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
partial class Program {
static long mod = 1000000007;
static void Swap<T>(ref T a, ref T b) {
T temp = a;
a = b;
b = temp;
}
static void Main() {
... | [["+", 0, 200, 0, 212, 0, 41, 15, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 60], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 101], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 64, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 102]] | 8 | 1,408 | 6 |
using System;
class Program {
static void Main(string[] args) {
var ab = Console.ReadLine().Split();
var a = long.Parse(ab[0]);
var b = long.Parse(ab[1]);
var g = gcd(a, b);
var ans = m1(g) + 1;
Console.WriteLine(ans);
}
static long m1(long n) {
var ans = 0L;
for (long i = 2; i... | using System;
class Program {
static void Main(string[] args) {
var ab = Console.ReadLine().Split();
var a = long.Parse(ab[0]);
var b = long.Parse(ab[1]);
var g = gcd(a, b);
var ans = m1(g) + 1;
Console.WriteLine(ans);
}
static long m1(long n) {
var ans = 0L;
for (long i = 2; i... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 181 | 4 |
using System;
using static System.Console;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Xml;
using System.Diagnostics;
namespace ConsoleApplication1 {
internal class Program {
public static void Main(string[] args) {
var nums = ReadLine().Split(' ').Select(x => lon... | using System;
using static System.Console;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Xml;
using System.Diagnostics;
namespace ConsoleApplication1 {
internal class Program {
public static void Main(string[] args) {
var nums = ReadLine().Split(' ').Select(x => lon... | [["-", 75, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 75, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 75, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 75, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 331 | 4 |
using System;
using System.Collections.Generic;
namespace AtCoderBeginnerContest142_D {
class Program {
static void Main(string[] args) {
string[] ab = Console.ReadLine().Split(' ');
long A = long.Parse(ab[0]);
long B = long.Parse(ab[1]);
List<long> ans = new List<long>();
long gcd = GreatestCom... | using System;
using System.Collections.Generic;
namespace AtCoderBeginnerContest142_D {
class Program {
static void Main(string[] args) {
string[] ab = Console.ReadLine().Split(' ');
long A = long.Parse(ab[0]);
long B = long.Parse(ab[1]);
List<long> ans = new List<long>();
long gcd = GreatestCom... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 265 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class ABC {
// long[] sp = Console.ReadLine().Split().Select(long
// .Parse).ToArray(); int[] sp =
// Console.ReadLine().Split().Select(int.Parse).ToArray(); int N... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class ABC {
// long[] sp = Console.ReadLine().Split().Select(long
// .Parse).ToArray(); int[] sp =
// Console.ReadLine().Split().Select(int.Parse).ToArray(); int N... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 3,223 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Numerics;
class Myon {
// chokudaiさんのコードをコピペ
static Scanner cin;
public Myon() {}
public static int Main() {
// Console.SetOut(new Printe... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Numerics;
class Myon {
// chokudaiさんのコードをコピペ
static Scanner cin;
public Myon() {}
public static int Main() {
// Console.SetOut(new Printe... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 64, 37, 0, 22], ["+", 0, 195, 8, 196, 0, 57, 64, 37, 0, 22], ["+", 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 | 710 | 7 |
using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Math;
using MethodImplOptions = System.Runtime.CompilerServ... | using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Math;
using MethodImplOptions = System.Runtime.CompilerServ... | [["-", 8, 196, 0, 57, 64, 1, 0, 223, 0, 22], ["+", 8, 196, 0, 57, 64, 1, 0, 223, 0, 22]] | 8 | 355 | 2 |
using System;
using System.Collections.Generic;
// using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
private static long mod = 1000000007;
private static long max = 999999999999;
static void Main(string[] args) {
var r1 = Rea... | using System;
using System.Collections.Generic;
// using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
private static long mod = 1000000007;
private static long max = 999999999999;
static void Main(string[] args) {
var r1 = Rea... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22]] | 8 | 1,562 | 6 |
// optional
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
public static class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Consol... | // optional
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
public static class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Consol... | [["+", 206, 207, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 206, 207, 0, 28, 0, 16, 31, 23, 0, 25]] | 8 | 7,571 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using Debug = System.Diagnostics.Trace;
using SB = System.Text.StringBuilder;
using System.Numerics;
using static System.Math;
using Number = System.Int32;
namespace Program {
public class Solver {
Random rnd = new Random();... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using Debug = System.Diagnostics.Trace;
using SB = System.Text.StringBuilder;
using System.Numerics;
using static System.Math;
using Number = System.Int32;
namespace Program {
public class Solver {
Random rnd = new Random();... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]] | 8 | 1,387 | 2 |
using System;
using static System.Console;
using static System.Math;
using System.IO;
using System.Collections.Generic;
namespace 水色コーダーに俺はなる {
class PriorityQueue<T>
where T : IComparable<T> {
private List<T> list = new List<T>();
public long Count {
get { return list.Count; }
}
public void Enqueue(... | using System;
using static System.Console;
using static System.Math;
using System.IO;
using System.Collections.Generic;
namespace 水色コーダーに俺はなる {
class PriorityQueue<T>
where T : IComparable<T> {
private List<T> list = new List<T>();
public long Count {
get { return list.Count; }
}
public void Enqueue(... | [["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60]] | 8 | 887 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Sample {
class Sample {
static void Main(string[] args) {
string str = Console.ReadLine();
if (str == "Sunny") {
Console.WriteLine("Cloudy");
} else if (str == "Cloudy") {
Console.WriteLine("Rainy");
} else {
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Sample {
class Sample {
static void Main(string[] args) {
string str = Console.ReadLine();
if (str == "Sunny") {
Console.WriteLine("Cloudy");
} else if (str == "Cloudy") {
Console.WriteLine("Rainy");
} else {
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 94 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace atcoder {
class Program {
static void Main(string[] args) {
var forecast = new[] { "Sunny", "Cloudy", "Rainy" };
var today = Console.ReadLine();
var index = 0;
for (; index < 3; index++) {
if (fo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace atcoder {
class Program {
static void Main(string[] args) {
var forecast = new[] { "Sunny", "Cloudy", "Rainy" };
var today = Console.ReadLine();
var index = 0;
for (; index < 3; index++) {
if (fo... | [["+", 206, 207, 0, 28, 0, 16, 31, 23, 0, 25], ["-", 0, 204, 206, 207, 0, 28, 0, 23, 0, 25]] | 8 | 112 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_solve {
class Program {
public const ulong mod = 1000000007;
static void Main(string[] args)
{
var s = Console.ReadLine();
var ans = string.Empty;
if (s == "Sunny")
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_solve {
class Program {
public const ulong mod = 1000000007;
static void Main(string[] args)
{
var s = Console.ReadLine();
var ans = string.Empty;
if (s == "Sunny")
... | [["-", 75, 57, 64, 1, 0, 11, 12, 5, 0, 222], ["+", 75, 57, 64, 1, 0, 11, 12, 5, 0, 222]] | 8 | 283 | 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 S = IO.GetString();
var ans = "";
if (S[0] == 'S') {
... | 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 S = IO.GetString();
var ans = "";
if (S[0] == 'S') {
... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]] | 8 | 362 | 1 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
public static void Main(string[] args) {
const string S = "Sunny";
const string C = "Cloudy";
const string R = "Rainy";
var a = args[0];
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
public static void Main(string[] args) {
const string S = "Sunny";
const string C = "Cloudy";
const string R = "Rainy";
var a = Console.ReadLi... | [["-", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, ... | 8 | 125 | 9 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main() {
string a = Console.ReadLine();
if (a == "Sunny") {
Console.WriteLine("Cloudy");
} else if (a == "Cloudy") {
Console.WriteLine("Cloudy");
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class Hello {
static void Main() {
string a = Console.ReadLine();
if (a == "Sunny") {
Console.WriteLine("Cloudy");
} else if (a == "Cloudy") {
Console.WriteLine("Rainy");
... | [["+", 36, 36, 0, 208, 0, 235, 0, 251, 0, 259], ["-", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 106 | 5 |
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 (S == "Sunny")
Console.WriteLine("Cloudy");
if (S == "Cloudy")
... | 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 (S == "Sunny")
Console.WriteLine("Cloudy");
if (S == "Cloudy")
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 8, 196, 0, 57, 15, 16, 12, 5, 0, 222], ["+", 8, 196, 0, 57, 15, 16, 12, 5, 0, 222]] | 8 | 348 | 4 |
using System;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Debug = System.Diagnostics.Debug;
using static System.Math;
using MethodImplOptions = System.Runtime.CompilerServices.Me... | using System;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Debug = System.Diagnostics.Debug;
using static System.Math;
using MethodImplOptions = System.Runtime.CompilerServices.Me... | [["-", 0, 213, 3, 4, 0, 28, 0, 241, 0, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 241, 0, 203], ["+", 64, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 910 | 3 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
int answer = 1;
int ansMemo = 2;
int[][] answers = new int [n][];
int[] pairs = new int[n];
for (int i = 0; ... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
int answer = 1;
int ansMemo = 2;
int[][] answers = new int [n][];
int[] pairs = new int[n];
for (int i = 0; ... | [["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 438 | 6 |
using System;
using System.Linq;
namespace Sample {
class Sample {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
if (a < 3200) {
Console.WriteLine(s);
} else {
Console.WriteLine("red");
}
}
}
} | using System;
using System.Linq;
namespace Sample {
class Sample {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
if (a >= 3200) {
Console.WriteLine(s);
} else {
Console.WriteLine("red");
}
}
}
} | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 77 | 2 |
using System;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using System.Text;
class DandA {
static void Main(string[] args) {
int a = ReadLineInt();
if (a > 3200) {
Console.WriteLine(ReadLineStr());
} else {
Console.WriteLine("red");
}
}
static strin... | using System;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using System.Text;
class DandA {
static void Main(string[] args) {
int a = ReadLineInt();
if (a >= 3200) {
Console.WriteLine(ReadLineStr());
} else {
Console.WriteLine("red");
}
}
static stri... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 549 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main() {
Solve();
Console.ReadKey();
}
static void Solve() {
var a = IO.GetInt();
var s = IO.GetString();
var ans = a >= 3200 ?... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main() {
Solve();
Console.ReadKey();
}
static void Solve() {
var a = IO.GetInt();
var s = IO.GetString();
var ans = a < 3200 ? ... | [["-", 0, 200, 0, 212, 0, 41, 15, 16, 17, 20], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 18]] | 8 | 330 | 2 |
namespace AtCoder {
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
using static Util;
class AtCoder {
/*------------------------------------------------------------------*/
void Solve() { (io.Int >= 3200 ... | namespace AtCoder {
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
using static Util;
class AtCoder {
/*------------------------------------------------------------------*/
void Solve() { (io.Int >= 3200 ... | [["-", 63, 214, 205, 23, 0, 41, 64, 5, 0, 62], ["-", 63, 214, 205, 23, 0, 41, 64, 5, 0, 222], ["+", 63, 214, 205, 23, 0, 41, 64, 214, 205, 22], ["+", 63, 214, 205, 23, 0, 41, 64, 214, 0, 131], ["+", 63, 214, 205, 23, 0, 41, 64, 214, 141, 22]] | 8 | 2,696 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contest {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string color = Console.ReadLine();
//出力
Console.WriteLine(N >= 3200 ? "red"... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contest {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string color = Console.ReadLine();
//出力
Console.WriteLine(N < 3200 ? "red" ... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18]] | 8 | 91 | 2 |
#if DEBUG
using Microsoft.VisualStudio.TestTools.UnitTesting;
#endif
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace Contest {
class Program {
static void Main(string[] args) {
var scanner = new IO.StreamScanner... | #if DEBUG
using Microsoft.VisualStudio.TestTools.UnitTesting;
#endif
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace Contest {
class Program {
static void Main(string[] args) {
var scanner = new IO.StreamScanner... | [["-", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222]] | 8 | 1,053 | 2 |
using System;
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
// int a = int.Parse(vals[0]);
// string s = vals[1];
if (a > 3200) {
Console.WriteLine(s);
} else {
Console.WriteLine("red");
}
}
} | using System;
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
// int a = int.Parse(vals[0]);
// string s = vals[1];
if (a >= 3200) {
Console.WriteLine(s);
} else {
Console.WriteLine("red");
}
}
} | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 70 | 2 |
using System;
public class Hello {
public static void Main() {
var a = int.Parse(Console.ReadLine().Trim());
var s = Console.ReadLine().Trim();
Console.WriteLine(a >= 2800 ? s : "red");
}
} | using System;
public class Hello {
public static void Main() {
var a = int.Parse(Console.ReadLine().Trim());
var s = Console.ReadLine().Trim();
Console.WriteLine(a >= 3200 ? s : "red");
}
} | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203]] | 8 | 62 | 2 |
using System;
class a {
public static void Main() {
int a = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
if (a < 3200) {
Console.WriteLine("red");
} else {
Console.WriteLine("s");
}
}
} | using System;
class a {
public static void Main() {
int a = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
if (a < 3200) {
Console.WriteLine("red");
} else {
Console.WriteLine(s);
}
}
} | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62]] | 8 | 67 | 2 |
using System;
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
if (a >= 3200)
Console.WriteLine("red");
else
Console.WriteLine(s);
}
}
| using System;
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
if (a < 3200)
Console.WriteLine("red");
else
Console.WriteLine(s);
}
}
| [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]] | 8 | 64 | 2 |
using System;
namespace ConsoleApp1 {
internal class Program {
private static void Main(string[] args) {
var a = int.Parse(Console.ReadLine());
var s = Console.ReadLine();
if (a <= 3200) {
Console.WriteLine(s);
} else {
Console.WriteLine("red");
}
}
}
} | using System;
namespace ConsoleApp1 {
internal class Program {
private static void Main(string[] args) {
var a = int.Parse(Console.ReadLine());
var s = Console.ReadLine();
if (a >= 3200) {
Console.WriteLine(s);
} else {
Console.WriteLine("red");
}
}
}
} | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 74 | 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(... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]] | 8 | 228 | 2 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
double m = 0;
for (int i = 0; i < n; i++) {
m += 1 / a[i];
}
Console.WriteLine(1 / m);
}
}
| using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
double m = 0;
for (int i = 0; i < n; i++) {
m += 1d / a[i];
}
Console.WriteLine(1d / m);
}
}
| [["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 250], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 250]] | 8 | 105 | 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, ' '));
}
... | [["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72]] | 8 | 499 | 2 |
using System;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
var a = ab[0];
var b = ab[1];
int answer = 1;
for (int sum = a; sum < b; sum += a, b++)
answer++;
var writer =
new... | using System;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
var a = ab[0];
var b = ab[1];
int answer = 0;
for (int soc = 1; soc < b; soc += a, b++)
answer++;
var writer =
new... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, ... | 8 | 134 | 10 |
using System;
class main {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(" ");
int tap = int.Parse(s[0]) - 1;
int sockets = int.Parse(s[1]);
for (int i = 0; i != 0; i++) {
if (tap * i + 1 >= sockets) {
Console.Write(i);
break;
}
}
}
} | using System;
class main {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(" ");
int tap = int.Parse(s[0]) - 1;
int sockets = int.Parse(s[1]);
for (int i = 0; i != -1; i++) {
if (tap * i + 1 >= sockets) {
Console.Write(i);
break;
}
}
}
} | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 241, 0, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 241, 0, 203]] | 8 | 101 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
long[] inputLongArray =
Console.ReadLine().Split(' ').Select(i => long.Parse... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
long[] inputLongArray =
Console.ReadLine().Split(' ').Select(i => long.Parse... | [["+", 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], ["-", 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 | 173 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contest01_B {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int A = Convert.ToInt32(input[0]);
int B = Convert.ToInt32(input[1... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contest01_B {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int A = Convert.ToInt32(input[0]);
int B = Convert.ToInt32(input[1... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22]] | 8 | 135 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc139 {
class Program {
public static int hantei(int x, int y) {
int count = 1;
for (int i = x; i < y; i = i + x - 1) {
count += 1;
}
return count;
}
static void ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc139 {
class Program {
public static int hantei(int x, int y) {
int count = 0;
for (int i = 1; i < y; i = i + x - 1) {
count += 1;
}
return count;
}
static void ... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 154 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc139_Virtual {
class Program {
static void Main(string[] args) {
string[] AB = Console.ReadLine().Split(' ');
int A = Convert.ToInt32(AB[0]);
int B = Convert.ToInt32(AB[1]);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc139_Virtual {
class Program {
static void Main(string[] args) {
string[] AB = Console.ReadLine().Split(' ');
int A = Convert.ToInt32(AB[0]);
int B = Convert.ToInt32(AB[1]);
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]] | 8 | 130 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
public class AtCoderB {
static void Main() {
int a;
int b;
{
var line = Console.ReadLine();
var words = line.Split(' ');
a = int.Parse(words[0]);
b = int.Parse(words[1]);
}
int nums = 1;
int count = 0;... | using System;
using System.Collections.Generic;
using System.Linq;
public class AtCoderB {
static void Main() {
int a;
int b;
{
var line = Console.ReadLine();
var words = line.Split(' ');
a = int.Parse(words[0]);
b = int.Parse(words[1]);
}
int nums = 1;
int count = 0;... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 8, 196, 0, 1, 0, 11, 12, 23, 0, 24], ["+", 8, 196, 0, 1, 0, 11, 12, 23, 0, 25]] | 8 | 114 | 4 |
using System;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using System.Text;
class DandA {
static void Main(string[] args) {
int[] ab = ReadLineIntArray();
int rtn = 1;
int n = ab[1] - ab[0];
while (n > 0) {
n -= ab[0] - 1;
rtn++;
}
Console.Write... | using System;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using System.Text;
class DandA {
static void Main(string[] args) {
int[] ab = ReadLineIntArray();
int rtn = 0;
int n = ab[1] - 1;
while (n > 0) {
n -= ab[0] - 1;
rtn++;
}
Console.WriteLine... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 200, 0, 212, 0, 16, 12, 204, 205, 22], ["-", 0, 212, 0, 16, 12, 204, 206, 207, 0, 70], ["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 212, 0, 16, 12, 204, 206, 207, 0, 73], ["+", 0, 198, 0, 200, 0, 212, 0, ... | 8 | 711 | 7 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
//[summary]B - Power Socket
var line = ReadLine();
int A = line[0];
int B = line[1];
int sockets = A;
int i = 1;
while (sockets < B) {
sockets +... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
//[summary]B - Power Socket
var line = ReadLine();
int A = line[0];
int B = line[1];
int sockets = 1;
int i = 0;
while (sockets < B) {
sockets +... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 142 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Contest {
class ABC {
static void Main() { Solve(); }
private static void Solve() {
int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray();
int a = 1;
int b = input[1];
int res = 1;
whi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Contest {
class ABC {
static void Main() { Solve(); }
private static void Solve() {
int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray();
int a = 1;
int b = input[1];
int tap = 0;
whi... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["... | 8 | 118 | 8 |
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(... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 271 | 2 |
using System;
using System.Linq;
namespace atcoder {
class Program {
static void Main(string[] args) { ABC139.PowerSocket(); }
}
class ABC139 {
public static void PowerSocket() {
var s = Input.getIntArray();
int a = s[0];
int b = s[1];
int tap = 0;
if (b == 0) {
tap = 0;
} else if (... | using System;
using System.Linq;
namespace atcoder {
class Program {
static void Main(string[] args) { ABC139.PowerSocket(); }
}
class ABC139 {
public static void PowerSocket() {
var s = Input.getIntArray();
int a = s[0];
int b = s[1];
int tap = 0;
if (b == 1) {
tap = 0;
} else if (... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107]] | 8 | 300 | 4 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
List<string> input = new List<string>();
input.AddRange(Console.ReadLine().Split(' '));
int A = int.Parse(input[0]);
int B = int.Parse(input[1]);
int C = 1;
if (B == 1) {
Console.WriteLine... | using System;
using System.Collections.Generic;
namespace Test {
class Program {
static void Main(string[] args) {
List<string> input = new List<string>();
input.AddRange(Console.ReadLine().Split(' '));
int A = int.Parse(input[0]);
int B = int.Parse(input[1]);
int C = 1;
if (B == 1) {
... | [["+", 36, 36, 36, 36, 0, 208, 0, 209, 0, 256], ["+", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 36, 36, 0, 208, 0, 209, 8, 201, 0, 45], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 46]] | 8 | 136 | 6 |
using System;
using System.Text;
using System.Collections.Generic;
class Program {
const int MOD = (int)1e9 + 7;
// const int MOD = (int) 998244353;
const int INT_MAX = 2147483647;
static void Main(string[] args) {
int cnt = 1;
int res = 1;
int[] ab = Scan.IntArray(2);
int a, b;
a = ab[0];... | using System;
using System.Text;
using System.Collections.Generic;
class Program {
const int MOD = (int)1e9 + 7;
// const int MOD = (int) 998244353;
const int INT_MAX = 2147483647;
static void Main(string[] args) {
int cnt = 1;
int res = 0;
int[] ab = Scan.IntArray(2);
int a, b;
a = ab[0];... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 12, 22]] | 8 | 3,002 | 6 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Numerics;
namespace abc139 {
class Program {
static void Main(string[] args) {
// Console.SetIn(new StreamReader("input.txt"));
solve_abc139B();
}
public static void solve_abc139B() {
string[] ab = Console.ReadLine().Split... | using System;
using System.IO;
using System.Collections.Generic;
using System.Numerics;
namespace abc139 {
class Program {
static void Main(string[] args) {
// Console.SetIn(new StreamReader("input.txt"));
solve_abc139B();
}
public static void solve_abc139B() {
string[] ab = Console.ReadLine().Split... | [["-", 0, 16, 31, 23, 0, 16, 31, 16, 17, 33], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33]] | 8 | 215 | 4 |
using System;
class Program {
static void Main(string[] args) {
string[] a1 = Console.ReadLine().Split(' ');
int[] s1 = new int[2];
for (int i = 0; i < 2; i++) {
s1[i] = int.Parse(a1[i]);
}
int hole = s1[0];
int count = 1;
while (hole < s1[1]) {
hole += s1[0];
hole -= 1;... | using System;
class Program {
static void Main(string[] args) {
string[] a1 = Console.ReadLine().Split(' ');
int[] s1 = new int[2];
for (int i = 0; i < 2; i++) {
s1[i] = int.Parse(a1[i]);
}
int hole = 1;
int count = 0;
while (hole < s1[1]) {
hole += s1[0];
hole -= 1;
... | [["-", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 130 | 7 |
using System;
using System.Linq;
class Hello {
static void Main(string[] args) {
int count = 0;
var AB = Console.ReadLine().Split(' ');
var AC = int.Parse(AB[0]);
var BB = int.Parse(AB[1]);
for (int i = 1; i < BB; i++) {
if (AC * i >= BB) {
count = count + i;
break;
}... | using System;
using System.Linq;
class Hello {
static void Main(string[] args) {
int count = 0;
var AB = Console.ReadLine().Split(' ');
var AC = int.Parse(AB[0]);
var BB = int.Parse(AB[1]);
for (int i = 1; i < BB; i++) {
if ((AC - 1) * i + 1 >= BB) {
count = count + i;
bre... | [["+", 15, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 15, 16, 31, 16, 31, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]] | 8 | 111 | 6 |
using System;
namespace abc139_b {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
int result = 1;
while (((a - 1) * (result - 1) + a) < b) {
result++;
}
Console.WriteLine(... | using System;
namespace abc139_b {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
int result = 0;
while (((a - 1) * (result - 1) + a) < b) {
result++;
}
Console.WriteLine(... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 103 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace A {
class Program {
/// <summary>
/// The main entry point for the application
/// </summary>
[STAThread]
public static void Main(string[] args) {
string[] str =
Console... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace A {
class Program {
/// <summary>
/// The main entry point for the application
/// </summary>
[STAThread]
public static void Main(string[] args) {
string[] str =
Console... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 146 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace A {
class Program {
static void Main(string[] args) {
var AB = Io.ReadSplit<int>();
var A = AB[0];
var B = AB[1];
var c = A;
var output = 1;
while (true) {
if (c >= B)
break;
c = c - 1 + A;
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace A {
class Program {
static void Main(string[] args) {
var AB = Io.ReadSplit<int>();
var A = AB[0];
var B = AB[1];
var c = 1;
var tapCount = 0;
while (true) {
if (c >= B)
break;
c = c - 1 + A;
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22... | 8 | 345 | 10 |
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 (B == 1) {
Console.WriteLine(0);
}
int open = 1;
int tot ... | 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 (B == 1) {
Console.WriteLine(0);
return;
}
int open = 1... | [["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]] | 8 | 405 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace test {
class Program {
static void Main(string[] args) {
var input = ReadArrayInt();
var A = input[0];
var B = input[1];
if (B == 0) {
Console.WriteLine(0);
return;
}
var ans = 0;
while (B > 0) {
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace test {
class Program {
static void Main(string[] args) {
var input = ReadArrayInt();
var A = input[0];
var B = input[1];
if (B == 1) {
Console.WriteLine(0);
return;
}
var ans = 0;
while (B > 0) {
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 255 | 2 |
using System;
namespace B {
class Program {
static void Main(string[] args) {
var ab = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var A = ab[0];
var B = ab[1];
var count = 1;
while (A + (count - 1) * (A - 1) < B)
count++;
Console.WriteLine(count);
}
}
}
| using System;
namespace B {
class Program {
static void Main(string[] args) {
var ab = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var A = ab[0];
var B = ab[1];
var count = 1;
while (A + (count - 1) * (A - 1) < B)
count++;
Console.WriteLine(B == 1 ? 0 : count);
}
}
}
| [["+", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 64, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102]] | 8 | 96 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
partial class Program {
static int ReadInt() { return int.Parse(Console.ReadLine()); }
static long ReadLong() { return long.Parse(Console.ReadLine()); }
static int[] ReadIntArray() {
return Console.ReadLine().Split(' ').Se... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
partial class Program {
static int ReadInt() { return int.Parse(Console.ReadLine()); }
static long ReadLong() { return long.Parse(Console.ReadLine()); }
static int[] ReadIntArray() {
return Console.ReadLine().Split(' ').Se... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 756 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.