buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
static class Extensions {
public static int LowerBound<T>(this IList<T> list, T value,
IComparer<T> comp = null) {
if (comp == null)
comp = Comparer<T>.Default;... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
static class Extensions {
public static int LowerBound<T>(this IList<T> list, T value,
IComparer<T> comp = null) {
if (comp == null)
comp = Comparer<T>.Default;... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98]... | 8 | 2,075 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace AtCoder {
static class Program {
static void Main() {
//ここから
var vs = IO.ReadLineToIntList();
int N = vs[0];
int M = vs[1];
var a = new List<int>()... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace AtCoder {
static class Program {
static void Main() {
//ここから
var vs = IO.ReadLineToIntList();
int N = vs[0];
int M = vs[1];
var a = new Dictionary<... | [["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 21], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["+", 0, 213, 3, 4, 0, 28, 0, 211, 0, 146], ["-", 0, 195, 54, 55, 0, 220, 39, 23... | 8 | 861 |
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 decimal result;
static Hashtable ht = new Hashtable();
static StringBuilder sb = new StringBuilde... | 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 decimal result;
static Hashtable ht = new Hashtable();
static StringBuilder sb = new StringBuilde... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45... | 8 | 889 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
public class Contest {
public const long MOD1 = 1000000007L; // 10^9+7
public static void Main() {
int n, m;
int[] a;
MyIO.ReadMulti(out n, out m);
MyIO.ReadLines(m, out a)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
public class Contest {
public const long MOD1 = 1000000007L; // 10^9+7
public static void Main() {
int n, m;
int[] a;
MyIO.ReadMulti(out n, out m);
MyIO.ReadLines(m, out a)... | [["+", 0, 1, 0, 11, 12, 41, 15, 23, 0, 24], ["+", 12, 41, 15, 23, 0, 16, 31, 23, 0, 24], ["+", 15, 23, 0, 16, 31, 23, 0, 16, 31, 203], ["+", 15, 23, 0, 16, 31, 23, 0, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 12, 41, 15, 23, 0, 16, 31, 23, 0, 25], ["+", 0, 11, 12, 41, 15, 23, 0, 16, 17, 98], ["+",... | 8 | 2,031 |
using System;
namespace FibonacciSample {
class Program {
static void Main(string[] args) {
string[] str0 = Console.ReadLine().Split(' ');
long n = int.Parse(str0[0]);
long m = int.Parse(str0[1]);
long[] s = new long[m + 1];
long[] f = new long[n + 1];
if (m != 0) {
for (int i = 0; i < ... | using System;
namespace FibonacciSample {
class Program {
static void Main(string[] args) {
string[] str0 = Console.ReadLine().Split(' ');
long n = int.Parse(str0[0]);
long m = int.Parse(str0[1]);
long[] s = new long[m + 1];
long[] f = new long[n + 1];
if (n == 1) {
Console.WriteLine(1)... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, ... | 8 | 394 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace C {
class Program {
static void Main(string[] args) {
var nm = Console.ReadLine().Split().Select(int.Parse).ToArray();
var a = new int[nm[1]];
var isStepAble = new bool[nm[0] + 1];
int MOD = 1000000007;
a = a.Select(x ... | using System;
using System.Linq;
using System.Collections.Generic;
namespace C {
class Program {
static void Main(string[] args) {
var nm = Console.ReadLine().Split().Select(int.Parse).ToArray();
var a = new int[nm[1]];
var isStepAble = new bool[nm[0] + 1];
int MOD = 1000000007;
a = a.Select(x ... | [["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 1, 0, 11, 12, 41, 15, 204, 205, 22], ["-... | 8 | 288 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Extensions;
using static System.Math;
using static Extensions.MathExtension;
using static Extensions.ConsoleInputExtension;
using static Extensions.ConsoleOutputExtension;
class Solver {
public void Solve() {
// Solve Code ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Extensions;
using static System.Math;
using static Extensions.MathExtension;
using static Extensions.ConsoleInputExtension;
using static Extensions.ConsoleOutputExtension;
class Solver {
public void Solve() {
// Solve Code ... | [["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 108], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 11, 12, 41, 15, 16, 12, 252, 0, 253], ["+", 0, 11, 12, 41, 15, 16, 12, 252, 0, 253], ["-", 8, 19... | 8 | 1,722 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
public static lo... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
public static lo... | [["+", 31, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 33], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 16, 31, 16, 31, 16, 12, 16,... | 8 | 401 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using static System.Math;
using System.Linq;
using static System.Array;
namespace ConsoleApp2 {
class Program {
// static int N;
// static long mod = 1000000007;
// static char[] az = Enumerable.Range('a', 'z' - 'a' + 1)... | using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using static System.Math;
using System.Linq;
using static System.Array;
namespace ConsoleApp2 {
class Program {
// static int N;
// static long mod = 1000000007;
// static char[] az = Enumerable.Range('a', 'z' - 'a' + 1)... | [["-", 8, 196, 0, 57, 64, 196, 0, 52, 0, 89], ["-", 8, 196, 0, 57, 64, 196, 0, 52, 0, 24], ["-", 64, 196, 0, 52, 15, 16, 31, 16, 31, 22], ["-", 64, 196, 0, 52, 15, 16, 31, 16, 17, 18], ["-", 0, 52, 15, 16, 31, 16, 12, 214, 205, 22], ["-", 0, 52, 15, 16, 31, 16, 12, 214, 0, 131], ["-", 0, 52, 15, 16, 31, 16, 12, 214, 14... | 8 | 198 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Solve {
static public int mod = 1000000007;
public static void Main() {
// 方針
//
var n = rstr();
long a = 0;
long ans... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Solve {
static public int mod = 1000000007;
public static void Main() {
// 方針
//
var n = rstr();
long a = 0;
long ans... | [["+", 0, 57, 75, 57, 64, 196, 0, 57, 0, 95], ["+", 75, 57, 64, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 64, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 75, 57, 64, 196, 0, 46]] | 8 | 1,194 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AGC034 {
class B {
static void Main(string[] args) {
long numBC = 0;
string s = Console.ReadLine();
long sum = 0;
char p1 = '0', p2 = '0';
for (int i = 0; i < s.Length; i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AGC034 {
class B {
static void Main(string[] args) {
long numBC = 0;
string s = Console.ReadLine();
long sum = 0;
char p1 = '0', p2 = '0';
for (int i = 0; i < s.Length; i... | [["+", 0, 57, 75, 57, 64, 196, 0, 57, 0, 121], ["+", 0, 57, 75, 57, 64, 196, 0, 57, 0, 24], ["+", 75, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 75, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["+", 64, 196, 0, 57, 15, 16, 12, 252, 0, 104], ["+", 64, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["+", 0, 57, 75, 57, 64, 196, 0, 57, 0... | 8 | 205 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using Debug = System.Diagnostics.Trace;
using SB = System.Text.StringBuilder;
using System.Numerics;
using static System.Math;
using Number = System.Int32;
namespace Program {
public class Solver {
Random rnd = new Random();... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using Debug = System.Diagnostics.Trace;
using SB = System.Text.StringBuilder;
using System.Numerics;
using static System.Math;
using Number = System.Int32;
namespace Program {
public class Solver {
Random rnd = new Random();... | [["+", 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, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 1,846 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int N = int.Parse(str[0]);
long X = long.Parse(str[1]);
long[][] A = new long [N][];
for (var i = 0; i < N; i++) {
string[] str2 = Console.ReadLine().S... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int N = int.Parse(str[0]);
long X = long.Parse(str[1]);
long[][] A = new long [N][];
for (var i = 0; i < N; i++) {
string[] str2 = Console.ReadLine().S... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 5... | 8 | 879 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProblemB {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
var first = int.Parse(str.Substring(0, 2));
Console.WriteLine((first - 2) * 180);
}
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProblemB {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
var first = int.Parse(str);
Console.WriteLine((first - 2) * 180);
}
}
} | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["-", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25]] | 8 | 85 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
namespace ac2 {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
var s = Console.ReadLine();
va... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
namespace ac2 {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
var k = s.Length;
var r = (15 - k) + s.Count(x => ... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 0, 213, 63, 214, 205... | 8 | 127 |
using System;
using System.IO;
using System.Linq;
class Program {
static void Solve() {
var S = Read();
var rest = 15 - S.Length;
var win = 0;
foreach (var s in S) {
if (s == 'o')
win++;
}
if (win + rest >= 8)
Console.WriteLine(win + rest >= 8 ? "YES" : "NO");
}
sta... | using System;
using System.IO;
using System.Linq;
class Program {
static void Solve() {
var S = Read();
var rest = 15 - S.Length;
var win = 0;
foreach (var s in S) {
if (s == 'o')
win++;
}
Console.WriteLine(win + rest >= 8 ? "YES" : "NO");
}
static void Main(string[] args... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203... | 8 | 326 |
using System;
using System.Linq;
class Program {
public static void Main() {
var line =
Console.ReadLine().Split(' ').Select(p => long.Parse(p)).ToArray();
long N = line[0];
long M = line[1];
long r = 0;
long r_ = 1;
long r__ = 0;
bool k = true;
bool[] broken = new bool[N + 1]... | using System;
using System.Linq;
class Program {
public static void Main() {
var line =
Console.ReadLine().Split(' ').Select(p => long.Parse(p)).ToArray();
long N = line[0];
long M = line[1];
long r = 0;
long r_ = 1;
long r__ = 0;
bool k = true;
bool[] broken = new bool[N + 1]... | [["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["-", ... | 8 | 188 |
using System;
public class S {
private const bool FINE = true;
private const bool BROKEN = false;
public static void Main() {
var input = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
var stairCount = input[0];
var brokenStairCount = input[1];
var stairs = new bool[stairCount + 1... | using System;
public class S {
private const bool FINE = true;
private const bool BROKEN = false;
public static void Main() {
var input = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
var stairCount = input[0];
var brokenStairCount = input[1];
var stairs = new bool[stairCount + 1... | [["-", 8, 196, 0, 1, 0, 11, 12, 41, 64, 203], ["-", 8, 196, 0, 1, 0, 11, 12, 41, 0, 102], ["-", 8, 196, 0, 1, 0, 11, 12, 41, 75, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], [... | 8 | 283 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
class Program {
static void Main(string[] args) {
var NM = ReadSplitLong();
var n = NM[0];
var m = NM[1];
var a = ReadSplitLongLines(m);
var dp = new long[n +... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
class Program {
static void Main(string[] args) {
var NM = ReadSplitLong();
var n = NM[0];
var m = NM[1];
var a = ReadSplitLongLines(m);
var dp = new long[n +... | [["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 1, 0, 11, 0, 202, ... | 8 | 475 |
using System;
using System.Linq;
namespace abc129 {
class C2 {
const int MOD = 1000000007;
static public bool[] isHolls;
static void Main(string[] args) {
var input = Input.IntArray();
var N = input[0];
var M = input[1];
isHolls = new bool[N + 1];
for (int i = 0; i < M; i++) {
isHol... | using System;
using System.Linq;
namespace abc129 {
class C2 {
const int MOD = 1000000007;
static public bool[] isHolls;
static void Main(string[] args) {
var input = Input.IntArray();
var N = input[0];
var M = input[1];
isHolls = new bool[N + 1];
for (int i = 0; i < M; i++) {
isHol... | [["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], [... | 8 | 300 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace atcoder {
class Program {
static long p = 0;
static int[] ng;
static void Main(string[] args) {
string[] inputs = Console.ReadLine().Split(' ');
int n = int.Parse(inputs[0]) + 1;
int m = int.Parse(inputs[1]);
ng = new i... | using System;
using System.Collections.Generic;
using System.Linq;
namespace atcoder {
class Program {
static long p = 0;
static int[] ng;
static void Main(string[] args) {
string[] inputs = Console.ReadLine().Split(' ');
int n = int.Parse(inputs[0]) + 1;
int m = int.Parse(inputs[1]);
ng = new i... | [["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 0, 131], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 141, 22], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16... | 8 | 264 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ProjectContest {
class Test {
static void Main() {
const int mod = 1000000007;
var nm = Array.ConvertAll(Console.ReadLine().Split(), Convert.ToInt32);
int n = nm[0], m = nm[1];
var F = new int[n + 1];
F[0] = F[1] = 1;
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ProjectContest {
class Test {
static void Main() {
const int mod = 1000000007;
var nm = Array.ConvertAll(Console.ReadLine().Split(), Convert.ToInt32);
int n = nm[0], m = nm[1];
var F = new int[n + 1];
F[0] = F[1] = 1;
... | [["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 0, 202, ... | 8 | 241 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Q3 {
class Program {
static void Main(string[] args) {
string line = Console.ReadLine();
string[] strs = line.Split(' ');
int N = int.Parse(strs[0]);
int M = int.Parse(strs[1]... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Q3 {
class Program {
static void Main(string[] args) {
string line = Console.ReadLine();
string[] strs = line.Split(' ');
int N = int.Parse(strs[0]);
int M = int.Parse(strs[1]... | [["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 1, 0, 11, 0, 202,... | 8 | 304 |
using System;
using System.Linq;
public class Test {
public static void Main() {
// your code goes here
var b = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
int n = b[0];
int m = b[1];
bool[] isBroken = new bool[n + 10];
for (int i = 0; i < m; i++) {
int input = int... | using System;
using System.Linq;
public class Test {
public static void Main() {
// your code goes here
var b = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
int n = b[0];
int m = b[1];
bool[] isBroken = new bool[n + 10];
for (int i = 0; i < m; i++) {
int input = int... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207,... | 8 | 224 |
using System;
using System.Collections.Generic;
class ABC_129_C {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int M = int.Parse(input[1]);
int[] A = new int[M];
for (int i = 0; i < M; i++) {
A[i] = int.Parse(Console.ReadLin... | using System;
using System.Collections.Generic;
class ABC_129_C {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int M = int.Parse(input[1]);
int[] A = new int[M];
for (int i = 0; i < M; i++) {
A[i] = int.Parse(Console.ReadLin... | [["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 109], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 264 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
namespace SolutionCS {
class Program {
class modMCalc {
public const int M = 1000000007; // 素数(int範囲)
// 乗算結果 % Mを求める
static public int Mul(int a, int b) { return (int)(Math.BigMul(a, b) % M); }
// 冪乗(mod M)
... | using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
namespace SolutionCS {
class Program {
class modMCalc {
public const int M = 1000000007; // 素数(int範囲)
// 乗算結果 % Mを求める
static public int Mul(int a, int b) { return (int)(Math.BigMul(a, b) % M); }
// 冪乗(mod M)
... | [["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 241, 0, 33], ["+", 8, 196, 0, 1, 0, 11, 12, 241, 0, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["... | 8 | 620 |
using System;
using System.Linq;
namespace CTypicalStairs {
class Program {
const int LAW = 1000000007;
static void Main(string[] args) {
// 入力の取得
var inputs = Console.ReadLine().Split().Select(int.Parse).ToArray();
var n = inputs[0];
var m = inputs[1];
// 壊れている床の一覧を取得
var brokenStairs = ... | using System;
using System.Linq;
namespace CTypicalStairs {
class Program {
const int LAW = 1000000007;
static void Main(string[] args) {
// 入力の取得
var inputs = Console.ReadLine().Split().Select(int.Parse).ToArray();
var n = inputs[0];
var m = inputs[1];
// 壊れている床の一覧を取得
var brokenStairs = ... | [["+", 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], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["-", 0, 195, 8,... | 8 | 359 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
public class Prog {
const int MOD = 1000000007;
public static void Main(string[] args) {
var sw =
new StreamWriter(Console... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
public class Prog {
const int MOD = 1000000007;
public static void Main(string[] args) {
var sw =
new StreamWriter(Console... | [["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 22], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 109], ["-", 0, 1, 0, 11, 12, 16, 31, 16, ... | 8 | 726 |
using System;
using System.Linq;
using System.Numerics;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
public class Solver {
public void Solve() {
int n = ri, m = ri, b = 0, t = 0;
long p = 0;
long[] f = new long[n + 1];
f[0] = 1;
f[1] ... | using System;
using System.Linq;
using System.Numerics;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
public class Solver {
public void Solve() {
int n = ri, m = ri, b = 0, t = 0;
long p = 0;
long[] f = new long[n + 1];
f[0] = 1;
f[1] ... | [["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+"... | 8 | 1,238 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC129_C {
class Program {
static long[] fibo = new long[100001];
static void Main(string[] args) {
var mod = 1000000007;
var NM = Console.ReadLine().Split().Select(int.Parse).ToArr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC129_C {
class Program {
static long[] fibo = new long[100001];
static long mod = 1000000007;
static void Main(string[] args) {
var NM = Console.ReadLine().Split().Select(int.Parse)... | [["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 235, 8, 201, 0, 124, 0, 35], ["+", 0, 235, 8, 201, 0, 195, 0, 251, 0, 115], ["-", 8, 196, 0, 197, 0, 198, 0, 200,... | 8 | 343 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Hello {
private const int MOD_N = 1000000000 + 7;
public static void Main() {
var list = Console.ReadLine().Split(' ');
var n = int.Parse(list[0]);
var m = int.Parse(list[1]);
var ass = new int[m];
for (int i = 0; ... | using System;
using System.Collections.Generic;
using System.Linq;
public class Hello {
private const int MOD_N = 1000000000 + 7;
public static void Main() {
var list = Console.ReadLine().Split(' ');
var n = int.Parse(list[0]);
var m = int.Parse(list[1]);
var ass = new int[m];
for (int i = 0; ... | [["+", 0, 200, 0, 212, 0, 41, 15, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 18], ["+", 0, 212, 0, 41, 15, 16, 12, 214, 0, 131], ["+", 0, 212, 0, 41, 15, 16, 12, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 101], ["+", 0, 200, 0, 212, 0, 41, 64, 204, 205, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0... | 8 | 500 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace test {
class Program {
static void Main(string[] args) {
var input = ReadArrayInt();
var N = input[0];
var M = input[1];
var cnt = new long[N + 1];
for (int i = 0; i < M; i++)
cnt[ReadInt()] = -1;
var mod = (in... | using System;
using System.Collections.Generic;
using System.Linq;
namespace test {
class Program {
static void Main(string[] args) {
var input = ReadArrayLong();
var N = input[0];
var M = input[1];
var cnt = new long[N + 1];
for (int i = 0; i < M; i++)
cnt[ReadInt()] = -1;
var mod = (l... | [["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 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,... | 8 | 414 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace V {
partial class Solver {
public void Solve() {
Write(SolveLong());
// YesNo(SolveBool());
}
public long SolveLong() {
var h = ScanInt;
var w = ScanInt;
bool[,] bs = new bool[2010, 2010];
for (... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace V {
partial class Solver {
public void Solve() {
Write(SolveLong());
// YesNo(SolveBool());
}
public long SolveLong() {
var h = ScanInt;
var w = ScanInt;
bool[,] bs = new bool[2010, 2010];
for (... | [["-", 0, 57, 64, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 57, 64, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], [... | 8 | 6,022 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
static class Extensions {
public static int LowerBound<T>(this IList<T> list, T value,
IComparer<T> comp = null) {
if (comp == null)
comp = Comparer<T>.Default;... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
static class Extensions {
public static int LowerBound<T>(this IList<T> list, T value,
IComparer<T> comp = null) {
if (comp == null)
comp = Comparer<T>.Default;... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 21], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 12,... | 8 | 2,228 |
using System;
using System.Linq;
using System.Collections.Generic;
class c {
static void Main() {
var hw = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var map = new string[hw[0]];
for (int i = 0; i < hw[0]; i++) {
map[i] = Console.ReadLine();
}
var ans = new int[hw[0]][];
fo... | using System;
using System.Linq;
class c {
static void Main() {
var hw = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var map = new string[hw[0]];
for (int i = 0; i < hw[0]; i++) {
map[i] = Console.ReadLine();
}
var ans = new int[hw[0]][];
for (int i = 0; i < hw[0]; i++) {
... | [["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, ... | 8 | 571 |
using System;
using System.Linq;
using System.Collections.Generic;
class Mondai {
static void Main() {
var HW = Console.ReadLine()
.Split(' ')
.Select(n => Int32.Parse(n))
.OrderBy(x => x)
.ToArray();
var H = HW[0];
var W = HW[1];
va... | using System;
using System.Linq;
using System.Collections.Generic;
class Mondai {
static void Main() {
var HW =
Console.ReadLine().Split(' ').Select(n => Int32.Parse(n)).ToArray();
var H = HW[0];
var W = HW[1];
var array = new char[H, W];
for (int height = 0; height < H; ++height) {
... | [["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["-", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["-", 205, 213, 3, 4, 0, 28, 0, 218, 8, 22], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 0, 200, 0, 212, 0, 213, 63, ... | 8 | 492 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC129_D {
class Program {
static void Main(string[] args) {
var HW = Console.ReadLine().Split().Select(int.Parse).ToArray();
var H = HW[0];
var W = HW[1];
var S = new string... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC129_D {
class Program {
static void Main(string[] args) {
var HW = Console.ReadLine().Split().Select(int.Parse).ToArray();
var H = HW[0];
var W = HW[1];
var S = new string... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 15, 16, 12, 16, 31, 204, 205, 204, 205, 22], ["+", 12, 16, 31, 204, 205, 204, 206, 207, 0, 70], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 12, 22], ["+", 12, 16, 31, 204, 20... | 8 | 476 |
using static System.Math;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System;
class Program {
#region Reader
static string ReadStr => Console.ReadLine();
static string[] ReadStrs => Console.ReadLine().Split(' ');
static int ReadInt => Convert.ToInt32(Console.ReadLine()... | using static System.Math;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System;
class Program {
#region Reader
static string ReadStr => Console.ReadLine();
static string[] ReadStrs => Console.ReadLine().Split(' ');
static int ReadInt => Convert.ToInt32(Console.ReadLine()... | [["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 0, 200, 0, 212... | 8 | 1,572 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class MainClass : Scanner {
static void Main() {
string L = RString();
int M = L.Length;
Modular ans = 0;
Modular sum = 1;
for (int i = 0; i < M; i++) {
ans += sum * M... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class MainClass : Scanner {
static void Main() {
string L = RString();
int M = L.Length;
Modular ans = 0;
Modular sum = 1;
for (int i = 0; i < M; i++) {
if (L[i] == '1'... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 6... | 8 | 1,182 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace V {
partial class Solver {
public void Solve() {
Write(SolveLong());
// YesNo(SolveBool());
}
public long SolveLong() {
var s = Str;
var res = new Mint(1);
for (long i = 0; i < s.Length - 1; i++) {... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace V {
partial class Solver {
public void Solve() {
Write(SolveLong());
// YesNo(SolveBool());
}
public long SolveLong() {
var s = Str;
var res = new Mint(1);
for (long i = 0; i < s.Length - 1; i++) {... | [["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 16, 31, 213, 3, 4, 0, 2... | 8 | 8,242 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Library;
using static Library.Input;
namespace AtCoderTemplate {
class ProgramE {
static void Main() {
var l = Line;
var dp = new long[l.Length + 1, 2];
dp[0, 0] = 1;
for (int i = 0; i < l.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Library;
using static Library.Input;
namespace AtCoderTemplate {
class ProgramE {
static void Main() {
var l = Line;
var dp = new long[l.Length + 1, 2];
dp[0, 0] = 1;
for (int i = 0; i < l.... | [["-", 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], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 3, 4, 0, 28, 0, 16, 12, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 16, 12, 214, 0, 131], ["+", 3, 4, 0, 2... | 8 | 808 |
using System;
using System.Collections.Generic; // list用
using System.Text; // StringBuilder用
using System.Collections;
using System.Linq;
class Program {
static string s;
static decimal result;
static void Main() {
Read5();
var mo = new Modular(1);
var mo2 = new Modular(1);
bool f... | using System;
using System.Collections.Generic; // list用
using System.Text; // StringBuilder用
using System.Collections;
using System.Linq;
class Program {
static string s;
static decimal result;
static void Main() {
Read5();
var mo = new Modular(1);
var mo2 = new Modular(1);
for (i... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31,... | 8 | 532 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
const long MOD = 1000000007;
static void Main(string[] args) {
Scanner cin = new Scanner();
string l = cin.Next();
int n = l.Length;
var d... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
const long MOD = 1000000007;
static void Main(string[] args) {
Scanner cin = new Scanner();
string l = cin.Next();
int n = l.Length;
var d... | [["-", 0, 11, 12, 16, 31, 16, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 204, 205, 22], ["-", 75, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 0, 1, 0, 11, 12, 16, 12, 204, 205, 22], ["-", 0, 11, 12, 16, 12, 204, 206, 207, 0, 70], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["-", 12, 204, 206, 207, 0, 28, 0, 16,... | 8 | 917 |
using System;
using System.Collections.Generic;
public class CSharp {
public static void Main() {
Kyopuro chokudai = new Kyopuro();
chokudai.AtCoder();
}
}
public class Kyopuro {
int n, m;
int[] a, b, c;
int x;
long ans;
public void AtCoder() {
string[] input;
input = Console.ReadLine(... | using System;
using System.Collections.Generic;
public class CSharp {
public static void Main() {
Kyopuro chokudai = new Kyopuro();
chokudai.AtCoder();
}
}
public class Kyopuro {
int n, m;
int[] a, b, c;
int x;
long ans;
public void AtCoder() {
string[] input;
input = Console.ReadLine(... | [["-", 0, 11, 12, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 11, 12, 227, 39, 224, 225, 226, 0, 22], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0... | 8 | 405 |
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 ABC127E {
static public void Solve() {
var N = NextInt;
var M = NextInt;
var K = NextInt;
var... | 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 ABC127E {
static public void Solve() {
var N = NextInt;
var M = NextInt;
var K = NextInt;
var... | [["+", 8, 201, 0, 270, 8, 201, 0, 315, 17, 48], ["+", 0, 270, 8, 201, 0, 315, 54, 55, 0, 24], ["+", 8, 201, 0, 315, 54, 55, 0, 220, 39, 22], ["+", 8, 201, 0, 315, 54, 55, 0, 220, 141, 22], ["+", 0, 270, 8, 201, 0, 315, 54, 55, 0, 21], ["+", 0, 270, 8, 201, 0, 315, 54, 55, 0, 25], ["+", 0, 270, 8, 201, 0, 315, 8, 306, 0... | 8 | 3,960 |
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 {
const int mod = (int)1e9 + 7;
static long[] r;
static void Main() {
S... | 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 {
const int mod = (int)1e9 + 7;
static long[] r;
static void Main() {
S... | [["+", 3, 4, 0, 28, 0, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33]] | 8 | 1,115 |
using System;
class P {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
char[] c = Console.ReadLine().ToCharArray();
int N = int.Parse(str[0]);
int K = int.Parse(str[1]);
c[K - 1] = Char.ToLower(c[K - 1]);
}
} | using System;
class P {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
char[] c = Console.ReadLine().ToCharArray();
int N = int.Parse(str[0]);
int K = int.Parse(str[1]);
c[K - 1] = Char.ToLower(c[K - 1]);
Console.WriteLine(c);
}
} | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 96 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
namespace AtcoderC {
class Program {
/*static void Main(string[] args)
{
}*/
// ABC132C
//全探索法
/*static void Main()
{
BigInteger N = int.Parse(Console.ReadLine(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
namespace AtcoderC {
class Program {
/*static void Main(string[] args)
{
}*/
// ABC132C
//全探索法
/*static void Main()
{
BigInteger N = int.Parse(Console.ReadLine(... | [["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63,... | 8 | 206 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
#region library
static int n = 0;
static int r = 0;
static int c = 0;
static string s = "";
static string[] ss;
static long sum = 0;
static long cnt = 0;
static long max = -1;
static long min = 2147483... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
#region library
static int n = 0;
static int r = 0;
static int c = 0;
static string s = "";
static string[] ss;
static long sum = 0;
static long cnt = 0;
static long max = -1;
static long min = 2147483... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 23, 0, 24], ["-", 0, 200, 0, 212, 0, 23, 0, 16, 31, 22], ["-", 0, 200, 0, 212, 0, 23, 0, 16, 17, 47], ["-", 0, 200, 0, 212, 0, 23, 0, 16, 12, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 23, 0, 25],... | 8 | 1,544 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KyoPro {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
string first = S.Substring(0, 2);
string last = S.Substring(2, 2);
if (IsYearString... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KyoPro {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
string first = S.Substring(0, 2);
string last = S.Substring(2, 2);
if (IsYearString... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 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... | 8 | 199 |
using System;
using System.Linq;
namespace abc126A {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int a2 = a % 100;
int a1 = (a - a2) / 100;
bool ym = false;
bool my = false;
if (a1 <= 12)
ym = true;
if (a2 <= 12)
my = true;
if (... | using System;
using System.Linq;
namespace abc126A {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int a2 = a % 100;
int a1 = (a - a2) / 100;
bool ym = false;
bool my = false;
if (a1 <= 12 && a1 > 0)
ym = true;
if (a2 <= 12 && a2 > 0)
... | [["+", 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, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]] | 8 | 165 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC126_1 {
class B {
static void Main(string[] args) {
var s = Console.ReadLine();
var s1 = int.Parse(s.Substring(0, 2));
var s2 = int.Parse(s.Substring(2, 2));
if ((1 <= s1 && s1 <= 12) && (1 <= s2 && s2 <= 12))
Cons... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC126_1 {
class B {
static void Main(string[] args) {
var s = Console.ReadLine();
var s1 = int.Parse(s.Substring(0, 2));
var s2 = int.Parse(s.Substring(2, 2));
if ((1 <= s1 && s1 <= 12) && (1 <= s2 && s2 <= 12))
Cons... | [["+", 15, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 17, 60], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 12, 203], ["+", 75, 57, 15, 16, 12, 23, 0, 16, 17, 106], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 17, 60], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 12, ... | 8 | 174 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace abc081b {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
string[] month = {
"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12",
};
var onetwo = s[0] + s[1];
var... | using System;
using System.Linq;
using System.Collections.Generic;
namespace abc126 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
string[] month = {
"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12",
};
string onetwo = s.Substring(0, 2);... | [["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 212, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 6... | 8 | 236 |
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 S = Console.ReadLine();
var front = int.Parse(S.Substring(0, 2));
var back = int.Parse(S.Substring(2, 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 S = Console.ReadLine();
var front = int.Parse(S.Substring(0, 2));
var back = int.Parse(S.Substring(2, 2));
... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 106], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 1... | 8 | 158 |
using System;
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int l = int.Parse(s.Substring(0, 2));
int r = int.Parse(s.Substring(2, 2));
if (l == 0 || r == 0) {
Console.WriteLine("NA");
} else if ((1 <= l && l <= 12) && !(1 <= r && r <= 12)) {
Console... | using System;
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int l = int.Parse(s.Substring(0, 2));
int r = int.Parse(s.Substring(2, 2));
if ((1 <= l && l <= 12) && (1 <= r && r <= 12)) {
Console.WriteLine("AMBIGUOUS");
} else if ((1 <= l && l <= 12) && !(1 ... | [["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 31, 203], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 9... | 8 | 164 |
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.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
#endregion
var s = Console.ReadLi... | [["-", 0, 208, 0, 231, 141, 232, 234, 232, 141, 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], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["+", 8, 196, 0, 37, 0, 1... | 8 | 509 |
using System;
class Plogram {
static void Main() {
int S = int.Parse(Console.ReadLine());
int pre = S / 100;
int last = S % 100;
int p = 0;
int l = 0;
if (1 <= pre && pre <= 12) {
p = 1;
} else if (0 <= pre && pre <= 19) {
p = 2;
}
if (1 <= last && last <= 12) {
... | using System;
class Plogram {
static void Main() {
int S = int.Parse(Console.ReadLine());
int pre = S / 100;
int last = S % 100;
int p = 0;
int l = 0;
if (1 <= pre && pre <= 12) {
p = 1;
}
if (1 <= last && last <= 12) {
l = 1;
}
if (p == 1 && l == 1) {
Co... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 31, 203], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 19], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 31, 22], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 19... | 8 | 195 |
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();
string A = S.Substring(0, 2);
string B = S.Substring(2,... | 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();
string A = S.Substring(0, 2);
string B = S.Substring(2,... | [["+", 0, 195, 8, 196, 0, 57, 15, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 79], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 15, 23, 0, 16, 31, 16, 31, 16, 17, 98], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 98], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 31, 22]... | 8 | 555 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
var first = int.Parse(S[0].ToString() + S[1].ToString());
var se... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
var first = int.Parse(S[0].ToString() + S[1].ToString());
var se... | [["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24]] | 8 | 206 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int front = int.Parse(s[0].ToString()) * 10 + int.Parse(s[1].ToString());
int back = int.Parse(s[2].ToString()) * 10 + int.Parse(s[3].ToString());
bool isYYMM = false;
bool isMMYY = f... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int front = int.Parse(s[0].ToString()) * 10 + int.Parse(s[1].ToString());
int back = int.Parse(s[2].ToString()) * 10 + int.Parse(s[3].ToString());
bool isYYMM = false;
bool isMMYY = f... | [["-", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 79], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98]] | 8 | 202 |
using System;
using System.Collections.Generic;
public class ABC126B {
public static void Main() {
string str = System.Console.ReadLine();
int all = int.Parse(str);
bool YYMM = false, MMYY = false;
int first = all / 100;
int second = all - first * 100;
if (first != 0 && second != 0 && second ... | using System;
using System.Collections.Generic;
public class ABC126B {
public static void Main() {
string str = System.Console.ReadLine();
int all = int.Parse(str);
bool YYMM = false, MMYY = false;
int first = all / 100;
int second = all - first * 100;
if (second != 0 && second <= 12)
Y... | [["-", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 79], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22]] | 8 | 168 |
using System;
namespace A {
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
var s1 = int.Parse(S.Substring(0, 2));
var s2 = int.Parse(S.Substring(2, 2));
var isYYMM = s1 > 0 && s2 > 0 && s2 < 13;
var isMMYY = s1 > 0 && s1 < 13 && s2 > 0;
if (isYYMM) {
if ... | using System;
namespace B {
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
var s1 = int.Parse(S.Substring(0, 2));
var s2 = int.Parse(S.Substring(2, 2));
var isYYMM = s2 > 0 && s2 < 13;
var isMMYY = s1 > 0 && s1 < 13;
if (isYYMM) {
if (isMMYY) {
C... | [["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 0, 212, 0, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 212, 0, 16, 31, 16, 31, 16, 17, 47], ["-", 0, 212, 0, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 98], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 1... | 8 | 234 |
using Atcoder;
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 S = Console.ReadLine();
var A = int.Parse(S.Substring(0, 2));
var B = int.Parse(S.Substring(2, 2));
... | using Atcoder;
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 S = Console.ReadLine();
var A = int.Parse(S.Substring(0, 2));
var B = int.Parse(S.Substring(2, 2));
... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 17, 60], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 23, 0, 16, 17, 98], ["+", 15, 16, 12, 23, 0, 16, 12, 16, 31, 22... | 8 | 217 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
// using Debug;
// using static System.Globalization.CultureInfo;
// using Edge = Pair<long, int>;
using System.Text;
class Program {
static void Main(string[] args) {... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
// using Debug;
// using static System.Globalization.CultureInfo;
// using Edge = Pair<long, int>;
using System.Text;
class Program {
static void Main(string[] args) {... | [["+", 75, 57, 75, 57, 15, 16, 31, 16, 12, 203], ["+", 75, 57, 75, 57, 75, 57, 15, 16, 17, 98], ["+", 75, 57, 75, 57, 15, 16, 12, 16, 31, 22], ["+", 75, 57, 75, 57, 15, 16, 12, 16, 17, 60], ["+", 75, 57, 75, 57, 15, 16, 12, 16, 12, 203], ["+", 75, 57, 75, 57, 75, 57, 75, 57, 0, 25], ["+", 75, 57, 75, 57, 64, 1, 0, 213,... | 8 | 221 |
using System;
using System.Text;
namespace ABC126 {
class Program {
static int Main(string[] args) {
ProblemB();
return 0;
}
static void ProblemB() {
int input = int.Parse(System.Console.ReadLine());
string answer;
int ba, dc;
ba = input % 100;
dc = (input - ba) / 100;
// YYMM
... | using System;
using System.Text;
namespace ABC126 {
class Program {
static int Main(string[] args) {
ProblemB();
return 0;
}
static void ProblemB() {
int input = int.Parse(System.Console.ReadLine());
string answer;
int ba, dc;
ba = input % 100;
dc = (input - ba) / 100;
// YYMM
... | [["+", 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], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 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,... | 8 | 276 |
using System;
using System.Linq;
using System.Collections.Generic;
class Mondai {
static void Main() {
var S = Console.ReadLine();
var mae = string.Empty;
var ushiro = string.Empty;
for (int i = 0; i < 4; ++i) {
if (i < 2)
mae += S[i];
else
ushiro += S[i];
}
var an... | using System;
using System.Linq;
using System.Collections.Generic;
class Mondai {
static void Main() {
var S = Console.ReadLine();
var mae = string.Empty;
var ushiro = string.Empty;
for (int i = 0; i < 4; ++i) {
if (i < 2)
mae += S[i];
else
ushiro += S[i];
}
var an... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 106], ["+", 0, 57, 15, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 31, 203], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 17, 18], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 17, 98], ["+", 31, 16, 12, 23, 0, 16, 12, 16, 31, 2... | 8 | 182 |
using System;
using System.Linq;
namespace ABC126B {
class Program {
static void Main(string[] args) {
string S = CIN.String();
int Y = int.Parse(S.Substring(0, 2));
int M = int.Parse(S.Substring(2, 2));
if (Y == 0) {
Console.WriteLine("NA");
return;
}
if (M == 0) {
Consol... | using System;
using System.Linq;
namespace ABC126B {
class Program {
static void Main(string[] args) {
string S = CIN.String();
int Y = int.Parse(S.Substring(0, 2));
int M = int.Parse(S.Substring(2, 2));
if (Y == 0 && M == 0) {
Console.WriteLine("NA");
return;
}
if (Y > 12 || Y ... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], [... | 8 | 340 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Solver {
Scanner sc = new Scanner();
public void Solve() {
var S = sc.next();
var mae = Convert.ToInt32(S.Substring(0, 2));
var ato = Convert.ToInt32(S.Substring(2, 2));
if (mae == 0 && ato <= 12... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Solver {
Scanner sc = new Scanner();
public void Solve() {
var S = sc.next();
var mae = Convert.ToInt32(S.Substring(0, 2));
var ato = Convert.ToInt32(S.Substring(2, 2));
if (mae == 0 && ato > 0 &... | [["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 2... | 8 | 594 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
namespace SolutionCS {
class Program {
static void Main(string[] args) {
string strIn = Console.ReadLine();
string str0 = strIn.Substring(0, 2);
string str1 = strIn.Substring(2, 2);
int int0 = int.Parse(str0);... | using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
namespace SolutionCS {
class Program {
static void Main(string[] args) {
string strIn = Console.ReadLine();
string str0 = strIn.Substring(0, 2);
string str1 = strIn.Substring(2, 2);
int int0 = int.Parse(str0);... | [["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 106], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 75, 57, 64, 196, 0, 57, 15, 16, 17, 106], ["+", 75, 57, 75, 57, 75, 57, 75, 57, 0, 121], ["+", 75, 57, 75, 57, 75, 57, 75, 5... | 8 | 219 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using static MyIO;
public class B {
public static void Main() {
string S = GetString();
int first = int.Parse(S.Substring(0, 2));
int last = int.Parse(S.Substring(2, 2));
if (first == 0 ||... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using static MyIO;
public class B {
public static void Main() {
string S = GetString();
int first = int.Parse(S.Substring(0, 2));
int last = int.Parse(S.Substring(2, 2));
if (canMM(first) ... | [["+", 8, 196, 0, 57, 15, 16, 31, 213, 63, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98]... | 8 | 337 |
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 {
class Program {
static void Main(string[] args) {
new ABC128().SolveC(new ConsoleInput(Console.In, ' '));
}
}
public class ... | 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 {
class Program {
static void Main(string[] args) {
new ABC128().SolveC(new ConsoleInput(Console.In, ' '));
}
}
public class ... | [["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 196, 0, 7, 8... | 8 | 645 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC128_C_Switches {
class Program {
static void Main(string[] args) {
string[] nm = Console.ReadLine().Split(' ');
int n = int.Parse(nm[0]);
int m = int.Parse(nm[1]);
int[] k ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC128_C_Switches {
class Program {
static void Main(string[] args) {
string[] nm = Console.ReadLine().Split(' ');
int n = int.Parse(nm[0]);
int m = int.Parse(nm[1]);
int[] k ... | [["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 12, 204, 206, 207, 0, 28, 0, 16... | 8 | 412 |
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]); // スイッチの数
int m = int.Parse(input[1]); // 電球の数
var lights = new List<Light>(m);... | using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]); // スイッチの数
int m = int.Parse(input[1]); // 電球の数
var lights = new List<Light>(m);... | [["-", 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, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 510 |
using System;
using static System.Console;
using System.Text;
using System.Linq;
using static System.Math;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Program {
public static cp alg;
public static int[] P;
public static int[][] KS;
public sta... | using System;
using static System.Console;
using System.Text;
using System.Linq;
using static System.Math;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Program {
public static cp alg;
public static int[] P;
public static int[][] KS;
public sta... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212,... | 8 | 1,204 |
using System;
namespace AtCoderABC128C {
class Program {
static void Main(string[] args) {
int ans = 0;
string[] s = Console.ReadLine().Split(' ');
int N = int.Parse(s[0]); // Switch
int M = int.Parse(s[1]); // Lamp
int[][] X = new int [M][]; // Lamp毎のSwitch
bool[] sw = new bool[N]; // S... | using System;
namespace AtCoderABC128C {
class Program {
static void Main(string[] args) {
int ans = 0;
string[] s = Console.ReadLine().Split(' ');
int N = int.Parse(s[0]); // Switch
int M = int.Parse(s[1]); // Lamp
int[][] X = new int [M][]; // Lamp毎のSwitch
bool[] sw = new bool[N]; // S... | [["-", 39, 224, 225, 226, 0, 16, 31, 214, 205, 22], ["+", 39, 224, 225, 226, 0, 213, 63, 214, 205, 199], ["-", 39, 224, 225, 226, 0, 16, 31, 214, 141, 22], ["-", 12, 227, 39, 224, 225, 226, 0, 16, 17, 33], ["-", 12, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 39, 224, 225, 226, 0, 213, 63, 214, 141, 22], ["+", 39, 2... | 8 | 438 |
using AtCoderBeginnerContest128.Questions;
using AtCoderBeginnerContest128.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoderBeginnerContest128.Questions {
public class QuestionD : AtCoderQuestionBase {
public override IEnumerable<... | using AtCoderBeginnerContest128.Questions;
using AtCoderBeginnerContest128.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoderBeginnerContest128.Questions {
public class QuestionD : AtCoderQuestionBase {
public override IEnumerable<... | [["+", 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, 21], ["+", 15, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 7, 15, 16, 12, 213, 3, 4, 0, 25]] | 8 | 1,198 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC128_D {
class Program {
static void Main(string[] args) {
var NK = Console.ReadLine().Split().Select(long.Parse).ToArray();
var N = NK[0];
var K = NK[1];
var V = Console.R... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC128_D {
class Program {
static void Main(string[] args) {
var NK = Console.ReadLine().Split().Select(int.Parse).ToArray();
var N = NK[0];
var K = NK[1];
var V = Console.Re... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 212, 0, 41, 15, 16, 31, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 212, 0, 41, 15, 16, 31, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 41, 15, 16, 17, 19], ["-", 0, 200, 0, 212, 0, 41, 15,... | 8 | 284 |
using System;
using System.Linq;
using System.Collections.Generic;
class Mondai {
static void Main() {
var nk =
Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray();
var N = nk[0];
var K = nk[1];
var V = Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray();
v... | using System;
using System.Linq;
using System.Collections.Generic;
class Mondai {
static void Main() {
var nk =
Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray();
var N = nk[0];
var K = nk[1];
var V = Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray();
v... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["+", ... | 8 | 278 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC128 {
class Program {
static void Main(string[] args) {
var nk = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
var N = nk[0];
var K = nk[1] + 1;
var V = Console.ReadLine().Split(' ').Select(int.Parse).ToList()... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC128 {
class Program {
static void Main(string[] args) {
var nk = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
var N = nk[0];
var K = nk[1] + 1;
var V = Console.ReadLine().Split(' ').Select(int.Parse).ToList()... | [["+", 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], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]] | 8 | 246 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC128D {
class Program {
static void Main(string[] args) {
var nums = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToList();
var n = nums[0];
var k = nums[1];
va... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC128D {
class Program {
static void Main(string[] args) {
var nums = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToList();
var n = nums[0];
var k = nums[1];
va... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 18], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, ... | 8 | 300 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC128 {
class D {
static void Main(string[] args) {
int[] a =
Console.ReadLine().Split(' ').Select(cc => int.Parse(cc)).ToArray();
int N = a[0], K = a[1];
int[] V =
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC128 {
class D {
static void Main(string[] args) {
int[] a =
Console.ReadLine().Split(' ').Select(cc => int.Parse(cc)).ToArray();
int N = a[0], K = a[1];
int[] V =
... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", ... | 8 | 303 |
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[] nk =
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int N... | 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[] nk =
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int N... | [["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 8, 196, 0, 7, 8, 196, 0, 210, 0, 266], ["+", 8, 196, 0, 7, 8, 196, 0, 210, 0, 24],... | 8 | 284 |
using System;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using Debug = System.Diagnostics.Debug;
static class P {
static void Main() {
var nk = Consol... | using System;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using Debug = System.Diagnostics.Debug;
static class P {
static void Main() {
var nk = Consol... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 205, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16... | 8 | 319 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
// using Debug;
// using static System.Globalization.CultureInfo;
// using Edge = Pair<long, int>;
using System.Text;
class Program {
static void Main(string[] args) {... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
// using Debug;
// using static System.Globalization.CultureInfo;
// using Edge = Pair<long, int>;
using System.Text;
class Program {
static void Main(string[] args) {... | [["+", 0, 200, 0, 212, 0, 230, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 24], ["+", 0, 28, 0, 218, 54, 55, 0, 220, 141, 22], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 21], ["+", 0, 230, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 3, 4, 0, 28, 0, 218, 8, 213, 63, 22], ["+", 0, 28, 0, 218, 8, 213, 3, 4, 0, 24], ["+", 0, 21... | 8 | 1,828 |
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... | [["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 0, 57, 64, 7, 8, 1, 0, 213, 63, 22], ["+", 64, 7, 8, 1, 0, 213, 3, 4, 0, 24], ["... | 8 | 1,790 |
using System;
using System.IO;
namespace AtCoder {
class Program {
static void Main(string[] args) { new Program().Solve(); }
public void Solve() {
var sc = new Scanner();
// 0
// A
// A-B
// A-B+A
// ...
// N - 1 - A
// N - 1
// 偶数ターンは(A-B)*(i/2)にいる
// 奇数ターンは(A-B)*(i/2)... | using System;
using System.IO;
namespace AtCoder {
class Program {
static void Main(string[] args) { new Program().Solve(); }
public void Solve() {
var sc = new Scanner();
// 0
// A
// A-B
// A-B+A
// ...
// N - 1 - A
// N - 1
// 偶数ターンは(A-B)*(i/2)にいる
// 奇数ターンは(A-B)*(i/2)... | [["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0,... | 8 | 630 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[] S = new int[N];
string[] str = Console.ReadLine().Split();
for (var i = 0; i < N; i++) {
S[i] = int.Parse(str[i]);
}
long ans = 0;
for (var i... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
long N = int.Parse(Console.ReadLine());
long[] S = new long[N];
string[] str = Console.ReadLine().Split();
for (var i = 0; i < N; i++) {
S[i] = long.Parse(str[i]);
}
long ans = 0;
for (l... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 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], ["-", 0, 1, 0, 11, 12, 213,... | 8 | 216 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
private struct Pair {
public int x, y;
public Pair(int x, int y) {
this.x = x;
this.y = y;
}
}
public static void Solve() {
int N = NextInt(... | using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
private struct Pair {
public int x, y;
public Pair(int x, int y) {
this.x = x;
this.y = y;
}
}
public static void Solve() {
int N = NextInt(... | [["-", 8, 196, 0, 57, 75, 196, 0, 52, 0, 89], ["+", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["+", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 57, 75, 196, 0, 52, 15, 16, 31, 22], ["-", 0, 57, 75, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17... | 8 | 612 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
using static System.Array;
class MainClass : Scanner {
static void Main() {
var (A, B) = ReadStream<int, int>();
if (A < 5)
WriteLine(0);
else if (A <= 12)
WriteLine(B / 2... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class MainClass : Scanner {
static void Main() {
var (A, B) = ReadStream<int, int>();
if (A <= 5)
WriteLine(0);
else if (A <= 12)
WriteLine(B / 2);
else
WriteLin... | [["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 115], ["-", 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, 195, 8, 196, 0, 57, 1... | 8 | 716 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Asakatsu20200313F {
class Input {
/// <summary>
/// 1行の入力を取得する
/// </summary>
/// <returns>文字列</returns>
public void String(out string s) { s = Console.ReadLine(); }
/// <summary>
/// 複数行の入力を取得
/// </summary>
/// <returns>文... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Asakatsu20200313A {
class Input {
/// <summary>
/// 1行の入力を取得する
/// </summary>
/// <returns>文字列</returns>
public void String(out string s) { s = Console.ReadLine(); }
/// <summary>
/// 複数行の入力を取得
/// </summary>
/// <returns>文... | [["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 263, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22... | 8 | 910 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_127A {
class Program {
static void Main(string[] args) {
int a, b, x;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
x = i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_127A {
class Program {
static void Main(string[] args) {
int a, b, x;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
x = i... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131]] | 8 | 155 |
using System;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int A = int.Parse(input[0]);
int B = int.Parse(input[1]);
if (A >= 13) {
Console.WriteLine(B);
} else {
Console.WriteLine(B / 2);
}
}
}
| using System;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int A = int.Parse(input[0]);
int B = int.Parse(input[1]);
if (A >= 13) {
Console.WriteLine(B);
} else if (A <= 5) {
Console.WriteLine(0);
} else {
Console.WriteLin... | [["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 31, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 25], ["+", 8, 196, 0, 57, 75, 57, 64, 196, 0, 45]... | 8 | 89 |
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, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 57, 75, 1, 0, 11, 31, 22], ["-", 0, 57, 75, 1, 0, 11, 0, 202, 0... | 8 | 745 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
public class MainClass {
public static void Main(string[] args) {
// if (args.Length > 0 && args[0] == "debug")
if (true) {
var inputs = new[] { @"
30 100
",
@... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
public class MainClass {
public static void Main(string[] args) {
if (args.Length > 0 && args[0] == "debug") {
var inputs = new[] { @"
30 100
",
@"
12 100
",
... | [["-", 0, 195, 8, 196, 0, 57, 15, 211, 0, 146], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16,... | 8 | 947 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using static System.Console;
namespace ABC127B {
static class Program {
static void Main(string[] args) {
var n = ReadLine().SplitTryParseToList<int>();
int[] a = new int[11];
a[0] = n[2];
... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using static System.Console;
namespace ABC127B {
static class Program {
static void Main(string[] args) {
var n = ReadLine().SplitTryParseToList<int>();
int[] a = new int[11];
a[0] = n[2];
... | [["-", 8, 201, 0, 195, 8, 196, 0, 210, 12, 22], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 210, 12, 213, 3, 4, 0, 24], ["+", 0, 210, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 8, 196, 0, 210, 12, 213, 3,... | 8 | 537 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder0525 {
class Class1 {
static void Main(string[] args) {
string line = Console.ReadLine();
string[] arr = line.Split(' ');
int r = int.Parse(arr[0]);
int D = int.Parse(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder0525 {
class Class1 {
static void Main(string[] args) {
string line = Console.ReadLine();
string[] arr = line.Split(' ');
long r = long.Parse(arr[0]);
long D = long.Pa... | [["-", 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, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22]] | 8 | 144 |
using System;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int r, D;
int[] seq = new int[10];
r = int.Parse(str[0]);
D = int.Parse(str[1]);
seq[0] = int.Parse(str[2]);
for (int i = 0; i < seq.Length - 1; i++) {
seq[i + 1] = r * seq[i... | using System;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int r, D, x;
int[] seq = new int[10];
r = int.Parse(str[0]);
D = int.Parse(str[1]);
x = int.Parse(str[2]);
seq[0] = r * x - D;
for (int i = 0; i < seq.Length - 1; ++i) {
... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, ... | 8 | 143 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
#region library
static int n = 0;
static int r = 0;
static int c = 0;
static string s = "";
static string[] ss;
static long sum = 0;
static long cnt = 0;
static long max = -1;
static long min = 2147483... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
#region library
static int n = 0;
static int r = 0;
static int c = 0;
static string s = "";
static string[] ss;
static long sum = 0;
static long cnt = 0;
static long max = -1;
static long min = 2147483... | [["+", 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, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 1, 0, 213, 3, 4, 0, 25], ["+... | 8 | 1,473 |
using System;
using System.Linq;
class C {
public static void Main() {
int[] inp = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int M = inp[1];
int[] L = new int[M];
int[] R = new int[M];
int[] Te = new int[2];
for (int i = 0; i < M; i++) {
Te = Array.ConvertAll(Console.R... | using System;
using System.Linq;
class C {
public static void Main() {
int[] inp = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int M = inp[1];
int[] L = new int[M];
int[] R = new int[M];
int[] Te = new int[2];
for (int i = 0; i < M; i++) {
Te = Array.ConvertAll(Console.R... | [["+", 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, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 223, 0, 22], ... | 8 | 170 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using static System.Console;
namespace ConsoleApp2 {
class Program {
static public int[] Sarray() {
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using static System.Console;
namespace ConsoleApp2 {
class Program {
static public int[] Sarray() {
... | [["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22],... | 8 | 230 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.