buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
using System;
using System.Linq;
namespace AOJ {
class Program {
static void Main(string[] args) {
var nums = new long[5000];
var totals = new long[5000];
while (true) {
var n = long.Parse(Console.ReadLine());
if (n == 0)
break;
long last = 0;
for (int i = 0; i < n; i++) {... | using System;
using System.Linq;
namespace AOJ {
class Program {
static void Main(string[] args) {
var nums = new long[5000];
var totals = new long[5000];
while (true) {
var n = long.Parse(Console.ReadLine());
if (n == 0)
break;
long last = 0;
long max = long.MinValue;
... | [["+", 0, 52, 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, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 19... | 8 | 196 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static string ReadLine() { return Console.ReadLine(); }
static int ReadInt() { return int.Parse(ReadLine()); }
static int[] ReadInts() {
return ReadLine().Split().Select(int.Parse).ToArray();
}
static string[] ReadStrings(... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static string ReadLine() { return Console.ReadLine(); }
static int ReadInt() { return int.Parse(ReadLine()); }
static int[] ReadInts() {
return ReadLine().Split().Select(int.Parse).ToArray();
}
static string[] ReadStrings(... | [["-", 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, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 8, 201, 0, 195, 8, 196, 0, ... | 8 | 266 |
using System;
class main {
static void Main(string[] args) {
string s1, s2, s7, a4;
s7 = Console.ReadLine();
int c = int.Parse(s7);
for (int m = 0; m < c; m++) {
s1 = Console.ReadLine();
s2 = Console.ReadLine();
a4 = string.Empty;
ulong a1 = 0, a2 = 0;
string[] s3 = new ... | using System;
class main {
static void Main(string[] args) {
string s1, s2, a4;
int c = int.Parse(Console.ReadLine());
for (int m = 0; m < c; m++) {
s1 = Console.ReadLine();
s2 = Console.ReadLine();
a4 = string.Empty;
ulong a1 = 0, a2 = 0;
string[] s3 = new string[5];
... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 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, 22], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131],... | 8 | 428 |
using System;
class AOJ {
static void Main(string[] args) {
string[] s;
double x = 0, y = 0;
int d, a, angle = 90;
while (true) {
s = Console.ReadLine().Split(',');
d = int.Parse(s[0]);
a = int.Parse(s[1]);
if (d == 0 && a == 0)
break;
x += Math.Sin(angle * M... | using System;
class AOJ {
static void Main(string[] args) {
string[] s;
double x = 0, y = 0;
int d, a, angle = 90;
while (true) {
s = Console.ReadLine().Split(',');
d = int.Parse(s[0]);
a = int.Parse(s[1]);
if (d == 0 && a == 0)
break;
x += Math.Cos(angle * M... | [["-", 0, 11, 12, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110]] | 8 | 157 |
using System;
namespace AIDU {
class AIDU0016 {
public static void Main() {
string s;
string[] ss;
double x = 0, y = 0, r = 0, th = 90;
const double p = 180 / Math.PI;
do {
s = Console.ReadLine();
ss = s.Split(',');
r = int.Parse(ss[0]);
x += Math.Cos(th / p) * r;
y... | using System;
namespace AIDU {
class AIDU0016 {
public static void Main() {
string s;
string[] ss;
double x = 0, y = 0, r = 0, th = 90;
const double p = 180 / Math.PI;
do {
s = Console.ReadLine();
ss = s.Split(',');
r = int.Parse(ss[0]);
x += Math.Cos(th / p) * r;
y... | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4... | 8 | 177 |
using System;
public class cal {
public static void Main() {
string target_str;
int answer = 0;
while ((target_str = Console.ReadLine()) != null) {
int target = 0;
target = int.Parse(target_str);
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c... | using System;
public class cal {
public static void Main() {
string target_str;
while ((target_str = Console.ReadLine()) != null) {
int answer = 0;
int target = 0;
target = int.Parse(target_str);
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (in... | [["-", 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, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200,... | 8 | 142 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static int Main(string[] args) {
List<int> list = new List<int>();
while (true) {
string v = Console.ReadLine();
if (string.IsNullOrEmpty(v) == true) {
break;
}
list.Add(int.Parse(v));
}
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static int Main(string[] args) {
List<int> list = new List<int>();
while (true) {
string v = Console.ReadLine();
if (string.IsNullOrEmpty(v) == true) {
break;
}
list.Add(int.Parse(v));
}
... | [["+", 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], ["+", 31, 213, 3, 4, 0, 28, 0, 204, 205, 2... | 8 | 233 |
using System;
using System.Collections.Generic;
using System.Linq;
static class CirclesIntersection {
static void Main() {
var n = int.Parse(Console.ReadLine());
var q = from d in Enumerable.Repeat<Func<string>>(Console.ReadLine, n)
.Select(x => Array.ConvertAll(x().Split(' '), double.Parse))... | using System;
using System.Collections.Generic;
using System.Linq;
static class CirclesIntersection {
static void Main() {
var n = int.Parse(Console.ReadLine());
var q = from f in Enumerable.Repeat<Func<string>>(Console.ReadLine, n)
let d = Array.ConvertAll(f().Split(' '), double.Parse)
... | [["-", 0, 200, 0, 212, 0, 242, 0, 257, 141, 22], ["+", 0, 200, 0, 212, 0, 242, 0, 257, 141, 22], ["-", 0, 242, 0, 257, 0, 213, 63, 214, 0, 131], ["-", 0, 242, 0, 257, 0, 213, 63, 214, 141, 22], ["-", 0, 242, 0, 257, 0, 213, 3, 4, 0, 24], ["-", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 218,... | 8 | 181 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Volume0_0023 {
class Program {
static void Main(string[] args) {
int dataNum = int.Parse(Console.ReadLine());
var inputs = new Queue<string>();
for (int i = 0; i < dataNum; i++) {
inputs.Enqueue(Console... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Volume0_0023 {
class Program {
static void Main(string[] args) {
int dataNum = int.Parse(Console.ReadLine());
var inputs = new Queue<string>();
for (int i = 0; i < dataNum; i++) {
inputs.Enqueue(Console... | [["-", 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, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 16, 31, 16, 12, ... | 8 | 759 |
using System;
class latte {
static void Main() {
string[] s = Console.ReadLine().Split();
int[] V = new int[5];
for (int i = 0; i < 5; i++)
V[i] = int.Parse(s[i]);
Array.Sort(V);
string ans = "";
for (int i = 0; i < 5; i++) {
if (i != 0)
ans += " ";
ans += V[i];
... | using System;
class latte {
static void Main() {
string[] s = Console.ReadLine().Split();
int[] V = new int[5];
for (int i = 0; i < 5; i++)
V[i] = int.Parse(s[i]);
Array.Sort(V);
Array.Reverse(V);
string ans = "";
for (int i = 0; i < 5; i++) {
if (i != 0)
ans += " ";
... | [["+", 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 | 124 |
using System;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split();
int[] inputarray = new int[5];
for (int i = 0; i <= 4; i++) {
inputarray[i] = int.Parse(input[i]);
}
Array.Sort<int>(inputarray);
Array.Reverse(inputarray);
for (int i = 0; i < 5; i++) {
... | using System;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split();
int[] inputarray = new int[5];
for (int i = 0; i <= 4; i++) {
inputarray[i] = int.Parse(input[i]);
}
Array.Sort<int>(inputarray);
Array.Reverse(inputarray);
for (int i = 0; i < 4; i++) {
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 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 | 128 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Vol0_24 {
class Program {
static void Main(string[] args) {
string sInput = "";
// ??\??????????????????
do {
sInput = Console.ReadLine();
if (sInput != null && sInput != "") {
double dSpee... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Vol0_24 {
class Program {
static void Main(string[] args) {
string sInput = "";
// ??\??????????????????
do {
sInput = Console.ReadLine();
if (sInput != null && sInput != "") {
double dSpee... | [["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 25], ["-", 0, 1, 0, 11, 12, 74, 51, 23, 0, 24], ["-",... | 8 | 195 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication34 {
class Program {
static void Main() {
while (true) {
string g = Console.ReadLine();
if (g == null)
break;
decimal a = decimal.Parse(g);
decimal b = (a / 9.8M) * (a ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication34 {
class Program {
static void Main() {
while (true) {
string g = Console.ReadLine();
if (g == null)
break;
decimal a = decimal.Parse(g);
decimal b = (a / 9.8M) * (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], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 0, 19... | 8 | 113 |
using System;
class Program {
static void Main() {
string s;
while ((s = Console.ReadLine()) != null) {
int n = int.Parse(s);
Console.WriteLine((int)(n * n * 2 / 98 + 2));
}
}
} | using System;
class Program {
static void Main() {
string s;
while ((s = Console.ReadLine()) != null) {
double n = double.Parse(s);
Console.WriteLine(-1 * (int)(-n * n / 98 - 2));
}
}
} | [["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 52, 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], ["+", 3, 4, 0, 28, 0, 16, 31, 241, 0, 33], ["+", 3, 4, 0, 28, 0, 16, 31, 241, 0, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, ... | 8 | 63 |
using System;
using System.Collections.Generic;
using System.Linq;
static class Factrial {
static void Main() {
var f = Enumerable.Range(1, int.Parse(Console.ReadLine()))
.Aggregate((x, y) => x * y);
Console.WriteLine(f);
}
} | using System;
using System.Collections.Generic;
using System.Linq;
static class Factrial {
static void Main() {
var f = Enumerable.Range(1, int.Parse(Console.ReadLine()))
.Select(x => (long)x)
.Aggregate((x, y) => x * y);
Console.WriteLine(f);
}
} | [["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 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]... | 8 | 68 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ.Volume0 {
class Program0025 {
static void Main(string[] args) {
string line;
var inputs = new Queue<string[]>();
while ((line = Console.ReadLine()) != null) {
inputs.Enqueue(new[] { line... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ.Volume0 {
class Program0025 {
static void Main(string[] args) {
string line;
var inputs = new Queue<string[]>();
while ((line = Console.ReadLine()) != null) {
inputs.Enqueue(new[] { line... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 0, 28, 0, 218, 5... | 8 | 225 |
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
string input;
while ((input = Console.ReadLine()) != null) {
string[] s = input.Split(' ');
int[] a = new int[4];
int... | using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
string input;
while ((input = Console.ReadLine()) != null) {
string[] s = input.Split(' ');
int[] a = new int[4];
int... | [["-", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 57, 15, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 116, 0, 117],... | 8 | 317 |
using System;
using System.Collections.Generic;
using System.Linq;
class AIZU0026 {
public static int[,] Paper = new int[10, 10];
public static bool subsist(int x, int y) {
return x >= 0 && x < 10 && y >= 0 && y < 10;
}
public static void Stain(int x, int y) {
if (subsist(x, y))
Paper[x, y]++;
... | using System;
using System.Collections.Generic;
using System.Linq;
class AIZU0026 {
public static int[,] Paper = new int[10, 10];
public static bool subsist(int x, int y) {
return x >= 0 && x < 10 && y >= 0 && y < 10;
}
public static void Stain(int x, int y) {
if (subsist(x, y))
Paper[x, y]++;
... | [["+", 0, 195, 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, 21], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 8, 1, 0, 1... | 8 | 476 |
using System;
using System.Collections.Generic;
class _0028 {
public static void Main() {
int n, maxCount = 0;
Dictionary<int, int> nums = new Dictionary<int, int>();
List<int> ans = new List<int>();
n = int.Parse(Console.ReadLine());
while (n != 0) {
if (nums.ContainsKey(n))
nums[n]... | using System;
using System.Collections.Generic;
class _0028 {
public static void Main() {
int n, maxCount = 0;
string str;
Dictionary<int, int> nums = new Dictionary<int, int>();
List<int> ans = new List<int>();
while ((str = Console.ReadLine()) != null) {
n = int.Parse(str);
if (nums.... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 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, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 0, 13... | 8 | 207 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication33 {
class Program {
static void Main() {
string[] a = Console.ReadLine().Split();
int b = 0, f = 0, m = 0;
string r = null, p = null;
for (int c = 0; c < a.Length; c++) {
if (a[c].... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication33 {
class Program {
static void Main() {
string[] a = Console.ReadLine().Split();
int b = 0, f = 0, m = 0;
string r = null, p = null;
for (int c = 0; c < a.Length; c++) {
if (a[c].... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, ... | 8 | 188 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var d = new Dictionary<string, int>();
var s = Console.ReadLine().Split(' ');
foreach (var w in s) {
if (!d.ContainsKey(w))
d.Add(w, 0);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var d = new Dictionary<string, int>();
var s = Console.ReadLine().Split(' ');
foreach (var w in s) {
if (!d.ContainsKey(w))
d.Add(w, 0);
... | [["+", 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], ["-", 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... | 8 | 148 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var str = "";
while (!(str = Console.ReadLine()).StartsWith("0 0")) {
var ns = str.Split(' ');
int n = int.Parse(ns[0]), s = int.Parse(ns[1]);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var str = "";
while (!(str = Console.ReadLine()).StartsWith("0 0")) {
var ns = str.Split(' ');
int n = int.Parse(ns[0]), s = int.Parse(ns[1]);
... | [["+", 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, 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 | 193 |
using System;
class AOJ {
public static void Main() {
int count = 0;
while (true) {
string[] ss = Console.ReadLine().Split(' ');
int n = int.Parse(ss[0]);
int s = int.Parse(ss[1]);
if (n == 0 && s == 0)
break;
int i, j, k, l, m, a, o, p, q;
if (n == 1) {
... | using System;
class AOJ {
public static void Main() {
while (true) {
string[] ss = Console.ReadLine().Split(' ');
int n = int.Parse(ss[0]);
int s = int.Parse(ss[1]);
if (n == 0 && s == 0)
break;
int count = 0;
int i, j, k, l, m, a, o, p, q;
if (n == 1) {
... | [["-", 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, 52, 8, 196, 0, 57, 64, 93, 0, 35], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39,... | 8 | 1,088 |
using System;
class weight {
public static void Main() {
int a;
int[] binary = new int[100];
string s;
while ((s = Console.ReadLine()) != null) {
a = int.Parse(s);
for (int i = 0;; i++) {
if (a == 0)
break;
binary[i] = a % 2;
a /= 2;
if (binary[i]... | using System;
class weight {
public static void Main() {
int a;
int[] binary = new int[100];
string s;
while ((s = Console.ReadLine()) != null) {
a = int.Parse(s);
for (int i = 0;; i++) {
if (a == 0)
break;
binary[i] = a % 2;
a /= 2;
if (binary[i]... | [["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 8, 196, 0, 57, 64, 57, 15, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0,... | 8 | 150 |
using System;
class Program {
static void Main() {
string s;
while ((s = Console.ReadLine()) != null) {
int w = int.Parse(s);
for (int n = 1;; n *= 2) {
if (w % (n * 2) != 0) {
Console.Write(n);
w -= n;
if (w > 0)
Console.Write(" ");
els... | using System;
class Program {
static void Main() {
string s;
while ((s = Console.ReadLine()) != null) {
int w = int.Parse(s);
for (int n = 1;; n *= 2) {
if (w % (n * 2) != 0) {
Console.Write(n);
w -= n;
if (w == 0)
break;
Console.Write("... | [["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 64, 196, 0, 57, 64, 93, 0, 94], ["+", 0, 57, 64, 196, 0, 57, 64, 93, 0, 35], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 95], ["-", 0, 57, 64, 196, 0, 57, 75, 93, 0, 94], ["-", 0, 57, 64, 196, 0, 57, 75, 93, 0, 35], ["... | 8 | 100 |
using System;
using System.Collections.Generic;
class AOJ {
public static void Main() {
string str;
int[] a = new int[10] { 1, 2, 4, 8, 16, 32, 64, 128, 256, 512 };
while ((str = Console.ReadLine()) != null) {
int n = int.Parse(str);
List<int> b = new List<int>();
while (n != 0) {
... | using System;
using System.Collections.Generic;
class AOJ {
public static void Main() {
string str;
int[] a = new int[10] { 1, 2, 4, 8, 16, 32, 64, 128, 256, 512 };
while ((str = Console.ReadLine()) != null) {
int n = int.Parse(str);
List<int> b = new List<int>();
while (n != 0) {
... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], [... | 8 | 221 |
using System;
using System.Linq;
namespace AOJ {
class Program {
public static void Main(string[] args) {
var f = 0;
var s = Console.ReadLine();
var n = int.Parse(Console.ReadLine());
foreach (var i in Enumerable.Range(1, n)) {
if (Console.ReadLine().Contains(s)) {
f++;
}
}
... | using System;
using System.Linq;
namespace AOJ {
class Program {
public static void Main(string[] args) {
var f = 0;
var s = Console.ReadLine();
var n = int.Parse(Console.ReadLine());
foreach (var i in Enumerable.Range(1, n)) {
var str = Console.ReadLine();
if ((str + str).Contains(s)) {
... | [["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 210, 8, 196, 0, 197, 0, 3... | 8 | 97 |
using System.Collections.Generic;
using System.Linq;
using System;
public class P {
public int x { get; set; }
public int y { get; set; }
}
public class Q {
public int x { get; set; }
public int y { get; set; }
public int L { get; set; }
}
public class Hello {
public static void Main() {
string[] lin... | using System.Collections.Generic;
using System.Linq;
using System;
public class P {
public int x { get; set; }
public int y { get; set; }
}
public class Q {
public int x { get; set; }
public int y { get; set; }
public int L { get; set; }
}
public class Hello {
public static void Main() {
string[] lin... | [["+", 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 | 733 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication37 {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int[] b = new int[a];
for (int c = 0; c < a * (a - 1) / 2; c++) {
int[] score = Console.Read... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication37 {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int[] b = new int[a];
for (int c = 0; c < a * (a - 1) / 2; c++) {
int[] score = Console.Rea... | [["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["... | 8 | 337 |
using System;
using System.Linq;
namespace Pasta {
struct NumOfCase {
const int MOD = 10000;
public NumOfCase(int _value) : this() { Value = _value % MOD; }
public int Value { get; private set; }
public static implicit operator NumOfCase(int i) { return new NumOfCase(i); }
}
[Flags]
enum Sauce { Tomato = 1, C... | using System;
using System.Linq;
namespace Pasta {
struct NumOfCase {
const int MOD = 10000;
public NumOfCase(int _value) : this() { Value = _value % MOD; }
public int Value { get; private set; }
public static implicit operator NumOfCase(int i) { return new NumOfCase(i); }
}
[Flags]
enum Sauce { Tomato = 1, C... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 3... | 8 | 588 |
using System;
namespace _0576 {
class Program {
static void Main(string[] args) {
int win = int.Parse(Console.ReadLine());
int k = int.Parse(Console.ReadLine());
int m = int.Parse(Console.ReadLine());
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int c, d;
... | using System;
namespace _0576 {
class Program {
static void Main(string[] args) {
int win = int.Parse(Console.ReadLine());
int k = int.Parse(Console.ReadLine());
int m = int.Parse(Console.ReadLine());
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int c, d;
... | [["-", 0, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["-", 0, 16, 12, 23, 0, 16, 31, 16, 17, 85], ["-", 0, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 17, 72], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 22]] | 8 | 196 |
using System;
using System.Linq;
namespace _0582 {
class Program {
static void Main(string[] args) {
int a = 0;
int b = 0;
int c = 0;
int d = 0;
while (true) {
string s = Console.ReadLine();
if (string.IsNullOrEmpty(s))
break;
int[] x = s.Split().Select(int.Parse).ToArra... | using System;
using System.Linq;
namespace _0582 {
class Program {
static void Main(string[] args) {
int a = 0;
int b = 0;
int c = 0;
int d = 0;
while (true) {
string s = Console.ReadLine();
int[] x = s.Split().Select(int.Parse).ToArray();
Array.Sort(x);
if (x[0] + x[1] > ... | [["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 213, 63, 214, 205, 199], ["-", 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], ["-", 0, 57, 15, 213, 3, 4, 0, 28, 0, 2... | 8 | 208 |
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
string inpt = Reader.ReadLine();
int chokkaku = 0;
int eikaku = 0;
int donkaku = 0;
while (inpt != null) {
int[] numList = inpt.Split(' ')
... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
string inpt = Reader.ReadLine();
int chokkaku = 0;
int eikaku = 0;
int donkaku = 0;
while (inpt != null) {
int[] numList = inpt.Split(' ')
... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 23, 0, ... | 8 | 350 |
using System.Collections.Generic;
using System;
using System.Linq;
public class hello {
public static void Main() {
while (true) {
var players = new Queue<int>();
string[] line = Console.ReadLine().Trim().Split(' ');
var m = int.Parse(line[0]);
var n = int.Parse(line[1]);
if (m == 0... | using System.Collections.Generic;
using System;
using System.Linq;
public class hello {
public static void Main() {
while (true) {
var players = new Queue<int>();
string[] line = Console.ReadLine().Trim().Split(' ');
var m = int.Parse(line[0]);
var n = int.Parse(line[1]);
if (m == 0... | [["-", 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, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 3, 4,... | 8 | 339 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Baumkuchen {
class Baumkuchen {
static void Main(string[] args) {
System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();
/*
System.IO.StreamReader sr = new System.IO.StreamReader("input.txt");
int N = int.Par... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Baumkuchen {
class Baumkuchen {
static void Main(string[] args) {
/*
System.IO.StreamReader sr = new System.IO.StreamReader("input.txt");
int N = int.Parse(sr.ReadLine());
long[] v_list = new long[N + 1];
v_list[0] = 0;
... | [["-", 0, 197, 0, 198, 39, 232, 234, 232, 234, 22], ["-", 0, 197, 0, 198, 39, 232, 234, 232, 0, 131], ["-", 0, 197, 0, 198, 39, 232, 234, 232, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 232, 0, 131], ["-", 8, 196, 0, 197, 0, 198, 39, 232, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, ... | 8 | 520 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication8 {
class Program {
static void Main(string[] args) {
int[] a = new int[5];
for (int b = 0; b < 5; b++)
a[b] = int.Parse(Console.ReadLine());
int c, d;
c = a[0] * a[4];
d = a[1]... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication8 {
class Program {
static void Main(string[] args) {
int[] a = new int[5];
for (int b = 0; b < 5; b++)
a[b] = int.Parse(Console.ReadLine());
int c, d;
c = a[0] * a[4];
if (a[4]... | [["+", 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, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 195, 8, 196, 0, 57, 15, 16... | 8 | 142 |
using System;
namespace _0608 {
class Program {
static void Main(string[] args) {
int A = int.Parse(Console.ReadLine());
int B = int.Parse(Console.ReadLine());
int C = int.Parse(Console.ReadLine());
int D = int.Parse(Console.ReadLine());
int P = int.Parse(Console.ReadLine());
int X = A * P;
... | using System;
namespace _0608 {
class Program {
static void Main(string[] args) {
int A = int.Parse(Console.ReadLine());
int B = int.Parse(Console.ReadLine());
int C = int.Parse(Console.ReadLine());
int D = int.Parse(Console.ReadLine());
int P = int.Parse(Console.ReadLine());
int X = A * P;
... | [["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["-", 75, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["-", 75, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+... | 8 | 160 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace aizu {
class OnlineJudge {
static void Main() {
int[] input;
while (((input = Console.ReadLine()
.Split()
.Select(q => int.Parse(q))
.ToArray())[0] |
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace aizu {
class OnlineJudge {
static void Main() {
int[] input;
while (((input = Console.ReadLine()
.Split()
.Select(q => int.Parse(q))
.ToArray())[0] |
... | [["+", 0, 210, 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, 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 | 250 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0227 {
class Program {
static void Main(string[] args) {
while (true) {
int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (n[0] == n[1] && n[0] == 0) {
break;
}
int[... | using System;
using System.Collections.Generic;
using System.Linq;
namespace _0227 {
class Program {
static void Main(string[] args) {
while (true) {
int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (n[0] == n[1] && n[0] == 0) {
break;
}
int[] a = Console.ReadL... | [["-", 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, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 52, 8, 196, 0,... | 8 | 178 |
using System;
public class Hello {
public static void Main() {
var a = new int[] { 63, 6, 91, 79, 102, 109, 125, 7, 127, 111 };
while (true) {
var n = int.Parse(Console.ReadLine().Trim());
if (n == -1)
break;
var pre = -1;
var pre2 = 0;
for (int i = 0; i < n; i++) {
... | using System;
public class Hello {
public static void Main() {
var a = new int[] { 63, 6, 91, 79, 102, 109, 125, 39, 127, 111, 0 };
while (true) {
var n = int.Parse(Console.ReadLine().Trim());
if (n == -1)
break;
var pre = 10;
for (int i = 0; i < n; i++) {
var d = int.... | [["-", 0, 200, 0, 212, 0, 227, 0, 229, 0, 203], ["+", 0, 200, 0, 212, 0, 227, 0, 229, 0, 203], ["+", 0, 200, 0, 212, 0, 227, 0, 229, 0, 21], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["-", 8, 196, 0, 52, 8, 196, 0, 197, 0, ... | 8 | 200 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication52 {
class Program {
static void Main() {
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] b = new int[a[0]];
for (int c = 0; c < a[0]; c++) {
b[c] = int.Parse(C... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication52 {
class Program {
static void Main() {
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] b = new int[a[0]];
for (int c = 0; c < a[0]; c++) {
b[c] = int.Parse(C... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ... | 8 | 235 |
using System;
namespace AOJ.Volume2 {
public class BigHit {
public static int Main() {
while (true) {
var input = Console.ReadLine().Split(' ');
int b = int.Parse(input[0]); // ????????°????????????
int r = int.Parse(input[1]); // ??????????????????
int g = int.Parse(input[2... | using System;
namespace AOJ.Volume2 {
public class BigHit {
public static int Main() {
while (true) {
var input = Console.ReadLine().Split(' ');
int b = int.Parse(input[0]); // ????????°????????????
int r = int.Parse(input[1]); // ??????????????????
int g = int.Parse(input[2... | [["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 72], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17... | 8 | 229 |
using System;
using System.Collections.Generic;
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=1004
public class Test {
public static void Main() {
while (true) {
string str1 = Console.ReadLine();
if (str1 == null)
break;
int n = int.Parse(str1);
// Console.WriteLi... | using System;
using System.Collections.Generic;
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=1004
public class Test {
public static void Main() {
while (true) {
string str1 = Console.ReadLine();
if (str1 == null)
break;
int n = int.Parse(str1);
// Console.WriteLi... | [["+", 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, 195, 8, 196, 0, 57, 64, 37, 0, 38], ["-", 0, 195, 8, 196, 0, 57, 64, 37, 0,... | 8 | 285 |
using System.Linq;
using System.Collections.Generic;
using System;
public class hello {
public static void Main() {
var p = new List<int>();
GeneratePrime(p, 10000);
string line;
for (; (line = Console.ReadLine()) != null;) {
var a = int.Parse(line.Trim());
var count = 0;
foreach (v... | using System.Linq;
using System.Collections.Generic;
using System;
public class hello {
public static void Main() {
var p = new List<int>();
GeneratePrime(p, 10000);
string line;
for (; (line = Console.ReadLine()) != null;) {
var a = int.Parse(line.Trim());
var count = 0;
foreach (v... | [["+", 0, 210, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 210, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 31, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 22], ["+", 0, 210, 8, 196, 0, 57, 75, 57, 0, 25], ["+", 0, 57, 75, 57, 64, 1, 0, 223, 0, 22], [... | 8 | 227 |
using System.Collections.Generic;
using System.Linq;
using System;
public class hello {
public static void Main() {
while (true) {
var n = int.Parse(Console.ReadLine().Trim());
if (n == 0)
break;
string[] line = Console.ReadLine().Trim().Split(' ');
var a = Array.ConvertAll(line, ... | using System.Collections.Generic;
using System.Linq;
using System;
public class hello {
public static void Main() {
while (true) {
var n = int.Parse(Console.ReadLine().Trim());
if (n == 0)
break;
string[] line = Console.ReadLine().Trim().Split(' ');
var a = Array.ConvertAll(line, ... | [["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 212, 0, 213, 63, 214, 205, 214, 205, 22], ["+", 0, 212, 0, 213, 63, 214, 205, 214, 0, 131], ["+", 0, 212, 0, 213, 63, 214, 205, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, ... | 8 | 213 |
using System;
using System.Collections.Generic;
namespace AOJ1021 {
class Program {
static void Main() {
var emacs = new Emacs(ReadText());
foreach (var op in ReadOperation()) {
emacs.Operate(op);
}
foreach (var line in emacs.Text) {
Console.WriteLine(line);
}
}
public static I... | using System;
using System.Collections.Generic;
namespace AOJ1021 {
class Program {
static void Main() {
var emacs = new Emacs(ReadText());
foreach (var op in ReadOperation()) {
emacs.Operate(op);
}
foreach (var line in emacs.Text) {
Console.WriteLine(line);
}
}
public static I... | [["+", 0, 239, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 0, 239, 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, 15, 16, 12, 214, 205, 204, 205, 22], ["+", 15, 16, 12, 214, 205, 204, 206, 207, 0, 70], ["+", 12, 214, 205, 204, 206, 207, ... | 8 | 840 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Test1 {
class ClassMain {
public static void Main(String[] args) {
string line;
while ((line = Console.ReadLine()) != null) {
int[] ints = line.Split(' ').Select(int.Parse).ToArray();
int n1 = ints[0];
int n2 = i... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Test1 {
class ClassMain {
public static void Main(String[] args) {
string line;
while ((line = Console.ReadLine()) != null) {
int[] ints = line.Split(' ').Select(int.Parse).ToArray();
int n1 = ints[0];
int n2 = i... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+",... | 8 | 265 |
using System;
using System.Collections;
using System.Collections.Generic;
class TEST {
static void Main() {
String s = "";
while (!String.IsNullOrEmpty(s = Console.ReadLine())) {
Sol mySol = new Sol(int.Parse(s));
mySol.Solve();
}
}
}
class Sol {
public void Solve() {
int cnt = 0;
... | using System;
using System.Collections;
using System.Collections.Generic;
class TEST {
static void Main() {
String s = "";
while (!String.IsNullOrEmpty(s = Console.ReadLine())) {
if (int.Parse(s) == 0)
break;
Sol mySol = new Sol(int.Parse(s));
mySol.Solve();
}
}
}
class Sol {... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 205, 199], ["+", 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], ["+", 15, 16, 31, 213, 3, 4, 0, 28, 0, ... | 8 | 339 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static void Main(String[] args) {
string line;
while ((line = Console.ReadLine()) != null) {
// int[] ints = line.Split(' ').Select(int.Parse).ToArray();
int n = int.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static void Main(String[] args) {
string line;
while ((line = Console.ReadLine()) != null) {
// int[] ints = line.Split(' ').Select(int.Parse).ToArray();
int n = int.... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 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, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+",... | 8 | 113 |
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var n = 0;
while ((n = int.Parse(Console.ReadLine())) != 0) {
var s = Console.ReadLine();
Console.E... | using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var n = 0;
while ((n = int.Parse(Console.ReadLine())) != 0) {
var s = Console.ReadLine();
var h = s... | [["-", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["-", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["-", 0, 1, 0, 213, 63, 214, 205, 214, 141, 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 | 229 |
using System;
namespace aizu {
class OnlineJudge {
static void Main() {
int count = int.Parse(Console.ReadLine());
for (int i = 0; i < count; ++i) {
Console.WriteLine(Translate(
uint.Parse(Console.ReadLine(),
System.Globalization.NumberStyles.AllowHexSpecifier)));
}
... | using System;
namespace aizu {
class OnlineJudge {
static void Main() {
int count = int.Parse(Console.ReadLine());
for (int i = 0; i < count; ++i) {
Console.WriteLine(Translate(
uint.Parse(Console.ReadLine(),
System.Globalization.NumberStyles.AllowHexSpecifier)));
}
... | [["+", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["+", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 197, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 241, 0, 68], ["+", 0, 52, 8, 196, 0, 1, 0, 241, 0, 22... | 8 | 190 |
using System;
using System.Collections.Generic;
namespace AOJ.Volume2 {
public class TicketSales {
public static int Main() {
var price = new Dictionary<string, int>() {
{ "1", 6000 }, { "2", 4000 }, { "3", 3000 }, { "4", 2000 }
};
int sales = 0;
for (int i = 0; i < 4; i++) {
... | using System;
using System.Collections.Generic;
namespace AOJ.Volume2 {
public class TicketSales {
public static int Main() {
var price = new Dictionary<string, int>() {
{ "1", 6000 }, { "2", 4000 }, { "3", 3000 }, { "4", 2000 }
};
for (int i = 0; i < 4; i++) {
var input = Cons... | [["-", 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, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107]... | 8 | 142 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace PCK2015 {
class Quetion04 {
static void Main() {
List<int> buff1 =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
List<int> buff2 =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();... | using System;
using System.Collections.Generic;
using System.Linq;
namespace PCK2015 {
class Quetion04 {
static void Main() {
List<int> buff1 =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
List<int> buff2 =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();... | [["-", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39... | 8 | 314 |
using System;
using System.Linq;
namespace _0316 {
class Program {
static void Main(string[] args) {
int[] h = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] k = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
in... | using System;
using System.Linq;
public class Test {
public static void Main() {
int[] h = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] k = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
int a = h[0] * x[0] + ... | [["-", 36, 36, 36, 36, 0, 208, 0, 209, 0, 256], ["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 36, 36, 0, 208, 0, 209, 8, 201, 0, 45], ["+", 36, 36, 0, 208, 0, 235, 0, 251, 0, 259], ["-", 0, 208, 0, 209, 8, 201, 0, 235, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 0, 235, 8, 201, 0, 195, 0, 25... | 8 | 232 |
using System;
using System.Linq;
namespace _0316 {
class Program {
static void Main(string[] args) {
int[] h = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] k = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
in... | using System;
using System.Linq;
namespace _0316 {
class Program {
static void Main(string[] args) {
int[] h = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] k = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
in... | [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 31, 16, 12, 16, 31, 16, 17, 85], ["-", 31, 16, 31, 16, 12, 16, 31, 16, 12, 203], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 16, 12, 16,... | 8 | 232 |
using System;
using System.Linq;
namespace _0325 {
class Program {
static void Main(string[] args) {
string[] s = new string[6];
int[] a = new int[6];
int[] b = new int[6];
for (int i = 0; i < 6; i++) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
Array.Sort(x);
... | using System;
using System.Linq;
namespace _0325 {
class Program {
static void Main(string[] args) {
string[] s = new string[6];
int[] a = new int[6];
int[] b = new int[6];
for (int i = 0; i < 6; i++) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
Array.Sort(x);
... | [["+", 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, 16, 17, 79], ["+", 15, 16, 31, 16, 31, 16, 12, 204, 205, 22], ["+", 31, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 16, 12, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16,... | 8 | 260 |
using System;
using System.Linq;
namespace ACTest {
class AOJ500 {
static void Main(string[] args) {
int num = 1;
int[] totalScore = new int[2];
int[] roundScore = new int[2];
while (num != 0) {
totalScore = Enumerable.Repeat<int>(0, 2).ToArray();
// int[,] roundScore = new int[num, 2];
... | using System;
using System.Linq;
namespace ACTest {
class AOJ500 {
static void Main(string[] args) {
int num = 1;
int[] totalScore = new int[2];
int[] roundScore = new int[2];
while (num != 0) {
totalScore = Enumerable.Repeat<int>(0, 2).ToArray();
// int[,] roundScore = new int[num, 2];
... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+",... | 8 | 261 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication59 {
class Program {
static void Main() {
int a = int.Parse(Console.ReadLine());
int x, y;
x = y = 0;
for (int b = 0; b < a; b++) {
int[] c = Console.ReadLine().Split().Select(int.P... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication59 {
class Program {
static void Main() {
while (true) {
int a = int.Parse(Console.ReadLine());
if (a == 0)
break;
int x, y;
x = y = 0;
for (int b = 0; b < a; b+... | [["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 197, 0, 35], ["+... | 8 | 185 |
using System;
using System.Collections.Generic;
class AIDU0500 {
static int pa = 0, pb = 0;
static List<string> res = new List<string>();
public static void Main() {
int a, b, i;
string s;
string[] ss = new string[2];
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0)... | using System;
using System.Collections.Generic;
class AIDU0500 {
static int pa = 0, pb = 0;
static List<string> res = new List<string>();
public static void Main() {
int a, b, i;
string s;
string[] ss = new string[2];
while (true) {
pa = 0;
pb = 0;
int n = int.Parse(Console.Re... | [["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 8 | 267 |
using System;
namespace Card_Game {
class Program {
static int Main(string[] args) {
//??\???
int processCount = int.Parse(Console.ReadLine());
Cards[] cards = new Cards[processCount];
for (int lp = 0; lp < cards.Length; lp++) {
string[] inputStr = Console.ReadLine().Trim().Split(' ');
ca... | using System;
namespace Card_Game {
class Program {
static int Main(string[] args) {
while (true) {
//??\???
int processCount = int.Parse(Console.ReadLine());
if (processCount == 0) {
break;
}
Cards[] cards = new Cards[processCount];
for (int lp = 0; lp < cards.Lengt... | [["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 197, 0, 35], ["+... | 8 | 337 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int tableLength = int.Parse(Console.ReadLine());
var table = new Dictionary<char, char>();
for (int i = 0; i < tableLength; i++) {
string line = Console.ReadLine();
table[line[0]] = line[2];
... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
while (true) {
int tableLength = int.Parse(Console.ReadLine());
if (tableLength == 0) {
return;
}
var table = new Dictionary<char, char>();
for (int i = 0; i < tableLength; i++... | [["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 197, 0, 35], ["+... | 8 | 189 |
using System;
namespace AOJ0501 {
class Program {
static void Main(string[] args) {
while (true) {
string input = Console.ReadLine();
int N = int.Parse(input);
char[] before_list = new char[N];
char[] after_list = new char[N];
for (int i = 0; i < N; i++) {
input = Console.R... | using System;
namespace AOJ0501 {
class Program {
static void Main(string[] args) {
while (true) {
string input = Console.ReadLine();
int N = int.Parse(input);
if (N == 0) {
return;
}
char[] before_list = new char[N];
char[] after_list = new char[N];
for (int i ... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 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, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+",... | 8 | 251 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace AOJ {
class Program {
public static void Main(string[] args) {
var n = 0;
while ((n = int.Parse(Console.ReadLine())) != 0) {
n = int.Parse(Console.ReadLine());
var dic = new Dictionary<char, char>();
foreach (var i... | using System;
using System.Linq;
using System.Collections.Generic;
namespace AOJ {
class Program {
public static void Main(string[] args) {
var n = 0;
while ((n = int.Parse(Console.ReadLine())) != 0) {
var dic = new Dictionary<char, char>();
foreach (var i in Enumerable.Range(1, n)) {
var... | [["-", 0, 52, 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, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["-"... | 8 | 239 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ.Volume5 {
public class Questionnaire {
public static int Main() {
var input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int m = int.Parse(input[1]);
var result = new Dictionary<int, int>();
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ.Volume5 {
public class Questionnaire {
public static int Main() {
while (true) {
var input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int m = int.Parse(input[1]);
if (n == 0 &... | [["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 197, 0, 35], ["+... | 8 | 243 |
using System;
public class Program {
public static void Main() {
int n = int.Parse(Console.ReadLine());
string str = Console.ReadLine();
for (int i = 0; i < n; i++) {
string temp = "";
int len = 1;
for (int j = 1; j < str.Length; j++) {
if (str[j] == str[j - 1]) {
len+... | using System;
public class Program {
public static void Main() {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0)
return;
string str = Console.ReadLine();
for (int i = 0; i < n; i++) {
string temp = "";
int len = 1;
for (int j = 1; j < str.... | [["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 197, 0, 35], ["+... | 8 | 153 |
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var m = new bool[30];
Enumerable.Range(1, 28)
.Select(i => Console.ReadLine())
.Select(int.Pars... | using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var m = new bool[30];
Enumerable.Range(1, 28)
.Select(i => Console.ReadLine())
.Select(int.Pars... | [["-", 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, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 1, 0, 213, 63... | 8 | 173 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static char[] before =
new char[26] { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
'S', 'T', ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static char[] after =
new char[26] { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
'S', 'T', '... | [["-", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["+", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["+", 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, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 52, 8, 196, 0, 93, 0, 94]] | 8 | 380 |
using System;
class Program {
static void Main() {
string eng = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var t = Console.ReadLine();
string answer = "";
int p = 0;
for (int n = 0; n < t.Length; n++) {
p = eng.IndexOf(t[n]);
if (p + 3 <= 23) {
p = p + 3;
} else {
p = p + 3 -... | using System;
class Program {
static void Main() {
string eng = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var t = Console.ReadLine();
string answer = "";
int p = 0;
for (int n = 0; n < t.Length; n++) {
p = eng.IndexOf(t[n]);
if (p - 3 >= 0) {
p = p - 3;
} else {
p = p - 3 + ... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+"... | 8 | 112 |
using System;
namespace _0512 {
class Program {
static void Main(string[] args) {
// string[] a = new string { "a" };
string str = Console.ReadLine();
for (int i = 0; i < str.Length; i++) {
string a = str.Substring(i, 1);
if (i == str.Length - 1) {
Console.WriteLine();
}
... | using System;
namespace _0512 {
class Program {
static void Main(string[] args) {
// string[] a = new string { "a" };
string str = Console.ReadLine();
for (int i = 0; i < str.Length; i++) {
string a = str.Substring(i, 1);
if (str.Substring(i, 1) == "A") {
Console.Write("X");
... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 57, 15, 16, 12, 16, 31, 214, 205, 22], ["-", 0, 57, 15, 16, 12, 16, 31, 214, 0, 131], ["-", 0, 57, 15, 16, 12, 16, 31, 214, 141, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 2... | 8 | 594 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp1 {
/// <summary>
/// ???????????????????§£????????????
/// </summary>
static class P0517 {
static void Main(string[] args) { P0517.Solve(); }
public static void Solve() {
int[] input;
input = Consol... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp1 {
/// <summary>
/// ???????????????????§£????????????
/// </summary>
static class P0517 {
static void Main(string[] args) { P0517.Solve(); }
public static void Solve() {
int[] input;
input = Consol... | [["-", 75, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 75, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["-", 0, 57, 75, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 57, 75, 57, 64, 196, 0, 1, 0, 35], ["+", 75, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 7... | 8 | 421 |
using System;
class aoj {
static void Main() {
int a = int.Parse(Console.ReadLine()), c = 0;
a = 1000 - a;
int[] b = { 500, 100, 50, 10, 5, 1 };
for (int i = 0; i < 6; i++) {
while (a >= b[i]) {
c++;
a -= b[i];
}
}
Console.WriteLine(c);
}
} | using System;
class aoj {
static void Main() {
while (true) {
int a = int.Parse(Console.ReadLine()), c = 0;
if (a == 0)
break;
a = 1000 - a;
int[] b = { 500, 100, 50, 10, 5, 1 };
for (int i = 0; i < 6; i++) {
while (a >= b[i]) {
c++;
a -= b[i];
... | [["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 197, 0, 35], ... | 8 | 101 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication30 {
class Program {
static void Main(string[] args) {
int r = int.Parse(Console.ReadLine());
int c, d, a;
a = c = d = 0;
a = 1000 - r;
c += a / 500;
d = a % 500;
c += d / 100... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication30 {
class Program {
static void Main(string[] args) {
while (true) {
int r = int.Parse(Console.ReadLine());
if (r == 0)
break;
int c, d, a;
a = c = d = 0;
a = 1... | [["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 197, 0, 35], ["+... | 8 | 147 |
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Template {
static Scanner sc;
public static void Main(string[] args) {
sc = new Scanner();
while (true) {
string s = sc.next();
if (s == null)
break;
... | using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Template {
static Scanner sc;
public static void Main(string[] args) {
sc = new Scanner();
while (true) {
string s = sc.next();
if (s == null)
break;
... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 95], ["+", 0, 57, 75, 57, 75, 57, 64, 196, 0, 46], ["+", 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, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 7... | 8 | 476 |
using System;
namespace _0522 {
class Program {
static void Main(string[] args) {
string a = Console.ReadLine();
int ioi = 0, joi = 0;
for (int i = 0; i < a.Length - 2; i++) {
if (a.Substring(i + 1, 1) == "O" && a.Substring(i + 2, 1) == "I") {
if (a.Substring(i, 1) == "I") {
ioi++... | using System;
namespace _0522 {
class Program {
static void Main(string[] args) {
while (true) {
string a = Console.ReadLine();
if (a == null) {
break;
}
int ioi = 0, joi = 0;
for (int i = 0; i < a.Length - 2; i++) {
if (a.Substring(i + 1, 1) == "O" && a.Substring(i ... | [["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+"... | 8 | 154 |
using System;
namespace _522_JOIandIOI {
class Program {
static void Main(string[] args) {
while (true) {
// input
string inputStr = Console.ReadLine();
if (inputStr == null) {
break;
}
// process
int joiCount = 0;
int ioiCount = 0;
int index = 0;
... | using System;
namespace _522_JOIandIOI {
class Program {
static void Main(string[] args) {
while (true) {
// input
string inputStr = Console.ReadLine();
if (inputStr == null) {
break;
}
// process
int joiCount = 0;
int ioiCount = 0;
int index = 0;
... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, ... | 8 | 213 |
using System;
namespace AOJ.Volume5 {
public class JOIAndIOI {
public static int Main() {
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input)) {
break;
}
int len = input.Length;
int answer = 0;
string tmp;
for (... | using System;
namespace AOJ.Volume5 {
public class JOIAndIOI {
public static int Main() {
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input)) {
break;
}
int len = input.Length;
int joi = 0;
int ioi = 0;
string ... | [["-", 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], ["+", 8, 196, 0, 52, 8, 196, 0, 197, 0, 35], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0,... | 8 | 131 |
using System.Collections.Generic;
using System.Linq;
using System;
public class Star {
public long sx { get; set; }
public long sy { get; set; }
}
public class hello {
public static void Main() {
while (true) {
var conste = new List<Star>();
var photo = new List<Star>();
var n = int.Parse(C... | using System.Collections.Generic;
using System.Linq;
using System;
public class Star {
public long sx { get; set; }
public long sy { get; set; }
}
public class hello {
public static void Main() {
while (true) {
var conste = new List<Star>();
var photo = new List<Star>();
var n = int.Parse(C... | [["+", 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], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12,... | 8 | 486 |
using System.Linq;
using System.Collections.Generic;
using System;
public class PriorityQueue<T>
where T : IComparable {
private IComparer<T> _comparer = null;
private int _type = 0;
private T[] _heap;
private int _sz = 0;
private int _count = 0;
/// <summary>
/// Priority Queue with custom comparer
... | using System.Collections.Generic;
using System;
public class PriorityQueue<T>
where T : IComparable {
private IComparer<T> _comparer = null;
private int _type = 0;
private T[] _heap;
private int _sz = 0;
private int _count = 0;
/// <summary>
/// Priority Queue with custom comparer
/// </summary>
... | [["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["+", 75, 196, 0, 210, 8, 57, 15, 16, 17, 98], ["+", 0, 210, 8, 57, 15, 1... | 8 | 1,265 |
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
class Program {
static readonly int[] dy = { -1, 1, 0, 0 };
static readonly int[] dx = { 0, 0, -1, 1 };
static void Main(string[] args) {
while (true) {
var input = Array.ConvertAll(Console.ReadLine().Split(), int.Pa... | using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
class Program {
static readonly int[] dy = { -1, 1, 0, 0 };
static readonly int[] dx = { 0, 0, -1, 1 };
static void Main(string[] args) {
while (true) {
var input = Array.ConvertAll(Console.ReadLine().Split(), int.Pa... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["-", 0... | 8 | 727 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication32 {
class Program {
static void Main() {
int[] a = new int[10];
for (int b = 0; b < 10; b++)
a[b] = int.Parse(Console.ReadLine());
int[] c = new int[10];
for (int d = 0; d < 10; d+... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication32 {
class Program {
static void Main() {
int[] a = new int[10];
for (int b = 0; b < 10; b++)
a[b] = int.Parse(Console.ReadLine());
int[] c = new int[10];
for (int d = 0; d < 10; d+... | [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 170 |
using System;
public class Hello {
public static int MAXC = 0;
public static int[] dx = new int[] { 0, 1, 0, -1 };
public static int[] dy = new int[] { 1, 0, -1, 0 };
public static void Main() {
while (true) {
var w = int.Parse(Console.ReadLine().Trim());
var h = int.Parse(Console.ReadLine().Tr... | using System;
public class Hello {
static int[,] map;
static int[] dx = new int[] { 0, 1, 0, -1 };
static int[] dy = new int[] { 1, 0, -1, 0 };
static int MAXC;
public static void Main() {
while (true) {
MAXC = 0;
var w = int.Parse(Console.ReadLine().Trim());
var h = int.Parse(Console.... | [["-", 0, 235, 8, 201, 0, 124, 0, 251, 0, 259], ["-", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 124, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 124, 0, 198, 39, 224, 225, 226, 0, 21], ["+", 0, 124, 0, 198, 39, 224, 22... | 8 | 399 |
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class MainClass {
static Scanner sc;
static int D, N, M;
static int[] d;
public static void Main(string[] args) {
sc = new Scanner();
while (true) {
D = sc.nextInt();
... | using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class MainClass {
static Scanner sc;
static int D, N, M;
static int[] d;
public static void Main(string[] args) {
sc = new Scanner();
while (true) {
D = sc.nextInt();
... | [["+", 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, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 8 | 589 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static void Main(String[] args) {
string line;
while ((line = Console.ReadLine()) != null) {
int[] ints = line.Split(' ').Select(int.Parse).ToArray();
int n = ints[0]... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static void Main(String[] args) {
string line;
while ((line = Console.ReadLine()) != null) {
int[] ints = line.Split(' ').Select(int.Parse).ToArray();
int n = ints[0]... | [["+", 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, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 8 | 258 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static void Main(String[] args) {
string line;
while ((line = Console.ReadLine()) != null) {
// int[] ints = line.Split(' ').Select(int.Parse).ToArray();
int n = int.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static void Main(String[] args) {
string line;
while ((line = Console.ReadLine()) != null) {
// int[] ints = line.Split(' ').Select(int.Parse).ToArray();
int n = int.... | [["+", 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, 203], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 8 | 342 |
using System;
using System.Collections.Generic;
using System.Linq;
class Edge {
public int Fm { get; private set; }
public int To { get; private set; }
public int Cost { get; private set; }
public Edge(int fm, int to, int cost) {
Fm = fm;
To = to;
Cost = cost;
}
}
class ShortestPath {
static ... | using System;
using System.Collections.Generic;
using System.Linq;
class Edge {
public int Fm { get; private set; }
public int To { get; private set; }
public int Cost { get; private set; }
public Edge(int fm, int to, int cost) {
Fm = fm;
To = to;
Cost = cost;
}
}
class ShortestPath {
static ... | [["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 48], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 48], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 12, 230, 3, 4, 0, 28, ... | 8 | 414 |
using System;
namespace AOJ.Volume1 {
public class Snakes {
public static bool CheckA(string input) {
// 先頭は「>'」
if (input.Substring(0, 2) != ">'") {
return false;
}
// 末尾は「~」
if (input.Substring(input.Length - 1, 1) != "~") {
return false;
}
// 真ん中のチェック... | using System;
namespace AOJ.Volume1 {
public class Snakes {
public static bool CheckA(string input) {
// 先頭は「>'」
if (input.Substring(0, 2) != ">'") {
return false;
}
// 末尾は「~」
if (input.Substring(input.Length - 1, 1) != "~") {
return false;
}
// 真ん中のチェック... | [["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 16, 31, 2... | 8 | 415 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
static char[,] uzu = new char[0, 0];
static int uzuL = -1;
static void goUp(int y, int x) {
// Console.WriteLine(y + "-" + x);
if ((x == 0 || uzu[y, x - 1] == ' ') && (y == 0 || uz... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
static char[,] uzu = new char[0, 0];
static int uzuL = -1;
static void goUp(int y, int x) {
// Console.WriteLine(y + "-" + x);
if ((x == 0 || uzu[y, x - 1] == ' ') && (y == 0 || uz... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 15, 16, 12, 23, 0, 16, 31, 204, 205, 22], ["+", 12, 23, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 23, 0, 16, 31, 204, 206, 207, 0, 21], ["+", 31, 204, 206, 207, 0, 28, 0, 16... | 8 | 836 |
using System;
namespace AOJ.Volume1 {
public class SpiralPattern {
public static int Main() {
int dataset = int.Parse(Console.ReadLine());
for (int d = 0; d < dataset; d++) {
int n = int.Parse(Console.ReadLine());
var sq = new string[n];
// 初期化
string line = new string... | using System;
namespace AOJ.Volume1 {
public class SpiralPattern {
public static int Main() {
int dataset = int.Parse(Console.ReadLine());
for (int d = 0; d < dataset; d++) {
int n = int.Parse(Console.ReadLine());
var sq = new string[n];
// 初期化
string line = new string... | [["+", 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, 79], ["+", 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 | 474 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
struct Position {
internal int x, y;
public Position(int x, int y) {
this.x = x;
this.y = y;
}
}
class Program {
static readonly int[] moveX = new int[] { 0, +1, 0, -1 };
static rea... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
struct Position {
internal int x, y;
public Position(int x, int y) {
this.x = x;
this.y = y;
}
}
class Program {
static readonly int[] moveX = new int[] { 0, +1, 0, -1 };
static rea... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, ... | 8 | 648 |
using System;
using System.Collections;
using System.Collections.Generic;
class Myon {
public Myon() {}
public static int Main() {
new Myon().run();
return 0;
}
void run() {
int T = int.Parse(Console.ReadLine());
for (int test = 0; test < T; test++) {
string[] st = Console.ReadLine().Spl... | using System;
using System.Collections;
using System.Collections.Generic;
class Myon {
public Myon() {}
public static int Main() {
new Myon().run();
return 0;
}
void run() {
int T = int.Parse(Console.ReadLine());
for (int test = 0; test < T; test++) {
string[] st = Console.ReadLine().Spl... | [["-", 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, 28, 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 | 474 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
static int[,] rooterTrans = new int[101, 101];
static void rue(int[,] roots) {
int n = roots.GetLength(0);
bool changes;
do {
changes = false;
for (int a = 1; a < n; ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
static int[,] rooterTrans = new int[101, 101];
static void rue(int[,] roots) {
int n = roots.GetLength(0);
bool changes;
do {
changes = false;
for (int a = 1; a < 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, 196, 0, 82, 8, 196, 0, 1, 0, 35]] | 8 | 567 |
using System;
namespace _0148 {
class Program {
static void Main(string[] args) {
while (true) {
string now = Console.ReadLine();
if (now == null) {
break;
}
int N = int.Parse(now);
string output = (N % 39).ToString();
if (output.Length == 1) {
Console.WriteLin... | using System;
namespace _0148 {
class Program {
static void Main(string[] args) {
while (true) {
string now = Console.ReadLine();
if (now == null) {
break;
}
int N = int.Parse(now);
string output = (N % 39).ToString();
if (output.Length == 1) {
if (output == "0... | [["+", 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], ["+", 64, 196, 0, 57, 15, 16, 12, 5, 0, 62], ["+", 64, 196, 0, 57, 15, 16, 12, 5, 0, 222], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ... | 8 | 111 |
using System.Linq;
using System.Collections.Generic;
using System;
public class C {
public const int INF = 999999999;
}
public class Hello {
public static void Main() {
while (true) {
var n = int.Parse(Console.ReadLine().Trim());
if (n == 0)
break;
var bx = new int[n];
var by =... | using System.Linq;
using System.Collections.Generic;
using System;
public class C {
public const int INF = 999999999;
}
public class Hello {
public static void Main() {
while (true) {
var n = int.Parse(Console.ReadLine().Trim());
if (n == 0)
break;
var bx = new int[n];
var by =... | [["+", 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, 212, 0, 16, 31, 213, 63, 214, 205, 199], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 16, 31, 213, ... | 8 | 781 |
using System;
using System.Collections.Generic;
namespace aizu {
class OnlineJudge {
static void Main() {
int length = 0;
List<int> input = new List<int>();
Func<int, int, bool> Swap = new Func<int, int, bool>((index1, index2) => {
bool result = false;
if (input.Count > index1 && input.Count >... | using System;
using System.Collections.Generic;
namespace aizu {
class OnlineJudge {
static void Main() {
int length = 0;
List<int> input = new List<int>();
Func<int, int, bool> Swap = new Func<int, int, bool>((index1, index2) => {
bool result = false;
if (input.Count > index1 && input.Count >... | [["-", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 20], ["... | 8 | 275 |
using System;
namespace Unchi {
class unchi {
static void Main() {
while (true) {
int N = int.Parse(Console.ReadLine());
if (N == 0)
break;
long res = dfs(N) / 10 / 365;
if (res != 0)
res += 1;
Console.WriteLine(res);
}
}
static long[] dfsMemo = new long[... | using System;
namespace Unchi {
class unchi {
static void Main() {
while (true) {
int N = int.Parse(Console.ReadLine());
if (N == 0)
break;
long res = dfs(N) / 10 / 365;
Console.WriteLine(res + 1);
}
}
static long[] dfsMemo = new long[31];
static long dfs(int count) ... | [["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["-", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["-", ... | 8 | 146 |
using System;
public class Hello {
public static void Main() {
while (true) {
string[] line = Console.ReadLine().Trim().Split(' ');
if (line[0] == "0")
break;
var one = 0;
var psum = 0;
for (int i = 0; i < line.Length; i++) {
var w = int.Parse(line[i]);
if (w... | using System;
public class Hello {
public static void Main() {
while (true) {
string[] line = Console.ReadLine().Trim().Split(' ');
if (line[0] == "0")
break;
var one = 0;
var psum = 0;
for (int i = 0; i < line.Length; i++) {
var w = int.Parse(line[i]);
if (w... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 57, 0, 121]... | 8 | 188 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
struct Food {
internal string name;
internal int id, wt, cap;
public override string ToString() { return name; }
}
class Program {
static void Main(string[] args) {
StringBuilder sb = new... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
struct Food {
internal string name;
internal int id, wt, cap;
public override string ToString() { return name; }
}
class Program {
static void Main(string[] args) {
StringBuilder sb = new... | [["-", 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, 21], ["-", 3, 4, 0, 28, 0, 218, 54, 55, 0, 24], ["-", 0, 28... | 8 | 397 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static bool isBwin(string str0, string str1, string str2) {
if (str0 == "bbb") {
return true;
}
if (str1 == "bbb") {
return true;
}
if (str2 == "bbb") {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static bool isBwin(string str0, string str1, string str2) {
if (str0 == "bbb") {
return true;
}
if (str1 == "bbb") {
return true;
}
if (str2 == "bbb") {
... | [["-", 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, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 3, 4,... | 8 | 614 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication24 {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int[] b = new int[a];
int c, d, e, f, g, h, i;
c = d = e = f = g = h = i = 0;
for (int j ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication24 {
class Program {
static void Main(string[] args) {
while (true) {
int a = int.Parse(Console.ReadLine());
if (a == 0)
break;
int[] b = new int[a];
int c, d, e, f, g... | [["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+... | 8 | 257 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0184 {
class Program {
static void Main(string[] args) {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
int[] a = new int[7];
for (int i = 0; i < n;... | using System;
namespace _0184 {
class Program {
static void Main(string[] args) {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
int[] a = new int[7];
for (int i = 0; i < n; i++) {
int d = int.Parse(Console.ReadLine());
a[Math.Mi... | [["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, ... | 8 | 144 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.