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 static System.Console;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
ulong person = ulong.Parse(ReadLine());
List<ulong> input = new List<ulong>();
for (ulong i = 0; i < 5; i++) ... | using System;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
ulong person = ulong.Parse(ReadLine());
List<ulong> input = new List<ulong>();
for (ulong i = 0; i < 5; i++) ... | [["-", 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, 16, 31, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["-", 12, 23, 0, 41, 15, 16, 31, 16, 31, 22], ["-", 12, 23, 0, 41, 15, 16, 31, 16, 17, 109], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 1... | 8 | 143 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
class Procon {
public Procon() {}
static void Main(string[] agrs) { new Procon().Do(); }
Scanner cin;
public void Do() {
cin = new Scanner();
long N = cin.nextLong();
long min = -1;
for (int i = 0; i < 5; i++) {
int tmp ... | using System;
using System.Collections.Generic;
using System.Linq;
class Procon {
public Procon() {}
static void Main(string[] agrs) { new Procon().Do(); }
Scanner cin;
public void Do() {
cin = new Scanner();
long N = cin.nextLong();
long min = -1;
for (int i = 0; i < 5; i++) {
long tmp... | [["-", 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, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]] | 8 | 566 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main() {
Solve();
Console.ReadKey();
}
static void Solve() {
var str = IO.GetIntList();
var X = str[0];
var Y = str[1];
var... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main() {
Solve();
Console.ReadKey();
}
static void Solve() {
var str = IO.GetIntList();
var X = str[0];
var Y = str[1];
var... | [["-", 0, 227, 39, 224, 225, 226, 0, 16, 31, 22], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]] | 8 | 592 | 4 |
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();
long[] xy... | 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();
long[] xy... | [["-", 0, 28, 0, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 31, 22]] | 8 | 732 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) { D(); }
public static void D() {
Scanner cin = new Scanner();
long x = cin.NextLong();
long y = cin.NextLong(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) { D(); }
public static void D() {
Scanner cin = new Scanner();
long x = cin.NextLong();
long y = cin.NextLong(... | [["+", 0, 28, 0, 16, 31, 16, 31, 214, 205, 22], ["+", 0, 28, 0, 16, 31, 16, 31, 214, 0, 131], ["+", 0, 28, 0, 16, 31, 16, 31, 214, 141, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 17, 33], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 12, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33]] | 8 | 774 | 6 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | [["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22]] | 8 | 1,081 | 2 |
using System;
using System.Linq;
namespace ARegularTriang {
class Program {
private string Read() { return Console.ReadLine(); }
private int[] ReadInt() { return Read().Split().Select(int.Parse).ToArray(); }
public void C() {
var a = ReadInt();
var str = "";
str = a[0] == a[1] && a[1] == a[2] && a... | using System;
using System.Linq;
namespace ARegularTriang {
class Program {
private string Read() { return Console.ReadLine(); }
private int[] ReadInt() { return Read().Split().Select(int.Parse).ToArray(); }
public void C() {
var a = ReadInt();
var str = "";
str = a[0] == a[1] && a[1] == a[2] && a... | [["-", 0, 1, 0, 11, 12, 41, 64, 5, 0, 222], ["+", 0, 1, 0, 11, 12, 41, 64, 5, 0, 222], ["-", 0, 1, 0, 11, 12, 41, 75, 5, 0, 222], ["+", 0, 1, 0, 11, 12, 41, 75, 5, 0, 222]] | 8 | 146 | 4 |
using System;
namespace A {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int c = int.Parse(str[2]);
if (a == b && b == c) {
Console.WriteLine("YES");
} else {
Console.WriteLin... | using System;
namespace A {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int c = int.Parse(str[2]);
if (a == b && b == c) {
Console.WriteLine("Yes");
} else {
Console.WriteLin... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 112 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static string ans = "No";
static int Main() {
string[] nyu = Console.ReadLine().Split(' ');
int a = int.Parse(nyu[0]);
int b = int.Parse(nyu[1]);
int c = int.Parse(nyu[2]);
// ここまで入力
if (a == b || b == c... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static string ans = "No";
static int Main() {
string[] nyu = Console.ReadLine().Split(' ');
int a = int.Parse(nyu[0]);
int b = int.Parse(nyu[1]);
int c = int.Parse(nyu[2]);
// ここまで入力
if (a == b && b == c... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98]] | 8 | 124 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return lo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return lo... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 288 | 4 |
using System;
namespace B {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
string[] str = new string[N];
for (int i = 0; i < N; i++) {
str[i] = s.Substring(i, 1);
}
int rnum = 0;
int bnum = 0;
foreach (var ... | using System;
namespace B {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
string[] str = new string[N];
for (int i = 0; i < N; i++) {
str[i] = s.Substring(i, 1);
}
int rnum = 0;
int bnum = 0;
foreach (var ... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 153 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using static MyIO;
public class C {
public static void Main() { (new Solver()).Solve(); }
}
public class Solver {
private int N;
private int Q;
private string s;
private char[] t;
private char[]... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using static MyIO;
public class C {
public static void Main() { (new Solver()).Solve(); }
}
public class Solver {
private int N;
private int Q;
private string s;
private char[] t;
private char[]... | [["-", 0, 57, 75, 1, 0, 11, 12, 16, 17, 33], ["-", 0, 57, 75, 1, 0, 11, 12, 16, 12, 203], ["-", 0, 57, 75, 1, 0, 11, 12, 16, 17, 72], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 548 | 6 |
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Math;
using Debug = System.Diagnostics.Debug;
using LayoutKind = System.Runtime.... | using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Math;
using Debug = System.Diagnostics.Debug;
using LayoutKind = System.Runtime.... | [["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 665 | 2 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.ExceptionServices;
using System.Runtime.InteropServices;
using System.Text;
namespace AtCoderDotNetCore {
class Program {
static void Main(string[] args) { Question.Exec(); }
}
public static class Question {
p... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.ExceptionServices;
using System.Runtime.InteropServices;
using System.Text;
namespace AtCoderDotNetCore {
class Program {
static void Main(string[] args) { Question.Exec(); }
}
public static class Question {
p... | [["-", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253]] | 8 | 174 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class393 {
static void Main() {
string b = Console.ReadLine();
Console.WriteLine(bond(b));
}
static string bond(string b) {
if (b == "A")
return "T"... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class393 {
static void Main() {
string b = Console.ReadLine();
Console.WriteLine(bond(b));
}
static string bond(string b) {
if (b == "A")
return "T"... | [["-", 8, 196, 0, 57, 64, 37, 0, 5, 0, 222], ["+", 8, 196, 0, 57, 64, 37, 0, 5, 0, 222]] | 8 | 114 | 2 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var a = Console.ReadLine();
if (a == "A")
Console.WriteLine("T");
else if (a == "C")
Console.WriteLine("");
else if (a == "G")
Console.WriteLine("C");
else
Console.WriteLine("A");
}
} | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var a = Console.ReadLine();
if (a == "A")
Console.WriteLine("T");
else if (a == "C")
Console.WriteLine("G");
else if (a == "G")
Console.WriteLine("C");
else
Console.WriteLine("A");
}
} | [["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 94 | 1 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ATCode1a {
class Program {
static void Main(string[] args) {
string b = "G";
if (b == "A") {
Console.WriteLine("T");
}
if (b == "T") {
Console.WriteLine("A");
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ATCode1a {
class Program {
static void Main(string[] args) {
string b = Console.ReadLine();
if (b == "A") {
Console.WriteLine("T");
}
if (b == "T") {
Console.Writ... | [["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 62], ["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 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, 200, 0, 212, 0, 213, 3, 4, 0, 2... | 8 | 132 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var sc = new Scanner();
char s = sc.NextString()[0];
Console.WriteLine(s == 'A' ? 'T' : s == 'T' ? 'A' : s == 'G' ? 'C' : 'D');
}
}
cla... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var sc = new Scanner();
char s = sc.NextString()[0];
Console.WriteLine(s == 'A' ? 'T' : s == 'T' ? 'A' : s == 'G' ? 'C' : 'G');
}
}
cla... | [["-", 0, 41, 75, 41, 75, 41, 75, 252, 0, 253], ["+", 0, 41, 75, 41, 75, 41, 75, 252, 0, 253]] | 8 | 226 | 2 |
using System;
namespace ConsoleApp4 {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
switch (str) {
case "A":
Console.WriteLine("A");
break;
case "C":
Console.WriteLine("T");
break;
case "G":
Console.WriteLine("C");
break;
c... | using System;
namespace ConsoleApp4 {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
switch (str) {
case "A":
Console.WriteLine("T");
break;
case "T":
Console.WriteLine("A");
break;
case "G":
Console.WriteLine("C");
break;
c... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 8, 254, 0, 239, 0, 264, 0, 5, 0, 222], ["+", 8, 254, 0, 239, 0, 264, 0, 5, 0, 222]] | 8 | 105 | 8 |
using System;
class Problem {
public static void Main() {
char[] a = { 'A', 'C', 'T', 'G' };
char[] b = { 'C', 'A', 'G', 'C' };
string s = Console.ReadLine();
for (int i = 0; i < 4; i++) {
if (s[0] == a[i]) {
Console.Write(b[i]);
}
}
}
} | using System;
class Problem {
public static void Main() {
char[] a = { 'A', 'T', 'C', 'G' };
char[] b = { 'T', 'A', 'G', 'C' };
string s = Console.ReadLine();
for (int i = 0; i < 4; i++) {
if (s[0] == a[i]) {
Console.Write(b[i]);
}
}
}
} | [["-", 0, 200, 0, 212, 0, 229, 0, 252, 0, 253], ["+", 0, 200, 0, 212, 0, 229, 0, 252, 0, 253]] | 8 | 110 | 6 |
using System;
class Program {
static void Main(string[] args) {
// get a char
char a = Convert.ToChar(args[0]);
char val;
if (a == 'A')
val = 'T';
else if (a == 'T')
val = 'A';
else if (a == 'C')
val = 'G';
else
val = 'C';
// output
Console.WriteLine(val);
... | using System;
class Program {
static void Main(string[] args) {
// get a char
char a = Convert.ToChar(Console.ReadLine());
char val;
if (a == 'A')
val = 'T';
else if (a == 'T')
val = 'A';
else if (a == 'C')
val = 'G';
else
val = 'C';
// output
Console.Write... | [["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ... | 8 | 94 | 9 |
using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
if (s.EndsWith("A"))
Console.WriteLine("T");
if (s.EndsWith("T"))
Console.WriteLine("A");
if (s.EndsWith("G"))
Console.WriteLine("C");
if (s.EndsWith("C"))
C... | using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
if (s.EndsWith("A"))
Console.WriteLine("T");
if (s.EndsWith("T"))
Console.WriteLine("A");
if (s.EndsWith("G"))
Console.WriteLine("C");
if (s.EndsWith("C"))
C... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 111 | 2 |
using System;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
public void Solve(ConsoleInput cin) {
var n = cin.ReadLine[... | using System;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
public void Solve(ConsoleInput cin) {
var n = cin.ReadLine[... | [["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73]] | 8 | 524 | 3 |
using System;
class Program {
static void Main() {
var b = Console.ReadLine();
var result = "";
switch (b) {
case "A":
result = "T";
break;
case "T":
result = "A";
break;
case "C":
result = "C";
break;
case "G":
result = "C";
break;
}
... | using System;
class Program {
static void Main() {
var b = Console.ReadLine();
var result = "";
switch (b) {
case "A":
result = "T";
break;
case "T":
result = "A";
break;
case "C":
result = "G";
break;
case "G":
result = "C";
break;
}
... | [["-", 0, 239, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 0, 239, 0, 1, 0, 11, 12, 5, 0, 222]] | 8 | 94 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return lo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return lo... | [["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 320 | 1 |
using System;
using System.Linq;
public class Program {
static void Main() {
char[] s = Console.ReadLine().ToCharArray();
int max = 0;
for (int i = 0; i < s.Length; i++) {
if (!isAgtc(s[i]))
s[i] = ' ';
}
for (int i = 0; i < s.Length - 1; i++) {
if (s[i] == ' ')
cont... | using System;
using System.Linq;
public class Program {
static void Main() {
char[] s = Console.ReadLine().ToCharArray();
int max = 0;
for (int i = 0; i < s.Length; i++) {
if (!isAgtc(s[i]))
s[i] = ' ';
}
for (int i = 0; i < s.Length; i++) {
if (s[i] == ' ')
continue;... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 246 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Library;
using static Library.Input;
namespace AtCoderTemplate {
class ProgramC {
static void Main() {
var line = Line;
int sum = 0;
for (int i = 0; i < line.Length; i++) {
for (int j = i ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Library;
using static Library.Input;
namespace AtCoderTemplate {
class ProgramC {
static void Main() {
var line = Line;
int sum = 0;
for (int i = 0; i < line.Length; i++) {
for (int j = i;... | [["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 1,547 | 2 |
using System.Collections.Generic;
using System.Linq;
using System;
using static System.Console;
class Program {
static void Main() => new Program().solve();
void solve() {
var s = ReadLine().ToCharArray();
var max = 0;
var cnt = 0;
foreach (var ch in s) {
if ("ACGT".Contains(ch)) {
m... | using System.Collections.Generic;
using System.Linq;
using System;
using static System.Console;
class Program {
static void Main() => new Program().solve();
void solve() {
var s = ReadLine().ToCharArray();
var max = 0;
var cnt = 0;
foreach (var ch in s) {
if ("ACGT".Contains(ch)) {
m... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22]] | 8 | 117 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
public static class MyExtensions {
public static string Slice(this string str, int start = 0, int stop = 0) {
if (start > str.Length || stop > str.Length || start < 0 || stop < 0)
return "";
if (stop == 0)
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
public static class MyExtensions {
public static string Slice(this string str, int start = 0, int stop = 0) {
if (start > str.Length || stop > str.Length || start < 0 || stop < 0)
return "";
if (stop == 0)
... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 526 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC122 {
class ABC122_B {
static void Main(string[] args) {
var inputLine = Console.ReadLine();
var count = 0;
var currentMax = 0;
foreach (var c in inputLine) {
switch ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC122 {
class ABC122_B {
static void Main(string[] args) {
var inputLine = Console.ReadLine();
var count = 0;
var currentMax = 0;
foreach (var c in inputLine) {
switch ... | [["-", 0, 99, 8, 254, 0, 239, 0, 116, 0, 117], ["-", 0, 99, 8, 254, 0, 239, 0, 116, 0, 35], ["-", 0, 210, 8, 196, 0, 99, 8, 254, 0, 46], ["+", 0, 239, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 254, 0, 239, 0, 57, 64, 196, 0, 46], ["+", 0, 99, 8, 254, 0, 239, 0, 116, 0, 117]] | 8 | 128 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC122B {
class Program {
public static string[] st;
public static int counter = 0;
static void Main(string[] args) {
string s = Console.ReadLine();
st = new string[s.Length];
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC122B {
class Program {
public static string[] st;
public static int counter = 0;
static void Main(string[] args) {
string s = Console.ReadLine();
st = new string[s.Length];
... | [["-", 64, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 12, 203]] | 8 | 249 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace AtCoder.ABC122.B {
class Program {
public static void Main() {
// Solve("ATCODER");
// Solve("HATAGAYA");
// Solve("SHINJUKU");
// Solve("ACGTACGT");
Solve(Console.Read... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace AtCoder.ABC122.B {
class Program {
public static void Main() {
// Solve("A"); //1
// Solve("X"); //0
// Solve("ATCODER"); //3
// Solve("HATAGAYA"); //5
// Solve("SHINJU... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 184 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
var subStrs = new HashSet<char>() { 'A', 'C', 'G', 'T' };
int maxLen = 0;
for (int i = 0; i < S.Length; i++) {
for (int subLen = S.Length - i; i < su... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
var subStrs = new HashSet<char>() { 'A', 'C', 'G', 'T' };
int maxLen = 0;
for (int i = 0; i < S.Length; i++) {
for (int subLen = S.Length - i; i < su... | [["-", 8, 196, 0, 57, 75, 196, 0, 93, 0, 94], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 75, 196, 0, 116, 0, 117]] | 8 | 174 | 6 |
using static System.Console;
using static System.Math;
class AtCoder {
public static void Main() {
var s = ReadLine();
int ans = 0;
int ct;
for (int i = 0; i < s.Length; i++) {
ct = 0;
while (i + 1 < s.Length && isACGT(s[i + ct])) {
ct++;
}
ans = Max(ans, ct);
}
... | using static System.Console;
using static System.Math;
class AtCoder {
public static void Main() {
var s = ReadLine();
int ans = 0;
int ct;
for (int i = 0; i < s.Length; i++) {
ct = 0;
while (i + ct < s.Length && isACGT(s[i + ct])) {
ct++;
}
ans = Max(ans, ct);
}
... | [["-", 0, 52, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 52, 15, 16, 31, 16, 31, 16, 12, 22]] | 8 | 136 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace B {
class Program {
static void Main() {
var S = Console.ReadLine().ToList();
int maxLen = 0;
for (int winSize = 1; winSize <= S.Count; winSize++) {
// winSizeは部分文字列の長さ(窓のサイズ)
for (int i = 0; i + winSize < S.Count... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace B {
class Program {
static void Main() {
var S = Console.ReadLine().ToList();
int maxLen = 0;
for (int winSize = 1; winSize <= S.Count; winSize++) {
// winSizeは部分文字列の長さ(窓のサイズ)
for (int i = 0; i + winSize <= S.Coun... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 166 | 2 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
// マップの作成
List<char> acgt = new List<char>() { 'A', 'C', 'G', 'T' };
// 入力読み込み
string s = Console.ReadLine();
// 出力
string temp = "";
string max = "";
int index = 0;
// charの確認
f... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
// マップの作成
List<char> acgt = new List<char>() { 'A', 'C', 'G', 'T' };
// 入力読み込み
string s = Console.ReadLine();
// 出力
string temp = "";
string max = "";
int index = 0;
// charの確認
f... | [["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 72], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203]] | 8 | 172 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
var targetChars = new Char[] { 'A', 'T', 'C', 'G' };
var maxLenght = 0;
var matchCn... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
var targetChars = new Char[] { 'A', 'T', 'C', 'G' };
var maxLenght = 0;
var matchCn... | [["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["-", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45]] | 8 | 186 | 6 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace Practice {
class Program {
static void Main(string[] args) { Solve(); }
private const int MOD = 1000000007;
private const int INF = 100000000;
private static char[] table = new char[] { 'A', 'C', 'G', 'T' };
stati... | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace Practice {
class Program {
static void Main(string[] args) { Solve(); }
private const int MOD = 1000000007;
private const int INF = 100000000;
private static char[] table = new char[] { 'A', 'C', 'G', 'T' };
stati... | [["+", 0, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 1,199 | 5 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC122_2 {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
string strACGT;
int ACGTcount = 0;
int maxCount = 0;
for (int i = 0; i < S.Leng... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC122_2 {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
string strACGT;
int ACGTcount = 0;
int maxCount = 0;
for (int i = 0; i < S.Leng... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 172 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
private const long INFINITY = 9223372036854775807;
public static void Main() {
string S = NextString();
string _S = new string(S.Reverse().ToArray());
int ans... | using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
private const long INFINITY = 9223372036854775807;
public static void Main() {
string S = NextString();
string _S = new string(S.Reverse().ToArray());
int ans... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 556 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC122B {
static class MainClass {
public static void Main(string[] args) {
string s = Console.ReadLine();
int n = s.Length;
var anslst = new List<int>();
anslst.Add(0);
for (int i = 0; i < n; i++) {
for (int j ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC122B {
static class MainClass {
public static void Main(string[] args) {
string s = Console.ReadLine();
int n = s.Length;
var anslst = new List<int>();
anslst.Add(0);
for (int i = 0; i < n; i++) {
for (int j ... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 218 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Beg122A {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
var atcg = new char[4] { 'A', 'T', 'C', 'G' };
var start = false;
var startIndex = 0;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Beg122A {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
var atcg = new char[4] { 'A', 'T', 'C', 'G' };
var start = false;
var startIndex = 0;
... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 15, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25]] | 8 | 220 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
Console.WriteLine(Solve());
return;
}
public static string Solve() {
string S = Read();
int ans = 0;
int cnt = 0;
for (int i = 0; i < S.Length; i++) {
for (int j = i; j < S.Lengt... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
Console.WriteLine(Solve());
return;
}
public static string Solve() {
string S = Read();
int ans = 0;
int cnt = 0;
for (int i = 0; i < S.Length; i++) {
for (int j = i; j < S.Lengt... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 351 | 2 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var ACGT = "ACGT".ToCharArray();
var S = Console.ReadLine();
var max = 0;
for (int i = 0; i < S.Length; i++) {
for (int k = i + 1; k < S.Length; k++) {
var tmp = S.Substring(i, k - i);
if (tmp.All... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var ACGT = "ACGT".ToCharArray();
var S = Console.ReadLine();
var max = 0;
for (int i = 0; i < S.Length; i++) {
for (int k = i + 1; k <= S.Length; k++) {
var tmp = S.Substring(i, k - i);
if (tmp.Al... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 139 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999;
public static void Main(string[] args) {
var p = Input().ToInt();
var n = p[0];
var q = p[1];
var s = Console... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999;
public static void Main(string[] args) {
var p = Input().ToInt();
var n = p[0];
var q = p[1];
var s = Console... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18]] | 8 | 408 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace algorithm {
class Program {
static void Main(string[] args) {
int[] q = Array.ConvertAll(Console.ReadLine().Split(), int.Parse).ToArray();
int cnt = 0;
char[] s = Console.ReadLine().ToCharArray();
int[] an... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace algorithm {
class Program {
static void Main(string[] args) {
int[] q = Array.ConvertAll(Console.ReadLine().Split(), int.Parse).ToArray();
int cnt = 0;
char[] s = Console.ReadLine().ToCharArray();
int[] an... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 258 | 4 |
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();
var nq = ... | 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();
var nq = ... | [["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 20]] | 8 | 641 | 2 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["-", 0, 7, 8, 196, 0, 1, 0, 213, 63, 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, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 579 | 5 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace AtCoder.ABC122.C {
class Program {
public static void Main() {
// Solve(8, 3, "ACACTACG", new Tuple<int, int>[] {
// new Tuple<int, int>(3, 7),
// new Tuple<int, int>(2, 3)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace AtCoder.ABC122.C {
class Program {
public static void Main() {
// Solve(8, 3, "ACACTACG", new Tuple<int, int>[] {
// new Tuple<int, int>(3, 7),
// new Tuple<int, int>(2, 3)... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 443 | 2 |
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace Get_AC {
class Program {
public static void Main(string[] args) {
using (var sc = new SetConsole()) {
var nq = Console.ReadLine().Split().Select(int.Parse).ToArray();
var str = Console.ReadLine();
var array =... | using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace Get_AC {
class Program {
public static void Main(string[] args) {
using (var sc = new SetConsole()) {
var nq = Console.ReadLine().Split().Select(int.Parse).ToArray();
var str = Console.ReadLine();
var array =... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 296 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _20190324_03 {
class Program {
static void Main(string[] args) {
var line0 =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var n = line0[0];
var q = l... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _20190324_03 {
class Program {
static void Main(string[] args) {
var line0 =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var n = line0[0];
var q = l... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98]] | 8 | 299 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main() {
var N = Int32.Parse(Console.ReadLine());
// dummy=0,A=1,G=2,C=3,T=4
var dp = new long[N + 1, 5, 5, 5];
dp[0, 0, 0, 0] = 1;
for (int n = 0; n < N; ++n) {
for (int i = 0; i < 5; ++i) {
... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main() {
var N = Int32.Parse(Console.ReadLine());
// dummy=0,A=1,G=2,C=3,T=4
var dp = new long[N + 1, 5, 5, 5];
dp[0, 0, 0, 0] = 1;
for (int n = 0; n < N; ++n) {
for (int i = 0; i < 5; ++i) {
... | [["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 72]] | 8 | 336 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var b = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
List<i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var b = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
List<i... | [["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]] | 8 | 244 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 591 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var l1 = Console.ReadLine();
var l2 = Console.ReadLine();
var num = int.Parse(l1);
var aa = new List<int>();
var bs = l2.Split(' ').Select(n => int.Parse(n)... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var l1 = Console.ReadLine();
var l2 = Console.ReadLine();
var num = int.Parse(l1);
var aa = new List<int>();
var bs = l2.Split(' ').Select(n => int.Parse(n)... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47]] | 8 | 169 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderTemplate {
class Program {
static void Main(string[] args) {
var N = ReadInt();
var b = ReadInts();
var js = new List<int>();
foreach (var i in Enumerable.Range(0, N).Reverse()) {
if (i == 0) {
PrintList... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderTemplate {
class Program {
static void Main(string[] args) {
var N = ReadInt();
var b = ReadInts();
var js = new List<int>();
foreach (var i in Enumerable.Range(0, N + 1).Reverse()) {
if (i == 0) {
Print... | [["+", 205, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 205, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 346 | 2 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
static long N;
static long X;
static long[] H;
static Node[] Nodes;
static void Main(string[] args) {
// var NX = Console.ReadLine().Split(' ')... | using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
static long N;
static long X;
static long[] H;
static Node[] Nodes;
static void Main(string[] args) {
// var NX = Console.ReadLine().Split(' ')... | [["+", 0, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 16, 31, 16, 31, 16, 31, 23, 0, 25]] | 8 | 444 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
public static class P {
public static void Ma... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
public static class P {
public static void Ma... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 15, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 7, 8, 196, 0, 46]] | 8 | 279 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
void calc() {
cin = new Scanner();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
void calc() {
cin = new Scanner();
... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 695 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Math;
using static System.Array;
using static AtCoderSolve.Tool;
namespace AtCoderSolve {
class Solve {
const int mod = 1000000007;
const int INF = int.MaxValue / 2;
const long SINF = long.M... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Math;
using static System.Array;
using static AtCoderSolve.Tool;
namespace AtCoderSolve {
class Solve {
const int mod = 1000000007;
const int INF = int.MaxValue / 2;
const long SINF = long.M... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 441 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression,
System.Linq.Ex... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression,
System.Linq.Ex... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 2,087 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace A {
public class Program
{
const int MOD = (int)1e9 + 7;
public static void Main(string[] args) {
int n = RInt();
string s = RSt();
int[] frec = new int[n];
for (int i = 0; i < s.Length; i++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace A {
public class Program
{
const int MOD = (int)1e9 + 7;
public static void Main(string[] args) {
int n = RInt();
string s = RSt();
int[] frec = new int[26];
for (int i = 0; i < s.Length; i++) {
... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203]] | 8 | 455 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
void calc() {
cin = new Scanner();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
void calc() {
cin = new Scanner();
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 547 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
static class Program {
static long Solve(int N, int[] C) {
var dp = new long[N];
var pos = Enumerable.Repeat(-1, N).ToArray();
Func<int, long> DP = i => (i < 0) ? 1 : dp[i];
for (int i = 0; i < N; ++i) {
int j... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
static class Program {
static long Solve(int N, int[] C) {
var dp = new long[N];
var pos = Enumerable.Repeat(-1, 200001).ToArray();
Func<int, long> DP = i => (i < 0) ? 1 : dp[i];
for (int i = 0; i < N; ++i) {
... | [["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 22], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203]] | 8 | 261 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) { new Program().Calc(); }
Scanner cin;
public Program() {}
void Calc() {
cin = new Scanner();
int n = cin.nextInt();
// int[] c = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) { new Program().Calc(); }
Scanner cin;
public Program() {}
void Calc() {
cin = new Scanner();
int n = cin.nextInt();
// int[] c = ... | [["-", 0, 227, 39, 224, 225, 226, 0, 16, 31, 22], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203]] | 8 | 622 | 8 |
using System;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
using System.Linq;
using System.IO;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOu... | using System;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
using System.Linq;
using System.IO;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOu... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 653 | 4 |
using System;
using System.Collections.Generic;
public class CSharp {
public static void Main() {
Kyopuro chokudai = new Kyopuro();
chokudai.AtCoder();
}
}
public class Kyopuro {
public void AtCoder() {
string[] s = Console.ReadLine().Split(' ');
int n = int.Parse(s[0]);
int a = int.Parse(s[... | using System;
using System.Collections.Generic;
public class CSharp {
public static void Main() {
Kyopuro chokudai = new Kyopuro();
chokudai.AtCoder();
}
}
public class Kyopuro {
public void AtCoder() {
string[] s = Console.ReadLine().Split(' ');
int n = int.Parse(s[0]);
int a = int.Parse(s[... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22]] | 8 | 978 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
int[] bcnt = new int[1 << 20];
for (int i = 0; i < (1 << 20); i++) {
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
int[] bcnt = new int[1 << 20];
for (int i = 0; i < (1 << 20); i++) {
... | [["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]] | 8 | 1,309 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static System.Math;
class Z {
static void Main() => new K();
}
class K {
static int F => int.Parse(... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static System.Math;
class Z {
static void Main() => new K();
}
class K {
static int F => int.Parse(... | [["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25]] | 8 | 1,031 | 4 |
using System;
using System.Linq;
namespace Sample {
class Sample {
static void Main(string[] args) {
string[] str1 = Console.ReadLine().Split(' ');
int H = int.Parse(str1[0]);
int W = int.Parse(str1[1]);
string[] str2 = Console.ReadLine().Split(' ');
int h = int.Parse(str2[0]);
int w = int.Par... | using System;
using System.Linq;
namespace Sample {
class Sample {
static void Main(string[] args) {
string[] str1 = Console.ReadLine().Split(' ');
int H = int.Parse(str1[0]);
int W = int.Parse(str1[1]);
string[] str2 = Console.ReadLine().Split(' ');
int h = int.Parse(str2[0]);
int w = int.Par... | [["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["-", 12, 23, 0, 16, 12, 23, 0, 16, 12, 22], ["+", 12, 23, 0, 16, 12, 23, 0, 16, 12, 22]] | 8 | 144 | 4 |
using System;
namespace abc121A {
class MainClass {
public static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int A = int.Parse(str[0]);
int B = int.Parse(str[1]);
string[] stri = Console.ReadLine().Split();
int C = int.Parse(str[0]);
int D = int.Parse(str[1]);
i... | using System;
namespace abc121A {
class MainClass {
public static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int A = int.Parse(str[0]);
int B = int.Parse(str[1]);
string[] stri = Console.ReadLine().Split();
int C = int.Parse(stri[0]);
int D = int.Parse(stri[1]);
... | [["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22]] | 8 | 141 | 4 |
using System;
class Program {
static void Main(string[] args) {
string[] input1 = Console.ReadLine().Split(' ');
string[] input2 = Console.ReadLine().Split(' ');
int H = int.Parse(input1[0]);
int W = int.Parse(input1[1]);
int h = int.Parse(input2[0]);
int w = int.Parse(input2[1]);
int all... | using System;
class Program {
static void Main(string[] args) {
string[] input1 = Console.ReadLine().Split(' ');
string[] input2 = Console.ReadLine().Split(' ');
int H = int.Parse(input1[0]);
int W = int.Parse(input1[1]);
int h = int.Parse(input2[0]);
int w = int.Parse(input2[1]);
int all... | [["-", 0, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 31, 22]] | 8 | 143 | 4 |
using System;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int h = int.Parse(input[0]);
int w = int.Parse(input[1]);
string[] input2 = Console.ReadLine().Split(' ');
int h2 = int.Parse(input2[0]);
int w2 = int.Parse(input2[1]);
int ans = h * w - h2 ... | using System;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int h = int.Parse(input[0]);
int w = int.Parse(input[1]);
string[] input2 = Console.ReadLine().Split(' ');
int h2 = int.Parse(input2[0]);
int w2 = int.Parse(input2[1]);
int ans = h * w - h2 ... | [["-", 0, 16, 31, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 12, 22], ["-", 0, 212, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 212, 0, 16, 31, 16, 12, 16, 12, 22]] | 8 | 128 | 4 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["+", 0, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 17, 33], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0... | 8 | 468 | 8 |
using System;
class Program {
static void Main(string[] args) {
//入力の受け取り
string[] input = Console.ReadLine().Split(' ');
string[] input2 = Console.ReadLine().Split(' ');
int row = int.Parse(input[0]);
int column = int.Parse(input[1]);
int rowBlack = int.Parse(input2[0]);
int columnBlack =... | using System;
class Program {
static void Main(string[] args) {
//入力の受け取り
string[] input = Console.ReadLine().Split(' ');
string[] input2 = Console.ReadLine().Split(' ');
int row = int.Parse(input[0]);
int column = int.Parse(input[1]);
int rowBlack = int.Parse(input2[0]);
int columnBlack =... | [["-", 0, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 12, 22]] | 8 | 139 | 4 |
using System;
using System.IO;
class Program {
static void Main(string[] args) {
var arr = Console.ReadLine().Split();
var N = int.Parse(arr[0]);
var M = int.Parse(arr[1]);
var C = int.Parse(arr[2]);
var B = Console.ReadLine().Split();
var answer = 0;
for (int i = 1; i <= N; i++) {
... | using System;
using System.IO;
class Program {
static void Main(string[] args) {
var arr = Console.ReadLine().Split();
var N = int.Parse(arr[0]);
var M = int.Parse(arr[1]);
var C = int.Parse(arr[2]);
var B = Console.ReadLine().Split();
var answer = 0;
for (int i = 1; i <= N; i++) {
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18]] | 8 | 216 | 4 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Contest.B {
static class Program {
public static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = ... | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Contest.B {
static class Program {
public static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = ... | [["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 12, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 22]] | 8 | 565 | 4 |
using System;
using System.Linq;
namespace CanYouSolveThis {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var n = input[0];
var m = input[1];
var c = input[2];
var b = Console.ReadLine().Split(' ').Select(int.Parse).ToAr... | using System;
using System.Linq;
namespace CanYouSolveThis {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var n = input[0];
var m = input[1];
var c = input[2];
var b = Console.ReadLine().Split(' ').Select(int.Parse).ToAr... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 204, 205, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72]] | 8 | 204 | 6 |
using System;
namespace AtCorderBeginnerContest121 {
class B {
static void Main(string[] args) {
string[] vals = Console.ReadLine().Split(' ');
int N = int.Parse(vals[0]), M = int.Parse(vals[1]), C = int.Parse(vals[2]);
int[] B = new int[M];
vals = Console.ReadLine().Split(' ');
for (int i = 0;... | using System;
namespace AtCorderBeginnerContest121 {
class B {
static void Main(string[] args) {
string[] vals = Console.ReadLine().Split(' ');
int N = int.Parse(vals[0]), M = int.Parse(vals[1]), C = int.Parse(vals[2]);
int[] B = new int[M];
vals = Console.ReadLine().Split(' ');
for (int i = 0;... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 106], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 98], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 18], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 106], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 98], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["+",... | 8 | 240 | 10 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var NMC = ReadIntegersWithSpaces();
int N = NMC[0];
int M = NMC[1];
int C = NMC[2];
var BList... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var NMC = ReadIntegersWithSpaces();
int N = NMC[0];
int M = NMC[1];
int C = NMC[2];
var BList... | [["+", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 210, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 210, 8, 196, 0, 1, 0, 35]] | 8 | 411 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
class P {
static void Main() {
var d = Console.ReadLine().Split().Select(long.Parse).ToArray();
var B = Console.ReadLine().Split().Select(long.Parse).ToArray();
int ans = 0;
for (int i = 0; i < d[1]; i++)
if (Console.ReadLine()
... | using System;
using System.Linq;
using System.Collections.Generic;
class P {
static void Main() {
var d = Console.ReadLine().Split().Select(long.Parse).ToArray();
var B = Console.ReadLine().Split().Select(long.Parse).ToArray();
int ans = 0;
for (int i = 0; i < d[0]; i++)
if (Console.ReadLine()
... | [["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]] | 8 | 151 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
int m = sc.NextInt();
Tuple<int, int>[] stores = new Tuple<int, int>[n];
for (int i = 0; i < n; i++) {
stores[i]... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
int m = sc.NextInt();
Tuple<long, int>[] stores = new Tuple<long, int>[n];
for (int i = 0; i < n; i++) {
stores[... | [["-", 0, 198, 39, 224, 39, 236, 237, 238, 0, 199], ["+", 0, 198, 39, 224, 39, 236, 237, 238, 0, 199], ["-", 0, 227, 39, 224, 39, 236, 237, 238, 0, 199], ["+", 0, 227, 39, 224, 39, 236, 237, 238, 0, 199], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]] | 8 | 503 | 6 |
using System.Collections;
using System.Text;
using System.Threading.Tasks;
using static System.Math;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System;
using System.Numerics;
class Program {
static void Main() {
int[] NM = ReadInts;
int N = NM[0];
int M = NM[... | using System.Collections;
using System.Text;
using System.Threading.Tasks;
using static System.Math;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System;
using System.Numerics;
class Program {
static void Main() {
int[] NM = ReadInts;
int N = NM[0];
int M = NM[... | [["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 2,226 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace test01 {
class Program {
static void Main(string[] args) {
var line = U.GetLineLongParse();
var N = line[0]; // 店の数
var M = line[1]; // 栄養ドリンクの本数
List<MiseInfo> miseInfos = new List<MiseInfo>();
for (int i = 0; i < N; i... | using System;
using System.Collections.Generic;
using System.Linq;
namespace test01 {
class Program {
static void Main(string[] args) {
var line = U.GetLineLongParse();
var N = line[0]; // 店の数
var M = line[1]; // 栄養ドリンクの本数
List<MiseInfo> miseInfos = new List<MiseInfo>();
for (int i = 0; i < N; i... | [["+", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 0, 57, 75, 57, 15, 16, 31, 214, 205, 22], ["-", 0, 57, 75, 57, 15, 16, 31, 214, 0, 131]] | 8 | 367 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class Contest {
public static void Main() {
int n, m;
MyIO.ReadMulti(out n, out m);
Tuple<int, int>[] ab;
MyIO.ReadLines(n, out ab);
Array.Sort(ab, (x, y) => y.Item1 - x.Item1);
long ans = 0;
i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class Contest {
public static void Main() {
int n, m;
MyIO.ReadMulti(out n, out m);
Tuple<int, int>[] ab;
MyIO.ReadLines(n, out ab);
Array.Sort(ab, (x, y) => x.Item1 - y.Item1);
long ans = 0;
i... | [["-", 0, 28, 0, 218, 8, 16, 31, 214, 205, 22], ["+", 0, 28, 0, 218, 8, 16, 31, 214, 205, 22], ["-", 0, 28, 0, 218, 8, 16, 12, 214, 205, 22], ["+", 0, 28, 0, 218, 8, 16, 12, 214, 205, 22]] | 8 | 1,514 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderCore {
public class Program {
private const int MOD = 1000000007;
static void Main(string[] args) {
int[] nm =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int n = nm[0];
int m = nm[1];
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderCore {
public class Program {
private const int MOD = 1000000007;
static void Main(string[] args) {
int[] nm =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int n = nm[0];
int m = nm[1];
... | [["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35]] | 8 | 313 | 4 |
using System;
using System.Linq;
namespace ABC121_C {
class Program {
static void Main(string[] args) {
var nm = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
long kan = nm[1];
var hoge =
Enumerable.Repeat(0, nm[0])
.Select(
x => Console.ReadLine().Split(' ... | using System;
using System.Linq;
namespace ABC121_C {
class Program {
static void Main(string[] args) {
var nm = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
long kan = nm[1];
var hoge =
Enumerable.Repeat(0, nm[0])
.Select(
x => Console.ReadLine().Split(' ... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 204, 206, 207, 0, 70], ["+", 0, 218, 8, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 218, 8, 204, 206, 207, 0, 73]] | 8 | 171 | 5 |
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, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 39, 236, 237, 238, 0, 236, 237, 238, 0, 199], ["+", 39, 236, 237, 238, 0, 236, 237, 238, 0, 199], ["-", 0, 28, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 28, 0, 230, 39, 236, 237, 238, 0, 199]] | 8 | 1,550 | 12 |
using System;
class _3 {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int M = int.Parse(input[1]);
var store = new Store[N];
for (int i = 0; i < N; i++) {
input = Console.ReadLine().Split(' ');
store[i] = new Store();... | using System;
class _3 {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int M = int.Parse(input[1]);
var store = new Store[N];
for (int i = 0; i < N; i++) {
input = Console.ReadLine().Split(' ');
store[i] = new Store();... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 292 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BC121C {
class Program {
struct drink {
public int price;
public int stock;
}
static void Main(string[] args) {
// 整数の入力
// int a = int.Parse(Console.ReadLine());
// ス... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BC121C {
class Program {
struct drink {
public int price;
public int stock;
}
static void Main(string[] args) {
// 整数の入力
// int a = int.Parse(Console.ReadLine());
// ス... | [["-", 0, 1, 0, 11, 12, 74, 51, 23, 0, 24], ["-", 0, 11, 12, 74, 51, 23, 0, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 12, 74, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 12, 74, 39, 199], ["+", 0, 1, 0, 11, 12, 16, 12, 74, 51, 22]] | 8 | 317 | 5 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
public class D {
public static void Main() {
string[] args = Console.ReadLine().Split(' ');
long A = Int64.Parse(args[0]);
long B = Int64.Parse(args[1]);
Console.WriteLine(fZero(A - 1) ^ fZero(B));
}
pr... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
public class D {
public static void Main() {
string[] args = Console.ReadLine().Split(' ');
long A = Int64.Parse(args[0]);
long B = Int64.Parse(args[1]);
Console.WriteLine(fZero(A - 1) ^ fZero(B));
}
pr... | [["+", 8, 196, 0, 99, 51, 16, 31, 23, 0, 24], ["+", 0, 99, 51, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 99, 51, 16, 31, 23, 0, 16, 12, 203], ["+", 8, 196, 0, 99, 51, 16, 31, 23, 0, 25]] | 8 | 146 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static ABC121.Util;
namespace ABC121 {
class Program {
static void Main(string[] args) {
#if DEBUG
while (true) {
#endif
// WhiteCells(); // 12min
// CanYouSolveThis(); // ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static ABC121.Util;
namespace ABC121 {
class Program {
static void Main(string[] args) {
#if DEBUG
while (true) {
#endif
// WhiteCells(); // 12min
// CanYouSolveThis(); // ... | [["-", 31, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["-", 31, 23, 0, 16, 31, 16, 31, 23, 0, 25], ["-", 0, 16, 31, 23, 0, 16, 31, 16, 17, 85], ["-", 0, 16, 31, 23, 0, 16, 31, 16, 12, 203], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 203], ["+", 12, 74, 51, 23, 0, 16, 31, 16, 17, 85],... | 8 | 2,079 | 8 |
using System;
using System.Collections.Generic;
class ABC121_D {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
long A = long.Parse(input[0]);
long B = long.Parse(input[1]);
if (A == B) {
Console.WriteLine(A);
return;
}
int[] A2 = BitCountXOR(A... | using System;
using System.Collections.Generic;
class ABC121_D {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
long A = long.Parse(input[0]);
long B = long.Parse(input[1]);
if (A == B) {
Console.WriteLine(A);
return;
}
int[] A2 = BitCountXOR(A... | [["+", 3, 4, 0, 28, 0, 74, 51, 23, 0, 24], ["+", 0, 28, 0, 74, 51, 23, 0, 16, 17, 109], ["+", 0, 28, 0, 74, 51, 23, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 74, 51, 23, 0, 25]] | 8 | 298 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
class M {
static void Main(string[] _) {
var I0 = Console.ReadLine().Split(' ');
long A = long.Parse(I0[0]) - 1;
long B = long.Parse(I0[1]);
long a = (A % 2 == 1) ? ((A + 1) / 2) % 2 : (A + (A / 2) % 2);
long b = (B % 2 == 1) ? ... | using System;
using System.Collections.Generic;
using System.Linq;
class M {
static void Main(string[] _) {
var I0 = Console.ReadLine().Split(' ');
long A = long.Parse(I0[0]) - 1;
long B = long.Parse(I0[1]);
long a = (A % 2 != 0) ? ((A + 1) / 2) % 2 : (A + (A / 2) % 2);
long b = (B % 2 != 0) ? ... | [["-", 0, 212, 0, 41, 15, 23, 0, 16, 17, 60], ["-", 0, 212, 0, 41, 15, 23, 0, 16, 12, 203], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 17, 79], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 12, 203]] | 8 | 205 | 8 |
using System;
using System.Linq;
public class Program {
static void Main() {
var ab = Console.ReadLine().Split().Select(x => long.Parse(x)).ToArray();
Console.WriteLine(F(ab[0] - 1) ^ F(ab[1]));
}
static long F(long b) { return new long[] { b, 1, b + 1, 0 }[b % 4]; }
} | using System;
using System.Linq;
public class Program {
static void Main() {
var ab = Console.ReadLine().Split().Select(x => long.Parse(x)).ToArray();
Console.WriteLine(F(ab[0] - 1) ^ F(ab[1]));
}
static long F(long b) { return new long[] { b, 1, b + 1, 0 }[(b + 4) % 4]; }
} | [["+", 206, 207, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 206, 207, 0, 28, 0, 16, 31, 23, 0, 25]] | 8 | 103 | 4 |
using static System.Console;
using System.Linq;
class P {
static void
Main() => Write(ReadLine()
.Split()
.Select(long.Parse)
.Select((x, i) => new[] { 1, x += i, 0, x ^ 1 }[x & 7])
.Aggregate((a, b) => a ^ b));
} | using static System.Console;
using System.Linq;
class P {
static void
Main() => Write(ReadLine()
.Split()
.Select(long.Parse)
.Select((x, i) => new[] { 1, x += i, 0, x ^ 1 }[x % 4])
.Aggregate((a, b) => a ^ b));
} | [["-", 8, 204, 206, 207, 0, 28, 0, 16, 17, 67], ["-", 8, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 8, 204, 206, 207, 0, 28, 0, 16, 17, 109], ["+", 8, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 83 | 4 |
using System;
using System.Linq;
namespace ABC121D_3 {
class Program {
static void Main() {
var input = Console.ReadLine().Split().Select(long.Parse).ToArray();
long A = input[0], B = input[1];
Console.WriteLine(F(A - 1) ^ F(B));
}
static long F(long x) => new[] { x, 1, x + 1, 0 }[x % 4];
}
} | using System;
using System.Linq;
namespace ABC121D_3 {
class Program {
static void Main() {
var input = Console.ReadLine().Split().Select(long.Parse).ToArray();
long A = input[0], B = input[1];
Console.WriteLine(F(A - 1) ^ F(B));
}
static long F(long x) => new[] { x, 1, x + 1, 0 }[(x + 4) % 4];
}
} | [["+", 206, 207, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 206, 207, 0, 28, 0, 16, 31, 23, 0, 25]] | 8 | 107 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static System.Math;
class Z {
static void Main() => new K();
}
class K {
int F => int.Parse(Str);
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static System.Math;
class Z {
static void Main() => new K();
}
class K {
int F => int.Parse(Str);
... | [["-", 8, 196, 0, 7, 8, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 57, 15, 16, 12, 203]] | 8 | 514 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace D {
public class Program
{
public static void Main(string[] args) {
long[] ab = RLongAr();
long a = ab[0];
long b = ab[1];
if (a == b) {
Console.WriteLine(a);
} else {
long res;
if ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace D {
public class Program
{
public static void Main(string[] args) {
long[] ab = RLongAr();
long a = ab[0];
long b = ab[1];
if (a == b) {
Console.WriteLine(a);
} else {
long res;
if ... | [["-", 31, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 72]] | 8 | 481 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression,
System.Linq.Ex... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression,
System.Linq.Ex... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19]] | 8 | 2,078 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.