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;
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)
Console.Write(" ");
els... | [["+", 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], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 8 | 100 |
using System;
namespace _0031 {
class Program {
static void Main(string[] args) {
while (true) {
string now = Console.ReadLine();
if (now == null) {
break;
}
int x = int.Parse(now);
string two = Convert.ToString((x), 2);
int j = 1;
int k = 0;
for (int i = t... | using System;
namespace _0031 {
class Program {
static void Main(string[] args) {
while (true) {
string now = Console.ReadLine();
if (now == null) {
break;
}
int x = int.Parse(now);
string two = Convert.ToString((x), 2);
int j = 1;
int k = 0;
for (int i = t... | [["+", 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], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 8 | 152 |
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 n = int.Parse(line);
if (n == 0) {
break;
}
int m... | 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 n = int.Parse(line);
if (n == 0) {
break;
}
int m... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18]] | 8 | 220 |
using System;
using System.Text;
using System.Linq;
class aizu_judge {
static void Main() {
while (true) {
int aPoint = 0, bPoint = 0;
int n = Convert.ToInt32(Console.ReadLine());
if (n == 0)
break;
for (int i = 0; i < n; i++) {
int[] card = Console.ReadLine().Split().Se... | using System;
using System.Text;
using System.Linq;
class aizu_judge {
static void Main() {
while (true) {
int aPoint = 0, bPoint = 0;
int n = Convert.ToInt32(Console.ReadLine());
if (n == 0)
break;
for (int i = 0; i < n; i++) {
int[] card = Console.ReadLine().Split().Se... | [["+", 8, 196, 0, 57, 75, 57, 75, 196, 0, 45], ["+", 8, 196, 0, 57, 75, 57, 75, 196, 0, 46]] | 8 | 180 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
// 0
// 1[2]3 4
// 5
public static int[] dice = new int[6];
public static void left() {
int[] dice2 = new int[6];
dice2[0] = dice[3];
dice2[1] = dice[0];
dice2[2] =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
// 0
// 1[2]3 4
// 5
public static int[] dice = new int[6];
public static void left() {
int[] dice2 = new int[6];
dice2[0] = dice[3];
dice2[1] = dice[0];
dice2[2] =... | [["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 781 |
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]... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 295 |
using System;
class A {
static void Main() {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
string a = Console.ReadLine();
for (int i = 0; i < n; i++) {
string UI = "";
int j = 0;
int continuing = 1;
for (j = 1; j ... | using System;
class A {
static void Main() {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
string a = Console.ReadLine();
for (int i = 0; i < n; i++) {
string UI = "";
int j = 0;
int continuing = 1;
for (j = 1; j ... | [["-", 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], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 8 | 175 |
using System;
public class p0511 {
p0511() {
string str;
bool[] a = new bool[31];
while ((str = Console.ReadLine()) != null) {
for (int i = 0; i < 31; ++i)
a[i] = true;
a[int.Parse(str)] = false;
for (int i = 0; i < 27; ++i)
a[int.Parse(Console.ReadLine())] = false;
... | using System;
public class p0511 {
p0511() {
string str;
bool[] a = new bool[31];
while ((str = Console.ReadLine()) != null) {
for (int i = 0; i < 31; ++i)
a[i] = true;
a[int.Parse(str)] = false;
for (int i = 0; i < 27; ++i)
a[int.Parse(Console.ReadLine())] = false;
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 158 |
using System;
using System.Linq;
namespace AOJ2 {
class Program {
static void Main() {
Console.WriteLine(string.Join(
"",
Console.ReadLine()
.Select(x => Convert.ToChar(x >= 'X' ? x - 23 : x + 3).ToString())
.ToArray()));
}
}
} | using System;
using System.Linq;
namespace AOJ2 {
class Program {
static void Main() {
Console.WriteLine(string.Join(
"",
Console.ReadLine()
.Select(x => Convert.ToChar(x <= 'C' ? x + 23 : x - 3).ToString())
.ToArray()));
}
}
} | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19], ["-", 0, 28, 0, 41, 15, 16, 12, 252, 0, 253], ["+", 0, 28, 0, 41, 15, 16, 12, 252, 0, 253], ["-", 3, 4, 0, 28, 0, 41, 64, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 41, 64, 16, 17, 72], ["-", 3, 4, 0, 28, 0, 41, 75, 16, 17, 72], ["+", 3, 4, ... | 8 | 74 |
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) {
while (true) {
var nk = Console.ReadLine().Split(' ');
int n = int.Parse(nk[0]), k = int.Parse(nk[1]);
... | 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) {
while (true) {
var nk = Console.ReadLine().Split(' ');
int n = int.Parse(nk[0]), k = int.Parse(nk[1]);
... | [["-", 0, 7, 8, 196, 0, 57, 75, 196, 0, 46], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 46]] | 8 | 228 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace Test1 {
class ClassMain {
public static void Main(String[] args) {
string line;
while ((line = Console.ReadLine()) != null) {
int jcnt = 0, icnt = 0;
for (int i ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace Test1 {
class ClassMain {
public static void Main(String[] args) {
string line;
while ((line = Console.ReadLine()) != null) {
int jcnt = 0, icnt = 0;
for (int i ... | [["-", 8, 196, 0, 52, 8, 196, 0, 93, 0, 94], ["-", 8, 196, 0, 52, 8, 196, 0, 93, 0, 35]] | 8 | 195 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace AOJ2 {
class Program {
static void Main() {
var param = int.Parse(Console.ReadLine());
while (param != 0) {
var taroCard = Read(param).OrderBy(x => x).ToList();
var hanakoCard = Enumerable.Range(1, p... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace AOJ2 {
class Program {
static void Main() {
var param = int.Parse(Console.ReadLine());
while (param != 0) {
var taroCard = Read(param).OrderBy(x => x).ToList();
var hanakoCard = Enumerable.Range(1, p... | [["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60]] | 8 | 261 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace _527_SettingGoStones {
class Program {
static void Main(string[] args) {
while (true) {
// input
int stoneAllCount = int.Parse(Console.ReadLine());
if (stoneAllCount == 0) {
break;
}
int[] stoneSt... | using System;
using System.Collections.Generic;
using System.Linq;
namespace _527_SettingGoStones {
class Program {
static void Main(string[] args) {
while (true) {
// input
int stoneAllCount = int.Parse(Console.ReadLine());
if (stoneAllCount == 0) {
break;
}
int[] stoneSt... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 203]] | 8 | 532 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
class Program {
static void Main() {
var sc = new Scanner();
int K = sc.IntArray(10).OrderBy(x => x).Take(3).Sum();
int W = sc.IntArray(10).OrderBy(x => x).Take(3).Sum();
Console.WriteLine(K + " "... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
class Program {
static void Main() {
var sc = new Scanner();
int K = sc.IntArray(10).OrderByDescending(x => x).Take(3).Sum();
int W = sc.IntArray(10).OrderByDescending(x => x).Take(3).Sum();
Conso... | [["-", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22]] | 8 | 494 |
using System;
using System.Linq;
namespace _0535 {
class Program {
static bool[,] ice;
static int ret = 0;
static void bfs(int x, int y, int count) {
ice[x, y] = false;
count++;
ret = Math.Max(ret, count);
if (ice[x - 1, y])
bfs(x - 1, y, count);
if (ice[x + 1, y])
bfs(x + 1, y, c... | using System;
using System.Linq;
namespace _0535 {
class Program {
static bool[,] ice;
static int ret = 0;
static void bfs(int x, int y, int count) {
ice[x, y] = false;
count++;
ret = Math.Max(ret, count);
if (ice[x - 1, y])
bfs(x - 1, y, count);
if (ice[x + 1, y])
bfs(x + 1, y, c... | [["+", 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 | 376 |
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 {
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) {
MAXC = 0;
var w = int.Parse(Console.ReadLine().Trim());
var h = int.Parse(Conso... | [["+", 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 | 399 |
using System;
using System.Collections;
using System.Collections.Generic;
class TEST {
static void Main() {
while (true) {
var n = int.Parse(Console.ReadLine());
if (n == 0)
break;
Sol mySol = new Sol(n);
mySol.Solve();
}
}
}
class Sol {
public void Solve() {
List<Pai... | using System;
using System.Collections;
using System.Collections.Generic;
class TEST {
static void Main() {
while (true) {
var n = int.Parse(Console.ReadLine());
if (n == 0)
break;
Sol mySol = new Sol(n);
mySol.Solve();
}
}
}
class Sol {
public void Solve() {
List<Pai... | [["-", 0, 218, 8, 41, 15, 16, 31, 214, 141, 22], ["+", 0, 218, 8, 41, 15, 16, 31, 214, 141, 22], ["-", 0, 218, 8, 41, 15, 16, 12, 214, 141, 22], ["+", 0, 218, 8, 41, 15, 16, 12, 214, 141, 22], ["-", 8, 41, 75, 41, 15, 16, 31, 214, 141, 22], ["+", 8, 41, 75, 41, 15, 16, 31, 214, 141, 22], ["-", 8, 41, 75, 41, 15, 16, 12... | 8 | 490 |
using System;
public class Hello {
public static void Main() {
var p = new string[] { "lunch", "dinner", "midnight" };
while (true) {
var n = int.Parse(Console.ReadLine().Trim());
if (n == 0)
break;
var a = new int[3];
var b = new int[3];
for (int i = 0; i < n; i++) {
... | using System;
public class Hello {
public static void Main() {
var p = new string[] { "lunch", "dinner", "midnight" };
while (true) {
var n = int.Parse(Console.ReadLine().Trim());
if (n == 0)
break;
var a = new int[3];
var b = new int[3];
for (int i = 0; i < n; i++) {
... | [["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22]] | 8 | 415 |
using System;
public class hello {
public static void Main() {
var dx = new int[] { 0, -1, 0, 1 };
var dy = new int[] { 1, 0, -1, 0 };
while (true) {
string[] line = Console.ReadLine().Trim().Split(' ');
var w = int.Parse(line[0]);
var h = int.Parse(line[1]);
if (w == 0 && h == 0)... | using System;
public class hello {
public static void Main() {
var dx = new int[] { 0, -1, 0, 1 };
var dy = new int[] { 1, 0, -1, 0 };
while (true) {
string[] line = Console.ReadLine().Trim().Split(' ');
var w = int.Parse(line[0]);
var h = int.Parse(line[1]);
if (w == 0 && h == 0)... | [["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 203]] | 8 | 457 |
using System.Linq;
using System.Collections.Generic;
using System;
public class P {
public int x1 { get; set; }
public int x2 { get; set; }
}
public class hello {
public static void Main() {
while (true) {
string[] line = Console.ReadLine().Trim().Split(' ');
var a = int.Parse(line[0]);
va... | using System.Linq;
using System.Collections.Generic;
using System;
public class P {
public int x1 { get; set; }
public int x2 { get; set; }
}
public class hello {
public static void Main() {
while (true) {
string[] line = Console.ReadLine().Trim().Split(' ');
var a = int.Parse(line[0]);
va... | [["+", 0, 230, 10, 229, 0, 11, 12, 241, 0, 33]] | 8 | 716 |
using System.Text;
using System.Collections.Generic;
using System;
public class hello {
public static Dictionary<string, int> d;
public static Dictionary<int, string> dr;
public static string[] z, z0, z1;
public static void Main() {
z = new string[] { "a", "b", "c", "d", "e", "f", "g", "h",
... | using System.Text;
using System.Collections.Generic;
using System;
public class hello {
public static Dictionary<string, int> d;
public static Dictionary<int, string> dr;
public static string[] z, z0, z1;
public static void Main() {
z = new string[] { "a", "b", "c", "d", "e", "f", "g", "h",
... | [["-", 64, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 17, 18]] | 8 | 1,034 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using CHY72;
namespace CHY72 {
public class PointXY<T>
where T : IComparable {
public T X, Y;
public bool Flag = false;
public PointXY(T _X, T _Y) {
X = _X;
Y = _Y;
}
public static bool operat... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using CHY72;
namespace CHY72 {
public class PointXY<T>
where T : IComparable {
public T X, Y;
public bool Flag = false;
public PointXY(T _X, T _Y) {
X = _X;
Y = _Y;
}
public static bool operat... | [["-", 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, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 52, 8, 196, 0, 197, 0, 35], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 587 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Test1 {
class ClassMain {
public static bool[] primes = Enumerable.Repeat(true, 1000000 + 1).ToArray();
public static void sieve() {
primes[0] = false;
primes[1] = false;
for (int i = 2; i < primes.Length / 2 + 1; i++) {
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Test1 {
class ClassMain {
public static bool[] primes = Enumerable.Repeat(true, 1000000 + 1).ToArray();
public static void sieve() {
primes[0] = false;
primes[1] = false;
for (int i = 2; i < primes.Length / 2 + 1; i++) {
... | [["-", 3, 4, 0, 28, 0, 16, 12, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 12, 22]] | 8 | 278 |
using System;
using System.Linq;
namespace _1141 {
class Program {
static void Main(string[] args) {
bool[] prime = new bool[1000010];
for (int i = 2; i < 1000010; i++)
prime[i] = true;
for (int i = 2; i < 1000010; i++) {
if (prime[i]) {
for (long j = i * i; 0 < j && j < 1000010; j +=... | using System;
using System.Linq;
namespace _1141 {
class Program {
static void Main(string[] args) {
bool[] prime = new bool[1000010];
for (int i = 2; i < 1000010; i++)
prime[i] = true;
for (int i = 2; i < Math.Sqrt(1000010); i++) {
if (prime[i]) {
for (long j = i * i; 0 < j && j < 10... | [["+", 0, 7, 15, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 7, 15, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 7, 15, 16, 12, 213, 3, 4, 0, 25]] | 8 | 219 |
using System;
class Program {
static void Main(string[] args) {
int Max, Min;
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0)
break;
int[] numbers = new int[n];
for (int i = 0; i < n; i++) {
numbers[i] = int.Parse(Console.ReadLine());
}
Ma... | using System;
class Program {
static void Main(string[] args) {
int Max, Min;
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0)
break;
int[] numbers = new int[n];
for (int i = 0; i < n; i++) {
numbers[i] = int.Parse(Console.ReadLine());
}
Ma... | [["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25]] | 8 | 198 |
using System;
namespace aoj1147 {
class Program {
static void Main(string[] args) {
int n;
do {
n = int.Parse(Console.ReadLine());
int min = 1000, max = 0, sum = 0;
int[] points = new int[n];
for (int i = 0; i < n; i++) {
points[i] = int.Parse(Console.ReadLine());
if (... | using System;
namespace aoj1147 {
class Program {
static void Main(string[] args) {
int n;
do {
n = int.Parse(Console.ReadLine());
int min = 1000, max = 0, sum = 0;
int[] points = new int[n];
for (int i = 0; i < n; i++) {
points[i] = int.Parse(Console.ReadLine());
if (... | [["+", 8, 196, 0, 82, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 82, 8, 196, 0, 57, 0, 24], ["+", 0, 82, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 82, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 82, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 82, 8, 196, 0, 57, 0, 25]] | 8 | 204 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using CHY72;
namespace CHY72 {
public class PointXY<T>
where T : IComparable {
public T X, Y;
public bool Flag = false;
public PointXY(T _X, T _Y) {
X = _X;
Y = _Y;
}
public static bool operat... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using CHY72;
namespace CHY72 {
public class PointXY<T>
where T : IComparable {
public T X, Y;
public bool Flag = false;
public PointXY(T _X, T _Y) {
X = _X;
Y = _Y;
}
public static bool operat... | [["-", 0, 11, 12, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 11, 12, 227, 39, 224, 225, 226, 0, 22]] | 8 | 851 |
using System;
using System.Collections.Generic;
namespace _1173 {
class Program {
static void Main(string[] args) {
while (true) {
string s = Console.ReadLine();
if (s == ".")
break;
Stack<char> kakko = new Stack<char>();
bool flag = true;
for (int i = 0; i < s.Length; i++) ... | using System;
using System.Collections.Generic;
namespace _1173 {
class Program {
static void Main(string[] args) {
while (true) {
string s = Console.ReadLine();
if (s == ".")
break;
Stack<char> kakko = new Stack<char>();
bool flag = true;
for (int i = 0; i < s.Length; i++) ... | [["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 98], ["+", 0, 41, 15, 16, 12, 16, 31, 214, 205, 22], ["+", 0, 41, 15, 16, 12, 16, 31, 214, 0, 131], ["+", 0, 41, 15, 16, 12, 16, 31, 214, 141, 22], ["+", 0, 28, 0, 41, 15, 16, 12, 16, 17, 60], ["+", 0, 28, 0, 41, 15, 16, 12, 16, 12, 203]] | 8 | 223 |
//#define READ_FILE72 //When you want to input from a file ,define this
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using CHY72;
namespace CHY72 {
public class PointXY {
public int X, Y;
public int SQLength() { return X * X + Y * Y; }
public bool Fla... |
//#define READ_FILE72 //When you want to input from a file ,define this
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using CHY72;
namespace CHY72 {
public class PointXY {
public int X, Y;
public int SQLength() { return X * X + Y * Y; }
public bool Fla... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19]] | 8 | 1,712 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApplication1 {
class ClassMain {
public static bool[] primes = Enumerable.Repeat(true, 1500000 + 1).ToArray();
public static void sieve() {
primes[0] = false;
primes[1] = false;
for (int i = 2; i < primes.Length / 2 ... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApplication1 {
class ClassMain {
public static bool[] primes = Enumerable.Repeat(true, 1500000 + 1).ToArray();
public static void sieve() {
primes[0] = false;
primes[1] = false;
for (int i = 2; i < primes.Length / 2 ... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 304 |
using System;
namespace _1356 {
class Program {
static void Main(string[] args) {
Console.ReadLine();
string s = "";
while (true) {
string a = Console.ReadLine();
if (string.IsNullOrEmpty(a))
break;
string[] x = a.Split();
s += string.Join("", x);
}
for (int i = 1;... | using System;
namespace _1356 {
class Program {
static void Main(string[] args) {
Console.ReadLine();
string s = "";
while (true) {
string a = Console.ReadLine();
if (string.IsNullOrEmpty(a))
break;
string[] x = a.Split();
s += string.Join("", x);
}
for (int i = 0;... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 128 |
using System.Linq;
using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
var aL = "abcdefghijklmnopqrstuvwxyz";
var d = new Dictionary<char, int>();
for (int i = 0; i < 26; i++)
d[aL[i]] = i;
var a = new int[26];
var b = new int[26];
var n = in... | using System.Linq;
using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
var aL = "abcdefghijklmnopqrstuvwxyz";
var d = new Dictionary<char, int>();
for (int i = 0; i < 26; i++)
d[aL[i]] = i;
var a = new int[26];
var b = new int[26];
var n = in... | [["-", 3, 4, 0, 28, 0, 218, 8, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 12, 203]] | 8 | 287 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication32 {
class Program {
static void Main() {
int[] a = new int[3];
int c, d, f;
d = c = f = 0;
for (int b = 0; b < 4; b++) {
a[b] = int.Parse(Console.ReadLine());
}
for (int e ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication32 {
class Program {
static void Main() {
int[] a = new int[4];
int c, d, f;
d = c = f = 0;
for (int b = 0; b < 4; b++) {
a[b] = int.Parse(Console.ReadLine());
}
for (int e ... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203]] | 8 | 140 |
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) {
string search = line;
int n = int.Parse(Console.ReadLine());
int cn... | 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) {
string search = line;
int n = int.Parse(Console.ReadLine());
int cn... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 179 |
using System;
class Program {
static void Main() {
string s = Console.ReadLine();
int n = int.Parse(Console.ReadLine());
int ret = 0;
for (int i = 0; i < n; i++) {
string t = Console.ReadLine();
t += t;
for (int j = 0; j <= t.Length - s.Length; j++) {
if (t.Substring(j, 4) ==... | using System;
class Program {
static void Main() {
string s = Console.ReadLine();
int n = int.Parse(Console.ReadLine());
int ret = 0;
for (int i = 0; i < n; i++) {
string t = Console.ReadLine();
t += t;
for (int j = 0; j <= t.Length - s.Length; j++) {
if (t.Substring(j, s.Len... | [["-", 15, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 31, 213, 3, 4, 0, 28, 0, 214, 205, 22], ["+", 31, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["+", 31, 213, 3, 4, 0, 28, 0, 214, 141, 22]] | 8 | 120 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication51 {
class Program {
static void Main() {
double a, b, c, d, e;
a = double.Parse(Console.ReadLine());
b = double.Parse(Console.ReadLine());
c = double.Parse(Console.ReadLine());
d = d... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication51 {
class Program {
static void Main() {
double a, b, c, d, e;
a = double.Parse(Console.ReadLine());
b = double.Parse(Console.ReadLine());
c = double.Parse(Console.ReadLine());
d = d... | [["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 169 |
using System.Collections.Generic;
using System;
public class hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
var s = Console.ReadLine().Trim();
var sL = s.Length;
var ans = 0;
for (int i = 0; i < n; i++) {
var t = Console.ReadLine().Trim();
var tL = t... | using System.Collections.Generic;
using System;
public class hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
var s = Console.ReadLine().Trim();
var sL = s.Length;
var ans = 0;
for (int i = 0; i < n; i++) {
var t = Console.ReadLine().Trim();
var tL = t... | [["-", 0, 7, 8, 196, 0, 57, 64, 126, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 64, 126, 0, 22], ["+", 8, 196, 0, 210, 8, 196, 0, 97, 0, 22], ["+", 8, 196, 0, 210, 8, 196, 0, 97, 0, 102], ["+", 0, 210, 8, 196, 0, 97, 0, 260, 0, 35]] | 8 | 284 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication51 {
class Program {
static void Main() {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int s = 0;
for (int c = 0; c < a; c++) {
int[] d = Console.Re... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication51 {
class Program {
static void Main() {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int s = 0;
for (int c = 0; c < a; c++) {
int[] d = Console.Re... | [["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25]] | 8 | 156 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0588 {
class Program {
static void Main(string[] args) {
long n = 0;
long a = 0;
while (true) {
if (n == 0) {
a = long.Parse(Console.ReadLine());
continue;
}
string s = Consol... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0588 {
class Program {
static void Main(string[] args) {
long n = 0;
long a = 0;
while (true) {
if (n == 0) {
a = long.Parse(Console.ReadLine());
}
string s = Console.ReadLine();
... | [["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 35]] | 8 | 181 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication51 {
class Program {
static void Main() {
int s = 0;
for (int a = 0; a < 5; a++) {
int b = int.Parse(Console.ReadLine());
if (b < 40)
s += 40;
else
s += b;
}... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication51 {
class Program {
static void Main() {
int s = 0;
for (int a = 0; a < 5; a++) {
int b = int.Parse(Console.ReadLine());
if (b < 40)
s += 40;
else
s += b;
}... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 92 |
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.... | [["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 223, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 223, 0, 204, 206, 207, 0, 28, 0, 22]] | 8 | 291 |
using System;
using System.IO;
class Program {
void Calc() {
var sc = new Scanner();
int kyougisuu = sc.NextInt();
int ninnzuu = sc.NextInt();
int[] nedann = new int[kyougisuu];
int nums = 1;
for (int i = 0; i < kyougisuu; i++) {
nedann[i] = sc.NextInt();
}
int[] kyougi = new in... | using System;
using System.IO;
class Program {
void Calc() {
var sc = new Scanner();
int kyougisuu = sc.NextInt();
int ninnzuu = sc.NextInt();
int[] nedann = new int[kyougisuu];
int nums = 1;
for (int i = 0; i < kyougisuu; i++) {
nedann[i] = sc.NextInt();
}
int[] kyougi = new in... | [["-", 75, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 12, 203]] | 8 | 424 |
using System.Linq;
using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
string[] line = Console.ReadLine().Trim().Split(' ');
var a = Array.ConvertAll(line, int.Parse);
var an = new List<int>();
var pre1 = f... | using System.Linq;
using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
string[] line = Console.ReadLine().Trim().Split(' ');
var a = Array.ConvertAll(line, int.Parse);
var an = new List<int>();
var pre1 = f... | [["+", 8, 196, 0, 57, 64, 37, 0, 204, 205, 22], ["+", 0, 57, 64, 37, 0, 204, 206, 207, 0, 70], ["+", 0, 57, 64, 37, 0, 204, 206, 207, 0, 73]] | 8 | 333 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication51 {
class Program {
static void Main() {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int c = int.Parse(Console.ReadLine());
int d = int.Parse(Console.Re... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication51 {
class Program {
static void Main() {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int c = int.Parse(Console.ReadLine());
int d = int.Parse(Console.Re... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]] | 8 | 156 |
using System.Linq;
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
if (n == 1) {
Console.WriteLine(1);
goto end;
}
var k = int.Parse(line[1]);
var a = new long[n - 1];
var pre = in... | using System.Linq;
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
if (n == 1) {
Console.WriteLine(1);
goto end;
}
var k = int.Parse(line[1]);
var a = new long[n - 1];
var pre = in... | [["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 72]] | 8 | 228 |
using System;
class Program {
static void Main() {
bool cont = true;
while (cont)
cont = Sub();
}
static bool Sub() {
string[] raw1 = Console.ReadLine().Split(' ');
if (raw1[0] == "0")
return false;
int n = int.Parse(raw1[0]);
int k = int.Parse(raw1[1]);
string[] rawS = Co... | using System;
class Program {
static void Main() {
bool cont = true;
while (cont)
cont = Sub();
}
static bool Sub() {
string[] raw1 = Console.ReadLine().Split(' ');
if (raw1[0] == "0")
return false;
int n = int.Parse(raw1[0]);
int k = int.Parse(raw1[1]);
string[] rawS = Co... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 280 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0098 {
public class Program
{
public static void Main(string[] args) {
int n = RInt();
int[,] cSum = new int[n + 1, n + 1];
//累積和の作成
for (int i = 0; i < n; i++) {
int[] items = RIntAr();
for... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0098 {
public class Program
{
public static void Main(string[] args) {
int n = RInt();
int[,] cSum = new int[n + 1, n + 1];
//累積和の作成
for (int i = 0; i < n; i++) {
int[] items = RIntAr();
for... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 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]] | 8 | 563 |
using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
var map = new int[n + 1, n + 1];
for (int i = 0; i < n; i++) {
var w = 0;
string[] line = Console.ReadLine().Trim().Split(' ');
for (int j = 0; j < n; j++) {
map[i + 1, j... | using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
var map = new int[n + 1, n + 1];
for (int i = 0; i < n; i++) {
var w = 0;
string[] line = Console.ReadLine().Trim().Split(' ');
for (int j = 0; j < n; j++) {
map[i + 1, j... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 382 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AIZU {
class VT : IComparable, IComparable<VT> {
public int s;
public int V;
public VT(int a, int c) {
s = a;
V = c;
}
#region Compare
public static int Sign(VT a, VT b) { return Math.Sign(a.V - b.V); }
public int CompareT... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AIZU {
class VT : IComparable, IComparable<VT> {
public int s;
public int V;
public VT(int a, int c) {
s = a;
V = c;
}
#region Compare
public static int Sign(VT a, VT b) { return Math.Sign(a.V - b.V); }
public int CompareT... | [["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22]] | 8 | 1,594 |
using System;
using System.Collections;
public class p0100 {
p0100() {
string str;
string[] st;
int n, p;
bool f;
ArrayList al = new ArrayList();
decimal[] sm = new decimal[4001];
while ((str = Console.ReadLine()) != null && str != "0") {
n = int.Parse(str);
f = true;
f... | using System;
using System.Collections;
public class p0100 {
p0100() {
string str;
string[] st;
int n, p;
bool f;
ArrayList al = new ArrayList();
decimal[] sm = new decimal[4001];
while ((str = Console.ReadLine()) != null && str != "0") {
n = int.Parse(str);
f = true;
f... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 261 |
using System;
namespace TestProject {
class MainClass {
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string s0 = "Hoshino";
string s1 = "Hoshina";
string[] s = new string[n];
for (int i = 0; i < n; i++) {
s[i] = Console.ReadLine();
s[i].Replace(s0, s... | using System;
namespace TestProject {
class MainClass {
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string s0 = "Hoshino";
string s1 = "Hoshina";
string[] s = new string[n];
for (int i = 0; i < n; i++) {
s[i] = Console.ReadLine();
s[i] = s[i].Replac... | [["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 11, 12, 213, 63, 214, 205, 204, 205, 22], ["+", 12, 213, 63, 214, 205, 204, 206, 207, 0, 70], ["+", 63, 214, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 213, 63, 214, 205, 204, 206, 207, 0, 73]] | 8 | 117 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication35 {
class Program {
static void Main() {
int a = int.Parse(Console.ReadLine());
int change = 0;
while (true) {
int @out = 0, j = 0;
bool[] runner = { false, false, false };
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication35 {
class Program {
static void Main() {
int a = int.Parse(Console.ReadLine());
int change = 0;
while (true) {
int @out = 0, j = 0;
bool[] runner = { false, false, false };
... | [["-", 0, 239, 0, 1, 0, 11, 12, 211, 0, 147], ["+", 0, 239, 0, 1, 0, 11, 12, 211, 0, 146]] | 8 | 231 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ.Volume1 {
public class BookIndex {
public static void Main() {
var index = new Dictionary<string, List<int>>();
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input)) {
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ.Volume1 {
public class BookIndex {
public static void Main() {
var index = new Dictionary<string, List<int>>();
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input)) {
... | [["-", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 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, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22]] | 8 | 233 |
using System;
using System.Linq;
namespace V0105 {
public class Program {
public static void Main(string[] args) {
var sr = new StreamReader();
//---------------------------------
sr.Next<string>(100, 2)
.TakeWhile(s => s[0] != "")
.GroupBy(s => s[0])
.OrderBy(g => g.Key)
... | using System;
using System.Linq;
namespace V0105 {
public class Program {
public static void Main(string[] args) {
var sr = new StreamReader();
//---------------------------------
sr.Next<string>(100, 2)
.TakeWhile(s => s[0] != null)
.GroupBy(s => s[0])
.OrderBy(g => g.Key)
... | [["-", 0, 28, 0, 218, 8, 16, 12, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 12, 215]] | 8 | 444 |
using System;
using System.Collections.Generic;
namespace AOJ.Volume1 {
public class MilkShop {
public static void Main() {
while (true) {
int cust_num = int.Parse(Console.ReadLine());
if (cust_num == 0) {
break;
}
var wait_time = new List<int>();
for (int... | using System;
using System.Collections.Generic;
namespace AOJ.Volume1 {
public class MilkShop {
public static void Main() {
while (true) {
int cust_num = int.Parse(Console.ReadLine());
if (cust_num == 0) {
break;
}
var wait_time = new List<int>();
for (int... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22]] | 8 | 154 |
using System;
using System.Linq;
namespace Aizu {
class OnlineJudge {
public static void Main() {
for (int t, f = 0; (t = int.Parse(Console.ReadLine())) != 0; f = 1) {
if (f != 0) {
Console.WriteLine();
}
var items =
Enumerable.Range(0, t)
.Select(q => {
... | using System;
using System.Linq;
namespace Aizu {
class OnlineJudge {
public static void Main() {
for (int t, f = 0; (t = int.Parse(Console.ReadLine())) != 0; f = 1) {
if (f != 0) {
Console.WriteLine();
}
var items =
Enumerable.Range(0, t)
.Select(q => {
... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 218, 8, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 214, 141, 22]] | 8 | 186 |
using System;
using System.Collections.Generic;
namespace AOJ.Volume1 {
public class PocketPagerInput {
public static void Main() {
var dic = new Dictionary<string, string> {
{ "11", "a" }, { "12", "b" }, { "13", "c" }, { "14", "d" },
{ "15", "e" }, { "21", "f" }, { "22", "g" }, { "23", "h"... | using System;
using System.Collections.Generic;
namespace AOJ.Volume1 {
public class PocketPagerInput {
public static void Main() {
var dic = new Dictionary<string, string> {
{ "11", "a" }, { "12", "b" }, { "13", "c" }, { "14", "d" },
{ "15", "e" }, { "21", "f" }, { "22", "g" }, { "23", "h"... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22]] | 8 | 530 |
using System;
namespace AOJ.Volume1 {
public class Train {
public static int Main() {
int cnt = int.Parse(Console.ReadLine());
for (int c = 0; c < cnt; c++) {
string input = Console.ReadLine();
// 列車の初期化
string answer = input.Substring(0, 1);
while (input.IndexOf("->"... | using System;
namespace AOJ.Volume1 {
public class Train {
public static int Main() {
int cnt = int.Parse(Console.ReadLine());
for (int c = 0; c < cnt; c++) {
string input = Console.ReadLine();
// 列車の初期化
string answer = input.Substring(0, 1);
while (input.IndexOf("->"... | [["-", 8, 196, 0, 52, 15, 16, 31, 16, 17, 18], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 17, 47], ["-", 0, 7, 8, 196, 0, 52, 15, 16, 17, 98], ["+", 0, 7, 8, 196, 0, 52, 15, 16, 17, 106], ["-", 8, 196, 0, 52, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 17, 47]] | 8 | 210 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication32 {
class Program {
static void Main() {
int a = int.Parse(Console.ReadLine());
double[] b = new double[a];
string d, e, f, g, h, i;
d = e = f = g = h = i = "";
for (int c = 0; c < a... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication32 {
class Program {
static void Main() {
int a = int.Parse(Console.ReadLine());
double[] b = new double[a];
string d, e, f, g, h, i;
d = e = f = g = h = i = "";
for (int c = 0; c < a... | [["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 304 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Train {
class Class2 {
const string mark = "*";
static void Main(string[] args) { new Class2().solve(); }
void solve() {
int size_Data = int.Parse(Console.ReadLine());
string[] result = new string[6];
fo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Train {
class Class2 {
const string mark = "*";
static void Main(string[] args) { new Class2().solve(); }
void solve() {
int size_Data = int.Parse(Console.ReadLine());
string[] result = new string[6];
fo... | [["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 25]] | 8 | 256 |
using System;
namespace AOJ.Volume1 {
public class CandyAndClassFlag {
public static int Main() {
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input)) {
break;
}
int candy = int.Parse(input);
// キャンディーを39で割った余りが出席番号
//... | using System;
namespace AOJ.Volume1 {
public class CandyAndClassFlag {
public static int Main() {
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input)) {
break;
}
int candy = int.Parse(input);
// キャンディーを39で割った余りが出席番号
//... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 100 |
using System;
class Program {
static void Main() {
var leftSight = new int[4];
var rightSight = new int[4];
for (string line; (line = Console.ReadLine()) != null;) {
var l = line.Split(' ');
var left = double.Parse(l[0]);
var right = double.Parse(l[1]);
leftSight[SightRank(left)]... | using System;
class Program {
static void Main() {
var leftSight = new int[4];
var rightSight = new int[4];
for (string line; (line = Console.ReadLine()) != null;) {
var l = line.Split(' ');
var left = double.Parse(l[0]);
var right = double.Parse(l[1]);
leftSight[SightRank(left)]... | [["-", 0, 28, 0, 16, 31, 16, 12, 252, 0, 104], ["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 62]] | 8 | 182 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
class Myon {
public Myon() {}
public static int Main() {
new Myon().run();
return 0;
}
int[] vy = new int[] { 1, 0, -1, 0 };
int[] vx = new int[] { 0, 1, 0, -1 };
int h, w;
void run() {
Scanner cin ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
class Myon {
public Myon() {}
public static int Main() {
new Myon().run();
return 0;
}
int[] vy = new int[] { 1, 0, -1, 0 };
int[] vx = new int[] { 0, 1, 0, -1 };
int h, w;
void run() {
Scanner cin ... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 760 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static int ryoukin(int taiseki, int weight) {
if (taiseki <= 60 && weight <= 2) {
return 600;
}
if (taiseki <= 80 && weight <= 5) {
return 800;
}
if (tais... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static int ryoukin(int taiseki, int weight) {
if (taiseki <= 60 && weight <= 2) {
return 600;
}
if (taiseki <= 80 && weight <= 5) {
return 800;
}
if (tais... | [["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72]] | 8 | 297 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ.Volume1 {
public class SportMeet {
public static int Main() {
while (true) {
int team = int.Parse(Console.ReadLine());
if (team == 0) {
break;
}
// チーム数が5の場合→0,1,2,3,4なので
// ブ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ.Volume1 {
public class SportMeet {
public static int Main() {
while (true) {
int team = int.Parse(Console.ReadLine());
if (team == 0) {
break;
}
// チーム数が5の場合→0,1,2,3,4なので
// ブ... | [["-", 8, 196, 0, 210, 12, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 141, 22]] | 8 | 302 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication11 {
class Program {
static void Main(string[] args) { new Program().solve(); }
void solve() {
while (true) {
int num_length = int.Parse(Console.ReadLine());
if (num_length == 0) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication11 {
class Program {
static void Main(string[] args) { new Program().solve(); }
void solve() {
while (true) {
int num_length = int.Parse(Console.ReadLine());
if (num_length == 0) {
... | [["-", 0, 7, 8, 196, 0, 57, 75, 93, 0, 94], ["+", 0, 7, 8, 196, 0, 57, 75, 116, 0, 117]] | 8 | 235 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
static int[] combinationTable = new int[31];
public static void Main(String[] args) {
int dan;
initTable();
while ((dan = int.Parse(Console.ReadLine())) != 0) {
int num_co... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
static int[] combinationTable = new int[31];
public static void Main(String[] args) {
int dan;
initTable();
while ((dan = int.Parse(Console.ReadLine())) != 0) {
int num_co... | [["-", 3, 4, 0, 28, 0, 16, 12, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 12, 203]] | 8 | 178 |
using System;
namespace _0184 {
class Program {
static void Main(string[] args) {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
int[] X = new int[7];
for (int i = 0; i < n; i++) {
int now = int.Parse(Console.ReadLine());
if (now... | using System;
namespace _0184 {
class Program {
static void Main(string[] args) {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
int[] X = new int[7];
for (int i = 0; i < n; i++) {
int now = int.Parse(Console.ReadLine());
if (now... | [["-", 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], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 8 | 150 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0185 {
public class Program
{
public static void Main(string[] args) {
int[] primes = new int[1000001];
primes[2] = 1;
for (int i = 3; i < 1000000; i += 2) {
if (IsPrime(i))
primes[i] = 1;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0185 {
public class Program
{
public static void Main(string[] args) {
int[] primes = new int[1000001];
primes[2] = 1;
for (int i = 3; i < 1000000; i += 2) {
if (IsPrime(i))
primes[i] = 1;
... | [["-", 8, 196, 0, 7, 15, 16, 31, 204, 205, 22], ["-", 0, 7, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 0, 7, 15, 16, 31, 204, 206, 207, 0, 73]] | 8 | 538 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0187 {
public class Program
{
public const double EPS = 1e-10;
public static void Main(string[] args) {
while (true) {
int[] ls1 = RIntAr();
if (ls1.Sum() == 0)
break;
int[] ls2 = RIntAr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0187 {
public class Program
{
public const double EPS = 1e-10;
public static void Main(string[] args) {
while (true) {
int[] ls1 = RIntAr();
if (ls1.All(x => x == 0))
break;
int[] ls2 = ... | [["-", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["-", 0, 57, 15, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 15, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 213, 3, 4, 0, 25... | 8 | 2,609 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0188 {
public class Program
{
public static void Main(string[] args) {
while (true) {
int n = RInt();
if (n == 0)
break;
int[] nums = new int[n];
for (int i = 0; i < n; i++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0188 {
public class Program
{
public static void Main(string[] args) {
while (true) {
int n = RInt();
if (n == 0)
break;
int[] nums = new int[n];
for (int i = 0; i < n; i++) {
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 52, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 52, 8, 196, 0, 52, 15, 16, 17, 20]] | 8 | 477 |
using System;
using System.Linq;
namespace _0195 {
class Program {
static void Main(string[] args) {
while (true) {
int[] shop = new int[5];
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (x[0] == 0 && x[1] == 0) {
break;
}
shop[0] = x[0] + x[1];
... | using System;
using System.Linq;
namespace _0195 {
class Program {
static void Main(string[] args) {
while (true) {
int[] shop = new int[5];
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (x[0] == 0 && x[1] == 0) {
break;
}
shop[0] = x[0] + x[1];
... | [["-", 0, 52, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 52, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 354 |
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) {
string[] strs = line.Split(' ');
int n0 = int.Parse(strs[0]);
int n... | 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) {
string[] strs = line.Split(' ');
int n0 = int.Parse(strs[0]);
int n... | [["-", 3, 4, 0, 28, 0, 16, 12, 204, 205, 22], ["-", 0, 28, 0, 16, 12, 204, 206, 207, 0, 70], ["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 28, 0, 16, 12, 204, 206, 207, 0, 73], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 228 |
using System.Collections.Generic;
using System.Linq;
using System;
public class C {
public const int INF = 99999;
public const int MINF = -99999;
}
public class Hello {
public static void Main() {
while (true) {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
... | using System.Collections.Generic;
using System.Linq;
using System;
public class C {
public const int INF = 99999;
public const int MINF = -99999;
}
public class Hello {
public static void Main() {
while (true) {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
... | [["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 1,017 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ {
class Program {
public static void Main(string[] args) {
var pmax = 1000000;
var primes = new bool[pmax + 1];
var maxsq = (int)Math.Sqrt(pmax);
for (var i = 2; i <= pmax; i++)
primes[i] = true;
for (var i = 2... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ {
class Program {
public static void Main(string[] args) {
var pmax = 1000000;
var primes = new bool[pmax + 1];
var maxsq = (int)Math.Sqrt(pmax);
for (var i = 2; i <= pmax; i++)
primes[i] = true;
for (var i = 2... | [["-", 0, 52, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 52, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 338 |
using System;
namespace AOJ {
class AOJ0202 {
static void Main(string[] args) {
var ps = Prims(1000000);
for (;;) {
var line = Console.ReadLine().Split();
var n = int.Parse(line[0]);
var m = int.Parse(line[1]);
if (n == 0 && m == 0)
break;
var xs = new int[n];
fo... | using System;
namespace AOJ {
class AOJ0202 {
static void Main(string[] args) {
var ps = Prims(1000000);
for (;;) {
var line = Console.ReadLine().Split();
var n = int.Parse(line[0]);
var m = int.Parse(line[1]);
if (n == 0 && m == 0)
break;
var xs = new int[n];
fo... | [["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 344 |
using System;
class Program {
static void Main(string[] args) {
// bool ehjejh = true;
while (true) {
int a = int.Parse(Console.ReadLine());
if (a == 0) {
break;
}
string s = Convert.ToString((a), 8);
s = s.Replace("7", "9");
s = s.Replace("6", "8");
s = s.R... | using System;
class Program {
static void Main(string[] args) {
while (true) {
int a = int.Parse(Console.ReadLine());
if (a == 0) {
break;
}
string s = Convert.ToString((a), 8);
s = s.Replace("7", "9");
s = s.Replace("6", "8");
s = s.Replace("5", "7");
s = ... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 130 |
using System;
namespace _0209 {
class Program {
static int n, m;
static int[,] w = new int[100, 100];
static int[,] p = new int[50, 50];
static int[,] p90 = new int[50, 50];
static int[,] p180 = new int[50, 50];
static int[,] p270 = new int[50, 50];
static void Main(string[] args) {
while (ReadInput(... | using System;
namespace _0209 {
class Program {
static int n, m;
static int[,] w = new int[100, 100];
static int[,] p = new int[50, 50];
static int[,] p90 = new int[50, 50];
static int[,] p180 = new int[50, 50];
static int[,] p270 = new int[50, 50];
static void Main(string[] args) {
while (ReadInput(... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 670 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
static int sengetsu = 4280;
static int kihon = 1150;
public static void Main(String[] args) {
int n;
while ((n = int.Parse(Console.ReadLine())) != -1) {
int ryokin = calc_ryok... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
static int sengetsu = 4280;
static int kihon = 1150;
public static void Main(String[] args) {
int n;
while ((n = int.Parse(Console.ReadLine())) != -1) {
int ryokin = calc_ryok... | [["-", 0, 57, 75, 57, 75, 57, 75, 57, 0, 121], ["-", 0, 57, 75, 57, 75, 57, 75, 57, 0, 24], ["-", 75, 57, 75, 57, 75, 57, 15, 16, 31, 22], ["-", 75, 57, 75, 57, 75, 57, 15, 16, 17, 19], ["-", 75, 57, 75, 57, 75, 57, 15, 16, 12, 203], ["-", 0, 57, 75, 57, 75, 57, 75, 57, 0, 25]] | 8 | 198 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication15 {
class Program {
static void Main(string[] args) {
while (true) {
int a = int.Parse(Console.ReadLine());
if (a == -1)
break;
if (a < 11)
Console.WriteLine(4280 -... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication15 {
class Program {
static void Main(string[] args) {
while (true) {
int a = int.Parse(Console.ReadLine());
if (a == -1)
break;
if (a < 11)
Console.WriteLine(4280 -... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22]] | 8 | 170 |
using System;
namespace _0216 {
class Program {
static void Main(string[] args) {
int k = 4280;
int y = 0;
while (true) {
int a = int.Parse(Console.ReadLine());
if (a == -1) {
break;
}
if (a <= 10) {
y = 1150;
} else if (a <= 20) {
y = 1150 + (a - 10)... | using System;
namespace _0216 {
class Program {
static void Main(string[] args) {
int k = 4280;
int y = 0;
while (true) {
int a = int.Parse(Console.ReadLine());
if (a == -1) {
break;
}
if (a <= 10) {
y = 1150;
} else if (a <= 20) {
y = 1150 + (a - 10)... | [["-", 0, 195, 8, 196, 0, 52, 8, 196, 0, 46], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 46]] | 8 | 148 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static void Main(String[] args) {
int n;
while ((n = int.Parse(Console.ReadLine())) != 0) {
int max_dist = -1;
int num_patient = -1;
for (int i = 0; i < n; i++) ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static void Main(String[] args) {
int n;
while ((n = int.Parse(Console.ReadLine())) != 0) {
int max_dist = -1;
int num_patient = -1;
for (int i = 0; i < n; i++) ... | [["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 164 |
using System;
using System.Linq;
namespace _0217 {
class Program {
static void Main(string[] args) {
while (true) {
int asd = Int32.Parse(Console.ReadLine());
if (asd == 0) {
break;
}
int[] kanja = new int[asd];
int[] yobi = new int[asd * 2];
for (int i = 0; i < asd; i... | using System;
using System.Linq;
namespace _0217 {
class Program {
static void Main(string[] args) {
while (true) {
int asd = Int32.Parse(Console.ReadLine());
if (asd == 0) {
break;
}
int[] kanja = new int[asd];
int[] yobi = new int[asd * 2];
for (int i = 0; i < asd; i... | [["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 232 |
using System;
using System.Linq;
public class Program {
public static void Main(string[] aksjdsk) {
// code goes here
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
for (int i = 0; i < n; i++) {
int[] a = Console.ReadLine().Split().Selec... | using System;
using System.Linq;
public class Program {
public static void Main(string[] aksjdsk) {
// code goes here
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
for (int i = 0; i < n; i++) {
int[] a = Console.ReadLine().Split().Selec... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]] | 8 | 259 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0219 {
class Program {
static void Main(string[] args) {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
int[] a = new int[9];
for (int i = 0; i < n; ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0219 {
class Program {
static void Main(string[] args) {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
int[] a = new int[10];
for (int i = 0; i < n;... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["-", 0, 52, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 205, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 0, 131], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 141, 22], ["-", 0, 7, 8, 196, 0, 7, 26, 223, ... | 8 | 189 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sc = Scanner;
class Program {
static void Main(string[] args) {
var q = new AnswerCollecter<string>();
while (true) {
int n, m;
int[][] jem, move;
int x, y;
int count = 0;
n = sc.NextInt... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sc = Scanner;
class Program {
static void Main(string[] args) {
var q = new AnswerCollecter<string>();
while (true) {
int n, m;
int[][] jem, move;
int x, y;
int count = 0;
n = sc.NextInt... | [["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 1,072 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
static bool[,] remainJ = new bool[21, 21];
static int robX = 10, robY = 10;
public static void roboMv(string dir, int n) {
char ch = dir[0];
for (int i = 0; i < n; i++) {
if ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
static bool[,] remainJ = new bool[21, 21];
static int robX = 10, robY = 10;
public static void roboMv(string dir, int n) {
char ch = dir[0];
for (int i = 0; i < n; i++) {
if ... | [["-", 0, 57, 75, 57, 15, 16, 12, 252, 0, 253], ["+", 0, 57, 75, 57, 15, 16, 12, 252, 0, 253], ["-", 75, 57, 75, 57, 15, 16, 12, 252, 0, 253], ["+", 75, 57, 75, 57, 15, 16, 12, 252, 0, 253]] | 8 | 446 |
using System;
using System.Linq;
namespace Make_Purse_Light {
class Program {
private static void Main(string[] args) {
int n, k, i = 0, q, j;
int[] m = new int[4], x = new int[4], y = new int[4],
p = new int[] { 10, 50, 100, 500 };
while (true) {
n = int.Parse(Console.ReadLine());
... | using System;
using System.Linq;
namespace Make_Purse_Light {
class Program {
private static void Main(string[] args) {
int n, k, i = 0, q, j;
int[] m = new int[4], x = new int[4], y = new int[4],
p = new int[] { 10, 50, 100, 500 };
while (true) {
n = int.Parse(Console.ReadLine());
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 44], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 309 |
using System;
class P {
static void Main(string[] args) {
bool a = false;
int b, c, d, e;
int[] f, g = new int[4], h = new int[4], i = new int[] { 10, 50, 100, 500 };
while (true) {
b = int.Parse(Console.ReadLine());
if (b == 0) {
break;
}
if (!a) {
a = !a;
... | using System;
class P {
static void Main(string[] args) {
bool a = false;
int b, c, d, e;
int[] f, g = new int[4], h = new int[4], i = new int[] { 10, 50, 100, 500 };
while (true) {
b = int.Parse(Console.ReadLine());
if (b == 0) {
break;
}
if (!a) {
a = !a;
... | [["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32]] | 8 | 276 |
using System;
class Program {
static void Main(string[] args) {
bool isFirst = true;
int[] coins = new int[] { 10, 50, 100, 500 };
int bill, ownedMoney, changeMoney;
int[] ownedCoins = new int[4], changeCoins = new int[4],
paymentCoins = new int[4];
while (true) {
bill = int.Parse... | using System;
class Program {
static void Main(string[] args) {
bool isFirst = true;
int[] coins = new int[] { 10, 50, 100, 500 };
int bill, ownedMoney, changeMoney;
int[] ownedCoins = new int[4], changeCoins = new int[4],
paymentCoins = new int[4];
while (true) {
bill = int.Parse... | [["-", 0, 52, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 52, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 276 |
using System;
class Program {
static void Main(string[] args) {
bool isFirst = true;
int[] coins = new int[] { 10, 50, 100, 500 };
int range = coins.Length;
int bill, ownedMoney, changeMoney;
int[] ownedCoins = new int[range], changeCoins = new int[range],
paymentCoins = new int[range];
... | using System;
class Program {
static void Main(string[] args) {
bool isFirst = true;
int[] coins = new int[] { 10, 50, 100, 500 };
int range = coins.Length;
int bill, ownedMoney, changeMoney;
int[] ownedCoins = new int[range], changeCoins = new int[range],
paymentCoins = new int[range];
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 52, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 52, 8, 196, 0, 7, 15, 16, 17, 20], ["-", 0, 52, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 52, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 52, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0,... | 8 | 283 |
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Linq;
using System.Text;
class Program {
static bool[] used;
static int[] cells;
static int ans;
static int[] nums;
static void Main(string[] args) {
while (true) {
string[] s = Console.ReadLine().Spl... | using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Linq;
using System.Text;
class Program {
static bool[] used;
static int[] cells;
static int ans;
static int[] nums;
static void Main(string[] args) {
while (true) {
string[] s = Console.ReadLine().Spl... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 57, 64, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 57, 64, 196, 0, 7, 15, 16, 17, 19]] | 8 | 525 |
using System;
namespace _2101 {
class Program {
static void Main(string[] args) {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
int x = 1;
bool b = true;
if (n == 1) {
Console.WriteLine("deficient number");
}
for (int ... | using System;
namespace _2101 {
class Program {
static void Main(string[] args) {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
int x = 1;
bool b = true;
if (n == 1) {
Console.WriteLine("deficient number");
} else {
... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 95], ["+", 0, 52, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 75, 196, 0, 57, 75, 57, 75, 196, 0, 46]] | 8 | 191 |
/* Rummy (????????????????????????????????´???) */
using System;
namespace rummy_card {
class Program {
static void Main(string[] args) {
int n = ReadNumber();
for (int i = 0; i < n; i++) {
Hand rummyHand = new Hand();
Console.WriteLine(rummyHand.IsWinner() ? "1" : "0");
}
}
/// <summ... | /* Rummy (????????????????????????????????´???) */
using System;
namespace rummy_card {
class Program {
static void Main(string[] args) {
int n = ReadNumber();
for (int i = 0; i < n; i++) {
Hand rummyHand = new Hand();
Console.WriteLine(rummyHand.IsWinner() ? "1" : "0");
}
}
/// <summ... | [["-", 0, 57, 64, 196, 0, 1, 0, 213, 63, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]] | 8 | 895 |
#define TEST
#undef TEST //実装時にはこれをコメントアウトしないようにすること
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sc = Scanner;
class Program {
static void Main(string[] args) {
var q = new AnswerCollecter<int>();
while (true) {
int n = sc.NextInt();
if (n == 0)
... | #define TEST
#undef TEST //実装時にはこれをコメントアウトしないようにすること
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sc = Scanner;
class Program {
static void Main(string[] args) {
var q = new AnswerCollecter<int>();
while (true) {
int n = sc.NextInt();
if (n == 0)
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 764 |
using System;
namespace TestProject {
class MainClass {
public static void Main(string[] args) {
string s = Console.ReadLine();
int len = s.Length;
int count = 0;
for (int i = 0; i <= len / 2; i++) {
switch (s[i]) {
case '(':
if (s[len - 1 - i] != ')')
count++;
b... | using System;
namespace TestProject {
class MainClass {
public static void Main(string[] args) {
string s = Console.ReadLine();
int len = s.Length;
int count = 0;
for (int i = 0; i < len / 2; i++) {
switch (s[i]) {
case '(':
if (s[len - 1 - i] != ')')
count++;
br... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18]] | 8 | 197 |
using System;
public class Hello {
public static void Main() {
var f = new int[100003];
var fsum = new int[100003];
var n = int.Parse(Console.ReadLine().Trim());
var bmax = 0;
for (int i = 0; i < n; i++) {
string[] line = Console.ReadLine().Trim().Split(' ');
var a = int.Parse(line[0]... | using System;
public class Hello {
public static void Main() {
var f = new int[100003];
var fsum = new int[100003];
var n = int.Parse(Console.ReadLine().Trim());
var bmax = 0;
for (int i = 0; i < n; i++) {
string[] line = Console.ReadLine().Trim().Split(' ');
var a = int.Parse(line[0]... | [["+", 0, 7, 8, 57, 15, 16, 31, 16, 17, 72], ["+", 0, 7, 8, 57, 15, 16, 31, 16, 12, 203]] | 8 | 236 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression,
System.Linq.Expressions.ParameterExpression,
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression,
System.Linq.Expressions.ParameterExpression,
... | [["+", 64, 37, 0, 16, 31, 16, 31, 16, 17, 109], ["+", 64, 37, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 64, 37, 0, 16, 17, 109], ["+", 8, 196, 0, 57, 64, 37, 0, 16, 12, 22]] | 8 | 3,981 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using CHY72;
namespace CHY72 {
public class PointXY {
public int X, Y;
public int SQLength() { return X * X + Y * Y; }
public bool Flag = false;
public PointXY(int _X, int _Y) {
X = _X;
Y = _Y;
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using CHY72;
namespace CHY72 {
public class PointXY {
public int X, Y;
public int SQLength() { return X * X + Y * Y; }
public bool Flag = false;
public PointXY(int _X, int _Y) {
X = _X;
Y = _Y;
}
... | [["-", 0, 57, 75, 57, 64, 1, 0, 11, 12, 203], ["+", 0, 57, 75, 57, 64, 1, 0, 11, 12, 203], ["-", 75, 37, 0, 74, 51, 23, 0, 16, 12, 203], ["+", 75, 37, 0, 74, 51, 23, 0, 16, 12, 203]] | 8 | 975 |
using System;
public class AOJ2522 {
static void Main() {
string pass = Console.ReadLine();
bool hd = false, hu = false, hl = false;
foreach (char ss in pass) {
if (char.IsDigit(ss))
hd = true;
else if (char.IsLower(ss))
hl = true;
else if (char.IsUpper(ss))
hu =... | using System;
public class AOJ2522 {
static void Main() {
string pass = Console.ReadLine();
bool hd = false, hu = false, hl = false;
foreach (char ss in pass) {
if (char.IsDigit(ss))
hd = true;
else if (char.IsLower(ss))
hl = true;
else if (char.IsUpper(ss))
hu =... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 120 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.