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;
public class Hello {
public static void Main() {
while (true) {
var n = int.Parse(Console.ReadLine().Trim());
if (n == 0)
break;
var a = new int[n];
for (int i = 0; i < n; i++)
a[i] = int.Parse(Console.ReadLine().Trim());
var t = int.Parse(Console.ReadL... | using System;
public class Hello {
public static void Main() {
while (true) {
var n = int.Parse(Console.ReadLine().Trim());
if (n == 0)
break;
var a = new int[n];
for (int i = 0; i < n; i++)
a[i] = int.Parse(Console.ReadLine().Trim());
var t = int.Parse(Console.ReadL... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0,... | 8 | 234 |
using System;
using System.Collections.Generic;
using System.Linq;
class PaizaSample {
static void Main() {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
List<int> list = new List<int>();
for (int i = 0; i < n; i++) {
list.Add(int.Par... | using System;
using System.Collections.Generic;
using System.Linq;
class PaizaSample {
static void Main() {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
List<int> list = new List<int>();
for (int i = 0; i < n; i++) {
list.Add(int.Par... | [["+", 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, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 20... | 8 | 224 |
using System.Collections.Generic;
using System.Linq;
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 te = new int[n, 3];
var d... | using System.Collections.Generic;
using System.Linq;
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 te = new int[n, 3];
var d... | [["-", 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, 230, 0, 228], ["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 18], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 39, 236,... | 8 | 607 |
using static System.Math;
using System;
public class Hello {
public static void Main() {
while (true) {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var m = int.Parse(line[1]);
if (n == 0 && m == 0)
break;
var f = new double[n, n];
... | using static System.Math;
using System;
public class Hello {
public static void Main() {
while (true) {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var m = int.Parse(line[1]);
if (n == 0 && m == 0)
break;
var f = new double[n, n];
... | [["-", 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, 250], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, ... | 8 | 388 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ.Volume2 {
public class TravelingAlone {
private static int station_cnt;
private static int[,] price;
private static int[,] time;
private struct Station {
public int No;
public int Cost;
public bool Con... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ.Volume2 {
public class TravelingAlone {
private static int station_cnt;
private static int[,] price;
private static int[,] time;
private struct Station {
public int No;
public int Cost;
public bool Con... | [["+", 0, 57, 15, 16, 31, 214, 205, 204, 205, 22], ["+", 15, 16, 31, 214, 205, 204, 206, 207, 0, 70], ["+", 31, 214, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 214, 205, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 7, 8, 196, 0,... | 8 | 725 |
using System;
using System.Linq;
using System.Collections.Generic;
public class Hello {
public static bool[] Primes;
public static bool[] Checked;
public static void Main() {
// Make Primes
Primes = Enumerable.Repeat(true, Consts.MAXBADGET + 1).ToArray();
for (int i = 0; i < Primes.Length; i++) {
... | using System;
using System.Linq;
using System.Collections.Generic;
public class Hello {
public static bool[] Primes;
public static bool[] Checked;
public static void Main() {
// Make Primes
Primes = Enumerable.Repeat(true, Consts.MAXBADGET + 1).ToArray();
for (int i = 0; i < Primes.Length; i++) {
... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 93, 0, 94], ... | 8 | 438 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
static int[] syohai = new int[5];
public static void Main(String[] args) {
int n;
while ((n = int.Parse(Console.ReadLine())) != 0) {
int[] hands = new int[5];
int[] hand_ap... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
static int[] syohai = new int[5];
public static void Main(String[] args) {
int n;
while ((n = int.Parse(Console.ReadLine())) != 0) {
int[] hands = new int[5];
// How many t... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203]] | 8 | 385 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication74 {
class Program {
static void Main(string[] args) {
while (true) {
int[] a = new int[5];
int[] ans = new int[5];
for (int tu = 0; tu < 5; tu++) {
a[tu] = int.Parse(Consol... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication74 {
class Program {
static void Main(string[] args) {
while (true) {
int[] a = new int[5];
int[] ans = new int[5];
for (int tu = 0; tu < 5; tu++) {
a[tu] = int.Parse(Consol... | [["-", 8, 196, 0, 57, 64, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 12, 203], ["-", 8, 196, 0, 57, 75, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 75, 1, 0, 11, 12, 203]] | 8 | 406 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
while (true) {
int ans = -1;
int a = int.Parse(Console.ReadLine());
if (a == 0) {
break;
}
int go_to = 0;
for (int i = 0; i < 12; i++) {
int[] s... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0206 {
class Program {
static void Main(string[] args) {
while (true) {
bool count = false;
int ans = -1;
int a = int.Parse(Console.ReadLine());
if (a == 0) {
break;
}
int g... | [["+", 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], ["+", 36, 36, 36, 36, 0, 208, 0, 209, 0, 256], ["+", 36, 36, 36, 36, 0, 208, ... | 8 | 175 |
using System;
class Program {
static void Main() {
var n = int.Parse(Console.ReadLine());
for (var i = 0; i < n; i++) {
var l = Console.ReadLine().Split(' ');
var pm = int.Parse(l[0]);
var pe = int.Parse(l[1]);
var pj = int.Parse(l[2]);
Console.WriteLine(GetClass(pm, pe, pj));... | using System;
class Program {
static void Main() {
for (string line; (line = Console.ReadLine()) != "0";) {
var n = int.Parse(line);
for (var i = 0; i < n; i++) {
var l = Console.ReadLine().Split(' ');
var pm = int.Parse(l[0]);
var pe = int.Parse(l[1]);
var pj = int.P... | [["+", 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], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["+", 8, 196, 0, 7, 15, 16, 31, 23, 0, 24], ["+", 0, 7, 15, 16, 31, 23, 0, 11, 31, 22], ["+",... | 8 | 213 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication67 {
class Program {
static void Main(string[] args) {
while (true) {
int a = int.Parse(Console.ReadLine());
if (a == 0)
break;
string c = "";
for (int b = 0; b < a; b... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication67 {
class Program {
static void Main(string[] args) {
while (true) {
int a = int.Parse(Console.ReadLine());
if (a == 0)
break;
string c = "";
for (int b = 0; b < a; b... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], [... | 8 | 305 |
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[] uriage = new int[10];
for (int i = 0; i < n; i++) {
uriage[in... | 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[] uriage = new int[10];
for (int i = 0; i < n; i++) {
uriage[in... | [["-", 0, 52, 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, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 62], ["-", 8, 196, 0, 52, 8, 196, 0, 197, 0, 35], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22... | 8 | 180 |
using System;
namespace _0219 {
class Program {
static void Main(string[] args) {
int[] kosuu = new int[10];
while (true) {
int kaisuu = int.Parse(Console.ReadLine());
if (kaisuu == 0) {
break;
}
for (int i = 0; i < kaisuu; i++) {
kosuu[int.Parse(Console.ReadLine())]++;... | using System;
namespace _0219 {
class Program {
static void Main(string[] args) {
while (true) {
int[] kosuu = new int[10];
int kaisuu = int.Parse(Console.ReadLine());
if (kaisuu == 0) {
break;
}
for (int i = 0; i < kaisuu; i++) {
kosuu[int.Parse(Console.ReadLine())]+... | [["+", 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, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["-", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["... | 8 | 167 |
using System;
namespace AOJ.Volume0 {
public class LeapYear {
public static void Main() {
while (true) {
var input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
if (a <= 0 || b <= 0) {
break;
}
// 最初のうるう... | using System;
namespace AOJ.Volume0 {
public class LeapYear {
public static void Main() {
bool first = true;
while (true) {
var input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
if (a <= 0 || b <= 0) {
break;
... | [["+", 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 | 237 |
using System;
namespace AOJ.Volume0 {
public class SurfSmeltFishingContest {
public static void Main() {
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input)) {
break;
}
int line_num = int.Parse(input);
int id = line_num + 1;
... | using System;
namespace AOJ.Volume0 {
public class SurfSmeltFishingContest {
public static void Main() {
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input)) {
break;
}
int line_num = int.Parse(input);
int id = line_num + 1;
... | [["+", 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], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], [... | 8 | 176 |
using System;
using System.Linq;
namespace _0095 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] fish = new int[n];
for (int i = 0; i < n; i++) {
string s = Console.ReadLine();
if (s[s.Length - 1] == ' ')
s = s.Substring(0, s.Length - 1... | using System;
using System.Linq;
namespace _0095 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] fish = new int[n];
for (int i = 0; i < n; i++) {
string s = Console.ReadLine();
if (s[s.Length - 1] == ' ')
s = s.Substring(0, s.Length - 1... | [["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 31, 203], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 31, 203], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 17, 33], ["+", 0, ... | 8 | 171 |
using System.Linq;
using System.Collections.Generic;
using System;
public class Shain {
public int bango { get; set; }
public long uriage { get; set; }
}
public class hello {
public static void Main() {
while (true) {
var n = int.Parse(Console.ReadLine().Trim());
if (n == 0)
break;
... | using System.Linq;
using System.Collections.Generic;
using System;
public class Shain {
public int bango { get; set; }
public long uriage { get; set; }
}
public class hello {
public static void Main() {
while (true) {
var n = int.Parse(Console.ReadLine().Trim());
if (n == 0)
break;
... | [["-", 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, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["-", 3, 4, 0, 28, 0, 218, 8, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 218, 8, 214, 0, 131... | 8 | 276 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PokerPlaying {
class Player {
static void Main(string[] args) {
while (true) {
string stsize = Console.ReadLine();
if (stsize == "") {
return;
}
int size = int.Parse(stsize);
int... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PokerPlaying {
class Player {
static void Main(string[] args) {
while (true) {
string stsize = Console.ReadLine();
int size = int.Parse(stsize);
if (size == 0) {
return;
}
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], ["-", 8, 196, 0, 57, 15, 16, 12, 5, 0, 62], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["-", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 8... | 8 | 479 |
using System;
public class p0102 {
p0102() {
string str;
string[] st;
int n;
int[,] a = new int[11, 11];
while ((str = Console.ReadLine()) != null && str != "0") {
n = int.Parse(str);
a[n, n] = 0;
for (int i = 0; i < n; ++i) {
st = (Console.ReadLine()).Split(' ');
... | using System;
public class p0102 {
p0102() {
string str;
string[] st;
int n;
int[,] a = new int[11, 11];
while ((str = Console.ReadLine()) != null && str != "0") {
n = int.Parse(str);
a[n, n] = 0;
for (int i = 0; i < n; ++i) {
st = (Console.ReadLine()).Split(' ');
... | [["-", 0, 52, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 52, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 8, 196, 0, 7, 8, 7, 15, 16, 17, 18], ["+", 8, 196, 0, 7, 8, 7, 15, 16, 17, 19], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 8, 1, 0, 11, 31, 204, 206, 207, 0, 21], ["+", 8, 1, 0, 11, 31, 204, 206, 207, 0, 21], ["+", ... | 8 | 299 |
using System;
namespace _0103 {
class Program {
static void Main(string[] args) {
int kaisuu = int.Parse(Console.ReadLine());
string now;
for (int i = 0; i < kaisuu; i++) {
int OUT = 0;
int point = 0;
bool one = false;
bool two = false;
bool three = false;
while (true)... | using System;
namespace _0103 {
class Program {
static void Main(string[] args) {
int kaisuu = int.Parse(Console.ReadLine());
string now;
for (int i = 0; i < kaisuu; i++) {
int OUT = 0;
int point = 0;
bool one = false;
bool two = false;
bool three = false;
while (true)... | [["-", 75, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 75, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 64, 196, 0, 1, 0, 11, 12, 211, 0, 146], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+... | 8 | 245 |
using System;
class Program {
static int Inning;
static int outs = 0, j;
static int[] Points;
static bool[] runner = new bool[3];
static int Case(string s) {
switch (s) {
case "HIT":
return 1;
case "HOMERUN":
return 2;
case "OUT":
return 3;
default:
return 0;
}
... | using System;
class Program {
static int Inning;
static int outs = 0, j;
static int[] Points;
static bool[] runner = new bool[3];
static int Case(string s) {
switch (s) {
case "HIT":
return 1;
case "HOMERUN":
return 2;
case "OUT":
return 3;
default:
return 0;
}
... | [["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["+", 0, 7, 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, 196, 0, 7, 8, 196, 0, 7, 0, 35], ["+", 0, 7... | 8 | 324 |
using System;
using System.Linq;
namespace Aizu {
public class OnlineJudge {
static void Main() {
for (string input; (input = Console.ReadLine()) != "0 0";) {
var s = input.Split().Select(q => int.Parse(q)).ToArray();
var b = Enumerable.Range(0, s[0])
.Select(q => Console.ReadLine()... | using System;
using System.Linq;
namespace Aizu {
public class OnlineJudge {
static void Main() {
for (string input; (input = Console.ReadLine()) != "0 0";) {
var s = input.Split().Select(q => int.Parse(q)).ToArray();
var b = Enumerable.Range(0, s[0])
.Select(q => Console.ReadLine()... | [["-", 15, 16, 31, 16, 31, 204, 205, 204, 205, 22], ["-", 31, 16, 31, 204, 205, 204, 206, 207, 0, 70], ["-", 205, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["-", 206, 207, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 206, 207, 0, 28, 0, 204, 206, 207, 0, 73], ["-", 31, 16, 31, 204... | 8 | 289 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PokerPlaying {
class Class2 {
static void Main(string[] args) {
while (true) {
string input = Console.ReadLine();
if (input == "0 0") {
return;
}
string[] lengthIdx = input.Split(' ');
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PokerPlaying {
class Class2 {
static void Main(string[] args) {
while (true) {
string input = Console.ReadLine();
if (input == "0 0") {
return;
}
string[] lengthIdx = input.Split(' ');
... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["+", 206, 207, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 204, 206, 207, ... | 8 | 464 |
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[] inputs = line.Split(' ').Select(int.Parse).ToArray();
if (inputs[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[] inputs = line.Split(' ').Select(int.Parse).ToArray();
if (inputs[0]... | [["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["-", 0, 16, 12, 213, 3, 4, 0, 28, 0,... | 8 | 345 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
StringBuilder sb = new StringBuilder();
while (true) {
int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
StringBuilder sb = new StringBuilder();
while (true) {
int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
... | [["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["-", 0, 195, 8, 196, 0, 197, 0, ... | 8 | 332 |
using System;
namespace AOJ {
class _0115 {
static int N = 3;
static void Decomp(double[,] m) {
double p;
for (int k = 0; k < N; k++) {
for (int i = k + 1; i < N; i++) {
p = m[i, k] / m[k, k];
for (int j = k + 1; j < N; j++)
m[i, j] -= p * m[k, j];
m[i, k] = p;
... | using System;
namespace AOJ {
class _0115 {
static int N = 3;
static void Decomp(double[,] m) {
double p;
for (int k = 0; k < N; k++) {
for (int i = k + 1; i < N; i++) {
p = m[i, k] / m[k, k];
for (int j = k + 1; j < N; j++)
m[i, j] -= p * m[k, j];
m[i, k] = p;
... | [["+", 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, 23, 0, 24], ["+", 0, 212, 0, 23, 0, 16, 31, 16, 31, 203], ["+", 0, 212, 0, 23, 0, 16, 31, 16, 17, 19], ["+", 0, 16, 31, 16, 12, 16, 31, 204, 205... | 8 | 1,077 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static void Main(String[] args) {
int w, h;
while (true) {
String h_w_line = Console.ReadLine();
h = int.Parse(h_w_line.Split(' ')[0]);
w = int.Parse(h_w_line.Sp... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static void Main(String[] args) {
int w, h;
while (true) {
String h_w_line = Console.ReadLine();
// Console.WriteLine(h_w_line);
h = int.Parse(h_w_line.Split(' '... | [["-", 8, 196, 0, 7, 15, 16, 12, 214, 141, 22], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 7, 15, 16, 12, 213, 3, 4, 0, 24], ["+", 15, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 7, 15, 16, 12, 213, 3, 4, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["-", ... | 8 | 541 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace a {
class Program {
static void Main() {
var ab = Console.ReadLine().Split().Select(double.Parse).ToArray();
double a = ab[0];
double b = ab[1];
if (a < 35.50 && b < 71.00)
Console.WriteLine("AAA")... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace a {
class Program {
static void Main() {
string line;
while ((line = Console.ReadLine()) != null) {
var ab = line.Split().Select(double.Parse).ToArray();
double a = ab[0];
double b = ab[1];
... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 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], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52,... | 8 | 224 |
using System;
using System.Linq;
namespace _0123 {
class Program {
static void Main(string[] args) {
while (true) {
string s = Console.ReadLine();
if (s == null) {
break;
}
double[] x = s.Split().Select(double.Parse).ToArray();
if (x[0] > 35.5 && x[1] > 71) {
Console... | using System;
using System.Linq;
namespace _0123 {
class Program {
static void Main(string[] args) {
while (true) {
string s = Console.ReadLine();
if (s == null) {
break;
}
double[] x = s.Split().Select(double.Parse).ToArray();
if (x[0] < 35.5 && x[1] < 71) {
Console... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 47], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 18], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 47... | 8 | 281 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication11 {
class Program {
readonly double[] stdOn500 = new double[] { 35.5, 37.5, 40, 43, 50, 55, 70 };
readonly double[] stdOn1000 = new double[] { 71, 77, 83, 89, 105, 116, 148 };
readonly string[] rank... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication11 {
class Program {
readonly double[] stdOn500 = new double[] { 35.5, 37.5, 40, 43, 50, 55, 70 };
readonly double[] stdOn1000 = new double[] { 71, 77, 83, 89, 105, 116, 148 };
readonly string[] rank... | [["+", 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 | 287 |
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;
}
team[... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test1 {
class ClassMain {
public static void Main(String[] args) {
string line;
bool blflag = false;
while ((line = Console.ReadLine()) != null) {
int n = int.Parse(line);
if (n == 0) {
b... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, ... | 8 | 330 |
using System;
namespace Aizu {
class OnlineJudge {
public static void Main() {
string input;
while ((input = Console.ReadLine()) != null) {
if (input.Length % 2 == 1) {
Console.WriteLine("NA");
} else {
char[] output = new char[input.Length / 2];
bool success = true;
... | using System;
namespace Aizu {
class OnlineJudge {
public static void Main() {
string input;
while ((input = Console.ReadLine()) != null) {
if (input.Length % 2 == 1) {
Console.WriteLine("NA");
} else {
char[] output = new char[input.Length / 2];
bool success = true;
... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 31, 204, 205, 22], ["+", 31, 23, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 23, 0, 16, 31, 204, 206, 207, 0,... | 8 | 272 |
using System;
using System.Collections.Generic;
using System.Linq;
class PaizaSample {
static void Main() {
string input;
while ((input = Console.ReadLine()) != null) {
if (input.Length % 2 != 0) {
Console.WriteLine("NA");
continue;
}
char[] ar = { '.', '?', '!', ' ' };
... | using System;
using System.Collections.Generic;
using System.Linq;
class PaizaSample {
static void Main() {
string input;
while ((input = Console.ReadLine()) != null) {
if (input.Length % 2 != 0) {
Console.WriteLine("NA");
continue;
}
char[] ar = { '.', '?', '!', ' ' };
... | [["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16,... | 8 | 257 |
using System;
public class Hello {
public static void Main() {
var m = "abcdefghijklmnopqrstuvwxyz.?! ";
var p = 0;
var ct = new char[6, 5];
for (int i = 0; i < 6; i++)
for (int j = 0; j < 5; j++)
ct[i, j] = m[p++];
string line;
for (; (line = Console.ReadLine()) != null;) {
... | using System;
public class Hello {
public static void Main() {
var m = "abcdefghijklmnopqrstuvwxyz.?! ";
var p = 0;
var ct = new char[6, 5];
for (int i = 0; i < 6; i++)
for (int j = 0; j < 5; j++)
ct[i, j] = m[p++];
string line;
for (; (line = Console.ReadLine()) != null;) {
... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 139], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]] | 8 | 287 |
using System;
class aoj {
static void Main() {
char[,] a = new char[8, 8];
for (int i = 0; i < 8; i++) {
string u = Console.ReadLine();
for (int j = 0; j < 8; j++)
a[i, j] = u[j];
}
Console.WriteLine("90");
for (int i = 0; i < 8; i++) {
for (int j = 7; j >= 0; j--) {
... | using System;
class aoj {
static void Main() {
char[,] a = new char[8, 8];
for (int i = 0; i < 8; i++) {
string u = Console.ReadLine();
for (int j = 0; j < 8; j++)
a[i, j] = u[j];
}
Console.WriteLine("90");
for (int i = 0; i < 8; i++) {
for (int j = 7; j >= 0; j--) {
... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 21], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 21], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22]] | 8 | 256 |
using System;
namespace _0133 {
class Program {
static void Main(string[] args) {
char[,] x = new char[8, 8];
for (int i = 0; i < 8; i++) {
string s = Console.ReadLine();
for (int j = 0; j < 8; j++) {
x[i, j] = s[j];
}
}
Console.WriteLine("90");
for (int j = 0; j < 8; j+... | using System;
namespace _0133 {
class Program {
static void Main(string[] args) {
char[,] x = new char[8, 8];
for (int i = 0; i < 8; i++) {
string s = Console.ReadLine();
for (int j = 0; j < 8; j++) {
x[i, j] = s[j];
}
}
Console.WriteLine("90");
for (int j = 0; j < 8; j+... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 20], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 7, 26, 223, 0, 68], ["+", 0, 7... | 8 | 272 |
using System;
namespace AIZUJudge {
class EquisionSolver {
static void Main(string[] args) { new EquisionSolver().solve(); }
void solve() {
string[,] map = new string[8, 8];
for (int i = 0; i < map.GetLength(0); i++) {
string line = Console.ReadLine();
for (int j = 0; j < map.GetLength(1); j++... | using System;
namespace AIZUJudge {
class EquisionSolver {
static void Main(string[] args) { new EquisionSolver().solve(); }
void solve() {
string[,] map = new string[8, 8];
for (int i = 0; i < map.GetLength(0); i++) {
string line = Console.ReadLine();
for (int j = 0; j < map.GetLength(1); j++... | [["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 235, 8, 201, 0, 195, 39, 224, 39, 199], ["+", 0, 235, 8, 201, 0, 195, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39,... | 8 | 598 |
using System;
namespace AOJ.Volume1 {
public class ClockShortHandAndLongHand {
public static int Main() {
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
var input = Console.ReadLine().Split(':');
int hour = int.Parse(input[0]);
int minute = int.Parse(inpu... | using System;
namespace AOJ.Volume1 {
public class ClockShortHandAndLongHand {
public static int Main() {
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
var input = Console.ReadLine().Split(':');
int hour = int.Parse(input[0]);
int minute = int.Parse(inpu... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 31, 203], ["+", 64,... | 8 | 185 |
using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
for (int i = 0; i < n; i++) {
string[] line = Console.ReadLine().Trim().Split(':');
var hh = int.Parse(line[0]);
var mm = int.Parse(line[1]);
var rm = mm * 6d;
var rh = h... | using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
for (int i = 0; i < n; i++) {
string[] line = Console.ReadLine().Trim().Split(':');
var hh = int.Parse(line[0]);
var mm = int.Parse(line[1]);
var rm = mm * 6d;
var rh = h... | [["-", 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, 7, 8, 196, 0, 1, 0, 35]] | 8 | 205 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication40 {
class Program {
static void Main() {
int[] s = new int[6];
int a = int.Parse(Console.ReadLine());
for (int b = 0; b < a; b++) {
decimal c = decimal.Parse(Console.ReadLine());
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication40 {
class Program {
static void Main() {
int[] s = new int[7];
int a = int.Parse(Console.ReadLine());
for (int b = 0; b < a; b++) {
decimal c = decimal.Parse(Console.ReadLine());
... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203], ["-", 0, 57, 75, 57, 75, 57, 15, 16, 12, 203], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 12, 203], ["-", 75, 57, 75, 57, 75, 57, 1... | 8 | 224 |
using System;
using System.Collections.Generic;
// http://judge.u-aizu.ac.jp/onlinejudge/review.jsp
public class Test {
public static void Main() {
string[] str1 = Console.ReadLine().Split(' ');
int n = int.Parse(str1[0]);
int m = int.Parse(str1[1]);
// Console.WriteLine("改行あり N = {0} P = {1} Ai =... | using System;
using System.Collections.Generic;
// http://judge.u-aizu.ac.jp/onlinejudge/review.jsp
public class Test {
public static void Main() {
string[] str1 = Console.ReadLine().Split(' ');
int n = int.Parse(str1[0]);
int m = int.Parse(str1[1]);
// Console.WriteLine("改行あり N = {0} P = {1} Ai =... | [["-", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, ... | 8 | 132 |
using System;
using System.Linq;
namespace Aizu {
public class OnlineJudge {
static void Main() {
for (var input = string.Empty; (input = Console.ReadLine()) != "0 0";) {
Console.WriteLine(
Enumerable.Range(0, int.Parse(input.Split()[0]))
.Select(
_ => Console.Read... | using System;
using System.Linq;
namespace Aizu {
public class OnlineJudge {
static void Main() {
for (var input = string.Empty; (input = Console.ReadLine()) != "0 0";) {
Console.WriteLine(
Enumerable.Range(0, int.Parse(input.Split()[0]))
.Select(
_ => Console.Read... | [["-", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["-", 205, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 8, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 205, 213, 3, 4, 0, 28, 0, 218, 8, 22], ["-", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 28, 0, 218, 8,... | 8 | 139 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Globalization;
using System.Diagnostics;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
class Program {
static void Main() {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput()) { A... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Globalization;
using System.Diagnostics;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
class Program {
static void Main() {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput()) { A... | [["-", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["-", 15, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["-", 15, 16, 31, 16, 31, 23, 0, 16, 12, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 23, 0, 25], ["-", 64, 196, 0, 57, 64, 1, 0, 223, 0, 68], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 57, 64, 1, 0, 11, 12, 203], ["+... | 8 | 579 |
#pragma warning disable
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
// using Pair = System.Collections.Generic.KeyValuePair<int, int>;
class Program {
static void Main() {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false });
ne... | #pragma warning disable
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
// using Pair = System.Collections.Generic.KeyValuePair<int, int>;
class Program {
static void Main() {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false });
ne... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 46]] | 8 | 705 |
using System.Linq;
using System;
public class hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var m = int.Parse(line[1]);
line = Console.ReadLine().Trim().Split(' ');
var a = Array.ConvertAll(line, int.Parse);
line = Consol... | using System.Linq;
using System;
public class hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var m = int.Parse(line[1]);
line = Console.ReadLine().Trim().Split(' ');
var a = Array.ConvertAll(line, int.Parse);
line = Consol... | [["+", 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 | 234 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
class A {
static int[] F = new int[44];
public static void Main() {
int n = int.Parse(System.Console.ReadLine());
F[0] = 1;
F[1] = 1;
Console.WriteLine(fibonacchi(n));
}
static int fibonacchi(int n) {
if (... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
class A {
static int[] F = new int[45];
public static void Main() {
int n = int.Parse(System.Console.ReadLine());
F[0] = 1;
F[1] = 1;
Console.WriteLine(fibonacchi(n));
}
static int fibonacchi(int n) {
if (... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 0, 57, 64, 196, 0, 37, 0, 204, 205, 22], ["+", 64, 196, 0, 37, 0, 204, 206, 2... | 8 | 136 |
using System;
class A {
static void Main() {
while (true) {
int a = int.Parse(Console.ReadLine());
if (a == 0) {
break;
}
int ans = 0;
for (int i = 0; i < a / 4; i++) {
ans += int.Parse(Console.ReadLine());
}
}
}
} | using System;
class A {
static void Main() {
while (true) {
int a = int.Parse(Console.ReadLine());
if (a == 0) {
break;
}
int ans = 0;
for (int i = 0; i < a / 4; i++) {
ans += int.Parse(Console.ReadLine());
}
Console.WriteLine(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, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 8 | 80 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJcsharp {
class Program {
static void Main(string[] args) {
string str;
while ((str = Console.ReadLine()) != null) {
string[] text = str.Split(' ');
foreach (string tmp in text) {
Console.Wri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJcsharp {
class Program {
static void Main(string[] args) {
string str;
while ((str = Console.ReadLine()) != null) {
if (str == "END OF INPUT")
break;
string[] text = str.Split(' ');
fo... | [["+", 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], ["+", 8, 196, 0, 57, 15, 16, 12, 5, 0, 62], ["+", 8, 196, 0, 57, 15, 16, 12, 5, 0, 222], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0... | 8 | 96 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Test1 {
class island : IComparable {
public int hasi = 0;
public int takara = 0;
public island(int has, int takar) {
hasi = has;
takara = takar;
}
public int CompareTo(object obj) {
island isl = (island)obj;
return ... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Test1 {
class island : IComparable {
public int hasi = 0;
public int takara = 0;
public island(int has, int takar) {
hasi = has;
takara = takar;
}
public int CompareTo(object obj) {
island isl = (island)obj;
return ... | [["-", 0, 195, 8, 196, 0, 37, 0, 11, 31, 22], ["-", 8, 196, 0, 37, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 17, 33], ["-", 8, 196, 0, 37, 0, 11, 12, 214, 141, 22], ["+", 8, 196, 0, 37, 0, 16, 12, 214, 141, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-"... | 8 | 306 |
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);
int hiruZenbu = 0, hiruOK = 0;
int yuuZenb... | 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 h... | [["+", 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 | 413 |
using System.Linq;
using System.Collections.Generic;
using System;
public class hello {
public static string[] dot;
public static int plen, cnum, width, cspace;
public static void Main() {
while (true) {
plen = int.Parse(Console.ReadLine().Trim());
if (plen == 0)
break;
cnum = int.P... | using System.Linq;
using System.Collections.Generic;
using System;
public class hello {
public static string[] dot;
public static int plen, cnum, width, cspace;
public static void Main() {
while (true) {
plen = int.Parse(Console.ReadLine().Trim());
if (plen == 0)
break;
cnum = int.P... | [["+", 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, 230, 0, 228], ["+", 0, 198, 0, 200, 0, 212, 0, 230, 39, 199], ["+", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["+", 0, 230, 3, 4, 0, 28, 0, 252, 0, 104], ["+", 0, 230, 3, 4, 0, 28, 0, 252, 0, 253]... | 8 | 578 |
using System;
using System.Linq;
namespace _1124 {
class Program {
static void Main(string[] args) {
while (true) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (x.Max() == 0)
break;
int[] days = new int[200];
for (int i = 0; i < x[0]; i++) {
int[] ... | using System;
using System.Linq;
namespace _1124 {
class Program {
static void Main(string[] args) {
while (true) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (x.Max() == 0)
break;
int[] days = new int[200];
for (int i = 0; i < x[0]; i++) {
int[] ... | [["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 2... | 8 | 217 |
using System.IO;
using System;
using System.Diagnostics;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
StreamReader sr = new StreamReader("1136-input.txt");
while (true) {
int n = int.Parse(sr.ReadLine());
if (n == 0)
break;
int om = int.Parse(sr.ReadLine... | using System.IO;
using System;
using System.Diagnostics;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0)
break;
int om = int.Parse(Console.ReadLine());
int[,] otable = new int[om, 2];
... | [["-", 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, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 39, 22], ["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["-", 0, 230, 3, 4, 0, 28, 0, 5, 0, 62],... | 8 | 1,037 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApplication1 {
class ClassMain {
public static int mctoint(string mc) {
int result = 0;
int bi = 1;
for (int i = 0; i < mc.Length; i++) {
if (char.IsDigit(mc[i])) {
bi = 1;
} else {
if (mc[i]... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApplication1 {
class ClassMain {
public static int mctoint(string mc) {
int result = 0;
int bi = 1;
for (int i = 0; i < mc.Length; i++) {
if (char.IsDigit(mc[i])) {
bi = mc[i] - '0';
} else {
... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 1, 0, 11, 12, 16, 31, 204, 205, 22], ["+", 0, 11, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 11, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 1, 0, 11, 12, 16, 12, 252, 0, ... | 8 | 453 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
public static string[] str = Console.ReadLine().Split(' ');
public static int n = int.Parse(str[0]);
public static int[] ks = new int[n];
public static int p = int.Parse(str[1])... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
while (true) {
string[] str = Console.ReadLine().Split(' ');
int n = int.Parse(str[0]);
int[] ks = new int[n];
int p = ... | [["-", 0, 235, 8, 201, 0, 124, 0, 251, 0, 259], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["+", 0, 235, 8, 201, 0, 195, 54, 55, 0, 24], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 141, 22], ["+", 0, 235, 8, 201, 0, 195, 54, 55, 0, 25], ["+", 0, 235, 8, 201, 0, 195, 8, 196... | 8 | 208 |
using System;
using System.Collections.Generic;
namespace V1173 {
public class Program {
public static void Main(string[] args) {
while (true) {
var S = Console.ReadLine();
if (S == ".")
break;
const string bs = "([";
const string be = ")]";
var res = true;
var stk =... | using System;
using System.Collections.Generic;
namespace V1173 {
public class Program {
public static void Main(string[] args) {
while (true) {
var S = Console.ReadLine();
if (S == ".")
break;
const string bs = "([";
const string be = ")]";
var res = true;
var stk =... | [["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 161], ["+", 0, 1, 0, 11, 12, 16, 31, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 60], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", ... | 8 | 184 |
using System.Collections.Generic;
using System.Linq;
using System;
public class Hello {
public static void Main() {
while (true) {
var s = Console.ReadLine();
if (s == ".")
break;
var st = new Stack<int>();
for (int i = 0; i < s.Length; i++)
if (s[i] == '(')
st.P... | using System.Collections.Generic;
using System.Linq;
using System;
public class Hello {
public static void Main() {
while (true) {
var s = Console.ReadLine();
if (s == ".")
break;
var st = new Stack<int>();
for (int i = 0; i < s.Length; i++)
if (s[i] == '(')
st.P... | [["-", 31, 16, 12, 16, 31, 213, 63, 214, 141, 22], ["-", 31, 16, 12, 16, 31, 213, 3, 4, 0, 24], ["-", 31, 16, 12, 16, 31, 213, 3, 4, 0, 25], ["-", 75, 57, 15, 16, 31, 16, 12, 16, 17, 47], ["-", 75, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["-", 75, 57, 75, 57, 75, 57, 15, 16, 17, 98], ["-", 15, 16, 12, 16, 31, 213, 63, 21... | 8 | 258 |
using System;
namespace ConsoleApp1 {
class Minimal_Backgammon {
public static void Main(string[] args) {
while (true) {
string[] temp = Console.ReadLine().Split(' ');
int N = int.Parse(temp[0]);
int T = int.Parse(temp[1]);
int L = int.Parse(temp[2]);
int B = int.Parse(temp[3]);
... | using System;
using System.IO;
namespace ConsoleApp1 {
class Minimal_Backgammon {
public static void Main(string[] args) {
while (true) {
string[] temp = Console.ReadLine().Split(' ');
int N = int.Parse(temp[0]);
int T = int.Parse(temp[1]);
int L = int.Parse(temp[2]);
int B = int.... | [["+", 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, 1, 0, 11, 12, 16, 31, 16, 31, 203], ["+", 0, 1, 0, 11, 12, 16, 31, 1... | 8 | 444 |
using System;
using System.Collections.Generic;
using System.Linq;
class AOJ {
public static void Main() {
var prime = new List<int>(2);
for (int i = 3; i <= 10000; i = i + 2) {
bool is_prime = true;
foreach (var p in prime) {
if (i % p == 0) {
is_prime = false;
break;... | using System;
using System.Collections.Generic;
using System.Linq;
class AOJ {
public static void Main() {
var prime = new List<int> { 2 };
for (int i = 3; i <= 10000; i = i + 2) {
bool is_prime = true;
foreach (var p in prime) {
if (i % p == 0) {
is_prime = false;
bre... | [["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 230, 10, 229, 0, 45], ["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 25], ["+", 0, 200, 0, 212, 0, 230, 10, 229, 0, 46], ["+", 8, 196, 0, 7, 8, 196, 0, 210, 0, 25], ["+", 0, 7, 8, 196, 0, 210, 8, 196, 0, 45], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["+... | 8 | 204 |
using System;
public class my {
public static void Main() {
long n = my.GetLong();
long cnt = 0;
for (int i = 0; i < n; i++) {
if (my.IsPrime(my.GetLong()))
cnt++;
}
Console.WriteLine(cnt);
}
public static bool IsPrime(long n) {
if (n == 2)
return true;
if (n ==... | using System;
public class my {
public static void Main() {
long n = my.GetLong();
long cnt = 0;
for (int i = 0; i < n; i++) {
if (my.IsPrime(my.GetLong())) {
cnt++;
}
}
Console.WriteLine(cnt);
}
public static bool IsPrime(long n) {
if (n == 2)
return true;
... | [["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 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 | 152 |
using System;
public class Eratosthenes {
public static void Main(string[] args) {
int count = int.Parse(Console.ReadLine());
int sum = 0; //?´???°???????¨?
for (int i = 0; i < count; i++) {
//?????????????±????????????????
int target = int.Parse(Console.ReadLine());
//????????????
... | using System;
public class Eratosthenes {
public static void Main(string[] args) {
int count = int.Parse(Console.ReadLine());
int sum = 0; //?´???°???????¨?
for (int i = 0; i < count; i++) {
//?????????????±????????????????
int target = int.Parse(Console.ReadLine());
//????????????
... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 7,... | 8 | 179 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int cnt = 0;
for (int i = 0; i < n; i++) {
int num =... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int cnt = n;
for (int i = 0; i < n; i++) {
int num =... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["-", 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, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22]... | 8 | 157 |
using System;
class MainClass {
public static void Main(string[] args) {
var reader = new System.IO.StreamReader("Inputs.txt");
Console.SetIn(reader);
var n = int.Parse(Console.ReadLine());
var count = 0;
for (var i = 0; i < n; i++) {
var num = int.Parse(Console.ReadLine());
if (IsPr... | using System;
class MainClass {
public static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var count = 0;
for (var i = 0; i < n; i++) {
var num = int.Parse(Console.ReadLine());
if (IsPrime(num))
count++;
}
Console.WriteLine("{0}", count);
}
static boo... | [["-", 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, 230, 0, 228], ["-", 0, 212, 0, 230, 39, 232, 234, 232, 234, 22], ["-", 0, 212, 0, 230, 39, 232, 234, 232, 0, 131], ["-", 0, 212, 0, 230, 39, 232, 234, 232, 141, 22], ["-", 0, 200, 0, 212, 0, 2... | 8 | 161 |
using System;
using System.Collections.Generic;
class Program {
static int Max(int n, int[] rate) {
int maxer = rate[1] - rate[0];
int miner = rate[0];
for (int i = 1; i < n - 1; i++) {
if (maxer < rate[i] - miner) {
maxer = rate[i] - miner;
}
if (miner > rate[i]) {
min... | using System;
using System.Collections.Generic;
class Program {
static int Max(int n, int[] rate) {
int maxer = rate[1] - rate[0];
int miner = rate[0];
for (int i = 1; i < n; i++) {
maxer = maxer > rate[i] - miner ? maxer : rate[i] - miner;
miner = miner < rate[i] ? miner : rate[i];
}
... | [["-", 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, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 41, 15, 16, 31, 22], ["+", 0, 1... | 8 | 197 |
using System;
class AOJ {
public static void Main() {
int num = int.Parse(Console.ReadLine().Trim());
int input, min_val = 0, max_val = 0;
for (int i = 1; i <= num; i++) {
input = int.Parse(Console.ReadLine().Trim());
if (i == 1) {
min_val = input;
} else {
if (i == 2) {... | using System;
class AOJ {
public static void Main() {
int num = int.Parse(Console.ReadLine().Trim());
int input, min_val = 0, max_val = 0;
for (int i = 1; i <= num; i++) {
input = int.Parse(Console.ReadLine().Trim());
if (i == 1) {
min_val = input;
} else {
if (i == 2) {... | [["+", 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], ["+", 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], ["+", ... | 8 | 140 |
using System;
using System.Collections.Generic;
namespace AizuOnLine_Lesson {
class Program {
static void Main(string[] args) {
List<int> data = Program.GetData();
int minNum = data[0];
int maxNum = data[0];
int diff = -1000000000;
for (int i = 1; i < data.Count; i++) {
if (data[i] < minN... | using System;
using System.Collections.Generic;
namespace AizuOnLine_Lesson {
class Program {
static void Main(string[] args) {
List<int> data = Program.GetData();
int minNum = data[0];
int maxNum = data[0];
int diff = -1000000000;
for (int i = 1; i < data.Count; i++) {
if (data[i] < minN... | [["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 95], ["+", 8, 196, 0, 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], ["+", 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], [... | 8 | 241 |
using System;
using System.Collections.Generic;
namespace procon {
public class Program {
public static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var list = new Dictionary<int, int>();
for (int i = 0; i < n; i++) {
list.Add(i, int.Parse(Console.ReadLine()));
}
var ... | using System;
using System.Collections.Generic;
namespace procon {
public class Program {
public static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var list = new Dictionary<int, int>();
for (int i = 0; i < n; i++) {
list.Add(i, int.Parse(Console.ReadLine()));
}
var ... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["-", 3, 4, 0, 28, 0, 41, 64, 241, 0, 33], ["-", 3, 4, 0, 28, 0, 41, 64, 241, 0, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["-", 0, 213, 3, 4, 0, 28, 0, 41, 75, 22]] | 8 | 175 |
using System;
namespace AOJapps {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int min = n;
int max = -1000000000;
for (int i = 1; i < n; i++) {
n = int.Parse(Console.ReadLine());
max = Max2(max, n - min);
min = Min2(min, n);
}
Con... | using System;
namespace AOJapps {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int R = int.Parse(Console.ReadLine());
int min = R;
int ans = -1000000000;
for (int i = 1; i < n; i++) {
R = int.Parse(Console.ReadLine());
ans = Max2(ans, R - mi... | [["+", 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, 199], ["+", 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], ["+", 3, 4, 0, 28, 0, 213, 63, 214... | 8 | 161 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
int min = int.Parse(Console.ReadLine());
int ans = 0;
for (int i = 1; i < n; i++) {
int a = int.Parse(Console.ReadLine());
if (i == 1) {
a... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
int min = int.Parse(Console.ReadLine());
int ans = 0;
for (int i = 1; i < n; i++) {
int a = int.Parse(Console.ReadLine());
if (i == 1) {
a... | [["+", 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], ["+", 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], ["+", ... | 8 | 136 |
using System;
public static class Program {
public static void Main() {
int n = int.Parse(Console.ReadLine());
int minValue = 1 << 30;
int ans = -(1 << 30);
Console.WriteLine(ans);
for (int i = 0; i < n; i++) {
int a = int.Parse(Console.ReadLine());
if (i >= 1) {
ans = Math.Ma... | using System;
public static class Program {
public static void Main() {
int n = int.Parse(Console.ReadLine());
int minValue = 1 << 30;
int ans = -(1 << 30);
for (int i = 0; i < n; i++) {
int a = int.Parse(Console.ReadLine());
if (i >= 1) {
ans = Math.Max(ans, a - minValue);
... | [["-", 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;
namespace Test {
class MainClass {
public static void Main(string[] args) {
Console.ReadLine();
var nums = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var swapNum = 0;
for (int i = 0; i < nums.Length; i++) {
for (int j = nums.Length - 1; j > i; j--) {
if (num... | using System;
namespace Test {
class MainClass {
public static void Main(string[] args) {
Console.ReadLine();
var nums = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var swapNum = 0;
for (int i = 0; i < nums.Length; i++) {
for (int j = nums.Length - 1; j > i; j--) {
if (num... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22],... | 8 | 190 |
using System;
namespace ALDS1_2_A {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int cnt = 0;
for (int i = 0; i < n - 1; i++) {
for (int j = i + 1; j < n; j++) {
if (a[i] > a[... | using System;
namespace ALDS1_2_A {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int cnt = 0;
for (int i = 0; i < n - 1; i++) {
for (int j = n - 1; j > i; j--) {
if (a[j] < a[... | [["-", 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, 47], ["... | 8 | 200 |
// Selection_Sort.cs
using System;
class Selection_Sort {
public static void Main() {
int count = 0;
string num = Console.ReadLine();
int n = int.Parse(num);
int[] a = new int[n]; // 5 6 4 2 1 3
string numbers_str = Console.ReadLine();
string[] number_str = numbers_str.Split();
for (i... | // Selection_Sort.cs
using System;
class Selection_Sort {
public static void Main() {
int count = 0;
string num = Console.ReadLine();
int n = int.Parse(num);
int[] a = new int[n];
string numbers_str = Console.ReadLine();
string[] number_str = numbers_str.Split();
for (int i = 0; i < n;... | [["-", 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, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 0, 5... | 8 | 304 |
using System;
public class SelectionSort {
public static void Main(string[] args) {
int count = int.Parse(Console.ReadLine());
string data = Console.ReadLine();
string[] num = data.Split();
int[] target = new int[count];
int temp;
int sortCount = 0; //?????????????????°???
for (int d = 0... |
using System;
public class SelectionSort {
public static void Main(string[] args) {
int count = int.Parse(Console.ReadLine());
string data = Console.ReadLine();
string[] num = data.Split();
int[] target = new int[count];
int temp;
int sortCount = 0; //?????????????????°???
for (int d = 0... | [["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0... | 8 | 243 |
using System;
public class SelectionSort {
public static void Main(string[] args) {
int count = int.Parse(Console.ReadLine());
string data = Console.ReadLine();
string[] num = data.Split();
int[] target = new int[count];
int temp;
int sortCount = 0; //?????????????????°???
for (int d = 0... |
using System;
public class SelectionSort {
public static void Main(string[] args) {
int count = int.Parse(Console.ReadLine());
string data = Console.ReadLine();
string[] num = data.Split();
int[] target = new int[count];
int temp;
int sortCount = 0; //?????????????????°???
for (int d = 0... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["-", 8, 19... | 8 | 278 |
using System;
class main {
public static void Main(String[] args) {
int n = int.Parse(Console.ReadLine());
int[] a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int index;
index = selectionSort(a, n);
for (int i = 0; i < n; i++) {
if (i != n - 1) {
Console.Write(... | using System;
class main {
public static void Main(String[] args) {
int n = int.Parse(Console.ReadLine());
int[] a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int index;
index = selectionSort(a, n);
for (int i = 0; i < n; i++) {
if (i != n - 1) {
Console.Write(... | [["+", 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], ["+", 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], ["+", 0, 7, 8... | 8 | 250 |
using System;
using System.Linq;
namespace Sort_I {
class Selection_Sort {
static void Main(string[] args) {
Console.ReadLine();
var A = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var n = SelectionSort(A);
for (int i = 0; i < A.Length - 1; i++) {
Console.Write(A[i] + " "... | using System;
using System.Linq;
namespace Sort_I {
class Selection_Sort {
static void Main(string[] args) {
Console.ReadLine();
var A = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var n = SelectionSort(A);
for (int i = 0; i < A.Length - 1; i++) {
Console.Write(A[i] + " "... | [["+", 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], ["+", 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], ["+", 0, 7, 8... | 8 | 227 |
using System;
class Probrem {
static void Main() {
string str = Console.ReadLine();
string[] stArray = str.Split(' ');
int[] intArray = new int[3];
int i, j;
for (i = 0; i < 3; i++) {
intArray[i] = int.Parse(stArray[i]);
}
int[] sides1 = new int[1000];
int[] sides2 = new int[1000... | using System;
class Probrem {
static void Main() {
while (true) {
string str = Console.ReadLine();
string[] stArray = str.Split(' ');
int[] intArray = new int[3];
int i, j;
for (i = 0; i < 3; i++) {
intArray[i] = int.Parse(stArray[i]);
}
if (intArray[1] == 0 && in... | [["+", 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], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+",... | 8 | 332 |
using System.Collections.Generic;
using System.Linq;
using System;
public class Yoko {
public int hight { get; set; }
public int tate1 { get; set; }
public int tate2 { get; set; }
}
public class hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(... | using System.Collections.Generic;
using System.Linq;
using System;
public class Yoko {
public int hight { get; set; }
public int tate1 { get; set; }
public int tate2 { get; set; }
}
public class hello {
public static void Main() {
while (true) {
string[] line = Console.ReadLine().Trim().Split(' ');
... | [["+", 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, 195, 8, 196, 0, 57, 64, 126, 0, 127], ["-", 0, 195, 8, 196, 0, 57, 64, 126, 0, 22],... | 8 | 315 |
using System;
public class Hello {
public const int INF = 999999999;
public static void Main() {
while (true) {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var m = int.Parse(line[1]);
var s = int.Parse(line[2]);
var g1 = int.Parse(line[3]);
... | using System;
public class Hello {
public const int INF = 999999999;
public static void Main() {
while (true) {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var m = int.Parse(line[1]);
var s = int.Parse(line[2]);
var g1 = int.Parse(line[3]);
... | [["-", 31, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 79], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 98], ["-", 31, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["-", 31, 16, 31, 16, 31, 16, 12, 16, 17, 79], ["-", 31, 16, 31, 16, 31, 16, 12, 16,... | 8 | 490 |
using System;
using System.Collections.Generic;
using System.Text;
public static class MainClass {
public static void Main() {
string testcasecount = Console.ReadLine();
for (int i = 0; i < int.Parse(testcasecount); i++) {
string message = Console.ReadLine();
string[] message1 = message.Split('0... | using System;
using System.Collections.Generic;
using System.Text;
public static class MainClass {
public static void Main() {
string testcasecount = Console.ReadLine();
for (int i = 0; i < int.Parse(testcasecount); i++) {
string message = Console.ReadLine();
string[] message1 = message.Split('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, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 652 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace _2006 {
class Program {
static void Main(string[] args) {
List<char[]> letters = new List<char[]> {
new char[] { '.', ',', '!', '?', ' ' },
new char[] {
'a',
'b',
'c',
},
new char[] {
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace _2006 {
class Program {
static void Main(string[] args) {
List<char[]> letters = new List<char[]> {
new char[] {
'.',
',',
'!',
'?',
' ',
},
new char[] {
'a',
'b'... | [["+", 0, 230, 10, 229, 0, 227, 0, 229, 0, 21], ["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 204, 205, 22], ["+", 75, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 75, 57, 15, 16, 31, 204, 206, 207,... | 8 | 387 |
using System;
public class Coin {
public int jyuen;
public int gojyuen;
public int hyakuen;
public int gohyakuen;
public Coin(int i, int j, int k, int l) {
this.jyuen = i;
this.gojyuen = j;
this.hyakuen = k;
this.gohyakuen = l;
}
public static Coin IntToCoin(int i) {
Coin coin = new... | using System;
public class Coin {
public int jyuen;
public int gojyuen;
public int hyakuen;
public int gohyakuen;
public Coin(int i, int j, int k, int l) {
this.jyuen = i;
this.gojyuen = j;
this.hyakuen = k;
this.gohyakuen = l;
}
public static Coin IntToCoin(int i) {
Coin coin = new... | [["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 15, 22], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["-", 0, 57, 64, 1, 0, 213, 63, 214, 205, 22], ["-", 0, 57, 64, 1, 0, 213, 63, 214, 0, 131], ["-", 0, 57, 64, 1, 0, 213, 63, 214, 141, 22], [... | 8 | 755 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Make_Purse_Light {
class Program {
static List<int> Coins = new List<int>() { 10, 50, 100, 500 };
static bool flag = false;
private static void Main(string[] args) {
while (true) {
// 会計金額
int bill = int.Parse(Console.R... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Make_Purse_Light {
class Program {
static List<int> Coins = new List<int>() { 10, 50, 100, 500 };
static bool flag = false;
private static void Main(string[] args) {
while (true) {
// 会計金額
int bill = int.Parse(Console.R... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 15, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 57, 64, 1, 0, 213, 63, 214, 205, 22], ["-", 0, 57, 64, 1, 0, 213, 63, 214, 0, 131], ["-", 0, 57, 64, 1, 0, 213, 63, 214, 141, 22... | 8 | 450 |
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;
class Program {
static void Main(string[] args) {
int n, k, i = 0, q, j;
int[] m, x = new int[4], y = new int[4], p = new int[] { 10, 50, 100, 500 };
while (true) {
n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
if (i != 0) {
Console.WriteL... | [["-", 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], ["-", 36, 36, 36, 36, 0, 208, 0, 209, 0, 256], ["-", 36, 36, 36, 36, 0, 208, ... | 8 | 309 |
using System;
class Program {
static void Main(string[] args) {
bool isFirst = true;
int[] coins = new int[] { 10, 50, 100, 500 };
int range = 4;
int bill, ownedMoney, changeMoney;
int[] ownedCoins = new int[range], changeCoins = new int[range],
paymentCoins = new int[range];
while ... | 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, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 10, 198, 0, 200, 0, 212, 0, 241, 0, 68], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 10, 198, 0, 200, 0, 212, 0, 1... | 8 | 284 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace V2014 {
public class Program {
int W;
int H;
string[] A;
int[][] _grid;
readonly int[] _dx = { 1, 0, -1, 0 };
readonly int[] _dy = { 0, 1, 0, -1 };
bool IsInside(int x, int y) { return 0 <= x && x < W && 0 <= y && y < H; }
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace V2014 {
public class Program {
int W;
int H;
string[] A;
int[][] _grid;
int[] _dx = { 1, 0, -1, 0 };
int[] _dy = { 0, 1, 0, -1 };
bool IsInside(int x, int y) { return 0 <= x && x < W && 0 <= y && y < H; }
public static void... | [["-", 0, 235, 8, 201, 0, 124, 0, 251, 0, 262], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 235, 8, 201, 0, 195, 8, 196, 0, 46], ["-", 8, 201, 0, 235, 8, 201, 0, 263, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 0, 235, 8, 201, 0, 263, 8, 196, 0, ... | 8 | 1,080 |
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)... | [["+", 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, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 8, 196, 0, 52, 8, 196, 0, 197, 0, 35], ["+", 8, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22... | 8 | 550 |
using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
while (true) {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var m = int.Parse(line[1]);
if (n == 0 && m == 0)
break;
var a = new int[n];
... | using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
while (true) {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var m = int.Parse(line[1]);
if (n == 0 && m == 0)
break;
var a = new int[n];
... | [["+", 0, 52, 8, 196, 0, 210, 8, 57, 0, 121], ["+", 0, 52, 8, 196, 0, 210, 8, 57, 0, 24], ["+", 0, 210, 8, 57, 15, 213, 63, 214, 205, 22], ["+", 0, 210, 8, 57, 15, 213, 63, 214, 0, 131], ["+", 0, 210, 8, 57, 15, 213, 63, 214, 141, 22], ["+", 0, 210, 8, 57, 15, 213, 3, 4, 0, 24], ["+", 15, 213, 3, 4, 0, 28, 0, 214, 205,... | 8 | 438 |
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... | [["+", 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], ["+", 206, 207, 0, 28, 0, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28,... | 8 | 540 |
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 n = int.Parse(strs[0]);
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) {
string[] strs = line.Split(' ');
int n = int.Parse(strs[0]);
int m ... | [["+", 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], ["+", 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,... | 8 | 199 |
using System;
using System.Linq;
namespace V2018_1 {
public class Program {
public static void Main(string[] args) {
var sr = new StreamReader();
//---------------------------------
while (true) {
var N = sr.Next<int>();
var M = sr.Next<int>();
var P = sr.Next<int>();
var X = sr.N... | using System;
using System.Linq;
namespace V2018_1 {
public class Program {
public static void Main(string[] args) {
var sr = new StreamReader();
//---------------------------------
while (true) {
var N = sr.Next<int>();
var M = sr.Next<int>();
var P = sr.Next<int>();
var X = sr.N... | [["+", 0, 28, 0, 41, 15, 16, 31, 204, 205, 22], ["+", 0, 41, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 41, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0, 41, 15, 1... | 8 | 389 |
using System.Linq;
using System.Collections.Generic;
using System;
public class Yado {
public int d { get; set; }
public int p { get; set; }
}
public class Hello {
public static void Main() {
while (true) {
var wk = new List<Yado>();
string[] line = Console.ReadLine().Trim().Split(' ');
va... | using System.Linq;
using System.Collections.Generic;
using System;
public class Yado {
public int d { get; set; }
public int p { get; set; }
}
public class Hello {
public static void Main() {
while (true) {
var wk = new List<Yado>();
string[] line = Console.ReadLine().Trim().Split(' ');
va... | [["-", 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], ["+", 8, 196, 0, 52, 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, 24], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ... | 8 | 347 |
using System.Linq;
using System.Collections.Generic;
using System;
public class Yado {
public int d { get; set; }
public int p { get; set; }
}
public class Hello {
public static void Main() {
while (true) {
var wk = new List<Yado>();
string[] line = Console.ReadLine().Trim().Split(' ');
va... | using System.Linq;
using System.Collections.Generic;
using System;
public class Yado {
public int d { get; set; }
public int p { get; set; }
}
public class Hello {
public static void Main() {
while (true) {
var wk = new List<Yado>();
string[] line = Console.ReadLine().Trim().Split(' ');
va... | [["-", 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], ["-", 0, 52, 8, 196, 0, 7, 8, 196, 0, 45], ["-", 0, 52, 8, 196, 0, 7, 8, 196, 0, 46], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+"... | 8 | 347 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Perfect_Number {
class Program {
static void Main(string[] args) {
List<int> inputs = new List<int>();
while (true) {
int input = int.Parse(Console.ReadLine());
if (input... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Perfect_Number {
class Program {
static void Main(string[] args) {
List<int> inputs = new List<int>();
while (true) {
int input = int.Parse(Console.ReadLine());
if (input... | [["+", 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, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 210, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, ... | 8 | 241 |
using System;
using System.Linq;
namespace _2149 {
class Program {
static void Main(string[] args) {
while (true) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (x.Max() == 0)
break;
int[] y = Console.ReadLine().Split().Select(int.Parse).ToArray();
long ran... | using System;
using System.Linq;
namespace _2149 {
class Program {
static void Main(string[] args) {
while (true) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (x.Max() == 0)
break;
int[] y = Console.ReadLine().Split().Select(int.Parse).ToArray();
long ran... | [["-", 12, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["-", 12, 16, 31, 23, 0, 16, 31, 16, 17, 48], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 17, 48], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 3... | 8 | 182 |
using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
for (int i = 0; i < n; i++) {
var s = Console.ReadLine().Trim();
var sL = s.Length;
var st = 0;
for (int j = 0; j < sL; j++)
st += int.Parse(s[j].ToString());
var... | using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
for (int i = 0; i < n; i++) {
var s = Console.ReadLine().Trim();
var sL = s.Length;
var st = 0;
for (int j = 0; j < sL; j++)
st += int.Parse(s[j].ToString());
int... | [["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], [... | 8 | 151 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Enu = System.Linq.Enumerable;
class Program {
int N, M;
void Solve() {
while ((N = read.Int()) > 0) {
M = read.Int();
var edges = Enu.Range(0, N).Select(i => new List<Edge>()).ToArray();
for (int i = 0;... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Enu = System.Linq.Enumerable;
class Program {
int N, M;
void Solve() {
while ((N = read.Int()) > 0) {
M = read.Int();
var edges = Enu.Range(0, N).Select(i => new List<Edge>()).ToArray();
for (int i = 0;... | [["+", 15, 16, 12, 16, 31, 213, 63, 214, 205, 22], ["+", 15, 16, 12, 16, 31, 213, 63, 214, 0, 131], ["+", 15, 16, 12, 16, 31, 213, 63, 214, 141, 22], ["+", 15, 16, 12, 16, 31, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 2... | 8 | 1,139 |
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]... | [["-", 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, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16,... | 8 | 230 |
using System;
public class hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var t = int.Parse(line[1]);
var e = int.Parse(line[2]);
string[] line2 = Console.ReadLine().Trim().Split(' ');
var s = Array.ConvertAll(line2, int.P... | using System;
public class hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var t = int.Parse(line[1]);
var e = int.Parse(line[2]);
string[] line2 = Console.ReadLine().Trim().Split(' ');
var s = Array.ConvertAll(line2, int.P... | [["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25... | 8 | 218 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.