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;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static Asakatsu20200323D.Input;
namespace Asakatsu20200323D {
static class Input {
private static Func<string, T[]>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray();
private static Fu... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static Asakatsu20200323D.Input;
namespace Asakatsu20200323D {
static class Input {
private static Func<string, T[]>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray();
private static Fu... | [["-", 8, 201, 0, 195, 8, 196, 0, 37, 0, 38], ["-", 8, 201, 0, 195, 8, 196, 0, 37, 0, 35]] | 8 | 1,680 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC127D {
class Program {
static void Main(string[] args) {
long[] NM = CIN.LongArray();
long N = NM[0];
long M = NM[1];
long[] A = CIN.LongArray();
long[] B = new long[M];
long[] C = new long[M];
for (int i = 0... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC127D {
class Program {
static void Main(string[] args) {
long[] NM = CIN.LongArray();
long N = NM[0];
long M = NM[1];
long[] A = CIN.LongArray();
long[] B = new long[M];
long[] C = new long[M];
for (int i = 0... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 646 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
public class P {
public static void Main() {
var input = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
var N = input[0];
var M = input[1];
var cards = new List<long>(
Array.ConvertAll(Console.ReadLine().Split... | using System;
using System.Linq;
using System.Collections.Generic;
public class P {
public static void Main() {
var input = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
var N = input[0];
var M = input[1];
var cards = new List<long>(
Array.ConvertAll(Console.ReadLine().Split... | [["-", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 210, 8, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 196, 0, 210, 8, 196, 0, 1, 0, 35]] | 8 | 349 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProblemD {
class Program {
static void Main(string[] args) {
var read =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var N = read[0];
var M = read[1]... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProblemD {
class Program {
static void Main(string[] args) {
var read =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var N = read[0];
var M = read[1]... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 7, 15, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 214, 205, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 214, 205, 204, 205, 22], ["-", 0, 28, 0, 74, 51, 214, 20... | 8 | 385 | 8 |
using System;
using System.Collections.Generic;
namespace ABC127 {
struct Rule : IComparable<Rule> {
public int b, c;
public Rule(int i_b, int i_c) {
b = i_b;
c = i_c;
}
public int CompareTo(Rule other) {
// intと降順と昇順を逆にしたいので工夫する
int cCompareTo = this.c.CompareTo(other.c);
if (cCompareTo !=... | using System;
using System.Collections.Generic;
namespace ABC127 {
class Program {
struct Rule : IComparable<Rule> {
public int b, c;
public Rule(int i_b, int i_c) {
b = i_b;
c = i_c;
}
public int CompareTo(Rule other) {
// intと降順と昇順を逆にしたいので工夫する
int cCompareTo = this.c.Compare... | [["+", 0, 208, 0, 209, 8, 201, 0, 235, 0, 269], ["+", 0, 208, 0, 209, 8, 201, 0, 235, 141, 22], ["+", 0, 209, 8, 201, 0, 235, 8, 201, 0, 45], ["-", 0, 208, 0, 209, 8, 201, 0, 235, 0, 269], ["-", 0, 208, 0, 209, 8, 201, 0, 235, 141, 22], ["-", 0, 209, 8, 201, 0, 235, 8, 201, 0, 45], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0,... | 8 | 467 | 30 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
Console.WriteLine(Solve());
return;
}
public static string Solve() {
int[] input = ReadInts();
int N = input[0];
int M = input[1];
long[] A = ReadLongs();
Array.Sort(A);
List<l... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
Console.WriteLine(Solve());
return;
}
public static string Solve() {
int[] input = ReadInts();
int N = input[0];
int M = input[1];
long[] A = ReadLongs();
Array.Sort(A);
List<l... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 106], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 98], ["-", 0, 52, 8, 196, 0, 52, 15, 16, 17, 106], ["+", 0, 52, 8, 196, 0, 52, 15, 16, 17, 98]] | 8 | 441 | 4 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using static System.Math;
class Program {
static string l;
static int n;
static long mod = (long)1e9 + 7;
static void Main() {
l = Console.ReadLine();
n = l.Length;
long[,] dp = new lon... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using static System.Math;
class Program {
static string l;
static int n;
static long mod = (long)1e9 + 7;
static void Main() {
l = Console.ReadLine();
n = l.Length;
long[,] dp = new lon... | [["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25]] | 8 | 264 | 6 |
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 ABC129F {
static public void Solve() {
var L = NextLong;
var A = NextLong;
var B = NextLong;
... | 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 ABC129F {
static public void Solve() {
var L = NextLong;
var A = NextLong;
var B = NextLong;
... | [["-", 15, 16, 31, 23, 0, 11, 0, 202, 0, 132], ["+", 15, 16, 31, 23, 0, 11, 0, 202, 0, 32], ["+", 15, 16, 31, 23, 0, 11, 12, 16, 17, 109], ["+", 15, 16, 31, 23, 0, 11, 12, 16, 12, 22]] | 8 | 4,286 | 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... | [["+", 31, 23, 0, 16, 12, 16, 31, 16, 17, 109], ["+", 31, 23, 0, 16, 12, 16, 31, 16, 12, 22]] | 8 | 1,451 | 2 |
using System;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
using static System.Math;
static class Program {
static int mod;
static void Main() {
Sc sc = new Sc();
var s = sc.L... | using System;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
using static System.Math;
static class Program {
static int mod;
static void Main() {
Sc sc = new Sc();
var s = sc.L... | [["+", 0, 229, 0, 227, 0, 229, 0, 16, 17, 109], ["+", 0, 229, 0, 227, 0, 229, 0, 16, 12, 22]] | 8 | 1,369 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | [["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 64, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 64, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 1,290 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_20190707_1 {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
double N = double.Parse(s[0]);
double K = double.Parse(s[1]);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_20190707_1 {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
double N = double.Parse(s[0]);
double K = double.Parse(s[1]);
... | [["-", 0, 7, 8, 196, 0, 52, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 52, 15, 16, 17, 47]] | 8 | 192 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var NK = Array.ConvertAll(Console.ReadLine().Split(), double.Parse);
var N = NK[0];
var K = NK[1];
double coun... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var NK = Array.ConvertAll(Console.ReadLine().Split(), double.Parse);
var N = NK[0];
var K = NK[1];
double coun... | [["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 107]] | 8 | 168 | 2 |
using System;
using System.Collections.Generic;
namespace ABC126_C {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
int n = int.Parse(input[0]);
int k = int.Parse(input[1]);
double ans = 0;
for (int i = 1; i <= n; i++) {
long numberOfKakeru =... | using System;
using System.Collections.Generic;
namespace ABC126_C {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
int n = int.Parse(input[0]);
int k = int.Parse(input[1]);
double ans = 0;
for (int i = 1; i <= n; i++) {
long numberOfKakeru =... | [["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 85], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 90], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22]] | 8 | 142 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
class Mondai {
static void Main() {
var line =
Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray();
var N = line[0];
var A = line[1];
var B = line[2];
var C = line[3];
var D = line[4];
var S = Conso... | using System;
using System.Linq;
using System.Collections.Generic;
class Mondai {
static void Main() {
var line =
Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray();
var N = line[0];
var A = line[1];
var B = line[2];
var C = line[3];
var D = line[4];
var S = Conso... | [["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 57, 15, 16, 12, 16, 12, 16, 17, 33], ["-", 0, 57, 15, 16, 12, 16, 12, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 414 | 6 |
using System;
using static System.Console;
class Program {
public static void Main() {
string t = ReadLine();
int n = t.Length;
char[] s = new char[n];
for (int i = 0; i < n; i++)
s[i] = t[i];
long ans = 0;
int foundA = -1;
for (int i = 0; i < n - 1; i++) {
if (foundA < 0) {... | using System;
using static System.Console;
class Program {
public static void Main() {
string t = ReadLine();
int n = t.Length;
char[] s = new char[n];
for (int i = 0; i < n; i++)
s[i] = t[i];
long ans = 0;
int foundA = -1;
for (int i = 0; i < n - 1; i++) {
if (foundA < 0) {... | [["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 64, 196, 0, 1, 0, 11, 12, 241, 0, 33], ["-", 64, 196, 0, 1, 0, 11, 12, 241, 0, 203], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 75, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 75, 57, 75, 57, 64, 196, 0, 1, 0, 35], ["+", 75, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+... | 8 | 228 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression,
System.Linq.Ex... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression,
System.Linq.Ex... | [["+", 75, 57, 64, 196, 0, 1, 0, 241, 0, 29], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 75, 57, 64, 196, 0, 1, 0, 11, 12, 203]] | 8 | 2,486 | 3 |
using System;
using System.Collections.Generic;
using System.Text;
namespace atcoder {
class ac {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int ans = 180 * n - 2;
Console.WriteLine(ans);
}
}
} | using System;
using System.Collections.Generic;
using System.Text;
namespace atcoder {
class ac {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int ans = 180 * (n - 2);
Console.WriteLine(ans);
}
}
} | [["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 25]] | 8 | 81 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) { new Program().Solve(); }
void Solve() {
Scanner cin = new Scanner();
int n = cin.NextInt();
Console.WriteLine(180 * n);
}
}
class Sc... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) { new Program().Solve(); }
void Solve() {
Scanner cin = new Scanner();
int n = cin.NextInt();
Console.WriteLine(180 * (n - 2));
}
}
cl... | [["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]] | 8 | 451 | 4 |
using System;
namespace AtCoder20190601 {
class ProgramA {
static void Main(string[] args) {
int N = int.Parse(args[0]);
A(N);
}
static void A(int N) { Console.WriteLine((N - 2) * 180); }
}
} | using System;
namespace AtCoder20190601 {
class ProgramA {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
A(N);
}
static void A(int N) { Console.WriteLine((N - 2) * 180); }
}
} | [["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ... | 8 | 62 | 9 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
string s = sc.Next();
bool ok = s.Where(c => c == 'x').Count() <= 8;
string answer = ok ? "YES" : "NO";
Console.WriteLine(answer);
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
string s = sc.Next();
bool ok = s.Where(c => c == 'x').Count() <= 7;
string answer = ok ? "YES" : "NO";
Console.WriteLine(answer);
}
... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 385 | 2 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static StreamWriter sw =
new StreamWriter(OpenStandardOutput()) { AutoFlush = ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static StreamWriter sw =
new StreamWriter(OpenStandardOutput()) { AutoFlush = ... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 20], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 18]] | 8 | 525 | 2 |
using System;
namespace B___Sumo {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
var count = 0;
foreach (var p in s) {
if (p == 'o')
count++;
}
if (count + 15 - s.Length >= 8)
Console.WriteLine("Yes");
else
Console.WriteLine("No");
... | using System;
namespace B___Sumo {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
var count = 0;
foreach (var p in s) {
if (p == 'o')
count++;
}
if (count + 15 - s.Length >= 8)
Console.WriteLine("YES");
else
Console.WriteLine("NO");
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 87 | 4 |
using System;
using System.Collections.Generic; // list用
using System.Text; // StringBuilder用
using System.Collections;
using System.Linq;
class Program {
static List<int> s = new List<int>();
static List<int> t = new List<int>();
static decimal result;
static int N, K, M;
static string a;
st... | using System;
using System.Collections.Generic; // list用
using System.Text; // StringBuilder用
using System.Collections;
using System.Linq;
class Program {
static List<int> s = new List<int>();
static List<int> t = new List<int>();
static decimal result;
static int N, K, M;
static string a;
st... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 191 | 4 |
using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
int lose = 0;
string ans = "YES";
for (int i = 0; i < S.L... | using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
int lose = 0;
string ans = "YES";
for (int i = 0; i < S.L... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 128 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
using Debug = System.Diagnostics.Debug;
using SB = System.Text.StringBuilder;
using System.Numerics;
using static System.Math;
using Number = System.Int64;
namespace Program {
public class Solver {
Random rnd = new Random(0);
public void Solve() {
... | using System;
using System.Linq;
using System.Collections.Generic;
using Debug = System.Diagnostics.Debug;
using SB = System.Text.StringBuilder;
using System.Numerics;
using static System.Math;
using Number = System.Int64;
namespace Program {
public class Solver {
Random rnd = new Random(0);
public void Solve() {
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 882 | 4 |
using System;
public class Test {
public static void Main() {
// your code goes here
string s = Console.ReadLine();
int k = s.Length;
int win = 0, lose = 0;
for (int i = 0; i < k; i++) {
if (s[i] == 'o')
win++;
else
lose++;
}
if (win + (15 - k) >= 8)
Con... | using System;
public class Test {
public static void Main() {
// your code goes here
string s = Console.ReadLine();
int k = s.Length;
int win = 0, lose = 0;
for (int i = 0; i < k; i++) {
if (s[i] == 'o')
win++;
else
lose++;
}
if (win + (15 - k) >= 8)
Con... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 107 | 4 |
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, 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 | 758 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
Console.WriteLine(s.Length - s.Replace("o", "").Length < 8 ? "NO" : "YES");
}
}
| using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
Console.WriteLine(s.Replace("o", "").Length >= 8 ? "NO" : "YES");
}
}
| [["-", 0, 41, 15, 16, 31, 16, 31, 214, 141, 22], ["-", 0, 28, 0, 41, 15, 16, 31, 16, 17, 33], ["-", 31, 16, 12, 214, 205, 213, 63, 214, 205, 22], ["-", 31, 16, 12, 214, 205, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20]] | 8 | 72 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderWorkspace {
class Program {
static void Main(string[] args) {
var cin = new Scanner();
var S = cin.next();
var o = S.Count(s => s == 'o');
var x = S.Count(s => s == 'x');
if (x >= 8) {
// lose
Consol... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderWorkspace {
class Program {
static void Main(string[] args) {
var cin = new Scanner();
var S = cin.next();
var o = S.Count(s => s == 'o');
var x = S.Count(s => s == 'x');
if (x >= 8) {
// lose
Consol... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 554 | 4 |
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() {
string S = Console.ReadLine();
int winNum = S.Count(c => c == 'o');
var remain = 15 -... | 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() {
string S = Console.ReadLine();
int winNum = S.Count(c => c == 'o');
var remain = 15 -... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 115 | 4 |
using AtCoderBeginnerContest126.Questions;
using AtCoderBeginnerContest126.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoderBeginnerContest126.Questions {
public class QuestionE : AtCoderQuestionBase {
public override IEnumerable<... | using AtCoderBeginnerContest126.Questions;
using AtCoderBeginnerContest126.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoderBeginnerContest126.Questions {
public class QuestionE : AtCoderQuestionBase {
public override IEnumerable<... | [["-", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["-", 0, 235, 8, 201, 0, 195, 0, 251, 0, 261], ["+", 0, 235, 8, 201, 0, 195, 0, 251, 0, 259]] | 8 | 953 | 6 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 1,048 | 4 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
partial class Solver {
public void Run() {
var N = ni();
var M = ni();
var A = ni(N);
var B = new int[M];
var C = new int[M];
for (int i = 0; i < M; i++) {
B[i] = ni();
... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
partial class Solver {
public void Run() {
var N = ni();
var M = ni();
var A = ni(N);
var B = new int[M];
var C = new int[M];
for (int i = 0; i < M; i++) {
B[i] = ni();
... | [["+", 0, 52, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 52, 15, 16, 31, 16, 31, 16, 17, 18], ["+", 15, 16, 31, 16, 31, 16, 12, 214, 205, 22], ["+", 15, 16, 31, 16, 31, 16, 12, 214, 0, 131], ["+", 15, 16, 31, 16, 31, 16, 12, 214, 141, 22], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 17, 98]] | 8 | 802 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
namespace AtCoder_Beginner_Contest_127 {
class Program {
public class Combination {
readonly long mod;
readonly long[] fac, finv, inv;
public Combination(long n, long mod = 1000000007) {
... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
namespace AtCoder_Beginner_Contest_127 {
class Program {
public class Combination {
readonly long mod;
readonly long[] fac, finv, inv;
public Combination(long n, long mod = 1000000007) {
... | [["+", 12, 16, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 12, 16, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 12, 16, 12, 16, 31, 16, 31, 74, 0, 25]] | 8 | 506 | 6 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
struct mint : IEquatable<mint> {
// static uint mod = 998244353;
static uint mod = 1000000007;
uint _v;
public mint(long v) : this((uint)(v % mod + mod)) {}
private mint(uint v) { _v = v < mod ?... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
struct mint : IEquatable<mint> {
// static uint mod = 998244353;
static uint mod = 1000000007;
uint _v;
public mint(long v) : this((uint)(v % mod + mod)) {}
private mint(uint v) { _v = v < mod ?... | [["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 39, 22], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 25]] | 8 | 3,422 | 6 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace V {
partial class Solver {
public void Solve() {
var n = Read;
var pq1 = new C.PriorityQueue<long, long>(x => x);
var pq2 = new C.PriorityQueue<long, long>(x => x, true);
var min = 0L;
foreach (var i in... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace V {
partial class Solver {
public void Solve() {
var n = Read;
var pq1 = new C.PriorityQueue<long, long>(x => x);
var pq2 = new C.PriorityQueue<long, long>(x => x, true);
var min = 0L;
foreach (var i in... | [["-", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 22], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 64, 196, 0, 57, 75, 57, 15, 16, 1... | 8 | 8,334 | 12 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) { new Program().Solve(); }
public void Solve() {
var sc = new Scanner();
var sb = new StringBuilder();
long bSum = 0;
int Q = sc.NextInt();
v... | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) { new Program().Solve(); }
public void Solve() {
var sc = new Scanner();
var sb = new StringBuilder();
long bSum = 0;
int Q = sc.NextInt();
v... | [["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 85], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 2,072 | 4 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
class ChokudaiSpeedRun002 {
static int __cnt = 0;
#if LOCAL_ENVIRONMENT
static string __mark = "@@@";
#endif
static void Main(string[] args) {
#if LOCAL_ENVIRONMENT
StreamReader __sr = new StreamReader("stdin.txt");
string... | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
class ChokudaiSpeedRun002 {
static int __cnt = 0;
#if LOCAL_ENVIRONMENT
static string __mark = "@@@";
#endif
static void Main(string[] args) {
#if LOCAL_ENVIRONMENT
StreamReader __sr = new StreamReader("stdin.txt");
string... | [["-", 0, 283, 0, 284, 0, 16, 31, 16, 31, 22], ["-", 0, 283, 0, 284, 0, 16, 31, 16, 17, 72], ["+", 0, 283, 0, 284, 0, 16, 31, 16, 17, 33], ["+", 0, 283, 0, 284, 0, 16, 31, 16, 12, 22]] | 8 | 2,289 | 4 |
using System;
using System.Collections.Generic;
namespace 私が灰コーダーです {
class Inonoa {
static void Main() {
List<int> points = new List<int>(); // aが全部挿入されていくやつ
long b = 0; // bがどんどん足されていくやつ
int q = int.Parse(Console.ReadLine()); // Q
long v = 0; // |x-a|の部分の最小値。更新クエリごとに少しずつずれる
for (int i = 0; i ... | using System;
using System.Collections.Generic;
namespace 私が灰コーダーです {
class Inonoa {
static void Main() {
List<int> points = new List<int>(); // aが全部挿入されていくやつ
long b = 0; // bがどんどん足されていくやつ
int q = int.Parse(Console.ReadLine()); // Q
long v = 0; // |x-a|の部分の最小値。更新クエリごとに少しずつずれる
for (int i = 0; i ... | [["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72]] | 8 | 431 | 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() {
int N;
int K;
Multi(out N, out K);
var S = GetStr().ToCharArr... | 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() {
int N;
int K;
Multi(out N, out K);
var S = GetStr().ToCharArr... | [["-", 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], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 662 | 5 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_126_A___Changing_a_Character {
class Program {
static void Main(string[] args) {
int N, K;
string S;
var M = Console.ReadLine().Split(' ');
N = int.Parse(M[0]);
K = in... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_126_A___Changing_a_Character {
class Program {
static void Main(string[] args) {
int N, K;
string S;
var M = Console.ReadLine().Split(' ');
N = int.Parse(M[0]);
K = in... | [["-", 75, 57, 75, 1, 0, 11, 12, 252, 0, 253], ["+", 75, 57, 75, 1, 0, 11, 12, 252, 0, 253]] | 8 | 193 | 2 |
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... | [["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33]] | 8 | 1,417 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Cons... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Cons... | [["+", 0, 218, 8, 41, 15, 16, 12, 16, 17, 33], ["+", 0, 218, 8, 41, 15, 16, 12, 16, 12, 203]] | 8 | 1,545 | 2 |
using System;
class plogram {
static void Main() {
string str = Console.ReadLine();
string[] array = str.Split(' ');
int N = int.Parse(array[0]);
int K = int.Parse(array[1]);
string S = array[2];
string i = S.Substring(0, K - 1);
string j = S.Substring(K - 1, 1);
if (j == "A") {
... | using System;
class plogram {
static void Main() {
string str = Console.ReadLine();
string[] array = str.Split(' ');
int N = int.Parse(array[0]);
int K = int.Parse(array[1]);
string S = Console.ReadLine();
string i = S.Substring(0, K - 1);
string j = S.Substring(K - 1, 1);
if (j =... | [["-", 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 | 168 | 9 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace app1 {
class Program {
static void Main(string[] args) {
string[] NK = Console.ReadLine().Split(' ');
int N = int.Parse(NK[0]);
int K = int.Parse(NK[1]);
char[] S = new char[N... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace app1 {
class Program {
static void Main(string[] args) {
string[] NK = Console.ReadLine().Split(' ');
int N = int.Parse(NK[0]);
int K = int.Parse(NK[1]);
char[] S = new char[N... | [["-", 0, 239, 0, 1, 0, 11, 12, 252, 0, 253], ["+", 0, 239, 0, 1, 0, 11, 12, 252, 0, 253]] | 8 | 206 | 2 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace ConsoleApp1 {
using static Util;
internal class Program {
static void Main(string[] args) {
var k = ReadIntArray()[1];
var s = Console.ReadLine();
var res = string.Join("", s.Select((x, idx) => idx ==... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace ConsoleApp1 {
using static Util;
internal class Program {
static void Main(string[] args) {
var k = ReadIntArray()[1];
var s = Console.ReadLine();
var res = string.Join("", s.Select((x, idx) => idx ==... | [["-", 0, 218, 8, 41, 15, 16, 12, 16, 17, 72], ["+", 0, 218, 8, 41, 15, 16, 12, 16, 17, 33]] | 8 | 251 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public static void Main(string[] args) {
string[] inputs = Console.ReadLine().Split(' ');
int n = int.Parse(inputs[0]);
int k = int.Parse(inputs[0]);
string s = Console.ReadLine();
for (... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public static void Main(string[] args) {
string[] inputs = Console.ReadLine().Split(' ');
int n = int.Parse(inputs[0]);
int k = int.Parse(inputs[1]);
string s = Console.ReadLine();
for (... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 197 | 2 |
using System;
class Program {
static void Main() {
int input = int.Parse(Console.ReadLine());
int first = input / 100;
int latter = input - first * 100;
string ans;
if (first <= 12 && first > 0) {
if (latter <= 12) {
ans = "AMBIGUOUS";
} else {
ans = "MMYY";
}
... | using System;
class Program {
static void Main() {
int input = int.Parse(Console.ReadLine());
int first = input / 100;
int latter = input - first * 100;
string ans;
if (first <= 12 && first > 0) {
if (latter <= 12 && latter > 0) {
ans = "AMBIGUOUS";
} else {
ans = "M... | [["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 12, 203]] | 8 | 119 | 4 |
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) {
string S = Console.ReadLine();
string result = "NA";
if (int.Parse(S.Substri... | 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) {
string S = Console.ReadLine();
string result = "NA";
if (int.Parse(S.Substri... | [["-", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 260 | 4 |
using System;
public class AtCoderA {
static void Main() {
string s = Console.ReadLine();
string front = s.Substring(0, 2);
string end = s.Substring(2, 2);
int f = int.Parse(front);
int e = int.Parse(end);
bool fValid = 0 <= f && f <= 12;
bool eValid = 0 <= e && e <= 12;
if (fVali... | using System;
public class AtCoderA {
static void Main() {
string s = Console.ReadLine();
string front = s.Substring(0, 2);
string end = s.Substring(2, 2);
int f = int.Parse(front);
int e = int.Parse(end);
bool fValid = 0 < f && f <= 12;
bool eValid = 0 < e && e <= 12;
if (fValid ... | [["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 19], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 18]] | 8 | 151 | 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 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... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 1,482 | 2 |
using System;
using static System.Console;
using static System.Math;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TemplateAlgorithm
{
class Program
{
public const long Inf = (long)1e18;
public const double eps = 1e-6;
public const string alfa = "abcd... | using System;
using static System.Console;
using static System.Math;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TemplateAlgorithm
{
class Program
{
public const long Inf = (long)1e18;
public const double eps = 1e-6;
public const string alfa = "abcd... | [["-", 0, 195, 8, 306, 0, 16, 31, 16, 17, 47], ["+", 0, 195, 8, 306, 0, 16, 31, 16, 17, 20], ["-", 0, 195, 8, 306, 0, 16, 12, 16, 17, 18], ["+", 0, 195, 8, 306, 0, 16, 12, 16, 17, 19]] | 8 | 524 | 4 |
using System;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
int retval;
if (!int.TryParse(input, out retval)) {
Console.WriteLine("NA");
return;
}
string firstHalf = input.Substring(0, 2);
bool isFirstMonth = IsMonthS... | using System;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
int retval;
if (!int.TryParse(input, out retval)) {
Console.WriteLine("NA");
return;
}
string firstHalf = input.Substring(0, 2);
bool isFirstMonth = IsMonthS... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 210 | 2 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using static System.Console;
namespace ABC126B {
static class Program {
static void Main(string[] args) {
var s = Regex.Spli... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using static System.Console;
namespace ABC126B {
static class Program {
static void Main(string[] args) {
var s = Regex.Spli... | [["-", 0, 57, 75, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 98]] | 8 | 647 | 2 |
using System;
namespace ConsoleApplication4.Properties {
public class Class1 {
public static void Main() {
var n = int.Parse(Console.ReadLine());
int a = n / 100;
int b = n % 100;
if (a != 0 && a <= 12) {
if (b <= 12) {
Console.WriteLine("AMBIGUOUS");
} else {
... | using System;
namespace ConsoleApplication4.Properties {
public class Class1 {
public static void Main() {
var n = int.Parse(Console.ReadLine());
int a = n / 100;
int b = n % 100;
if (a != 0 && a <= 12) {
if (b != 0 && b <= 12) {
Console.WriteLine("AMBIGUOUS");
}... | [["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 31, 22]] | 8 | 141 | 4 |
using System;
using System.Linq;
namespace B___YYMM_or_MMYY {
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
int AA = int.Parse(new string(S.Where((e, i) => i < 2).ToArray()));
int BB = int.Parse(new string(S.Where((e, i) => 2 < i).ToArray()));
if (MM(AA) && YY(BB))
... | using System;
using System.Linq;
namespace B___YYMM_or_MMYY {
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
int AA = int.Parse(new string(S.Where((e, i) => i < 2).ToArray()));
int BB = int.Parse(new string(S.Where((e, i) => 2 <= i).ToArray()));
if (MM(AA) && YY(BB))
... | [["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 19]] | 8 | 197 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
var first = int.Parse(S.Substring(0, 2));
var second = int.Parse(S.Substring(2, 2));
bool isYymm = false;
if (1 <= first && 1 <= second && second <= 12... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
var first = int.Parse(S.Substring(0, 2));
var second = int.Parse(S.Substring(2, 2));
bool isYymm = false;
if (0 <= first && 1 <= second && second <= 12... | [["-", 0, 57, 15, 16, 31, 16, 31, 16, 31, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 203]] | 8 | 182 | 4 |
using System;
using System.Linq;
class abc126b {
static void Main() {
var S = Console.ReadLine();
var AA = "" + S[0] + S[1];
var BB = "" + S[2] + S[3];
var aa = int.Parse(AA);
var bb = int.Parse(BB);
var result = "";
if (aa > 0 && aa < 13) {
if (bb > 0 && aa < 13) {
resu... | using System;
using System.Linq;
class abc126b {
static void Main() {
var S = Console.ReadLine();
var AA = "" + S[0] + S[1];
var BB = "" + S[2] + S[3];
var aa = int.Parse(AA);
var bb = int.Parse(BB);
var result = "";
if (aa > 0 && aa < 13) {
if (bb > 0 && bb < 13) {
resu... | [["-", 64, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 75, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 75, 196, 0, 57, 15, 16, 12, 16, 31, 22]] | 8 | 164 | 4 |
using System;
using System.Linq;
using System.Threading.Tasks;
static class Program {
static void Main() {
string inputVal = Console.ReadLine();
int val1 = int.Parse(inputVal.Substring(0, 2));
int val2 = int.Parse(inputVal.Substring(2, 2));
bool mayMonthVal1 = val1 >= 1 && val1 <= 12;
bool mayMon... | using System;
using System.Linq;
using System.Threading.Tasks;
static class Program {
static void Main() {
string inputVal = Console.ReadLine();
int val1 = int.Parse(inputVal.Substring(0, 2));
int val2 = int.Parse(inputVal.Substring(2, 2));
bool mayMonthVal1 = val1 >= 1 && val1 <= 12;
bool mayMon... | [["-", 0, 57, 75, 57, 75, 57, 15, 16, 17, 106], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 17, 98], ["-", 75, 57, 75, 57, 75, 57, 15, 16, 17, 106], ["+", 75, 57, 75, 57, 75, 57, 15, 16, 17, 98]] | 8 | 207 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Program {
static void Main(string[] args) {
//入力
string S = Console.ReadLine();
//前半二文字
string before = S.Substring(0, 2);
//後半二文字
string after =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Program {
static void Main(string[] args) {
//入力
string S = Console.ReadLine();
//前半二文字
string before = S.Substring(0, 2);
//後半二文字
string after =... | [["-", 0, 200, 0, 212, 0, 229, 0, 5, 0, 222], ["-", 0, 200, 0, 212, 0, 229, 0, 5, 0, 62], ["-", 0, 198, 0, 200, 0, 212, 0, 229, 0, 21]] | 8 | 224 | 4 |
using System;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
var result = new DateTime();
IFormatProvider formatProvider = null;
var isYymm = DateTime.TryParseExact(
S, "yyMM", formatProvider, System.Globalization.DateT... | using System;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
var result = new DateTime();
IFormatProvider formatProvider = null;
var isYymm = DateTime.TryParseExact(
S, "yyMM", formatProvider, System.Globalization.DateT... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 221 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var S = int.Parse(Console.ReadLine());
var YY = S / 100;
var MM = S % 100;
if (YY > 12) {
if (MM == 0) {
Console.WriteLine("NA");
} else if (MM > 12) {
Co... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var S = int.Parse(Console.ReadLine());
var YY = S / 100;
var MM = S % 100;
if (YY > 12) {
if (MM == 0) {
Console.WriteLine("NA");
} else if (MM > 12) {
Co... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 223 | 2 |
using System;
namespace ABC126 {
class Program {
static void Main(String[] args) {
// 入力
String S = Console.ReadLine();
// 計算
// 文字列分割
int top = int.Parse(S.Substring(0, 2));
int buttom = int.Parse(S.Substring(2, 2));
// top,buttomがそれぞれ月になれるかを調べる
Boolean topMonth = (top >= 1 && top <=... | using System;
namespace ABC126 {
class Program {
static void Main(String[] args) {
// 入力
String S = Console.ReadLine();
// 計算
// 文字列分割
int top = int.Parse(S.Substring(0, 2));
int buttom = int.Parse(S.Substring(2, 2));
// top,buttomがそれぞれ月になれるかを調べる
Boolean topMonth = (top >= 1 && top <=... | [["+", 75, 57, 75, 57, 15, 16, 12, 241, 0, 111]] | 8 | 162 | 1 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace ABC126 {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
int first = int.Parse(S.Substring(0, 2));
int second = int.Parse(S.Substring(2, 2));
if (first == 0 && secon... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace ABC126 {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
int first = int.Parse(S.Substring(0, 2));
int second = int.Parse(S.Substring(2, 2));
if (first == 0 && secon... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 269 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
char[] S = Console.ReadLine().ToCharArray();
int forward = (S[0] - '0') * 10 + S[1] - '0';
int backward = (S[2] - '0') * 10 + S[3] - '0';
if (1 <= forward && forward <= 12) {
if ... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
char[] S = Console.ReadLine().ToCharArray();
int forward = (S[0] - '0') * 10 + S[1] - '0';
int backward = (S[2] - '0') * 10 + S[3] - '0';
if (1 <= forward && forward <= 12) {
if ... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 176 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc119d {
class Program {
static void Main(string[] args) {
var S = ReadInt();
bool YYMM = false;
bool MMYY = false;
int u = S / 100;
int d = S % 100;
// YYMM
if... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc119d {
class Program {
static void Main(string[] args) {
var S = ReadInt();
bool YYMM = false;
bool MMYY = false;
int u = S / 100;
int d = S % 100;
// YYMM
if... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 57, 64, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 57, 64, 57, 15, 16, 31, 16, 12, 203]] | 8 | 496 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace At {
class Program {
static void Main(string[] args) {
var s = Read();
var yy = s[0] + "" + s[1];
var mm = s[2] + "" + s[3];
var y = int.Parse(yy);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace At {
class Program {
static void Main(string[] args) {
var s = Read();
var yy = s[0] + "" + s[1];
var mm = s[2] + "" + s[3];
var y = int.Parse(yy);
... | [["-", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["-", 75, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["+", 75, 57, 15, 16, 31, 16, 12, 16, 12, 203]] | 8 | 457 | 4 |
using System;
using System.Linq;
class abc126_B {
static void Main(string[] args) {
var QS = Console.ReadLine();
try {
var first = int.Parse(QS.Substring(0, 2));
var second = int.Parse(QS.Substring(2, 2));
var firstCanMonth = 1 <= first && first <= 13;
var secondCanMonth = 1 <= secon... | using System;
using System.Linq;
class abc126_B {
static void Main(string[] args) {
var QS = Console.ReadLine();
try {
var first = int.Parse(QS.Substring(0, 2));
var second = int.Parse(QS.Substring(2, 2));
var firstCanMonth = 1 <= first && first <= 12;
var secondCanMonth = 1 <= secon... | [["-", 0, 200, 0, 212, 0, 16, 12, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 16, 12, 16, 12, 203]] | 8 | 261 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtC {
class Program {
static void Main(string[] args) {
var S = ReadString();
var a = int.Parse(S.Substring(0, 2));
var b = int.Parse(S.Substring(2, 2));
switch ((0 < a && a <= 12 ? 1 : 0) << 1 | (0 < b ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtC {
class Program {
static void Main(string[] args) {
var S = ReadString();
var a = int.Parse(S.Substring(0, 2));
var b = int.Parse(S.Substring(2, 2));
switch ((0 < a && a <= 12 ? 1 : 0) << 1 | (0 < b ... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 552 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
#endif
#en... | using System;
using System.Collections.Generic;
using System.Linq;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
#endif
#en... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 1,754 | 2 |
using System;
using System.Linq;
namespace CSwitches {
class Program {
static void Main(string[] args) {
// 入力 N/M の取得
var inputNM = Console.ReadLine().Split().Select(int.Parse).ToArray();
var n = inputNM[0];
var m = inputNM[1];
// 各電球の繋がってるスイッチ取得
var lamps = new int [m][];
for (var i = ... | using System;
using System.Linq;
namespace CSwitches {
class Program {
static void Main(string[] args) {
// 入力 N/M の取得
var inputNM = Console.ReadLine().Split().Select(int.Parse).ToArray();
var n = inputNM[0];
var m = inputNM[1];
// 各電球の繋がってるスイッチ取得
var lamps = new int [m][];
for (var i = ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18]] | 8 | 277 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static System.Console;
namespace C_ABC128 {
class MainClass {
static int[] s;
public static void Main(string[] args) {
s = Array.ConvertAll(ReadLine().Split().ToArray(), int.Parse);
var kslist = new List<in... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static System.Console;
namespace C_ABC128 {
class MainClass {
static int[] s;
public static void Main(string[] args) {
s = Array.ConvertAll(ReadLine().Split().ToArray(), int.Parse);
var kslist = new List<in... | [["+", 0, 16, 12, 23, 0, 16, 12, 16, 17, 33], ["+", 0, 16, 12, 23, 0, 16, 12, 16, 12, 203]] | 8 | 354 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
namespace CSharp {
static class Program {
static void Main(string[] args) {
int n, k;
ReadInt(out n, out k);
var V = ReadLongArray();
long ans = 0;
for (int a = 0; a < Min(n, k); a++) {
for (int b ... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
namespace CSharp {
static class Program {
static void Main(string[] args) {
int n, k;
ReadInt(out n, out k);
var V = ReadLongArray();
long ans = 0;
for (int a = 0; a <= Min(n, k); a++) {
for (int b... | [["-", 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], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22],... | 8 | 750 | 8 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Sandbox {
class Program {
static void Main(string[] args) {
var scanner = new Scanner();
var n = scanner.GetNextAsInt();
var k = scanner.GetNextAsInt();
var v = scanner.ToIntArrayFromNextLine();
var poi... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Sandbox {
class Program {
static void Main(string[] args) {
var scanner = new Scanner();
var n = scanner.GetNextAsInt();
var k = scanner.GetNextAsInt();
var v = scanner.ToIntArrayFromNextLine();
var poi... | [["-", 8, 196, 0, 7, 15, 16, 31, 16, 17, 18], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 19], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 19]] | 8 | 711 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace AtCoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return long.P... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace AtCoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return long.P... | [["-", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22]] | 8 | 405 | 2 |
using System;
using System.Linq;
using static System.Math;
public static class P {
public static void Main() {
int n = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
long res = 0;
for (int i = 1; i < n / 2; i++) {
var max = (n - 1) % i == 0 ? n / ... | using System;
using System.Linq;
using static System.Math;
public static class P {
public static void Main() {
int n = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
long res = 0;
for (int i = 1; i < n / 2; i++) {
var max = (n - 1) % i == 0 ? n / ... | [["+", 0, 200, 0, 212, 0, 41, 75, 16, 17, 33], ["+", 0, 200, 0, 212, 0, 41, 75, 16, 12, 22]] | 8 | 158 | 2 |
using System;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using static System.Math;
static class Program {
const int mod = (int)1e9 + 7;
static void Main() {
Sc sc = new Sc();
int n = sc.I;
int[]... | using System;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using static System.Math;
static class Program {
const int mod = (int)1e9 + 7;
static void Main() {
Sc sc = new Sc();
int n = sc.I;
int[]... | [["+", 15, 16, 31, 16, 31, 16, 12, 16, 17, 33], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 12, 22]] | 8 | 742 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_128 {
class F {
static void Main(string[] args) { Method(args); }
static void Method(string[] args) {
int n = ReadInt();
long[] ss = R... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_128 {
class F {
static void Main(string[] args) { Method(args); }
static void Method(string[] args) {
int n = ReadInt();
long[] ss = R... | [["+", 0, 7, 15, 16, 31, 16, 12, 23, 0, 24], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 7, 15, 16, 31, 16, 12, 23, 0, 25]] | 8 | 385 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
using Debug = System.Diagnostics.Debug;
using SB = System.Text.StringBuilder;
using System.Numerics;
using static System.Math;
using Number = System.Int64;
namespace Program {
public class Solver {
Random rnd = new Random(0);
public void Solve() {
... | using System;
using System.Linq;
using System.Collections.Generic;
using Debug = System.Diagnostics.Debug;
using SB = System.Text.StringBuilder;
using System.Numerics;
using static System.Math;
using Number = System.Int64;
namespace Program {
public class Solver {
Random rnd = new Random(0);
public void Solve() {
... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22]] | 8 | 944 | 2 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
partial class Solver {
public void Run() {
var N = ni();
var s = ni(N);
long ans = 0;
var visited = new BooleanArray(N);
for (int d = 1; d <= N - 1; d++) {
visited.Clear();
... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
partial class Solver {
public void Run() {
var N = ni();
var s = ni(N);
long ans = 0;
var visited = new BooleanArray(N);
for (int d = 1; d <= N - 1; d++) {
visited.Clear();
... | [["-", 8, 196, 0, 52, 15, 16, 31, 16, 31, 203], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 31, 22], ["+", 0, 52, 15, 16, 12, 16, 12, 16, 17, 33], ["+", 0, 52, 15, 16, 12, 16, 12, 16, 12, 22]] | 8 | 864 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static System.Math;
using static Func;
class Z {
static void Main() => new K();
}
class K {
int F =... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static System.Math;
using static Func;
class Z {
static void Main() => new K();
}
class K {
int F =... | [["-", 31, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 60]] | 8 | 736 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc127_a {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int A = int.Parse(s[0]);
int B = int.Parse(s[1]);
int total = 0;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc127_a {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int A = int.Parse(s[0]);
int B = int.Parse(s[1]);
int total = 0;
... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203]] | 8 | 135 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc127_a {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int age = int.Parse(input[0]);
int price = int.Parse(input[1]);
if... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc127_a {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int age = int.Parse(input[0]);
int price = int.Parse(input[1]);
if... | [["-", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["-", 0, 28, 0, 16, 31, 16, 12, 5, 0, 62], ["-", 0, 28, 0, 16, 31, 16, 12, 5, 0, 222], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]] | 8 | 129 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { ABC127.A(); }
class ABC127 {
public static void A() {
var A = Read.Int();
var B = Read.Int();
Console.WriteLine(A < 5 ? 0 : (A < 13 ? B / 2 : B));
}
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { ABC127.A(); }
class ABC127 {
public static void A() {
var A = Read.Int();
var B = Read.Int();
Console.WriteLine(A < 6 ? 0 : (A < 13 ? B / 2 : B));
}
... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203]] | 8 | 2,063 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
int[] read = inta();
if (read[0] > 12) {
WriteLine(read[0]);
} else if (read[0] > 5) {
WriteLine... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
int[] read = inta();
if (read[0] > 12) {
WriteLine(read[1]);
} else if (read[0] > 5) {
WriteLine... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203]] | 8 | 626 | 4 |
using System;
using System.IO;
using System.Linq;
public class A {
public static void Main() {
string[] input = Console.ReadLine().Split();
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
if (b <= 5) {
Console.Write(0);
} else if (b <= 12) {
Console.Write(b / 2);
} else ... | using System;
using System.IO;
using System.Linq;
public class A {
public static void Main() {
string[] input = Console.ReadLine().Split();
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
if (a <= 5) {
Console.Write(0);
} else if (a <= 12) {
Console.Write(b / 2);
} else ... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 31, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 31, 22]] | 8 | 110 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC127A {
class Program {
static void Main(string[] args) {
int a, b, c, d;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
if (a... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC127A {
class Program {
static void Main(string[] args) {
int a, b, c, d;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
if (a... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203]] | 8 | 144 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3 {
class Program {
static void Main(string[] args) {
int a, b;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3 {
class Program {
static void Main(string[] args) {
int a, b;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98]] | 8 | 142 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
public static void Main() {
var line =
Console.ReadLine().Split(' ').Select(p => int.Parse(p)).ToArray();
var A = line[0];
var B = line[1];
if (A >= 13) {
Console.WriteLine(B);
} else if (A >= 6 && ... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
public static void Main() {
var line =
Console.ReadLine().Split(' ').Select(p => int.Parse(p)).ToArray();
var A = line[0];
var B = line[1];
if (A >= 13) {
Console.WriteLine(B);
} else if (A >= 6 && ... | [["-", 0, 57, 75, 57, 75, 57, 15, 16, 17, 20], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 17, 19]] | 8 | 128 | 2 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStan... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStan... | [["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203]] | 8 | 3,169 | 2 |
using System;
namespace _20190629_ABC {
class Program {
static void Main(string[] args) {
var AB = Console.ReadLine().Split(' ');
var A = int.Parse(AB[0]);
var B = int.Parse(AB[1]);
// 13 <= A の場合、B
// 6 <= A <= 12 の場合、B / 2
// A <= 5 の場合、B = 0
if (A <= 5) {
B = 0;
} else if (6... | using System;
namespace _20190629_ABC {
class Program {
static void Main(string[] args) {
var AB = Console.ReadLine().Split(' ');
var A = int.Parse(AB[0]);
var B = int.Parse(AB[1]);
// 13 <= A の場合、B
// 6 <= A <= 12 の場合、B / 2
// A <= 5 の場合、B = 0
if (A <= 5) {
B = 0;
} else if (6... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98]] | 8 | 105 | 2 |
using System;
using System.Linq;
namespace A___Ferris_Wheel {
class Program {
static void Main(string[] args) {
var AB = Console.ReadLine().Split().Select(int.Parse).ToArray();
int A = AB[0], B = AB[1];
Console.WriteLine(A < 5 ? 0 : A <= 12 ? B / 2 : B);
}
}
}
| using System;
using System.Linq;
namespace A___Ferris_Wheel {
class Program {
static void Main(string[] args) {
var AB = Console.ReadLine().Split().Select(int.Parse).ToArray();
int A = AB[0], B = AB[1];
Console.WriteLine(A <= 5 ? 0 : A <= 12 ? B / 2 : B);
}
}
}
| [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19]] | 8 | 87 | 2 |
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var a = int.Parse(line[0]);
var b = int.Parse(line[1]);
int ans;
if (a >= 13)
ans = b / 2;
else if (a <= 5)
ans = 0;
else
ans = b;
Console.WriteLine(a... | using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var a = int.Parse(line[0]);
var b = int.Parse(line[1]);
int ans;
if (a >= 13)
ans = b;
else if (a <= 5)
ans = 0;
else
ans = b / 2;
Console.WriteLine(a... | [["-", 0, 57, 64, 1, 0, 11, 12, 16, 17, 85], ["-", 0, 57, 64, 1, 0, 11, 12, 16, 12, 203], ["+", 75, 57, 75, 1, 0, 11, 12, 16, 17, 85], ["+", 75, 57, 75, 1, 0, 11, 12, 16, 12, 203]] | 8 | 102 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Program {
class Program {
static void Main(string[] args) {
int[] input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int A = input[0];
int B = input[1];
if (A < 6)
Console.WriteLine(0);... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Program {
class Program {
static void Main(string[] args) {
int[] input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int A = input[0];
int B = input[1];
if (A < 6)
Console.WriteLine(0);... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 75, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 75, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 121 | 4 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace atcoder {
namespace atcoder {
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 ans = B... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace atcoder {
namespace atcoder {
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 ans = B... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 139 | 2 |
using System;
using System.Text;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string[] list = Console.ReadLine().Split(' ');
int a = int.Parse(list[0]);
int b = int.Parse(list[1]);
if (a >= 13) {
Console.WriteLine(b);
} else if (a >= 6 && b <= 12) {
Conso... | using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string[] list = Console.ReadLine().Split(' ');
int a = int.Parse(list[0]);
int b = int.Parse(list[1]);
if (a >= 13) {
Console.WriteLine(b);
} else if (a >= 6 && a <= 12) {
Console.WriteLine(b / 2)... | [["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 12... | 8 | 118 | 7 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var inputs = new List<string>();
// 入力が終わるまで全行読み込む
for (int i = 0; i < 1; i++) {
string input = Console.ReadLin... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var inputs = new List<string>();
// 入力が終わるまで全行読み込む
for (int i = 0; i < 1; i++) {
string input = Console.ReadLin... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19]] | 8 | 188 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
//入力
string s = Console.ReadLine();
int A = int.Parse(s.Split(' ')[0]);
int B = int.Parse(s.Split(' ')[1]);
if (A >= 13) {
Co... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
//入力
string s = Console.ReadLine();
int A = int.Parse(s.Split(' ')[0]);
int B = int.Parse(s.Split(' ')[1]);
if (A >= 13) {
Co... | [["-", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 31, 22]] | 8 | 141 | 4 |
using System;
using System.IO;
namespace abc127 {
class Program {
static void Main(string[] args) {
var scanner = new Scanner();
var a = scanner.GetNextAsInt();
var b = scanner.GetNextAsInt();
var r = a;
if (a >= 13) {
} else if (a >= 6) {
r = b / 2;
} else {
r = 0;
}
... | using System;
using System.IO;
namespace abc127 {
class Program {
static void Main(string[] args) {
var scanner = new Scanner();
var a = scanner.GetNextAsInt();
var b = scanner.GetNextAsInt();
var r = b;
if (a >= 13) {
} else if (a >= 6) {
r = b / 2;
} else {
r = 0;
}
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22]] | 8 | 570 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.