buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k | change_count int64 0 100 |
|---|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _0430_atcoder問題_14 {
class Program {
static void Main(string[] args) {
int hoge = int.Parse(Console.ReadLine());
if (hoge % 2 == 0) {
Console.WriteLine((hoge / 2) * (hoge / 2));... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _0430_atcoder問題_14 {
class Program {
static void Main(string[] args) {
int hoge = int.Parse(Console.ReadLine());
if (hoge % 2 == 0) {
Console.WriteLine((hoge / 2) * (hoge / 2));... | [["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 12, 250], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 0, 16, 12, 23, 0, 16, 31, 23, 0, 25], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 12, 250], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 12, 203]] | 8 | 113 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
int K = int.Parse(Console.ReadLine());
if (K % 2 == 1) {
Console.WriteLine((K / 2) * (K / 2 + 1));
} else {
Console.WriteLine(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
int K = int.Parse(Console.ReadLine());
if (K % 2 == 1) {
Console.WriteLine((K / 2) * (K / 2 + 1));
} else {
Console.WriteLine(... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 140], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 17, 85], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]] | 8 | 101 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Algorithm {
class Program {
static void Main(string[] args) {
var line = Console.ReadLine().Split().Select(int.Parse).ToArray();
int x1 = line[0], y1 = line[1], x2 = line[2], y2 = line[3];
int x3 = 0, y3 = 0, x4 = 0, y4 = 0;
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Algorithm {
class Program {
static void Main(string[] args) {
var line = Console.ReadLine().Split().Select(int.Parse).ToArray();
int x1 = line[0], y1 = line[1], x2 = line[2], y2 = line[3];
int x3 = 0, y3 = 0, x4 = 0, y4 = 0;
... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 18], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 17, 19], ["-", 75, 57, 75, 57, 15, 16, 12, 16, 17, 47], ["+", 75, 57, 75, 57, 15, 16, 12, 16, 17, 20], ["-", 75, 57, 75, 57, 15, 16, 12, 16, 17,... | 8 | 298 | 8 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace AtCoder {
class Program {
static void Main() {
var a = ReadIntArray();
int x1 = a[0];
int y1 = a[1];
int x2 = a[2];
int y2 = a[3];
int dirx = x2 - x1;
int diry = y2 - ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace AtCoder {
class Program {
static void Main() {
var a = ReadIntArray();
int x1 = a[0];
int y1 = a[1];
int x2 = a[2];
int y2 = a[3];
int dirx = x2 - x1;
int diry = y2 - ... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296]] | 8 | 324 | 5 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray();
int x3 = s[2] - s[3] - s[1];
int y3 = s[3] + s[2] - s[0];
int x4 = x3 - y3 - s[3];
int y4 = y3 + x3 - s[2];
Console.WriteLine("{0} {1} {2} {3}",... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray();
int x3 = s[2] - s[3] + s[1];
int y3 = s[3] + s[2] - s[0];
int x4 = x3 - y3 + s[3];
int y4 = y3 + x3 - s[2];
Console.WriteLine("{0} {1} {2} {3}",... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72]] | 8 | 126 | 4 |
using System;
using System.Linq;
namespace abc108_b {
class program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int x1 = int.Parse(input[0]);
int y1 = int.Parse(input[1]);
int x2 = int.Parse(input[2]);
int y2 = int.Parse(input[3]);
int x3 = x2 + y1 - y2... | using System;
using System.Linq;
namespace abc108_b {
class program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int x1 = int.Parse(input[0]);
int y1 = int.Parse(input[1]);
int x2 = int.Parse(input[2]);
int y2 = int.Parse(input[3]);
int x3 = x2 + y1 - y2... | [["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33]] | 8 | 158 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pair0 {
class Program {
static void Main(string[] args) {
int x1, y1, x2, y2;
string[] str =
Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得
x1 = int.Parse(str[0]); /... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pair0 {
class Program {
static void Main(string[] args) {
int x1, y1, x2, y2;
string[] str =
Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得
x1 = int.Parse(str[0]); /... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]] | 8 | 205 | 4 |
using System;
using CompLib.Util;
public class Program {
public void Solve() {
var sc = new Scanner();
int n = sc.NextInt();
int k = sc.NextInt();
// 全部 kの倍数
// 全部 k/2の倍数
long ans = 0;
if (k % 2 == 0) {
int d = (n - k / 2 + k) / k;
ans += d * d * d;
}
int d2 = n / k;... | using System;
using CompLib.Util;
public class Program {
public void Solve() {
var sc = new Scanner();
int n = sc.NextInt();
int k = sc.NextInt();
// 全部 kの倍数
// 全部 k/2の倍数
long ans = 0;
if (k % 2 == 0) {
long d = (n - k / 2 + k) / k;
ans += d * d * d;
}
long d2 = n / ... | [["-", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 436 | 4 |
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
const string Yes = "Yes";
const string No = "No";
const long Mod = 1000000007;
static void Main(string[] args) {
#if DEBUG
MyDebugger.Test(process, "../TextFile1.... | using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
const string Yes = "Yes";
const string No = "No";
const long Mod = 1000000007;
static void Main(string[] args) {
#if DEBUG
MyDebugger.Test(process, "../TextFile1.... | [["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]] | 8 | 257 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var waaaa = new waaaa();
waaaa.Solve();
}
}
public class waaaa {
const int MOD = 1000000007;
const long INF = 1 << 61;
const int MOD2... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var waaaa = new waaaa();
waaaa.Solve();
}
}
public class waaaa {
const int MOD = 1000000007;
const long INF = 1 << 61;
const int MOD2... | [["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]] | 8 | 1,710 | 8 |
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, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 64, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["-", 75, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["-", 75, 196, 0, 7, 10, 198,... | 8 | 1,177 | 12 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
class Procon {
static void Main(string[] agrs) {
long N = Long();
long K = Long();
long tmp1 = N / K;
long tmp2 = 0;
if (K % 2 == 0) {
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
class Procon {
static void Main(string[] agrs) {
long N = Long();
long K = Long();
long tmp1 = N / K;
long tmp2 = 0;
if (K % 2 == 0 && N... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 17, 85], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 12, 203]] | 8 | 812 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
// var input = Console.ReadLine().Split().Select(int.Parse).ToArray();
namespace AtCoderSolve {
class Solve {
const int mod = 1000000007;
static void Main(string[] args) {
var sw =
new StreamWriter(Con... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
// var input = Console.ReadLine().Split().Select(int.Parse).ToArray();
namespace AtCoderSolve {
class Solve {
const int mod = 1000000007;
static void Main(string[] args) {
var sw =
new StreamWriter(Con... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199]] | 8 | 215 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Convert;
using static System.Math;
//using static System.Globalization.CultureInfo;
using System.Text;
class Program
{
private static void chmin<T>(ref T num, T val) where T : ICompar... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Convert;
using static System.Math;
//using static System.Globalization.CultureInfo;
using System.Text;
class Program
{
private static void chmin<T>(ref T num, T val) where T : ICompar... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 1,126 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var nk = Array.ConvertAll(ReadLine().Split(' '), int.Parse);
var mod0 = 0;
var modk = 0;
for (var i ... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var nk = Array.ConvertAll(ReadLine().Split(' '), int.Parse);
var mod0 = 0;
var modk = 0;
for (var i ... | [["+", 3, 4, 0, 28, 0, 16, 12, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 12, 74, 0, 25]] | 8 | 194 | 3 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(' ');
var N = int.Parse(inputs[0]);
var K = int.Parse(inputs[1]);
var kCount = 0;
var halfKCount = 0;
for (int i = 1; i <= N; i++) {
... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(' ');
var N = int.Parse(inputs[0]);
var K = int.Parse(inputs[1]);
var kCount = 0;
var halfKCount = 0;
for (int i = 1; i <= N; i++) {
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 1... | 8 | 222 | 12 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace AtCoder {
class Program {
static void Main() {
//ここから
int[] str = IO.ReadLineToIntArray();
int N = str[0];
int K = str[1];
long ans = 0;
if (N <... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace AtCoder {
class Program {
static void Main() {
//ここから
int[] str = IO.ReadLineToIntArray();
int N = str[0];
int K = str[1];
long ans = 0;
if (2 *... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]] | 8 | 663 | 4 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
using System.IO;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutpu... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
using System.IO;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutpu... | [["-", 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]] | 8 | 608 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
return s[i++];
string st = Console.ReadLine();
while (st ... | using System;
using System.Collections.Generic;
using System.Linq;
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
return s[i++];
string st = Console.ReadLine();
while (st ... | [["-", 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, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199]] | 8 | 415 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace C044 {
class C108 {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int N = int.Parse(s[0]);
int K = int.Parse(s[1]);
int num = N / K;
long... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace C044 {
class C108 {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int N = int.Parse(s[0]);
int K = int.Parse(s[1]);
int num = N / K;
long... | [["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 25]] | 8 | 147 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC108C {
static class MainClass {
public static void Main(string[] args) {
string[] input1 = Console.ReadLine().Split(' ');
int N = int.Parse(input1[0]);
int K = int.Parse(input1[1]);
long cnt = 0;
long ans = 0;
l... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC108C {
static class MainClass {
public static void Main(string[] args) {
string[] input1 = Console.ReadLine().Split(' ');
int N = int.Parse(input1[0]);
int K = int.Parse(input1[1]);
long cnt = 0;
long ans = 0;
l... | [["-", 75, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["+", 75, 196, 0, 1, 0, 11, 12, 74, 39, 199]] | 8 | 254 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
string[] s = Console.ReadLine().Split().ToArray();
int n = int.Parse(s[0]);
int k = int.Parse(s[1]);
long ans = 0;
if (k % 2 == 1) {
int tmp = 0;
for (int i = 1; i <= n; i++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
string[] s = Console.ReadLine().Split().ToArray();
int n = int.Parse(s[0]);
int k = int.Parse(s[1]);
long ans = 0;
if (k % 2 == 1) {
long tmp = 0;
for (int i = 1; i <= n; i++) {
... | [["-", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199]] | 8 | 201 | 2 |
using System;
using System.Collections.Generic;
namespace AtCoder {
public class Program {
// ABC108-C ng
static void Main(string[] args) {
string[] sv = Console.ReadLine().Split();
int N = int.Parse(sv[0]);
int K = int.Parse(sv[1]);
int c1 = 0, c2 = 0;
for (int i = 1; i <= N; i++) {
if (... | using System;
using System.Collections.Generic;
namespace AtCoder {
public class Program {
// ABC108-C ng
static void Main(string[] args) {
string[] sv = Console.ReadLine().Split();
int N = int.Parse(sv[0]);
int K = int.Parse(sv[1]);
long c1 = 0, c2 = 0;
for (int i = 1; i <= N; i++) {
if ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 151 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AtCoder.ABC108.C {
class Program {
static void Main() {
var sc = new Scanner();
var n = sc.Nextint();
var k = sc.Nexti... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AtCoder.ABC108.C {
class Program {
static void Main() {
var sc = new Scanner();
var n = sc.Nextint();
var k = sc.Nexti... | [["+", 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], ["+", 75, 196, 0, 1, 0, 213, 3, 4, 0, 24]] | 8 | 610 | 6 |
using System;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int n = int.Parse(str[0]);
int k = int.Parse(str[1]);
int res = 0;
// Console.WriteLine("{0}, {1}", n, k);
if (k % 2 == 0) {
int kk = k / 2;
int knum = n / k;
int k... | using System;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int n = int.Parse(str[0]);
int k = int.Parse(str[1]);
ulong res = 0;
// Console.WriteLine("{0}, {1}", n, k);
if (k % 2 == 0) {
int kk = k / 2;
int knum = n / k;
int... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 0, 2... | 8 | 187 | 9 |
using System;
namespace ABC108_C {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var n = long.Parse(input[0]);
var k = long.Parse(input[1]);
var ans = Math.Pow(n / k, 3);
var temp = 0;
if (k % 2 == 0) {
for (var i = 1; i <= n; i++) {
... | using System;
namespace ABC108_C {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var n = long.Parse(input[0]);
var k = long.Parse(input[1]);
var ans = (long)Math.Pow(n / k, 3);
var temp = 0;
if (k % 2 == 0) {
for (var i = 1; i <= n; i++) {... | [["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 0, 25]] | 8 | 142 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
using E = System.Linq.Enumerable;
public class Program {
public static void Main() {
var nk = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
var n = nk[0];
var k = nk[1];
var m = n / k;
var l = (n + k / 2) / k;
... | using System;
using System.Linq;
using System.Collections.Generic;
using E = System.Linq.Enumerable;
public class Program {
public static void Main() {
var nk = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
var n = nk[0];
var k = nk[1];
long m = n / k;
long l = (n + k / 2) / k... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 133 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
private static int ReadAndParseInt() { return int.Parse(Console.ReadLine()); }
private static int[] ReadAndParseIntArr() {
return Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
private static int ReadAndParseInt() { return int.Parse(Console.ReadLine()); }
private static int[] ReadAndParseIntArr() {
return Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse)... | [["-", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199]] | 8 | 325 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Numerics;
using static System.Console;
class Program {
static Scanner sc = new Scanner();
internal static void Main(string[] args) {
var N = sc.nextInt();
var K = sc.nextInt();
var ans = 0;
var div = (double)N / K;
... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Numerics;
using static System.Console;
class Program {
static Scanner sc = new Scanner();
internal static void Main(string[] args) {
var N = sc.nextInt();
var K = sc.nextInt();
long ans = 0;
var div = (double)N / K;
... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["-", 64, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["+", 64, 196, 0, 1, 0, 11, 12, 74, 39, 199]] | 8 | 500 | 6 |
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
long[] inpt =
Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray();
long max = inpt[0];
long div = inpt[1];
long cnt = max / div;
... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
long[] inpt =
Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray();
long max = inpt[0];
long div = inpt[1];
long cnt = max / div;
... | [["-", 15, 16, 31, 16, 12, 23, 0, 16, 17, 109], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 17, 85]] | 8 | 261 | 2 |
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, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]] | 8 | 216 | 6 |
using System;
using System.Linq;
namespace ARC102 {
class C {
static void Main(string[] args) {
int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = input[0];
int K = input[1];
long[] num = new long[N + 10];
for (int i = 1; i <= N; i++)
num[i % K]++;
long res ... | using System;
using System.Linq;
namespace ARC102 {
class C {
static void Main(string[] args) {
int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = input[0];
int K = input[1];
long[] num = new long[K];
for (int i = 1; i <= N; i++)
num[i % K]++;
long res = 0;
... | [["-", 0, 227, 39, 224, 225, 226, 0, 16, 31, 22], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22]] | 8 | 185 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static MyUtil;
class MyUtil {
public static int[] ReadIntArray() {
return ReadLine().Split().Select(x => int.Parse(x)).ToArray();
}
}
class Program {
public static void Main() {
var tmp = ReadIntArray(... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static MyUtil;
class MyUtil {
public static int[] ReadIntArray() {
return ReadLine().Split().Select(x => int.Parse(x)).ToArray();
}
}
class Program {
public static void Main() {
var tmp = ReadIntArray()... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199]] | 8 | 168 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static MyUtil;
class MyUtil {
public static int[] ReadIntArray() {
return ReadLine().Split().Select(x => int.Parse(x)).ToArray();
}
}
class Program {
public static void Main() {
var tmp = ReadIntArray(... |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static MyUtil;
class MyUtil {
public static int[] ReadIntArray() {
return ReadLine().Split().Select(x => int.Parse(x)).ToArray();
}
}
class Program {
public static void Main() {
var tmp = ReadIntArray(... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 198 | 6 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]), k = int.Parse(input[1]);
long ans = 0;
for (int i = 1; i <= k; i++) {
if ((2 * i) % k == 0) {
ans += (long)((n -... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]), k = int.Parse(input[1]);
long ans = 0;
for (int i = 1; i <= k; i++) {
if ((2 * i) % k == 0 && n >= i) {
// Conso... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]] | 8 | 153 | 4 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
long N = long.Parse(str[0]);
long K = long.Parse(str[1]);
long ans = 0;
long a = N / K;
ans += a * a * a;
if (K % 2 == 0) {
a = (N - 1) / K + 1... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
long N = long.Parse(str[0]);
long K = long.Parse(str[1]);
long ans = 0;
long a = N / K;
ans += a * a * a;
if (K % 2 == 0) {
a = (N + K / 2) / K... | [["-", 12, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["-", 12, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 31, 22], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 85], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 203], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72... | 8 | 123 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Competitive {
internal class Solution {
public long N, K;
public void Run() {
{
var line = Input.ReadLongArray();
N = line[0];
K = line[1];
}
long ret = 0;
long C = N / K;
ret += C... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Competitive {
internal class Solution {
public long N, K;
public void Run() {
{
var line = Input.ReadLongArray();
N = line[0];
K = line[1];
}
long ret = 0;
long C = N / K;
ret += C... | [["-", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 356 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
public class Program {
public static void Main(string[] args) {
List<int> input = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
Console.WriteLine(input[0] / input[1] == 0 ? "0" : " 1");
}
} | using System;
using System.Linq;
using System.Collections.Generic;
public class Program {
public static void Main(string[] args) {
List<int> input = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
Console.WriteLine(input[0] % input[1] == 0 ? "0" : " 1");
}
} | [["-", 0, 28, 0, 41, 15, 16, 31, 16, 17, 85], ["+", 0, 28, 0, 41, 15, 16, 31, 16, 17, 109]] | 8 | 87 | 2 |
using System;
using static System.Console;
namespace AtCorder {
public class Program {
public static void Main() {
var input = Array.ConvertAll(ReadLine().Split(), int.Parse);
var n = input[0];
var k = input[1];
WriteLine(n % k);
}
}
}
| using System;
using static System.Console;
namespace AtCorder {
public class Program {
public static void Main() {
var input = Array.ConvertAll(ReadLine().Split(), int.Parse);
var n = input[0];
var k = input[1];
WriteLine(n % k == 0 ? 0 : 1);
}
}
}
| [["+", 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], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 75, 203]] | 8 | 69 | 6 |
using System;
using System.Linq;
namespace ABC105.Task01 {
internal class Task01 {
public static void Main(string[] args) {
var line =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var n = line[0];
var k = line[1];
var rest = n / k;
if (rest == 0) {
... | using System;
using System.Linq;
namespace ABC105.Task01 {
internal class Task01 {
public static void Main(string[] args) {
var line =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var n = line[0];
var k = line[1];
var rest = n % k;
if (rest == 0) {
... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 115 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static PB10004.Algorithm.Util;
namespace PB10004.Algorithm {
class Template {
static void Main(string[] args) { new A().Solve(); }
}
class A {
public void Solve() {
var array = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static PB10004.Algorithm.Util;
namespace PB10004.Algorithm {
class Template {
static void Main(string[] args) { new A().Solve(); }
}
class A {
public void Solve() {
var array = ... | [["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 554 | 2 |
using System;
using System.Linq;
namespace ABC105_A {
class Program {
static void Main(string[] args) {
var NK = Console.ReadLine().Split().Select(int.Parse).ToArray();
var N = NK[0];
var K = NK[1];
Console.WriteLine(N % K);
}
}
}
| using System;
using System.Linq;
namespace ABC105_A {
class Program {
static void Main(string[] args) {
var NK = Console.ReadLine().Split().Select(int.Parse).ToArray();
var N = NK[0];
var K = NK[1];
Console.WriteLine(N % K == 0 ? 0 : 1);
}
}
}
| [["+", 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], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 75, 203]] | 8 | 76 | 6 |
using System;
namespace ABC105B {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
Boolean buy = false;
for (int i = 0; i < (N / 4) + 1; i++) {
for (int j = 0; j < (N / 7) + 1; j++) {
if (4 * i + 7 + j == N)
buy = true;
}
}
if ... | using System;
namespace ABC105B {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
Boolean buy = false;
for (int i = 0; i < (N / 4) + 1; i++) {
for (int j = 0; j < (N / 7) + 1; j++) {
if (4 * i + 7 * j == N)
buy = true;
}
}
if ... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 48]] | 8 | 128 | 2 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static ABC105_20200320B.Input;
namespace ABC105_20200320B {
static class Input {
/// <summary>
/// 1行の入力をTに応じてリストに変換する関数を返す
/// </summary>
static Func<string, List<T>>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>())... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static ABC105_20200320B.Input;
namespace ABC105_20200320B {
static class Input {
/// <summary>
/// 1行の入力をTに応じてリストに変換する関数を返す
/// </summary>
static Func<string, List<T>>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>())... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 85], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 1,656 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
static class MainClass {
public static void Main(string[] args) {
// var temp = Console.ReadLine().Split(' ').Select(long.Parse);
var N = int.Parse(Console.ReadLine());
var ans = "No";
for (var i = 0; i < N / 4; i++) {
for (var... | using System;
using System.Collections.Generic;
using System.Linq;
static class MainClass {
public static void Main(string[] args) {
// var temp = Console.ReadLine().Split(' ').Select(long.Parse);
var N = int.Parse(Console.ReadLine());
var ans = "No";
for (var i = 0; i <= N / 4; i++) {
for (va... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 119 | 4 |
using System;
using System.Linq;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using static System.Console;
using static Program.Input;
using static Program.MyMath;
using static Program.Const;
namespace Program {
static class Const {
public static string alp = "abcdefghijklmnopqrstuvwxyz";
... | using System;
using System.Linq;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using static System.Console;
using static Program.Input;
using static Program.MyMath;
using static Program.Const;
namespace Program {
static class Const {
public static string alp = "abcdefghijklmnopqrstuvwxyz";
... | [["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 98], ["+", 0, 7, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 7, 15, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 7, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 22]] | 8 | 2,014 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using Console = System.Console;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
for (int i = 1; i <= N / 4; i++) {
for (int j = 1; j <= N / 7; j++) {
if (N == (4 * i) ... | using System;
using System.Collections.Generic;
using System.Linq;
using Console = System.Console;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
for (int i = 0; i <= N / 7; i++) {
for (int j = 0; j <= N / 4; j++) {
if (N == (7 * i) ... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 15, 16, 12, 16, 31, 23, 0, 16, 31, 203], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 31, 203], ["-", 15, 16, 12, 16, 12, 23, 0, 16, 31, ... | 8 | 129 | 12 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Collections;
class Program {
static void Main() {
int N = int.Parse(Console.ReadLine());
bool ans = false;
foreach (var x in Enumerable... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Collections;
class Program {
static void Main() {
int N = int.Parse(Console.ReadLine());
bool ans = false;
foreach (var x in Enumerable... | [["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 371 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
//[summary]B - Cakes and Donuts
int n = int.Parse(Console.ReadLine());
if (CanBuyCakesAndDonuts(n)) {
Console.WriteLine("Yes");
} else {
Console.WriteL... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
//[summary]B - Cakes and Donuts
int n = int.Parse(Console.ReadLine());
if (CanBuyCakesAndDonuts(n)) {
Console.WriteLine("Yes");
} else {
Console.WriteL... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 128 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
namespace AtCoder {
class Program {
static void Main() {
var N = int.Parse(ReadLine());
for (int i = 1; i * 4 <= N; i++) {
var num = N;
num = num - i * 4;
if (num < 0)
continue;
fo... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
namespace AtCoder {
class Program {
static void Main() {
var N = int.Parse(ReadLine());
for (int i = 0; i * 4 <= N; i++) {
var num = N;
num = num - i * 4;
if (num < 0)
continue;
fo... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 133 | 2 |
using System;
namespace B.Cakes_and_Donuts {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
int ans = 0;
for (int i = 4; i <= N; i += 4)
for (int j = 7; j <= N - i; j += 7)
if ((i + j) == N) {
ans++;
break;
... | using System;
namespace B.Cakes_and_Donuts {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
int ans = 0;
for (int i = 0; i <= N; i += 4)
for (int j = 0; j <= N - i; j += 7)
if ((i + j) == N) {
ans++;
break;
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 117 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace MyProgram {
public class Program {
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
bool ok = false;
int a = 4;
while (a < n) {
if ((n - a) % 7 == 0)
o... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace MyProgram {
public class Program {
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
bool ok = false;
int a = 4;
while (a <= n) {
if ((n - a) % 7 == 0)
... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]] | 8 | 148 | 4 |
using static System.Console;
namespace AtCorder {
public class Program {
public static void Main() {
var n = int.Parse(ReadLine());
for (int i = 0; i < n; i += 4) {
for (int j = 0; j <= n; j += 7) {
if (i + j == n) {
WriteLine("Yes");
return;
}
}
}
Writ... | using static System.Console;
namespace AtCorder {
public class Program {
public static void Main() {
var n = int.Parse(ReadLine());
for (int i = 0; i <= n; i += 4) {
for (int j = 0; j <= n; j += 7) {
if (i + j == n) {
WriteLine("Yes");
return;
}
}
}
Wri... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 95 | 2 |
using System;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int n = int.Parse(str[0]);
string output = "";
float cakesNum = 0;
int donutsNum = 0;
output = "No";
for (int i = 0; n - 7 * i > 0; i++) {
cakesNum = (n - 7 * i) / 4f;
... | using System;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int n = int.Parse(str[0]);
string output = "";
float cakesNum = 0;
int donutsNum = 0;
output = "No";
for (int i = 0; n - 7 * i >= 0; i++) {
cakesNum = (n - 7 * i) / 4f;
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20]] | 8 | 131 | 2 |
using System;
class Program {
static void Main(string[] args) {
int N;
N = int.Parse(Console.ReadLine());
bool f = false;
for (int i = 1; i < 26; i++) {
for (int j = 1; j < 15; j++) {
if (4 * i + 7 * j == N) {
if (!f) {
Console.WriteLine("Yes");
}
... | using System;
class Program {
static void Main(string[] args) {
int N;
N = int.Parse(Console.ReadLine());
bool f = false;
for (int i = 0; i < 26; i++) {
for (int j = 0; j < 15; j++) {
if (4 * i + 7 * j == N) {
if (!f) {
Console.WriteLine("Yes");
}
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 123 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { ABC105.C(); }
class ABC105 {
public static void A() {
var N = Read.Int();
var K = Read.Int();
Console.WriteLine(N % K == 0 ? 0 : 1);
}
public static... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { ABC105.C(); }
class ABC105 {
public static void A() {
var N = Read.Int();
var K = Read.Int();
Console.WriteLine(N % K == 0 ? 0 : 1);
}
public static... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 31, 23, 0, 16, 12, 23, 0, 16, 31, 203], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 31, 203]] | 8 | 1,673 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp90 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int k = 0;
int keta = 0;
if (N > 0) {
k = (int)Math.Ceiling(Mat... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp90 {
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
int k = 0;
int keta = 0;
if (N > 0) {
k = (int)Math.Ceiling(M... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]] | 8 | 238 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string ans = "";
while (N != 0) {
if (N % -2 == 0) {
ans = "0" + ans;
} else {
ans = "1" + ans;
}
N = N / -2;... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string ans = "";
while (N != 0) {
if (N % -2 == 0) {
ans = "0" + ans;
} else {
ans = "1" + ans;
N--;
}
... | [["+", 0, 57, 75, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 75, 196, 0, 1, 0, 223, 0, 68], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35]] | 8 | 121 | 3 |
using System;
using System.Collections.Generic;
using System.Linq;
class Procon {
public Procon() {}
static void Main(string[] agrs) { new Procon().Do(); }
Scanner cin;
public void Do() {
cin = new Scanner();
int N = cin.nextInt();
string S = "";
int tmp = -2;
while (true) {
if (N ... | using System;
using System.Collections.Generic;
using System.Linq;
class Procon {
public Procon() {}
static void Main(string[] agrs) { new Procon().Do(); }
Scanner cin;
public void Do() {
cin = new Scanner();
long N = cin.nextInt();
string S = "";
long tmp = -2;
while (true) {
if (... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 572 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
class Cmondai {
static void Main() {
var N = Int32.Parse(Console.ReadLine());
const int constant = -2;
var num = 1;
var ans = new Stack<char>();
if (N == 0)
ans.Push('0');
while (N != 0) {
//余りが0
// 1が立たないので数... | using System;
using System.Collections.Generic;
using System.Linq;
class Cmondai {
static void Main() {
var N = Int64.Parse(Console.ReadLine());
const long constant = -2;
var num = 1L;
var ans = new Stack<char>();
if (N == 0)
ans.Push('0');
while (N != 0) {
//余りが0
// 1が立たないの... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 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, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 197, 0, 198, 3... | 8 | 176 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
//[summary]C - Base -2 Number
int n = int.Parse(Console.ReadLine());
string minus2Str = ConvertBaseNumber(n, -2);
Console.WriteLine(minus2Str);
}
static strin... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
//[summary]C - Base -2 Number
int n = int.Parse(Console.ReadLine());
string minus2Str = ConvertBaseNumber(n, -2);
Console.WriteLine(minus2Str);
}
static strin... | [["+", 8, 196, 0, 52, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 98], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 17, 79]] | 8 | 180 | 4 |
using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine());
var ans = "";
while (n != 0) {
if (n % -2 != 0) {
ans += "1";
n--;
} else {
ans += "0";
}
n /= -2;
}
Console.WriteLine((ans == "") ? "0" : ans);
}... | using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine());
var ans = "";
while (n != 0) {
if (n % -2 != 0) {
ans = "1" + ans;
n--;
} else {
ans = "0" + ans;
}
n /= -2;
}
Console.WriteLine((ans == "") ? "0" :... | [["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", ... | 8 | 96 | 8 |
using System;
namespace AtCoder.ABC104 {
public class A {
public static void Solve() {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
var rank = "";
if (a < 1200) {
rank = "ABC";
} else if (1200 <= a || a < 2800) {
rank = "ARC";
}... | using System;
namespace AtCoder.ABC104 {
public class A {
public static void Solve() {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
var rank = "";
if (a < 1200) {
rank = "ABC";
} else if (1200 <= a && a < 2800) {
rank = "ARC";
}... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98]] | 8 | 135 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class program {
static void Main(string[] args) {
int R = int.Parse(Console.ReadLine());
if (R < 2000) {
Console.WriteLine("ABC");
} else if (R < 2800) {
Console.WriteLine("ARC... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class program {
static void Main(string[] args) {
int R = int.Parse(Console.ReadLine());
if (R < 1200) {
Console.WriteLine("ABC");
} else if (R < 2800) {
Console.WriteLine("ARC... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 103 | 2 |
using System;
class Program {
static void Main(string[] args) {
int n;
n = int.Parse(Console.ReadLine());
if (n < 1200) {
Console.WriteLine("ABC");
} else if (n <= 1200 && n < 2800) {
Console.WriteLine("ARC");
} else {
Console.WriteLine("AGC");
}
}
} | using System;
class Program {
static void Main(string[] args) {
int n;
n = int.Parse(Console.ReadLine());
if (n < 1200) {
Console.WriteLine("ABC");
} else if (n >= 1200 && n < 2800) {
Console.WriteLine("ARC");
} else {
Console.WriteLine("AGC");
}
}
} | [["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 19], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 20]] | 8 | 85 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC {
class ProgramB {
static void Main(string[] args) {
var s = Console.ReadLine();
if (s[0] != 'A') {
Console.WriteLine("WA");
return;
}
var cCount = 0;
var cPos = -1;
for (var i = 2; i < s.Length - 2... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC {
class ProgramB {
static void Main(string[] args) {
var s = Console.ReadLine();
if (s[0] != 'A') {
Console.WriteLine("WA");
return;
}
var cCount = 0;
var cPos = -1;
for (var i = 2; i < s.Length - 1... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 202 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderB {
static void Main() {
var sc = new Scanner();
string s = sc.Next();
bool ok = true;
if (s.Substring(0, 1) != "A") {
ok = false;
}
if (!s.Substring(2, s.Length - 3).Contains("... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderB {
static void Main() {
var sc = new Scanner();
string s = sc.Next();
bool ok = true;
if (s.Substring(0, 1) != "A") {
ok = false;
}
if (!s.Substring(2, s.Length - 3).Contains("... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253]] | 8 | 518 | 4 |
using System;
using System.Linq;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using static program.Input;
using static program.MyMath;
using static System.Console;
using static program.Const;
namespace program {
class Program {
static void Main() {
var s = ScanStr().ToCharArray();
... | using System;
using System.Linq;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using static program.Input;
using static program.MyMath;
using static System.Console;
using static program.Const;
namespace program {
class Program {
static void Main() {
var s = ScanStr().ToCharArray();
... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 1,542 | 2 |
using System;
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
string T = Console.ReadLine();
bool flag = false;
char[] s = S.ToCharArray();
for (int j = 0; j < S.Length; j++) {
char tmp = s[s.Length - 1];
for (int i = s.Length - 1; i > 0; i--)
... | using System;
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
string T = Console.ReadLine();
bool flag = false;
char[] s = S.ToCharArray();
for (int j = 0; j < S.Length; j++) {
char tmp = s[s.Length - 1];
for (int i = s.Length - 1; i > 0; i--)
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 170 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return lo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return lo... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 363 | 4 |
using System;
using System.Linq;
class prog {
static void Main() {
int N = int.Parse(Console.ReadLine());
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
int ans = 0;
for (int i = 0; i < N; i++) {
ans += a[i];
}
Console.WriteLine(ans);
}
} | using System;
using System.Linq;
class prog {
static void Main() {
int N = int.Parse(Console.ReadLine());
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
int ans = 0;
for (int i = 0; i < N; i++) {
ans += a[i] - 1;
}
Console.WriteLine(ans);
}
} | [["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]] | 8 | 94 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
class Program {
static void Main() {
int[] nm =
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int N = nm[0];
int M = nm[1... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
class Program {
static void Main() {
int[] nm =
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int N = nm[0];
int M = nm[1... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25]] | 8 | 536 | 6 |
using System;
using System.Linq;
struct Demand {
public int a;
public int b;
public Demand(int a, int b) {
this.a = a;
this.b = b;
}
}
class Program {
static void Main(string[] args) {
var nmstr = Console.ReadLine().Split(' ');
var n = int.Parse(nmstr[0]);
var m = int.Parse(nmstr[1]);
... | using System;
using System.Linq;
struct Demand {
public int a;
public int b;
public Demand(int a, int b) {
this.a = a;
this.b = b;
}
}
class Program {
static void Main(string[] args) {
var nmstr = Console.ReadLine().Split(' ');
var n = int.Parse(nmstr[0]);
var m = int.Parse(nmstr[1]);
... | [["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24]] | 8 | 303 | 6 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace V {
partial class Solver {
public void Solve() {
var t = Read;
for (var i = 0; i < t; i++) {
YesNo(Slv(new Query { initial = Read, buy = Read, threshold = Read,
add = Read }));
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace V {
partial class Solver {
public void Solve() {
var t = Read;
for (var i = 0; i < t; i++) {
YesNo(Slv(new Query { initial = Read, buy = Read, threshold = Read,
add = Read }));
... | [["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 72], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 203]] | 8 | 8,219 | 2 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Solve {
public Solve() {}
StringBuilder sb;
ReadData re;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
re = new ReadData();
Calc();
Console.W... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Solve {
public Solve() {}
StringBuilder sb;
ReadData re;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
re = new ReadData();
Calc();
Console.W... | [["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 98]] | 8 | 1,887 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var S = sc.ReadStr();
if (S[0] != 'A') {
Console.WriteLine("WA");
} else {
var count = 0;
foreach (var c in S.Take(S.Length - 1).Skip(2)) {
if (c == 'C')
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var S = sc.ReadStr();
if (S[0] != 'A') {
Console.WriteLine("WA");
return;
} else {
var count = 0;
foreach (var c in S.Take(S.Length - 1).Skip(2)) {
if (c ==... | [["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]] | 8 | 1,170 | 2 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using static System.Math;
using System.Text;
namespace Program {
public static class ABC104B {
static public void Solve() {
var S = NS;
var c = false;
if (S[0] == 'A') {
for (v... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using static System.Math;
using System.Text;
namespace Program {
public static class ABC104B {
static public void Solve() {
var S = NS;
var c = false;
if (S[0] == 'A') {
for (v... | [["+", 0, 213, 3, 4, 0, 28, 0, 41, 15, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 3,785 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Practice {
class Program {
static void Main(string[] args) { new Program().Solve(); }
public void Solve() {
string s = Console.ReadLine();
bool Flag = true;
bool Cflag = false... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Practice {
class Program {
static void Main(string[] args) { new Program().Solve(); }
public void Solve() {
string s = Console.ReadLine();
bool Flag = true;
bool Cflag = false... | [["-", 0, 57, 64, 1, 0, 11, 12, 211, 0, 146], ["+", 0, 57, 64, 1, 0, 11, 12, 211, 0, 147], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22]] | 8 | 247 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
if (s[0] != 'A') {
Console.WriteLine("WA");
return;
}
int Cpos = -1;
int CCount = 0;
for (int i = 2; i < s.Length - 2; i++) {
if... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
if (s[0] != 'A') {
Console.WriteLine("WA");
return;
}
int Cpos = -1;
int CCount = 0;
for (int i = 2; i < s.Length - 1; i++) {
if... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 195 | 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;
void calc() {
cin = new Scanner();
... | 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;
void calc() {
cin = new Scanner();
... | [["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["-", 0, 57, 64, 1, 0, 11, 12, 5, 0, 222], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 222]] | 8 | 657 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
const int MOD = 1000000007;
const int INF = 1 << 30;
static void Main(string[] args) { Solve(); }
static long GCD(long x, long y) {
if (y == 0)
return x;
return GCD... | 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 long GCD(long x, long y) {
if (y == 0)
return x;
return GCD... | [["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 18], ["-", 64, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["+", 64, 196, 0, 57, 15, 16, 12, 252, 0, 253]] | 8 | 421 | 4 |
using System;
namespace AtCoder {
class Program {
static void Main(string[] args) { MainStream(); }
static void MainStream() {
char[] s = Console.ReadLine().ToCharArray();
if (Judge(s)) {
Console.WriteLine("AC");
} else {
Console.WriteLine("WA");
}
}
static bool Judge(char[] s) {
... | using System;
namespace AtCoder {
class Program {
static void Main(string[] args) { MainStream(); }
static void MainStream() {
char[] s = Console.ReadLine().ToCharArray();
if (Judge(s)) {
Console.WriteLine("AC");
} else {
Console.WriteLine("WA");
}
}
static bool Judge(char[] s) {
... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 225 | 2 |
using System;
class Program {
static void Main(string[] args) {
string str = Console.ReadLine();
char[] cha = new char[str.Length];
for (int i = 0; i < str.Length; i++) {
cha[i] = str[i];
}
int cCount = 0;
int cNumber = 0;
for (int i = 2; i < cha.Length - 2; i++) {
if (cha[i].T... | using System;
class Program {
static void Main(string[] args) {
string str = Console.ReadLine();
char[] cha = new char[str.Length];
for (int i = 0; i < str.Length; i++) {
cha[i] = str[i];
}
int cCount = 0;
int cNumber = 0;
for (int i = 2; i < cha.Length - 1; i++) {
if (cha[i].T... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 234 | 2 |
using System;
class Program {
static void Main(string[] args) {
var s = Console.ReadLine().ToCharArray();
var f1 = s[0] == 'A';
s[0] = 'a';
var f2 = 0;
var i = 2;
for (; i <= s.Length - 2; i++) {
if (s[i] == 'C') {
s[i] = 'c';
f2++;
}
}
var f3 = true;
... | using System;
class Program {
static void Main(string[] args) {
var s = Console.ReadLine().ToCharArray();
var f1 = s[0] == 'A';
s[0] = 'a';
var f2 = 0;
var i = 2;
for (; i <= s.Length - 2; i++) {
if (s[i] == 'C') {
s[i] = 'c';
f2++;
}
}
var f3 = true;
... | [["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22]] | 8 | 159 | 2 |
using System;
using System.Linq;
namespace B.AcCepted {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
bool flg1, flg2, flg3;
flg1 = str[0] == 'A';
flg2 = str.Substring(2, str.Length - 2).Contains('C');
flg3 = str.Count(x => char.IsUpper(x)) == 2;
... | using System;
using System.Linq;
namespace B.AcCepted {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
bool flg1, flg2, flg3;
flg1 = str[0] == 'A';
flg2 = str.Skip(2).Take(str.Length - 3).Contains('C');
flg3 = str.Count(x => char.IsUpper(x)) == 2;
... | [["-", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 12, 213, 63, 214, 205, 213, 3, 4, 0, 21], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, ... | 8 | 123 | 9 |
using System;
using System.Web;
using System.IO;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Runtime.CompilerServices;
using... | using System;
using System.Web;
using System.IO;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Runtime.CompilerServices;
using... | [["-", 15, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 15, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 120 | 2 |
using System;
using System.Linq;
using System.Text.RegularExpressions;
class A {
static void Main() {
var s = Console.ReadLine();
var a = s.StartsWith("A");
var b = s.Substring(2, s.Length - 3).Count(x => x == 'C') == 1;
var c = !Regex.IsMatch(string.Join("", s.Substring(2).Split('C')), "[A-Z]");
... | using System;
using System.Linq;
using System.Text.RegularExpressions;
class A {
static void Main() {
var s = Console.ReadLine();
var a = s.StartsWith("A");
var b = s.Substring(2, s.Length - 3).Count(x => x == 'C') == 1;
var c = !Regex.IsMatch(string.Join("", s.Substring(1).Split('C')), "[A-Z]");
... | [["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203]] | 8 | 130 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Runtime.Remoting.Messaging;
using System.Security.Cryptography.X509Certificates;
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Runtime.Remoting.Messaging;
using System.Security.Cryptography.X509Certificates;
... | [["-", 205, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 205, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 3,737 | 2 |
using System;
class Program {
static void Main() {
string s = Console.ReadLine();
int pos = 0;
bool flag = false;
for (int i = 2; i < s.Length - 1; i++) {
if (s[i] == 'C' && flag == true) {
flag = false;
break;
}
if (s[i] == 'C') {
flag = true;
pos =... | using System;
class Program {
static void Main() {
string s = Console.ReadLine();
int pos = 0;
bool flag = false;
for (int i = 2; i < s.Length - 1; i++) {
if (s[i] == 'C' && flag == true) {
flag = false;
break;
}
if (s[i] == 'C') {
flag = true;
pos =... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["-", 0, 57, 64, 1, 0, 11, 12, 211, 0, 146], ["+", 0, 57, 64, 1, 0, 11, 12, 211, 0, 147]] | 8 | 189 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main() {
string S = Console.ReadLine();
string OutputString;
if (S[0] != 'A') {
Console.WriteLine("WA");
return;
}
int CountC = 0;
int ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main() {
string S = Console.ReadLine();
if (S[0] != 'A') {
Console.WriteLine("WA");
return;
}
int CountC = 0;
int PlaceC = 0;
for (int ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 217 | 5 |
using System;
namespace ABC104.Task2 {
class Program {
static void Main(string[] args) {
var line = Console.ReadLine();
if (Check(line)) {
Console.WriteLine("AC");
} else {
Console.WriteLine("WA");
}
}
static bool Check(string s) {
long count = 0;
for... | using System;
namespace ABC104.Task2 {
class Program {
static void Main(string[] args) {
var line = Console.ReadLine();
if (Check(line)) {
Console.WriteLine("AC");
} else {
Console.WriteLine("WA");
}
}
static bool Check(string s) {
long count = 0;
for... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46]] | 8 | 179 | 6 |
using System;
class Program {
static void Main(string[] args) {
// 整数の入力
int c = 0;
string i = Console.ReadLine();
string output = "AC";
if (i.Substring(0, 1) != "A")
output = "WA";
else {
int nagasa = i.Length;
string a = i.Substring(2, nagasa - 3);
if (CountChar(a, 'C... | using System;
class Program {
static void Main(string[] args) {
// 整数の入力
int c = 0;
string i = Console.ReadLine();
string output = "AC";
if (i.Substring(0, 1) != "A")
output = "WA";
else {
int nagasa = i.Length;
string a = i.Substring(2, nagasa - 3);
if (CountChar(a, 'C... | [["-", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22]] | 8 | 200 | 2 |
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
string inpt = Reader.ReadLine();
string ans = "WA";
if (Judge(inpt)) {
ans = "AC";
}
Console.WriteLine(ans);
}
private bool Judge(string i... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
string inpt = Reader.ReadLine();
string ans = "WA";
if (Judge(inpt)) {
ans = "AC";
}
Console.WriteLine(ans);
}
private bool Judge(string i... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258]] | 8 | 385 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace AtCoder_Project_CSharp {
class Program {
static void Main(string[] args) {
var s = (Console.ReadLine());
var alphabet = new HashSet<int>(Enumerable.Range('a', 26));
if (s[0] == 'A') {
for (... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace AtCoder_Project_CSharp {
class Program {
static void Main(string[] args) {
var s = (Console.ReadLine());
var alphabet = new HashSet<int>(Enumerable.Range('a', 26));
if (s[0] == 'A') {
for (... | [["-", 64, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 64, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 198 | 2 |
using System;
using System.Linq;
namespace ABC104B {
internal class Program {
public static void Main(string[] args) {
string s = ConsoleInput.String();
if (s[0] != 'A') {
Console.WriteLine("WA");
return;
}
int cPos = 0;
for (int i = 2; i < s.Length - 1; i++) {
if (s[i] == 'C')... | using System;
using System.Linq;
namespace ABC104B {
internal class Program {
public static void Main(string[] args) {
string s = ConsoleInput.String();
if (s[0] != 'A') {
Console.WriteLine("WA");
return;
}
int cPos = 0;
for (int i = 2; i < s.Length - 1; i++) {
if (s[i] == 'C')... | [["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]] | 8 | 378 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace C {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace C {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | [["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 12, 203], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 20], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]] | 8 | 398 | 6 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
// var s = Console.ReadLine();
// var n = int.Parse(Console.ReadLine());
int[] dg = Console.ReadLine().Split().Select(int.Parse).ToAr... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
// var s = Console.ReadLine();
// var n = int.Parse(Console.ReadLine());
int[] dg = Console.ReadLine().Split().Select(int.Parse).ToAr... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22]] | 8 | 389 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC104C {
class Program {
static void Solve(Input input) {
var d = input.NextInt();
var g = input.NextInt();
var pros = new Tuple<int, int,... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC104C {
class Program {
static void Solve(Input input) {
var d = input.NextInt();
var g = input.NextInt();
var pros = new Tuple<int, int,... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 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]] | 8 | 1,498 | 6 |
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Math;
using Debug = System.Diagnostics.Debug;
using LayoutKind = System.Runtime.... | using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Math;
using Debug = System.Diagnostics.Debug;
using LayoutKind = System.Runtime.... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 33], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 203]] | 8 | 400 | 3 |
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 long GCD(long x, long y) {
if (y == 0)
return x;
return GC... | 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 long GCD(long x, long y) {
if (y == 0)
return x;
return GC... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 566 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.