buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k | change_count int64 0 100 |
|---|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
namespace abc122_c {
class Program {
static void Main(string[] args) {
foreach (var result in Solve()) {
WriteLine(result);
}
}
static IEnumerable<long> Solve() {
var q = int.Parse(ReadLine().Split(... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
namespace AtCoder.BeginnersSelections {
class D_EnoughArray {
static void Main(string[] args) {
foreach (var result in Solve()) {
WriteLine(result);
}
}
static IEnumerable<long> Solve() {
... | [["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 36, 36, 0, 208, 0, 209, 141, 232, 234, 22], ["+", 36, 36, 0, 208, 0, 209, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 209, 141, 232, 141, 22], ["-", 0, 208, 0, 209, 8, 201, 0, 235, 141, 22], ["+", 0, 208, 0, 209, 8, 201, 0, 235, 141, 22], ["-", 0, 198, 0, 200, 0, 2... | 8 | 242 | 16 |
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[] nq =
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[] nq =
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int N... | [["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 206, 207, 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, 2... | 8 | 405 | 16 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ziyuutyou {
class Program {
static void Main(string[] args) {
var aaa = Console.ReadLine().Split(' ');
var n = int.Parse(aaa[0]);
var q = int.Parse(aaa[1]);
var str = Console.ReadLine();
var s = new int[n + 1];
s[0]... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ziyuutyou {
class Program {
static void Main(string[] args) {
var aaa = Console.ReadLine().Split(' ');
var n = int.Parse(aaa[0]);
var q = int.Parse(aaa[1]);
var str = Console.ReadLine();
var s = new int[n];
for (va... | [["-", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 73], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 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... | 8 | 280 | 33 |
using System;
namespace ConsoleApp {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
var strs = str.Split(' ');
var N = int.Parse(strs[0]);
var Q = int.Parse(strs[1]);
var S = Console.ReadLine();
var ls = new int[Q];
var rs = new int[Q];
for (int i = ... | using System;
namespace ConsoleApp {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
var strs = str.Split(' ');
var N = int.Parse(strs[0]);
var Q = int.Parse(strs[1]);
var S = Console.ReadLine();
var ls = new int[Q];
var rs = new int[Q];
for (int i = ... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 95], ["+", 0, 57, 64, 196, 0, 57, 75, 196, 0, 45], ["+", 75, 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, ... | 8 | 315 | 15 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
static class Program {
const int mod = 1000000007;
static void Main() {
Sc sc = new Sc();
int[] s = sc.Ia;
string t = " " + sc.S;
int[] r = new int[s[0] + 1];
int a = 0;
for (int i = 1; i <... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
static class Program {
const int mod = 1000000007;
static void Main() {
Sc sc = new Sc();
int[] s = sc.Ia;
string t = " " + sc.S;
int[] r = new int[s[0] + 1];
for (int i = 1; i <= s[0]; 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, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 1... | 8 | 503 | 28 |
using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var q = int.Parse(line[1]);
var s = Console.ReadLine().Trim();
var z = new List<int>();
for (int i = 0; i < n - 1;... | using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var q = int.Parse(line[1]);
var s = Console.ReadLine().Trim();
var z = new List<int>();
for (int i = 0; i < n - 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, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ... | 8 | 422 | 32 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AtCoder.ABC122.B {
class Program {
static void Main() {
var sc = new Scanner();
var N = sc.Nextint();
var Q = sc.Nexti... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AtCoder.ABC122.B {
class Program {
static void Main() {
var sc = new Scanner();
var N = sc.Nextint();
var Q = sc.Nexti... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 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, 203], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["-", 15, 16, 31, 16, 12, 16, 31, 204, 205, 22]... | 8 | 760 | 38 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace C {
public class Program
{
public static void Main(string[] args) {
int[] nq = RIntAr();
string s = RSt();
int cnt = 0;
bool aFlg = false;
int[] cnts = new int[s.Length];
for (int i = 0; i < s.L... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace C {
public class Program
{
public static void Main(string[] args) {
int[] nq = RIntAr();
string s = RSt();
int cnt = 0;
bool aFlg = false;
int[] cnts = new int[s.Length];
for (int i = 0; i < s.L... | [["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 104], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["-", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["-", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 64, 1, 0, 11, 12, 211, 0, 146], ["-", 0, 7, 8, 196, 0, 57, 64, 1, 0, 35], ["-", 8,... | 8 | 489 | 35 |
using System;
using System.Collections.Generic;
class Program {
// static List<string> str = new List<string>();
static void Main(string[] args) {
// 入力フェーズ
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int Q = int.Parse(input[1]);
string S = Console.ReadLine();
... | using System;
using System.Collections.Generic;
class Program {
// static List<string> str = new List<string>();
static void Main(string[] args) {
// 入力フェーズ
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int Q = int.Parse(input[1]);
string S = Console.ReadLine();
... | [["+", 0, 57, 64, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 57, 64, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 204, 205, 22], ["+", 75, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 75, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 57, 75, 57, 15, ... | 8 | 528 | 30 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace CSharpSample01 {
class Program {
static int[] cnt_ac_toend;
static int AC_Cnt(string S, int start, int end) {
int cnt_AC = 0;
for (int i = end - 1; i >= start - 1; i--) {
char now = S[i];
if (now == 'A') {
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace CSharpSample01 {
class Program {
static int[] cnt_ac_toend;
static int AC_Cnt(string S, int start, int end) {
int cnt_AC = 0;
for (int i = end - 1; i >= start - 1; i--) {
char now = S[i];
if (now == 'A') {
... | [["-", 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], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22],... | 8 | 300 | 15 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_122 {
class C {
static void Main(string[] args) {
Method(args);
ReadLine();
}
static void Method(string[] args) {
int[] nq =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_122 {
class C {
static void Main(string[] args) {
Method(args);
ReadLine();
}
static void Method(string[] args) {
int[] nq =... | [["-", 0, 7, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 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, 22], ["-", 0, 28, 0, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-",... | 8 | 473 | 16 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC122D {
static class MainClass {
static int[] s;
static long[,,,] dp = new long[101, 4, 4, 4];
static bool[,,,] done = new bool[101, 4, 4, 4];
static long mod = 1000000007;
public static void Main(string[] args) {
s = Array... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC122D {
static class MainClass {
static int[] s;
static long[,,,] dp = new long[101, 4, 4, 4];
static bool[,,,] done = new bool[101, 4, 4, 4];
static long mod = (long)Math.Pow(10, 9) + 7;
public static void Main(string[] args) {... | [["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25], ["+", 0, 16, 31, 74, 51, 213, 63, 214, 205, 22], ["+", 0, 16, 31, 74, 51, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 74, 51, 213, 63, 214,... | 8 | 577 | 31 |
using System;
using System.Collections.Generic;
using System.Linq;
class Procon {
public Procon() {}
static void Main(string[] agrs) { new Procon().Do(); }
Scanner cin;
int N;
Dictionary<string, long>[] last4str;
string[] Alphabet = new string[4] { "A", "G", "C", "T" };
public bool Check(string key)... | using System;
using System.Collections.Generic;
using System.Linq;
class Procon {
public Procon() {}
static void Main(string[] agrs) { new Procon().Do(); }
Scanner cin;
int N;
Dictionary<string, long>[] last4str;
string[] Alphabet = new string[4] { "A", "G", "C", "T" };
public bool Check(string key)... | [["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 19... | 8 | 919 | 8 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Linq;
using static System.Math;
class Program {
static long mod = (long)1e9 + 7;
static void Main() {
int n = int.Parse(Console.ReadLine());
long[,] dp = new long[n + 1, 16];
for (int i = 0; i < 1... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Linq;
using static System.Math;
class Program {
static long mod = (long)1e9 + 7;
static void Main() {
int n = int.Parse(Console.ReadLine());
long[,] dp = new long[n + 1, 16];
for (int i = 0; i < 1... | [["-", 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, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["-", 31, 23, 0, 16, 31, 16, 31, 204, 205, 22], ["-", 0, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, ... | 8 | 1,899 | 40 |
using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int n = int.Parse(ReadLine());
List<int> b = ReadLine().Split().ToList().ConvertAll(x => int.Parse(x));
List<int> ans = new List<int>();
for (int i = 0; i ... | using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int n = int.Parse(ReadLine());
List<int> b = ReadLine().Split().ToList().ConvertAll(x => int.Parse(x));
List<int> ans = new List<int>();
for (int i = 0; i ... | [["+", 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, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12... | 8 | 181 | 19 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long n = sc.NextLong();
long[] bb = sc.LongArray();
List<long> bList = bb.ToList();
List<long> answers = new List<long>();
while (answe... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long n = sc.NextLong();
long[] bb = sc.LongArray();
List<long> bList = bb.ToList();
List<long> answers = new List<long>();
while (answe... | [["-", 0, 57, 15, 16, 12, 213, 63, 214, 0, 131], ["-", 0, 57, 15, 16, 12, 213, 63, 214, 141, 22], ["-", 0, 57, 15, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 57, 15, 16, 12, 204, 206, 207, 0, 70], ["+", 0, 57, 15, 16, 12, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 7, 8, 196, 0, 4... | 8 | 480 | 30 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
namespace AtCoder {
class Program {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
static public List<long> S... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
namespace AtCoder {
class Program {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
static public List<long> S... | [["+", 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, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+",... | 8 | 245 | 18 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
class AtCoder {
public void Slove() {
int n = int.Parse(Console.ReadLine());
var a = Console.ReadLine()
.Split()
.Select(int.Parse)
.Select(x => x - 1)
... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
class AtCoder {
public void Slove() {
int n = int.Parse(Console.ReadLine());
var a = Console.ReadLine()
.Split()
.Select(int.Parse)
.Select(x => x - 1)
... | [["+", 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], ["+", 8, 196, 0, 210, 12, 213, 3, 4, 0, 25], ["-", 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... | 8 | 253 | 13 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AGC032 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[] h = Console.ReadLine().Split(' ').Select(z => int.Parse(z)).ToArray();
Lis... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AGC032 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[] h = Console.ReadLine().Split(' ').Select(z => int.Parse(z)).ToArray();
Lis... | [["+", 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], ["+", 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, 7, 10, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46],... | 8 | 222 | 14 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | [["+", 0, 195, 8, 196, 0, 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, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0,... | 8 | 980 | 18 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
class AtCoder {
public void Slove() {
var inputs = Console.ReadLine().Split();
int n = int.Parse(inputs[0]);
long a = int.Parse(inputs[1]);
long b = int.Parse(inputs[2]);
var array = Conso... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
class AtCoder {
public void Slove() {
var inputs = Console.ReadLine().Split();
int n = int.Parse(inputs[0]);
long a = int.Parse(inputs[1]);
long b = int.Parse(inputs[2]);
var array = Conso... | [["-", 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, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 3... | 8 | 289 | 31 |
using System;
using System.Text;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
class Program {
static void Main(string[] args) {
var HWK =
Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
var A = HWK[0];
var B = HWK[1];
if (A <= B && B % A ... | using System;
using System.Text;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
class Program {
static void Main(string[] args) {
var HWK =
Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
var A = HWK[0];
var B = HWK[1];
if (B % A == 0) {
... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", ... | 8 | 124 | 8 |
using System;
using System.Linq;
namespace ABC118_A {
class Program {
static void Main(string[] args) {
var ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
var a = ab[0];
var b = ab[1];
Console.WriteLine(a % b == 0 ? a + b : a - b);
}
}
}
| using System;
using System.Linq;
namespace ABC118_A {
class Program {
static void Main(string[] args) {
var ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
var a = ab[0];
var b = ab[1];
Console.WriteLine(b % a == 0 ? a + b : b - a);
}
}
}
| [["-", 0, 28, 0, 41, 15, 16, 31, 16, 31, 22], ["-", 0, 28, 0, 41, 15, 16, 31, 16, 17, 109], ["+", 0, 28, 0, 41, 15, 16, 31, 16, 17, 109], ["+", 0, 28, 0, 41, 15, 16, 31, 16, 12, 22], ["-", 3, 4, 0, 28, 0, 41, 75, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 41, 75, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 17, 33], ["+", 3,... | 8 | 86 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc_a {
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split().Select(a => int.Parse(a)).ToArray();
int A = inputs[0];
int B = inputs[1];
i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc_a {
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split().Select(a => int.Parse(a)).ToArray();
int A = inputs[0];
int B = inputs[1];
i... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 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... | 8 | 122 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static string InputPattern = "InputX";
static List<string> GetInputList() {
var WillReturn = new List<string>();
if (InputPattern == "Input1") {
WillReturn.Add("4 12");
// 16
} else if (InputPattern == "Inp... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static string InputPattern = "InputX";
static List<string> GetInputList() {
var WillReturn = new List<string>();
if (InputPattern == "Input1") {
WillReturn.Add("4 12");
// 16
} else if (InputPattern == "Inp... | [["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 95], ["+", 0, 57, 75, 57, 75, 57, 75, 196, 0, 45], ["+", 75, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["+", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 75, 57, 75, 57, 75, 196, 0, 197, 0, 35], ["+", 75, 57, 75, 57, 75, 196, 0, 52, 0, 89], ["+", 75, 57, 75, 57, 75, 196, 0, 52,... | 8 | 210 | 27 |
using System;
using System.Linq;
class Procon {
public Procon() {}
static void Main(string[] agrs) { new Procon().Do(); }
Scanner cin;
public void Do() {
cin = new Scanner();
int N = cin.nextInt();
int M = cin.nextInt();
int[] ret = new int[M];
for (int i = 0; i < M; i++) {
ret[i] =... | using System;
using System.Linq;
class Procon {
public Procon() {}
static void Main(string[] agrs) { new Procon().Do(); }
Scanner cin;
public void Do() {
cin = new Scanner();
int N = cin.nextInt();
int M = cin.nextInt();
int[] ret = new int[M];
for (int i = 0; i < M; i++) {
ret[i] =... | [["-", 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], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 7, 10, 198... | 8 | 614 | 33 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
string[] tmp = Console.ReadLine().Split(' ');
int n = int.Parse(tmp[0]);
int m = int.Parse(tmp[1]);
bool[] data = new bool[m];
for (int i = 0; i < m; i++) {
data[i] = true;
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
string[] tmp = Console.ReadLine().Split(' ');
int n = int.Parse(tmp[0]);
int m = int.Parse(tmp[1]);
int[] data = new int[m];
for (int i = 0; i < m; i++) {
data[i] = 0;
}
... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 12, 211, 0, 146], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 196, 0, 1, 0, 11, 0, 202, ... | 8 | 204 | 11 |
using System;
using System.Collections.Generic;
public class S {
public static void Main() {
var input = Array.ConvertAll(Console.ReadLine().Split('/'), int.Parse);
if (input[0] == 2019) {
if (input[1] <= 4) {
Console.WriteLine("Heisei");
}
} else {
if (input[0] < 2019) {
... | using System;
using System.Collections.Generic;
public class S {
public static void Main() {
var input = Array.ConvertAll(Console.ReadLine().Split('/'), int.Parse);
if (input[0] == 2019) {
if (input[1] <= 4) {
Console.WriteLine("Heisei");
} else {
Console.WriteLine("TBD");
... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 95], ["+", 0, 57, 64, 196, 0, 57, 75, 196, 0, 45], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 75, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], [... | 8 | 114 | 12 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder {
class Program {
public static void Main(string[] args) {
string[] S = Console.ReadLine().Split('/');
int year = int.Parse(S[0]);
int month = int.Parse(S[1]);
int day = int.Parse(S[2]);
Console.WriteLine("{0} {1... | using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder {
class Program {
public static void Main(string[] args) {
string[] S = Console.ReadLine().Split('/');
int year = int.Parse(S[0]);
int month = int.Parse(S[1]);
int day = int.Parse(S[2]);
if (year < 2019) {
... | [["-", 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, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["-", 0, 1, ... | 8 | 184 | 15 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static string ans = "Heisei";
static int Main() {
string[] nyu = Console.ReadLine().Split('/');
int y = int.Parse(nyu[0]);
int m = int.Parse(nyu[1]);
int d = int.Parse(nyu[1]);
// ここまで入力
if (y > 2019) {
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static string ans = "Heisei";
static int Main() {
string[] nyu = Console.ReadLine().Split('/');
int y = int.Parse(nyu[0]);
int m = int.Parse(nyu[1]);
int d = int.Parse(nyu[1]);
// ここまで入力
if (y > 2019) {
... | [["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 62], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 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, ... | 8 | 128 | 9 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CompCsharp {
class Program {
private const double BTCJPY = 380000.0;
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
List<double> ret = new List<double>();
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace CompCsharp {
class Program {
private const double BTCJPY = 380000.0;
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
List<double> ret = new List<double>();
for (int i = 0; i < n; i++) {
string[] ... | [["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["-", 0, 208, 0, 231, 141... | 8 | 163 | 14 |
using System;
using System.Collections.Generic;
using static AtCoderer.Exter;
using static System.Math;
using System.Linq;
namespace AtCoderer {
public class App {
public static void Solve() {
int n, a, b, c;
ParseArray(out n, out a, out b, out c);
int[] l = new int[n];
for (int i = 0; i < n; i++)
... | using System;
using System.Collections.Generic;
using static AtCoderer.Exter;
using static System.Math;
using System.Linq;
namespace AtCoderer {
public class App {
public static void Solve() {
int n, a, b, c;
ParseArray(out n, out a, out b, out c);
int[] l = new int[n];
for (int i = 0; i < n; i++)
... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 15, 16, 31, 16, 31, 16, 31, 204, 205, 22], ["+", 31, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 15, 16, 31, 16, 31, 1... | 8 | 1,697 | 25 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
const int MOD = 1000000007;
const int INF = 1 << 30;
static void Main(string[] args) { Solve(); }
static int N;
static int A;
static int B;
static int C;
static int[] l;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
const int MOD = 1000000007;
const int INF = 1 << 30;
static void Main(string[] args) { Solve(); }
static int N;
static int A;
static int B;
static int C;
static int[] l;
... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 106], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 31, ... | 8 | 465 | 17 |
using System;
class Data {
public int count, sum, n;
public Data(int count, int sum, int n) {
this.count = count;
this.sum = sum;
this.n = n;
}
}
class Program {
static void Main(string[] args) {
var nabc = Console.ReadLine().Split(' ');
var n = int.Parse(nabc[0]);
var a = int.Parse(n... | using System;
class Data {
public int count, sum, n;
public Data(int count, int sum, int n) {
this.count = count;
this.sum = sum;
this.n = n;
}
}
class Program {
static void Main(string[] args) {
var nabc = Console.ReadLine().Split(' ');
var n = int.Parse(nabc[0]);
var a = int.Parse(n... | [["+", 64, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 64, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 214, 205, 204, 205, 22], ["+", 15, 16, 31, 214, 205, 204, 206, 207, 0, 70], ["+", 31, 214, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 214, 205, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16,... | 8 | 417 | 18 |
using System;
using System.Linq;
using System.Collections.Generic;
using E = System.Linq.Enumerable;
public class Program {
public static void Main() {
var nabc = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
var n = nabc[0];
var a = nabc[1];
var b = nabc[2];
var c = nabc[3];
... | using System;
using System.Linq;
using System.Collections.Generic;
using E = System.Linq.Enumerable;
public class Program {
public static void Main() {
var nabc = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
var n = nabc[0];
var a = nabc[1];
var b = nabc[2];
var c = nabc[3];
... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["-", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 1... | 8 | 452 | 20 |
using System;
using System.Linq;
namespace ABC119_C {
class Program {
static int A, B, C, N;
static int[] l;
static void Main(string[] args) {
var NABC = Console.ReadLine().Split().Select(int.Parse).ToArray();
N = NABC[0];
A = NABC[1];
B = NABC[2];
C = NABC[3];
l = new int[N];
for (i... | using System;
using System.Linq;
namespace ABC119_C {
class Program {
static int A, B, C, N;
static int[] l;
static void Main(string[] args) {
var NABC = Console.ReadLine().Split().Select(int.Parse).ToArray();
N = NABC[0];
A = NABC[1];
B = NABC[2];
C = NABC[3];
l = new int[N];
for (i... | [["-", 0, 41, 15, 16, 31, 16, 31, 16, 17, 72], ["+", 0, 41, 15, 16, 31, 16, 31, 16, 17, 60], ["+", 0, 41, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 64, 37, 0, 41, 15, 16, 31, 16, 17, 106], ["-", 64, 37, 0, 41, 15, 16, 31, 16, 17, 72], ["+", 0, 41, 15, 16, 31, 16, 12, 16, 17, 60], ["+", 0, 41, 15, 16, 31, 16, 12, 16, 12, ... | 8 | 326 | 16 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using ll = System.Int64;
public class Contest {
static void Swap1<T>(ref T a, ref T b) {
T t = a;
a = b;
b = t;
}
static void Swap2<T>(ref T a, ref T b)
where T : ICompa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using ll = System.Int64;
public class Contest {
static void Swap1<T>(ref T a, ref T b) {
T t = a;
a = b;
b = t;
}
static void Swap2<T>(ref T a, ref T b)
where T : ICompa... | [["-", 3, 4, 0, 28, 0, 218, 8, 74, 0, 24], ["-", 3, 4, 0, 28, 0, 218, 8, 74, 39, 199], ["-", 3, 4, 0, 28, 0, 218, 8, 74, 0, 25], ["-", 0, 28, 0, 218, 8, 74, 51, 23, 0, 24], ["-", 0, 218, 8, 74, 51, 23, 0, 16, 17, 33], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 0, 131], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 141, 22], ["+", 0... | 8 | 3,235 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_D {
class D119 {
static void Main(string[] args) {
int[] p =
Console.ReadLine().Split(' ').Select(xx => int.Parse(xx)).ToArray();
int A = p[0], B = p[1], C = p[2];
lo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_D {
class D119 {
static void Main(string[] args) {
int[] p =
Console.ReadLine().Split(' ').Select(xx => int.Parse(xx)).ToArray();
int A = p[0], B = p[1], C = p[2];
lo... | [["+", 0, 57, 15, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17... | 8 | 723 | 14 |
using System;
using System.Linq;
using System.Collections.Generic;
public class Test {
public static void Main() {
var input =
Console.ReadLine().Split(' ').Select(v => int.Parse(v)).ToArray();
Console.WriteLine(Math.Max(input[1] / input[0], input[2]));
}
} | using System;
using System.Linq;
using System.Collections.Generic;
public class Test {
public static void Main() {
var input =
Console.ReadLine().Split(' ').Select(v => int.Parse(v)).ToArray();
Console.WriteLine(Math.Min(input[1] / input[0], input[2]));
Console.ReadKey();
}
} | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 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, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["... | 8 | 85 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class394 {
static void Main() {
var abk = Console.ReadLine().Split().Select(int.Parse).ToArray();
int a = abk[0], b = abk[1], k = abk[2];
int count = 0;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class394 {
static void Main() {
var abk = Console.ReadLine().Split().Select(int.Parse).ToArray();
int a = abk[0], b = abk[1], k = abk[2];
int count = 0;
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 2... | 8 | 143 | 15 |
using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
i... | using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
i... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45],... | 8 | 163 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
static class MainClass {
public struct City {
public long num;
public City(long n) { num = n; }
}
public static void Main(string[] args) {
var temp = Console.ReadLine().Split(' ');
var A = int.Parse(temp.ElementAt(0));
var B... | using System;
using System.Collections.Generic;
using System.Linq;
static class MainClass {
public struct City {
public long num;
public City(long n) { num = n; }
}
public static void Main(string[] args) {
var temp = Console.ReadLine().Split(' ');
var A = int.Parse(temp.ElementAt(0));
var B... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 2... | 8 | 204 | 21 |
using System;
namespace ABC120B {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine().Split(' ');
int A = int.Parse(s[0]);
int B = int.Parse(s[1]);
int K = int.Parse(s[2]);
int count = 1;
for (int i = 1; i <= 100; i++) {
if (A % i != 0) {
continue;
... | using System;
namespace ABC120B {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine().Split(' ');
int A = int.Parse(s[0]);
int B = int.Parse(s[1]);
int K = int.Parse(s[2]);
int count = 1;
for (int i = 100; i >= 1; i--) {
if (A % i != 0) {
continue;
... | [["-", 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, 19], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ... | 8 | 144 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp60 {
class Program {
static void Main(string[] args) {
var st = Console.ReadLine().Split().Select(int.Parse).ToArray();
int A = st[0];
int B = st[1];
int K = st[2];
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp60 {
class Program {
static void Main(string[] args) {
var st = Console.ReadLine().Split().Select(int.Parse).ToArray();
int A = st[0];
int B = st[1];
int K = st[2];
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["... | 8 | 219 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AIZUproject08 {
// 128B
/*class Data
{
public int ID { get; set; }
public string Name { get; set; }
public int Evaluation { get; set; }
}
class Program
{
static void Main()
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AIZUproject08 {
// 128B
/*class Data
{
public int ID { get; set; }
public string Name { get; set; }
public int Evaluation { get; set; }
}
class Program
{
static void Main()
... | [["-", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["-", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["-",... | 8 | 239 | 22 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
using System.Linq;
using System.Text;
using static System.Console;
namespace ABC120B {
static class Program {
static void Main(string[] args) {
var line = ReadLine().SplitTryParseToList<int>();
var k = ne... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
using System.Linq;
using System.Text;
using static System.Console;
namespace ABC120B {
static class Program {
static void Main(string[] args) {
var line = ReadLine().SplitTryParseToList<int>();
var k = ne... | [["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0,... | 8 | 550 | 35 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(' ');
var A = int.Parse(inputs[0]);
var B = int.Parse(inputs[1]);
var K = int.Parse(inputs[2]);
var gcd = Gcd(A, B);
var count = 0;
... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(' ');
var A = int.Parse(inputs[0]);
var B = int.Parse(inputs[1]);
var K = int.Parse(inputs[2]);
var gcd = Gcd(A, B);
var count = 0;
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, ... | 8 | 216 | 16 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Program {
public static Scanner cin;
static void Main() {
cin = new Scanner();
int[] ab... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Program {
public static Scanner cin;
static void Main() {
cin = new Scanner();
int[] ab... | [["+", 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], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 2... | 8 | 519 | 13 |
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using System.Text;
namespace AtCoder {
public class Program {
static int[] getKeys(char delimiter = ' ') {
var Keys = Console.ReadLine().Split(delimiter);
int N = Keys.Length;
int[] Ns = new int[N];
for (int i = 0; i ... | using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using System.Text;
namespace AtCoder {
public class Program {
static int[] getKeys(char delimiter = ' ') {
var Keys = Console.ReadLine().Split(delimiter);
int N = Keys.Length;
int[] Ns = new int[N];
for (int i = 0; i ... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["... | 8 | 1,487 | 8 |
using System;
using System.Linq;
namespace b120B {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var a = input[0];
var b = input[1];
var k = input[2];
var count = 0;
for (int i = 1; i <= Math.Min(a, b); i++) {
i... | using System;
using System.Linq;
namespace b120B {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var a = input[0];
var b = input[1];
var k = input[2];
for (int i = Math.Min(a, b); i > 0; i--) {
if (a % i == 0 && b %... | [["-", 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, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0,... | 8 | 142 | 23 |
using System;
public class c {
public static void Main() {
string[] A_B_K = Console.ReadLine().Split(' ');
int A = int.Parse(A_B_K[0]);
int B = int.Parse(A_B_K[1]);
int K = int.Parse(A_B_K[2]);
int n = A;
int count = 0;
int ans = 0;
if (n > B)
n = B;
for (int i = 1; i <= n; i... | using System;
public class c {
public static void Main() {
string[] A_B_K = Console.ReadLine().Split(' ');
int A = int.Parse(A_B_K[0]);
int B = int.Parse(A_B_K[1]);
int K = int.Parse(A_B_K[2]);
int n = A;
int ans = 0;
if (n > B)
n = B;
for (int i = n; i >= 1; i--) {
if (A %... | [["-", 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], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0... | 8 | 152 | 21 |
using System;
using System.Linq;
public class Program {
// limit
static int A, B, C, N;
static int[] l;
public static void Main(string[] args) {
// スペース区切りの整数の入力
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var A = input[0];
var B = input[1];
var K = input[2];
... | using System;
using System.Linq;
public class Program {
// limit
static int A, B, C, N;
static int[] l;
public static void Main(string[] args) {
// スペース区切りの整数の入力
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var A = input[0];
var B = input[1];
var K = input[2];
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 29], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 68], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["... | 8 | 154 | 24 |
using System;
namespace ConsoleApp3 {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int A = int.Parse(s[0]);
int B = int.Parse(s[1]);
int K = int.Parse(s[2]);
int counter = 0;
for (int i = 1; i <= 100; i++) {
if (A % i == 0 && B % i == 0... | using System;
namespace ConsoleApp3 {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int A = int.Parse(s[0]);
int B = int.Parse(s[1]);
int K = int.Parse(s[2]);
int counter = 0;
for (int i = 100; i > 0; i--) {
if (A % i == 0 && B % i == 0)... | [["-", 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, 19], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ... | 8 | 141 | 14 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _20190304_04 {
class Program {
static void Main(string[] args) {
var line =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var a = line[0];
var b = lin... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _20190304_04 {
class Program {
static void Main(string[] args) {
var line =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var a = line[0];
var b = lin... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+... | 8 | 166 | 10 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int A = int.Parse(input[0]);
int B = int.Parse(input[1]);
int K = int.Parse(input[2]);
var result = new List<int>();
for (var i... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int A = int.Parse(input[0]);
int B = int.Parse(input[1]);
int K = int.Parse(input[2]);
var result = new List<int>();
for (var i... | [["+", 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, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3... | 8 | 167 | 20 |
using System;
class Program {
static void Main(string[] args) {
// 解
int ans = 0;
// 入力
string[] inp = Console.ReadLine().Split(' ');
int a = int.Parse(inp[0]);
int b = int.Parse(inp[1]);
int c = int.Parse(inp[2]);
int cnt = 0;
for (int i = 1; i <= 100; i++) {
if ((a % i ==... | using System;
class Program {
static void Main(string[] args) {
// 解
int ans = 0;
// 入力
string[] inp = Console.ReadLine().Split(' ');
int a = int.Parse(inp[0]);
int b = int.Parse(inp[1]);
int c = int.Parse(inp[2]);
int cnt = 0;
for (int i = 100; i >= 1; i--) {
if ((a % i ==... | [["-", 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, 19], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ... | 8 | 148 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using SB = System.Text.StringBuilder;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
using System.Numerics;
using static System.Math;
using pair = Pair<i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using SB = System.Text.StringBuilder;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
using System.Numerics;
using static System.Math;
using pair = Pair<i... | [["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 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 | 1,062 | 11 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Linq;
class Program {
static void Main() {
int[] inp = Console.ReadLine().Split().Select(int.Parse).ToArray();
int a = inp[0];
int b = inp[1];
int k = inp[2];
int c = 0;
for (int i = 1;; ... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Linq;
class Program {
static void Main() {
int[] inp = Console.ReadLine().Split().Select(int.Parse).ToArray();
int a = inp[0];
int b = inp[1];
int k = inp[2];
int c = 0;
for (int i = Math... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 2... | 8 | 138 | 11 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 12, 203],... | 8 | 573 | 14 |
using System;
namespace ConsoleApp3 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int zero = 0;
int one = 0;
for (int i = 0; i < s.Length; i++) {
if (s[i].Equals('0'))
zero++;
else
one++;
}
if (zero > one)
Console.Write... | using System;
namespace ConsoleApp3 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int zero = 0;
int one = 0;
for (int i = 0; i < s.Length; i++) {
if (s[i].Equals('0'))
zero++;
else
one++;
}
if (zero > one)
Console.Write... | [["-", 0, 213, 63, 214, 205, 23, 0, 16, 31, 22], ["-", 0, 213, 63, 214, 205, 23, 0, 16, 17, 33], ["+", 0, 213, 63, 214, 205, 23, 0, 16, 17, 48], ["+", 0, 213, 63, 214, 205, 23, 0, 16, 12, 203]] | 8 | 117 | 8 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
char[] input = ReadChar();
//配列→list
List<char> numList = new List<char>();
for (int jj = 0; jj < input.Length; jj++) {
numList.Add(input[jj]);
}
//答え用カウンター
int answer = 0;
//隣合う0と... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
//入力の受け取り
char[] input = ReadChar();
//配列→list
List<char> numList = new List<char>();
for (int jj = 0; jj < input.Length; jj++) {
numList.Add(input[jj]);
}
//隣合う0と1を取り除いてカウントしていく
i... | [["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["... | 8 | 216 | 7 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
char[] input = ReadChar();
//配列→list
List<char> numList = new List<char>();
for (int jj = 0; jj < input.Length; jj++) {
numList.Add(input[jj]);
}
//答え用カウンター
int answer = 0;
//隣合う0と... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
//入力の受け取り
char[] input = ReadChar();
//配列→list
List<char> numList = new List<char>();
for (int jj = 0; jj < input.Length; jj++) {
numList.Add(input[jj]);
}
//答え用カウンター
int answer = ... | [["+", 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 | 216 | 7 |
using System;
using System.Linq;
using System.Collections.Generic;
using E = System.Linq.Enumerable;
public class Program {
public static void Main() {
var s = Console.ReadLine().Trim().Select(x => (int)x - '0').ToArray();
var rest = 1;
var color = s[0];
var k = 0;
for (int i = 1; i < s.Length;... | using System;
using System.Linq;
using System.Collections.Generic;
using E = System.Linq.Enumerable;
public class Program {
public static void Main() {
var s = Console.ReadLine().Trim().Select(x => (int)x - '0').ToArray();
var rest = 1;
var color = s[0];
var k = 0;
for (int i = 1; i < s.Length;... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45]... | 8 | 144 | 13 |
using System;
using System.Collections.Generic;
using System.Linq;
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
return s[i++];
string st = Console.ReadLine();
while (st ... | using System;
using System.Collections.Generic;
using System.Linq;
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
return s[i++];
string st = Console.ReadLine();
while (st ... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["+", 8, 196, 0, 57, 15, 16, 12, 252,... | 8 | 405 | 51 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC120D {
class Program {
static void Main(string[] args) {
var NM = ReadInt();
long N = NM[0];
int M = NM[1];
long[] anss = new long[M];
int[] A = new int[M];
int[] B = new int[M];
for (int i = 0; i < M; i++) {... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC120D {
class Program {
static void Main(string[] args) {
var NM = ReadInt();
long N = NM[0];
int M = NM[1];
long[] anss = new long[M];
int[] A = new int[M];
int[] B = new int[M];
for (int i = 0; i < M; i++) {... | [["+", 64, 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], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 7... | 8 | 643 | 12 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using stat... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 214, 205, 204, 205, ... | 8 | 1,572 | 35 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
var n = inputs[0];
var m = inputs[1];
var briges = new Tuple<int, int>[m];
for (int i = 0; i < m; i++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
var n = inputs[0];
var m = inputs[1];
var briges = new Tuple<int, int>[m];
for (int i = 0; i < m; i++) {
... | [["+", 0, 11, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 25], ["+", 12, 16, 31, 16, 31, 74, 51, 23, 0, 24], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 8, 201, 0, 235, 8, 201, 0, 124, 0, 35], ["-", 0, 235, 8, 201, 0, 124, 0, 251,... | 8 | 681 | 29 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
// using static System.Globalization.CultureInfo;
class Program {
static void Main(string[] args) {
var nm = Add.ar;
var res = new long[nm[1]];
var ct = (... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
// using static System.Globalization.CultureInfo;
class Program {
static void Main(string[] args) {
var nm = Add.ar;
var res = new long[nm[1]];
var ct = (... | [["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 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], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22]... | 8 | 934 | 14 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
public struct Pair<T> {
public T x, y;
public Pair(T x, T y) {
this.x = x;
this.y = y;
}
}
public static void Solve() {
long N = NextLong();... | using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
public struct Pair<T> {
public T x, y;
public Pair(T x, T y) {
this.x = x;
this.y = y;
}
}
public static void Solve() {
long N = NextLong();... | [["+", 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, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 214, 205, 204, 205, ... | 8 | 864 | 40 |
using System;
using System.Collections.Generic;
using static AtCoderer.Exter;
using static System.Console;
using static System.Math;
using System.Linq;
namespace AtCoderer {
public class App {
public static void Main(string[] args) {
long n, m;
{
long[] r =
Console.ReadLine().Split().Select(... | using System;
using System.Collections.Generic;
using static AtCoderer.Exter;
using static System.Console;
using static System.Math;
using System.Linq;
namespace AtCoderer {
public class App {
public static void Main(string[] args) {
long n, m;
{
long[] r =
Console.ReadLine().Split().Select(... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 57, 75, 1, 0, 11, 31, 204, 205, 22], ["+", 75, 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, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 75, 1, 0, 11, 31, 204, 206, 207,... | 8 | 1,118 | 13 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_120 {
class UnionFind {
private int N;
private int[] parents; //親の番号を格納. 親の場合は-(メンバサイズ)
public UnionFind(int n) {
parents = new int[n];
for (int i = 0; i < n; i++)
pare... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_120 {
class UnionFind {
private int N;
private int[] parents; //親の番号を格納. 親の場合は-(メンバサイズ)
public UnionFind(int n) {
parents = new int[n];
for (int i = 0; i < n; i++)
pare... | [["-", 0, 241, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 241, 0, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0... | 8 | 561 | 24 |
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 bridge = new int[M, 2];
for (int i = 0; i < M; i++) {
input = ReadArrayInt();
bridg... | 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 bridge = new int[M, 2];
for (int i = 0; i < M; i++) {
input = ReadArrayInt();
bridg... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 75, 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, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, ... | 8 | 631 | 15 |
#define TEST
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Linq;
using UnionFind;
class Program {
static int N;
static int M;
static int[] A;
static int[] B;
static void Main() {
int[] inp = Console.ReadLine().Split().Select(int.Parse).ToArray... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Linq;
using UnionFind;
class Program {
static int N;
static int M;
static int[] A;
static int[] B;
static void Main() {
int[] inp = Console.ReadLine().Split().Select(int.Parse).ToArray();
N = in... | [["-", 36, 36, 36, 36, 36, 36, 36, 36, 0, 208], ["-", 36, 36, 36, 36, 36, 36, 0, 208, 0, 323], ["-", 36, 36, 36, 36, 0, 208, 0, 323, 0, 22], ["-", 36, 36, 0, 208, 0, 323, 0, 22, 0, 231], ["-", 0, 208, 0, 323, 0, 22, 0, 231, 141, 22], ["-", 0, 323, 0, 22, 0, 231, 141, 22, 0, 231], ["-", 0, 22, 0, 231, 141, 22, 0, 231, 1... | 8 | 562 | 13 |
using System;
namespace ABC119 {
class A {
static void Main(string[] args) {
string s = Console.ReadLine();
Console.WriteLine(s.CompareTo("2019/04/30"));
if (0 < s.CompareTo("2019/04/30"))
Console.WriteLine("TBD");
else
Console.WriteLine("Heisei");
}
}
}
| using System;
namespace ABC119 {
class A {
static void Main(string[] args) {
string s = Console.ReadLine();
if (0 < s.CompareTo("2019/04/30"))
Console.WriteLine("TBD");
else
Console.WriteLine("Heisei");
}
}
}
| [["-", 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], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ... | 8 | 77 | 14 |
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using System.Text;
namespace AtCoder {
public class Program {
static int[] getKeys() {
var Keys = Console.ReadLine().Split(' ');
int N = Keys.Length;
int[] Ns = new int[N];
for (int i = 0; i < N; i++) {
Ns[i] = ... | using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using System.Text;
namespace AtCoder {
public class Program {
static int[] getKeys() {
var Keys = Console.ReadLine().Split(' ');
int N = Keys.Length;
int[] Ns = new int[N];
for (int i = 0; i < N; i++) {
Ns[i] = ... | [["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 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, 196, 0, 1, 0, 213, 63, 214, 141, 22]] | 8 | 1,028 | 10 |
using System;
namespace Subscribers {
class Program {
static void Main(string[] args) {
String[] s = Console.ReadLine().Split(' ');
int n = int.Parse(s[0]);
int a = int.Parse(s[1]);
int b = int.Parse(s[2]);
Console.WriteLine(String.Format("{0} {1}", a < b ? a : b, a + b - n));
}
}
}
| using System;
namespace Subscribers {
class Program {
static void Main(string[] args) {
String[] s = Console.ReadLine().Split(' ');
int n = int.Parse(s[0]);
int a = int.Parse(s[1]);
int b = int.Parse(s[2]);
int min = a + b - n;
Console.WriteLine(
String.Format("{0} {1}", a < b ? a : ... | [["+", 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, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 72], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17... | 8 | 107 | 21 |
using System;
namespace AtCoder {
class Program {
public static void Main(string[] args) {
string line = Console.ReadLine();
int N = int.Parse(line);
string A = Console.ReadLine();
string B = Console.ReadLine();
string C = Console.ReadLine();
int ans = 0;
for (int i = 0; i < N - 1; i++... | using System;
namespace AtCoder {
class Program {
public static void Main(string[] args) {
string line = Console.ReadLine();
int N = int.Parse(line);
string A = Console.ReadLine();
string B = Console.ReadLine();
string C = Console.ReadLine();
int ans = 0;
for (int i = 0; i < N; i++) {
... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 31, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["-", 31, 16, 31, 16, 12, 204, 206, 207, 0, 73], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 98], ["-", 15, 16, 31, 16, 12, 16, 31, 20... | 8 | 228 | 14 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
/// <summary>
/// The main entry point for the application
/// </summary>
[STAThread]
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
long[] a = new long[n];
long[] b = new long[n]... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
/// <summary>
/// The main entry point for the application
/// </summary>
[STAThread]
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
long[] a = new long[n];
long[] b = new long[n]... | [["+", 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], ["-", 0, 2... | 8 | 223 | 13 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Collections;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var ir = new Resolver(new ConsoleReader());
Console.WriteLine(ir.Resolve());
}
}
public class Resolver {
... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Collections;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var ir = new Resolver(new ConsoleReader());
Console.WriteLine(ir.Resolve());
}
}
public class Resolver {
... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 218, 8, 196, 0, 45], ["-", 0, 28, 0, 218, 8, 196, 0, 57, 0, 121], ["-", 0, 28, 0, 218, 8, 196, 0, 57, 0, 24], ... | 8 | 540 | 20 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
List<test> list幸福度 = new List<test>();
for (int i = 0; i < n; i++) {
string[] input = Console.ReadLine().Split(' ');
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
List<test> list幸福度 = new List<test>();
for (int i = 0; i < n; i++) {
string[] input = Console.ReadLine().Split(' ');
... | [["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 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, 201, 0, 195, 8, 196, 0, 42, 0, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 42, 0, 199], ["-", 0, 235, 8, 201, 0, 277, 0, 42... | 8 | 309 | 26 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
Sc sc = new Sc();
int n = sc.I;
long[][] a = new long [n][];
long ans = 0;
for (int i = 0; i < n; i++) {
a[i] = sc.La;
}
Array.Sort(a, ca);
for (int i = 0; i < n; i++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
Sc sc = new Sc();
int n = sc.I;
long[][] a = new long [n][];
long ans = 0;
for (int i = 0; i < n; i++) {
a[i] = sc.La;
}
Array.Sort(a, ca);
for (int i = 0; i < n; i++) {
... | [["-", 0, 57, 15, 16, 31, 16, 12, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 204, 205, 22], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["-", 12, 16, 12, 204, 206, 2... | 8 | 394 | 16 |
using System;
class NIKKEIC {
static void Main(string[] args) { Method(args); }
static void Method(string[] args) {
int n = int.Parse(Console.ReadLine());
long[] a = new long[n];
long[] b = new long[n];
for (int i = 0; i < n; i++) {
string[] input = Console.ReadLine().Split(' ');
a[i]... | using System;
class NIKKEIC {
static void Main(string[] args) { Method(args); }
static void Method(string[] args) {
int n = int.Parse(Console.ReadLine());
long[] a = new long[n];
long[] b = new long[n];
for (int i = 0; i < n; i++) {
string[] input = Console.ReadLine().Split(' ');
a[i]... | [["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 8, 196, 0, 7, 26, 11, 0, 202, 0, 107], ["+", ... | 8 | 612 | 28 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Dish {
public int A;
public int B;
public int Max;
public Dish(int a, int b) {
A = a;
B = b;
Max = Math.Max(a, b);
}
}
public class Solution {
public static void Main() {
var n = int.Parse(Console.ReadLine());... | using System;
using System.Collections.Generic;
using System.Linq;
public class Dish {
public int A;
public int B;
public Dish(int a, int b) {
A = a;
B = b;
}
}
public class Solution {
public static void Main() {
var n = int.Parse(Console.ReadLine());
var dishs = new Dish[n];
for (int i... | [["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["-", 0, 208, 0, 235, 8, 201, 0, 124, 0, 35], ["-", 0, 235, 8, 201, 0, 263, 0, 251, 0, 259], ["-", 0, 263, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 2... | 8 | 236 | 23 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Competitive {
internal class Solution {
public int N;
public long MOD = 1000000007;
public long[] A, B, X;
public void Run() {
N = Input.ReadInt();
A = new long[N];
B = new long[N];
X = new long[N];
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Competitive {
internal class Solution {
public int N;
public long MOD = 1000000007;
public long[] A, B, X;
public void Run() {
N = Input.ReadInt();
A = new long[N];
B = new long[N];
X = new long[N];
... | [["+", 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, 1... | 8 | 578 | 13 |
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, 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 | 156 | 10 |
using System;
class program {
static void Main(string[] args) {
program p = new program();
p.Run();
}
void Run() {
string[] inp = Console.ReadLine().Split();
int ab = int.Parse(inp[0]);
int bc = int.Parse(inp[1]);
Console.WriteLine((ab * bc).ToString());
}
}
| using System;
class program {
static void Main(string[] args) {
program p = new program();
p.Run();
}
void Run() {
string[] inp = Console.ReadLine().Split();
int ab = int.Parse(inp[0]);
int bc = int.Parse(inp[1]);
int res = (int)(ab * bc / 2);
Console.WriteLine(res.ToString());
}
}
| [["-", 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], ["+", 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, 74, ... | 8 | 94 | 16 |
using System;
using System.Collections.Generic;
using System.Linq;
class Scanner //標準入力
{
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
return s[i++];
string st = Console.ReadLine();
whi... | using System;
using System.Collections.Generic;
using System.Linq;
class Scanner //標準入力
{
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
return s[i++];
string st = Console.ReadLine();
whi... | [["-", 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], ["+", 0, 2... | 8 | 354 | 9 |
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
using System.Runtime.CompilerService... | using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
using System.Runtime.CompilerService... | [["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25], ["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 74, 51, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 74, 51, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 74, 51, 204, 206, 207, 0, 28, 0, 20... | 8 | 129 | 7 |
using System;
class Program {
static void Main(string[] args) {
// 整数の入力
// int a = int.Parse(Console.ReadLine());
// スペース区切りの整数の入力
string[] input = Console.ReadLine().Split(' ');
int T = int.Parse(input[0]);
int X = int.Parse(input[1]);
// 文字列の入力
// string s = Console.ReadLine();
... | using System;
class Program {
static void Main(string[] args) {
// 整数の入力
// int a = int.Parse(Console.ReadLine());
// スペース区切りの整数の入力
string[] input = Console.ReadLine().Split(' ');
int T = int.Parse(input[0]);
int X = int.Parse(input[1]);
// 文字列の入力
// string s = Console.ReadLine();
... | [["-", 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, 16, 31, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 39, ... | 8 | 86 | 8 |
using System;
using System.Linq;
namespace Sample {
class Sample {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string[] str = Console.ReadLine().Split(' ');
int[] L = str.Select(int.Parse).ToArray();
Array.Sort(L);
Array.Reverse(L);
int[] Lsub = new int[N - 1];
... | using System;
using System.Linq;
namespace Sample {
class Sample {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string[] str = Console.ReadLine().Split(' ');
int[] L = str.Select(int.Parse).ToArray();
Array.Sort(L);
Array.Reverse(L);
// int[] Lsub=new int[N-1];
... | [["-", 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, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 3... | 8 | 149 | 29 |
using System;
using System.Linq;
namespace ConsoleApp18 {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
string line = Console.ReadLine();
string[] array = line.Split(' ');
int[] arr = new int[n];
for (int index = 0; index < n; index++) {
arr[inde... | using System;
using System.Linq;
namespace ConsoleApp18 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string line = Console.ReadLine();
string[] array = line.Split(' ');
int[] arr = new int[n];
for (int index = 0; index < n; index++) {
int num... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 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], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39... | 8 | 188 | 16 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.AccessControl;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var n = ReadLineInt();
var l = ReadLineIntSpilit()... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.AccessControl;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var n = ReadLineInt();
var l = ReadLineIntSpilit()... | [["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 1... | 8 | 761 | 32 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace CsProgramSpace {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
List<int> li = RLl();
int max = li.Max();
int lon = li.IndexOf(max);
int sum = 0;
for (int i = 0; i < n; i++) {... | using System;
using System.Collections.Generic;
using System.Linq;
namespace CsProgramSpace {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
List<int> li = RLl();
int max = li.Max();
int lon = li.IndexOf(max);
int sum = 0;
for (int i = 0; i < n; i++) {... | [["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22],... | 8 | 178 | 9 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
namespace AtCoder {
class Program {
#region
private static int ReadInt() => int.Parse(ReadLine());
private static IEnumerable<int>
ReadSplitInt() => Console.ReadLine().Split(' ').Select(i => int.Parse(i));
private s... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
namespace AtCoder {
class Program {
#region
private static int ReadInt() => int.Parse(ReadLine());
private static IEnumerable<int>
ReadSplitInt() => Console.ReadLine().Split(' ').Select(i => int.Parse(i));
private s... | [["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 141, 22], ["-", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["-", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["-", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 79], ["+", 0, 212, 0, 16, 31, 213, 3, 4, 0,... | 8 | 211 | 13 |
using System;
using System.Linq;
public class Hello {
public static void Main() {
// Your code here!
int N = int.Parse(Console.ReadLine());
int[] a = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int max = a.Max();
int sum = 0;
for (int i = 0; i < N; i++) {
if (... | using System;
using System.Linq;
public class Hello {
public static void Main() {
// Your code here!
int N = int.Parse(Console.ReadLine());
int[] a = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int max = a.Max();
int sum = 0;
int count = 0;
for (int i = 0; i < N... | [["+", 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], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45... | 8 | 147 | 28 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main() {
var n = int.Parse(Console.ReadLine());
var input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
input.Sort((x, y) => y - x);
if (input[0] != input[1] && input.First() <... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main() {
var n = int.Parse(Console.ReadLine());
var input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
input.Sort((x, y) => y - x);
if (input.First() < input.Skip(1).Sum()) {
... | [["-", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["-", 0, 57, 15, 16, 31, 16, 12, 204, 205, 22], ["-", 15, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["-", 31, 16, 12, 204, 206, 2... | 8 | 138 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static ABC.Cin;
using static ABC.Cout;
using static ABC.Tool;
namespace ABC {
class Program {
static void Main(string[] args) {
Scanf(out int n, out int m);
var x = ReadSplitInt.ToList();
x.Sort();
if (m == 1)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static ABC.Cin;
using static ABC.Cout;
using static ABC.Tool;
namespace ABC {
class Program {
static void Main(string[] args) {
Scanf(out int n, out int m);
var x = ReadSplitInt.ToList();
x.Sort();
if (n >= m)... | [["+", 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, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 28, 0, 16, 31, 213, 63, 214, 205, 22], ["-", 0, 28, 0, 16, 31, 213, 63, 214, 0, 13... | 8 | 917 | 16 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp11 {
class Class69 {
static void Main() {
var NM = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = NM[0], M = NM[1];
var X = Console.ReadLine().Split().S... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp11 {
class Class69 {
static void Main() {
var NM = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = NM[0], M = NM[1];
var X = Console.ReadLine().Split().S... | [["+", 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, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214... | 8 | 237 | 33 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC {
class ProgramC {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(" ");
var n = int.Parse(inputs[0]);
var m = int.Parse(inputs[1]);
var list = Console.ReadLine().Split(" ").Select(x => int.Parse... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC {
class ProgramC {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(" ");
var n = int.Parse(inputs[0]);
var m = int.Parse(inputs[1]);
var list = Console.ReadLine().Split(" ").Select(x => int.Parse... | [["-", 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, 1... | 8 | 226 | 14 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.IO;
namespace SolutionCS {
class Element : IComparable<Element> {
public static bool sortIndex = false;
public int leftIndex;
public int distanceToRight;
public int CompareTo(Element e) {
if (sortIndex)... | using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.IO;
namespace SolutionCS {
class Element : IComparable<Element> {
public static bool sortIndex = false;
public int leftIndex;
public int distanceToRight;
public int CompareTo(Element e) {
if (sortIndex)... | [["+", 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, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 430 | 27 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.