buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static string ReadLine() { return Console.ReadLine(); }
static int ReadInt() { return int.Parse(ReadLine()); }
static int[] ReadInts() {
return ReadLine().Split().Select(int.Parse).ToArray();
}
static string[] ReadStrings(... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static string ReadLine() { return Console.ReadLine(); }
static int ReadInt() { return int.Parse(ReadLine()); }
static int[] ReadInts() {
return ReadLine().Split().Select(int.Parse).ToArray();
}
static string[] ReadStrings(... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 3... | 8 | 179 |
using System;
namespace AOJ.Volume0 {
public class Figure_OnSurface {
private static int[,] map;
private static bool CheckA(int x, int y) {
if (map[x + 1, y] == 1 && map[x + 1, y + 1] == 1 && map[x, y + 1] == 1) {
return true;
}
return false;
}
private static bool CheckB(i... | using System;
namespace AOJ.Volume0 {
public class Figure_OnSurface {
private static int[,] map;
private static bool CheckA(int x, int y) {
if (map[x + 1, y] == 1 && map[x + 1, y + 1] == 1 && map[x, y + 1] == 1) {
return true;
}
return false;
}
private static bool CheckB(i... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 0, 57, 64, 196, 0, 37, 0, 211, 0, 147]... | 8 | 790 |
using System.Collections.Generic;
using System.Linq;
using System;
public class hello {
public static void Main() {
while (true) {
var n = int.Parse(Console.ReadLine().Trim());
if (n == 0)
break;
var plist = GeneratePrime(n);
var count = 0;
for (int i = 0; plist[i] <= n / 2;... | using System.Collections.Generic;
using System.Linq;
using System;
public class hello {
public static void Main() {
var plist = GeneratePrime(50000);
while (true) {
var n = int.Parse(Console.ReadLine().Trim());
if (n == 0)
break;
var count = 0;
for (int i = 0; plist[i] <= n / ... | [["+", 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, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25]... | 8 | 233 |
using System;
using System.Linq;
namespace _0003 {
class Program {
static void Main(string[] args) {
int how = int.Parse(Console.ReadLine());
for (int a = 1; a <= how; a++) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] mountain = new int[] { x[0], x[1], x[2] };
A... | using System;
using System.Linq;
namespace _0003 {
class Program {
static void Main(string[] args) {
int how = int.Parse(Console.ReadLine());
for (int a = 1; a <= how; a++) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
// int[] mountain = new int[] { x[0], x[1], x[2] };
... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 3... | 8 | 179 |
using System;
class main {
public static void Main(String[] g) {
string s;
int a, b, c;
bool R;
string RS;
for (int i = 0; i < 1000; i++) {
s = Console.ReadLine();
string[] sa = s.Split();
a = int.Parse(sa[0]);
b = int.Parse(sa[1]);
c = int.Parse(sa[2]);
R = a... | using System;
class main {
public static void Main(String[] g) {
string s;
int a, b, c;
bool R;
string RS;
int N = int.Parse(Console.ReadLine());
for (int i = 0; i < N; i++) {
s = Console.ReadLine();
string[] sa = s.Split();
a = int.Parse(sa[0]);
b = int.Parse(sa[1]);... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 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, ... | 8 | 163 |
using System;
using System.IO;
class MainClass {
static void Main() {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false });
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
string[] tokens = Console.ReadLine().Split(' ');
int a = in... | using System;
using System.IO;
class MainClass {
static void Main() {
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
string[] tokens = Console.ReadLine().Split(' ');
int a = int.Parse(tokens[0]);
int b = int.Parse(tokens[1]);
int c = int.Parse(tokens[2]);
i... | [["-", 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, 230, 0, 228], ["-", 0, 213, 3, 4, 0, 28, 0, 230, 39, 22], ["-", 3, 4, 0, 28, 0, 230, 3, 4, 0, 24], ["-", 3,... | 8 | 201 |
using System.Collections.Generic;
using System.Linq;
using System;
public class hello {
public static void Main() {
while (true) {
var n = int.Parse(Console.ReadLine().Trim());
if (n == 0)
break;
var plist = GeneratePrime(n);
var count = 0;
for (int i = 0; plist[i] <= n / 2;... | using static System.Math;
using System.Collections.Generic;
using System.Linq;
using System;
public class hello {
public static void Main() {
var plist = GeneratePrime(50000);
while (true) {
var n = int.Parse(Console.ReadLine().Trim());
if (n == 0)
break;
var count = 0;
for (i... | [["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 115], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["+", 8, 196, 0, 197, 0, 1... | 8 | 233 |
using System;
namespace _0036 {
class Program {
static void Main(string[] args) {
while (true) {
string naiyo = "";
string ans = "";
string k = "1";
string[,] a = new string[11, 11];
for (int i = 0; i < 8; i++) {
string sd = Console.ReadLine();
if (sd == null) {
... | using System;
namespace _0036 {
class Program {
static void Main(string[] args) {
while (true) {
string naiyo = "";
string ans = "";
string k = "1";
string[,] a = new string[11, 11];
for (int i = 0; i < 8; i++) {
string sd = Console.ReadLine();
if (sd == null) {
... | [["+", 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, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3,... | 8 | 571 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ {
class Program {
static bool[] check = new bool[105000];
static void Main(string[] args) {
int end = (int)Math.Sqrt(105000) + 1;
for (int i = 2; i < end; i++) {
if (check[i])
continue;
for (int j = 2; i * ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ {
class Program {
static bool[] check = new bool[105000];
static void Main(string[] args) {
int end = (int)Math.Sqrt(105000) + 1;
for (int i = 2; i < end; i++) {
if (check[i])
continue;
for (int j = 2; i * ... | [["-", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["-", 15, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["-", 15, 16, 31, 16, 31, 23, 0, 16, 17, 67], ["-", 15, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["-", 0, 57, 15, 16, 31, 16, 31, 23, 0, 25], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203... | 8 | 234 |
using System;
using System.Collections;
using System.Collections.Generic;
public class Hello {
public static void Main() {
var datasets = new List<Dataset>();
int datasets_linecount = 0;
int ansCount = 0;
Dataset dset = new Dataset();
foreach (string str in getLines()) {
if (str == "") {
... | using System;
using System.Collections;
using System.Collections.Generic;
public class Hello {
public static void Main() {
var datasets = new List<Dataset>();
int datasets_linecount = 0;
int ansCount = 0;
Dataset dset = new Dataset();
foreach (string str in getLines()) {
if (str == "") {
... | [["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["... | 8 | 971 |
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();
int[,] map = new int[11, 7];
for (int i = 1; i <= 9; i++) {
string input = Console.ReadLi... | 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();
int[,] map = new int[11, 7];
for (int i = 1; i <= 9; i++) {
string input = Console.ReadLi... | [["-", 75, 57, 75, 196, 0, 1, 0, 223, 0, 22], ["-", 75, 57, 75, 196, 0, 1, 0, 223, 0, 68], ["-", 75, 57, 75, 57, 75, 196, 0, 1, 0, 35], ["-", 75, 57, 75, 196, 0, 1, 0, 223, 0, 29], ["-", 75, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["-", 75, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["-... | 8 | 600 |
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();
int[,] map = new int[11, 7];
for (int i = 1; i <= 9; i++) {
string input = Console.ReadLi... | 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();
int[,] map = new int[11, 7];
for (int i = 1; i <= 9; i++) {
string input = Console.ReadLi... | [["-", 0, 239, 0, 57, 75, 57, 64, 196, 0, 45], ["-", 0, 239, 0, 57, 75, 57, 64, 196, 0, 46], ["-", 0, 57, 75, 57, 75, 57, 75, 196, 0, 45], ["-", 75, 57, 75, 196, 0, 1, 0, 223, 0, 22], ["-", 75, 57, 75, 196, 0, 1, 0, 223, 0, 68], ["-", 75, 57, 75, 57, 75, 196, 0, 1, 0, 35], ["-", 0, 57, 75, 57, 75, 57, 75, 196, 0, 46], ... | 8 | 600 |
using System;
using System.Linq;
namespace V0038 {
public class Program {
public static void Main(string[] args) {
var hands = new[] { "null", "one pair", "two pair", "three card",
"full house", "straight", "four card" };
while (Console.In.Peek() != -1) {
var card = Conso... | using System;
using System.Linq;
namespace V0038 {
public class Program {
public static void Main(string[] args) {
var hands = new[] { "null", "one pair", "two pair", "three card",
"full house", "straight", "four card" };
while (Console.In.Peek() != -1) {
var card = Conso... | [["+", 64, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 64, 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, 196, 0, 57, 64, 196, 0, 197, 0, 35], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0,... | 8 | 248 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication44 {
class Program {
static void Main() {
int[] a = Console.ReadLine().Split(',').Select(int.Parse).ToArray();
Array.Sort(a);
if (a[0] == a[3] || a[1] == a[4]) {
Console.WriteLine("fou... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication44 {
class Program {
static void Main() {
while (true) {
string t = Console.ReadLine();
if (t == null)
break;
int[] a = t.Split(',').Select(int.Parse).ToArray();
Array... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 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, 2... | 8 | 516 |
using System;
using System.Linq;
namespace _0038 {
class Program {
static void Main(string[] args) {
while (true) {
string y = Console.ReadLine();
if (y == null) {
break;
}
int[] a = y.Split(',').Select(int.Parse).ToArray();
int g = a[0], h = a[1], j = a[2], k = a[3], l = a... | using System;
using System.Linq;
namespace _0038 {
class Program {
static void Main(string[] args) {
while (true) {
string y = Console.ReadLine();
if (y == null) {
break;
}
int[] a = y.Split(',').Select(int.Parse).ToArray();
Array.Sort(a);
int g = a[0], h = a[1], j = a... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["-", 8, 19... | 8 | 467 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Programminng {
class AOJ_Volume0008 {
public static void Main(string[] args) {
while (Console.ReadLine() != null) {
int number = int.Parse(Console.ReadLine());
int count = 0;
for (int i = 0; i < 10;... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Programminng {
class AOJ_Volume0008 {
public static void Main(string[] args) {
while (true) {
var input = Console.ReadLine();
if (string.IsNullOrEmpty(input))
break;
int count = 0;
fo... | [["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["+", 8, 196, 0, 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, 195, 8, 196, 0, 52, 15, 16, 17,... | 8 | 157 |
using System;
class Program {
static void Main() {
bool[] n = new bool[1000000];
for (int i = 0; i < 1000000; i++) {
n[i] = true;
}
n[0] = false;
n[1] = false;
for (int i = 2; i < 1000; i++) {
if (n[i] == true) {
for (int j = i * 2; j < 1000000; j += i) {
n[j... | using System;
class Program {
static void Main() {
bool[] n = new bool[1000000];
for (int i = 0; i < 1000000; i++) {
n[i] = true;
}
n[0] = false;
n[1] = false;
for (int i = 2; i < 1000; i++) {
if (n[i] == true) {
for (int j = i * 2; j < 1000000; j += i) {
n[j... | [["+", 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, 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, 6... | 8 | 182 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
while (n-- != 0) {
var e = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
Console.Writ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
while (n-- != 0) {
var e = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
Array.Sort(e... | [["+", 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 | 145 |
using System;
namespace prime {
class Program {
static void Main() {
int[] Primes = MakeList();
while (true) {
int n, ans = 0;
if (int.TryParse(Console.ReadLine(), out n)) {
/*
for (int i = 2; i <= n; ++i)
{
if (IsPrime(i))
++ans;
}
... | using System;
namespace prime {
class Program {
static void Main() {
int[] Primes = MakeList();
while (true) {
int n, ans = 0;
if (int.TryParse(Console.ReadLine(), out n)) {
/*
for (int i = 2; i <= n; ++i)
{
if (IsPrime(i))
++ans;
}
... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 57, 75, 1, 0, 11, 31, 204, 205, 22], ["+", 75, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 75, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 75, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 75, 1, 0, 11, 12, 204, 205, 22], ... | 8 | 308 |
using System;
using System.Collections.Generic;
using System.Linq;
class PrimeNumber {
static void Main() {
var cp = new bool[1000000];
var count = 1;
var odds = Enumerable.Range(0, 500000).Select(n => n * 2 + 1);
var pre = from n in odds.Skip(1) let cmp =
!cp[n] ? odds.Select(m => n * m)
... | using System;
using System.Collections.Generic;
using System.Linq;
class PrimeNumber {
static void Main() {
var cp = new bool[1000000];
cp[2] = true;
var count = 1;
var odds = Enumerable.Range(0, 500000).Select(n => n * 2 + 1);
var pre = from n in odds.Skip(1) let cmp =
!cp[n] ? odds.Ski... | [["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], [... | 8 | 262 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ0003 {
class Program {
static void Main(string[] args) {
int N = Convert.ToInt32(Console.ReadLine());
for (int i = 0; i < N; i++) {
var s = Console.ReadLine();
var ss = s.Split(' ');
var q = ss.ToList().Select(s... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ0003 {
class Program {
static void Main(string[] args) {
int N = Convert.ToInt32(Console.ReadLine());
for (int i = 0; i < N; i++) {
var s = Console.ReadLine();
var ss = s.Split(' ');
var q = ss.ToList().Select(s... | [["+", 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, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 15, 16, 31, 16, 31, 213, 63, 214, 205, 22], ["+", 15, 16, 31, 16, 31, 213, 63, 2... | 8 | 171 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Programminng {
class AOJ_Volume0003 {
static void Main(string[] args) {
var values = new int[3];
int i = int.Parse(Console.ReadLine());
for (int j = 0; j < i; j++) {
string s = Console.ReadLine();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Programminng {
class AOJ_Volume0003 {
static void Main(string[] args) {
var values = new int[3];
int i = int.Parse(Console.ReadLine());
for (int j = 0; j < i; j++) {
string s = Console.ReadLine();
... | [["+", 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 | 201 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace contest {
class Program {
public class Q1 {
static public int func() {
int MAX = 200;
char text_split = ' ';
for (int i = 0; i < MAX; i++) {
string read = Console.ReadLine();
if (r... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace contest {
class Program {
public class Q1 {
static public int func() {
int MAX = 200;
char text_split = ' ';
for (int i = 0; i < MAX; i++) {
string read = Console.ReadLine();
if (r... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 16, 31, 16, 12, 204, 205, 22], ["+", 15, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 16, 12, 204, 206, 207, 0, 73], ["+", 0, 7, 8, 196, 0, 57, 15, 16,... | 8 | 367 |
public class Hello {
public static void Main() {
string line = System.Console.ReadLine();
while (line != null) {
string[] n = line.Split(' ');
decimal a = decimal.Parse(n[0]);
decimal b = decimal.Parse(n[1]);
decimal c = decimal.Parse(n[2]);
decimal d = decimal.Parse(n[3]);
... | public class Hello {
public static void Main() {
string line = System.Console.ReadLine();
while (line != null) {
string[] n = line.Split(' ');
decimal a = decimal.Parse(n[0]);
decimal b = decimal.Parse(n[1]);
decimal c = decimal.Parse(n[2]);
decimal d = decimal.Parse(n[3]);
... | [["-", 0, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["-", 0, 16, 12, 23, 0, 16, 31, 16, 17, 48], ["-", 0, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["-", 0, 212, 0, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 16, 12, 23, 0, 16, 12, 16, 31, 22], ["+", 0, 16, 12, 23, 0, 16, 12, 16, 17, 48], ["+"... | 8 | 209 |
using System;
namespace AOJ.Volume0 {
public class Thief {
public static int Main() {
int dataset_cnt = 0;
while (true) {
int w = int.Parse(Console.ReadLine());
if (w == 0) {
break;
}
dataset_cnt++;
int n = int.Parse(Console.ReadLine());
var... | using System;
namespace AOJ.Volume0 {
public class Thief {
public static int Main() {
int dataset_cnt = 0;
while (true) {
int w = int.Parse(Console.ReadLine());
if (w == 0) {
break;
}
dataset_cnt++;
int n = int.Parse(Console.ReadLine());
var... | [["+", 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], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 21], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], [... | 8 | 379 |
using System;
namespace _042_A_Thief {
class Program {
static void Main(string[] args) {
string inputStr;
int processCount = 1;
while ((inputStr = Console.ReadLine()) != "0") {
int weight = int.Parse(inputStr);
int itemCount = int.Parse(Console.ReadLine());
Item[] items = new Item[item... | using System;
namespace _042_A_Thief {
class Program {
static void Main(string[] args) {
string inputStr;
int processCount = 1;
while ((inputStr = Console.ReadLine()) != "0") {
int weight = int.Parse(inputStr);
int itemCount = int.Parse(Console.ReadLine());
Item[] items = new Item[item... | [["-", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["+", 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, ... | 8 | 446 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace mondai0057 {
class Program {
static void Main(string[] args) {
var s = "";
while ((s = Console.ReadLine()) != null) {
var n = int.Parse(s);
var a = (n - 2) + (n * 2);
Console.WriteLine(a);
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace mondai0057 {
class Program {
static void Main(string[] args) {
var s = "";
while ((s = Console.ReadLine()) != null) {
var n = int.Parse(s);
var a = (n * n + n + 2) / 2;
Console.WriteLine(a);
... | [["-", 0, 212, 0, 16, 31, 23, 0, 16, 17, 33], ["-", 0, 212, 0, 16, 31, 23, 0, 16, 12, 203], ["-", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["+", 31, 23, 0, 16, 31, 16, 31, 16, 17, 48], ["+", 31, 23, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["-", 0, 212, 0, 16, 12, 23, 0, 16, 17, 48], [... | 8 | 93 |
using System;
using System.Collections.Generic;
using System.Linq;
class PrimeNumber {
static void Main() {
var cp = new bool[1000000];
var count = 1;
var odds = Enumerable.Range(0, 500000).Select(n => n * 2 + 1);
var pre = from n in odds.Skip(1) let cmp =
!cp[n] ? odds.Select(m => n * m)
... | using System;
using System.Collections.Generic;
using System.Linq;
class PrimeNumber {
static void Main() {
var cp = new bool[1000000];
var count = 1;
var odds = Enumerable.Range(0, 500000).Select(n => n * 2 + 1);
var pre = from n in odds.Skip(1) let cmp =
!cp[n] ? odds.Skip(1)
... | [["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 242, 0, 240, 0, 243], ["-", 0, 200, 0, 212... | 8 | 262 |
using System;
namespace AOJ0058 {
class Program {
static void Main(string[] args) {
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input))
break;
string[] num = input.Split(' ');
Point a = new Point(num[0], num[1]);
Point b = new Point(num[2], nu... | using System;
namespace AOJ0058 {
class Program {
static void Main(string[] args) {
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input))
break;
string[] num = input.Split(' ');
Point a = new Point(num[0], num[1]);
Point b = new Point(num[2], nu... | [["+", 0, 57, 15, 16, 31, 16, 31, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 141, 22], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 15, 16, 12, 16, 31, 2... | 8 | 392 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Library {
public class Miscelleneous {
public static void print(object j) { Console.WriteLine(j.ToString()); }
public static void print(string s) { Console.WriteLine(s); }
public static int[] cins() {
string s = Console.ReadLine();
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Library {
public class Miscelleneous {
public static void print(object j) { Console.WriteLine(j.ToString()); }
public static void print(string s) { Console.WriteLine(s); }
public static int[] cins() {
string s = Console.ReadLine();
... | [["+", 0, 213, 3, 4, 0, 28, 0, 74, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 74, 39, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 74, 0, 25], ["+", 3, 4, 0, 28, 0, 74, 51, 23, 0, 24], ["+", 51, 23, 0, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 28, 0, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 74, 51, 23, 0, 16, 12, 203]] | 8 | 303 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication46 {
class Program {
static void Main() {
while (true) {
int a = int.Parse(Console.ReadLine()), s = 0, b;
if (a == 0)
break;
for (b = 5;; b *= 5) {
s += (a / b);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication46 {
class Program {
static void Main() {
while (true) {
int a = int.Parse(Console.ReadLine()), s = 0, b;
if (a == 0)
break;
for (b = 5;; b *= 5) {
s += (a / b);
... | [["-", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["-", 15, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["-", 15, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["-", 15, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["-", 0, 57, 15, 16, 31, 16, 31, 23, 0, 25], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["-", 0, 57, 15, 16, 31, 16, 12, 23, 0, 24],... | 8 | 115 |
using System;
class Program {
public static void Main() {
string s;
while ((s = Console.ReadLine()) != null) {
int[] n = Array.ConvertAll(s.Split(' '), int.Parse);
float a = n[2] * n[4] - n[1] * n[5];
float b = n[2] * n[3] - n[0] * n[5];
float c = n[0] * n[4] - n[1] * n[3];
Co... | using System;
class Program {
public static void Main() {
string s;
while ((s = Console.ReadLine()) != null) {
int[] n = Array.ConvertAll(s.Split(' '), int.Parse);
float a = n[2] * n[4] - n[1] * n[5];
float b = n[0] * n[5] - n[2] * n[3];
float c = n[0] * n[4] - n[1] * n[3];
Co... | [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 16, 12, 204, 20... | 8 | 143 |
using System;
namespace AOJ0054 {
class Program {
static void Main(string[] args) {
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input))
break;
string[] num = input.Split(' ');
float a = float.Parse(num[0]);
int b = int.Parse(num[1]);
in... | using System;
namespace AOJ0054 {
class Program {
static void Main(string[] args) {
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input))
break;
string[] num = input.Split(' ');
float a = float.Parse(num[0]);
int b = int.Parse(num[1]);
in... | [["+", 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], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24... | 8 | 194 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication46 {
class Program {
static void Main() {
while (true) {
string a = Console.ReadLine();
int s = 0, d = 0;
if (a == null)
break;
decimal[] b = a.Split().Select(decimal.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication46 {
class Program {
static void Main() {
while (true) {
string a = Console.ReadLine();
int s = 0, d = 0;
if (a == null)
break;
decimal[] b = a.Split().Select(decimal.... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 200, 0, 212, 0, 16, 12, 5, 0, 62], ["-", 0, 200, 0, 212, 0, 16, 12, 5, 0, 222], ["+", 8, 196, 0, 7, 8, 196, 0, 246, 0, 247], ["+", 0, 7, 8, 196, 0, 246, 8, 196, 0, 45], ["+", 8, 196, 0, 246, 8, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 246, 8, 196, 0, 46], ["+", 0... | 8 | 189 |
using System;
using System.Linq;
namespace _054_SumofNthdecimalplaces {
class Program {
static void Main(string[] args) {
string inputStr;
while ((inputStr = Console.ReadLine()) != null) {
int[] inputNum = inputStr.Split(' ').Select(int.Parse).ToArray();
int sum = 0;
double fraction = inp... | using System;
using System.Linq;
namespace _054_SumofNthdecimalplaces {
class Program {
static void Main(string[] args) {
string inputStr;
while ((inputStr = Console.ReadLine()) != null) {
int[] inputNum = inputStr.Split(' ').Select(int.Parse).ToArray();
int sum = 0;
decimal fraction = in... | [["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 12, 250], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 250], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 31, 250], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 31, 250], ["+", 0, 200, 0, 212, 0, 213, 63, 214, ... | 8 | 159 |
using System;
using System.Collections.Generic;
class Program {
static int Main(string[] args) {
List<decimal[]> list = new List<decimal[]>();
while (true) {
string v = Console.ReadLine();
if (v.Trim().Length == 0) {
break;
}
string[] vs = v.Split(' ');
decimal[] vd = ... | using System;
using System.Collections.Generic;
class Program {
static int Main(string[] args) {
List<decimal[]> list = new List<decimal[]>();
while (true) {
string v = Console.ReadLine();
if (string.IsNullOrEmpty(v) == true) {
break;
}
string[] vs = v.Split(' ');
deci... | [["-", 15, 16, 31, 214, 205, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 205, 199], ["-", 15, 16, 31, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 15, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["-", 8, 196, 0, 57, 15, ... | 8 | 311 |
using System;
namespace AOJ.Volume0 {
public class IntersectionOfRectangles {
public static void Main() {
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input)) {
break;
}
var line = input.Split(' ');
var ax_from = Math.Min(decim... | using System;
namespace AOJ.Volume0 {
public class IntersectionOfRectangles {
public static void Main() {
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input)) {
break;
}
var line = input.Split(' ');
var ax_from = Math.Min(decim... | [["-", 15, 16, 31, 23, 0, 16, 31, 16, 17, 19], ["-", 15, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 0, 57, 15, 16, 31, 23, 0, 16, 17, 98], ["-", 15, 16, 31, 23, 0, 16, 12, 16, 31, 22], ["-", 15, 16, 31, 23, 0, 16, 12, 16, 17, 19], ["-", 15, 16, 31, 23, 0, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 47],... | 8 | 356 |
using System;
namespace AOJ.Volume0 {
public class RankChecker {
// 問題数
static readonly int problem = 30;
// チーム数
static readonly int team = 100;
public static int Main() {
// 順位保存用の配列
// rank[10] = 10問正解したチーム数
var rank = new int[problem + 1];
// チームの成績を保存する配列
// sc... | using System;
namespace AOJ.Volume0 {
public class RankChecker {
// 問題数
static readonly int problem = 30;
// チーム数
static readonly int team = 100;
public static int Main() {
// 順位保存用の配列
// rank[10] = 10問正解したチーム数
var rank = new int[problem + 1];
// チームの成績を保存する配列
// sc... | [["-", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["-", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 8, 196, 0, 57, 75, 196, 0, 197, 0, 35], ["-", 75, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["-", 0, 11, 31, 204, 206, 207, 0, 28... | 8 | 261 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace mondai0061 {
class Program {
class Team {
public int No;
public int Right;
public int Rank;
}
static void Main(string[] args) {
var entry = new List<Team>();
while (true) {
var e =
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace mondai0061 {
class Program {
class Team {
public int No;
public int Right;
public int Rank;
}
static void Main(string[] args) {
var entry = new List<Team>();
while (true) {
var e =
... | [["+", 8, 196, 0, 1, 0, 11, 31, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 11, 31, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 11, 31, 214, 141, 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], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+",... | 8 | 335 |
using System;
class A {
static void Main() {
while (true) {
string n = Console.ReadLine();
if (n == null) {
break;
}
int[] a = new int[10];
for (int i = 0; i < n.Length; i++) {
a[i] = int.Parse(n.Substring(i, 1));
}
Console.WriteLine(a[0] + a[1] * 4 + a[2... | using System;
class A {
static void Main() {
while (true) {
string n = Console.ReadLine();
if (n == null) {
break;
}
int[] a = new int[10];
for (int i = 0; i < n.Length; i++) {
a[i] = int.Parse(n.Substring(i, 1));
}
Console.WriteLine((a[0] + (a[1] * 9) + a... | [["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["-", 31, 16, 31, 16, 31, 16, 12, 16, 12, 203], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 31, 16, 31, 16, 31, 16, 12, 23, 0, 25], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 203], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 12, 2... | 8 | 151 |
using System;
namespace _062_WhatistheBottommost {
class Program {
static void Main(string[] args) {
string inputStr;
while ((inputStr = Console.ReadLine()) != null) {
int[] numArray = new int[10];
// parse
for (int lp = 0; lp < numArray.Length; lp++) {
numArray[lp] = inputStr[lp]... | using System;
namespace _062_WhatistheBottommost {
class Program {
static void Main(string[] args) {
string inputStr;
while ((inputStr = Console.ReadLine()) != null) {
int[] numArray = new int[10];
// parse
for (int lp = 0; lp < numArray.Length; lp++) {
numArray[lp] = inputStr[lp]... | [["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 52, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 52, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 52, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 52, 8, 196, 0, 7, 26, 223, 0, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["-", ... | 8 | 155 |
using System;
using System.Linq;
namespace Volume0 {
class Program {
static void Main(string[] args) {
while (true) {
string s = Console.ReadLine();
if (s == null)
break;
int[] i = s.Split(' ').Select(e => int.Parse(e)).ToArray();
string x = ((i[2] * i[4] - i[1] * i[5]) / (i[0] * ... | using System;
using System.Linq;
namespace Volume0 {
class Program {
static void Main(string[] args) {
while (true) {
string s = Console.ReadLine();
if (s == null)
break;
double[] i = s.Split(' ').Select(e => double.Parse(e)).ToArray();
double x = (i[2] * i[4] - i[1] * i[5]) / (i[... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 212, 0, 213, 63, 214... | 8 | 205 |
using System;
using System.Linq;
namespace AOJ {
class Program {
public static void Main(string[] args) {
int pass = 0;
var s = "";
while ((s = Console.ReadLine()) != "hoge") {
var arr = s.ToCharArray();
for (var i = 0; i < s.Count(); i++) {
if (isNumber(arr[i])) {
var c = n... | using System;
using System.Linq;
namespace AOJ {
class Program {
public static void Main(string[] args) {
int pass = 0;
var s = "";
while ((s = Console.ReadLine()) != null) {
var arr = s.ToCharArray();
for (var i = 0; i < s.Count(); i++) {
if (isNumber(arr[i])) {
var c = new... | [["-", 8, 196, 0, 52, 15, 16, 12, 5, 0, 62], ["-", 8, 196, 0, 52, 15, 16, 12, 5, 0, 222], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 12, 215], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-"... | 8 | 200 |
using System;
using System.Linq;
namespace AOJ {
class Program {
public static void Main(string[] args) {
int pass = 0;
var s = "";
while ((s = Console.ReadLine()) != "hoge") {
var arr = s.ToCharArray();
for (var i = 0; i < s.Count(); i++) {
if (isNumber(arr[i])) {
var c = n... | using System;
using System.Linq;
namespace AOJ {
class Program {
public static void Main(string[] args) {
int pass = 0;
var s = "";
while ((s = Console.ReadLine()) != null) {
var arr = s.ToCharArray();
for (var i = 0; i < s.Count(); i++) {
if (Char.IsDigit(arr[i])) {
var c =... | [["-", 8, 196, 0, 52, 15, 16, 12, 5, 0, 62], ["-", 8, 196, 0, 52, 15, 16, 12, 5, 0, 222], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 12, 215], ["-", 0, 7, 8, 196, 0, 57, 15, 213, 63, 22], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 14... | 8 | 200 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace ConsoleApplication2 {
class Program {
static void Main(string[] args) {
TextReader input = Console.In;
string str = "";
while ((str = input.ReadLine()) != null) {
// スペースで区切る
st... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace ConsoleApplication2 {
class Program {
static void Main(string[] args) {
TextReader input = Console.In;
string str = "";
while ((str = input.ReadLine()) != null) {
// スペースで区切る
st... | [["-", 31, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 31, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 31, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 31, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 31, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 12, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 12, 21... | 8 | 317 |
using System;
class main {
static void Main(string[] args) {
string s = Console.ReadLine();
if (s != null) {
string[] t = s.Split(' ');
double[] u = new double[6];
for (int i = 0; i < t.Length; ++i) {
u[i] = double.Parse(t[i]);
}
double y =
((u[2] * u[3]) - (... | using System;
class main {
static void Main(string[] args) {
while (true) {
string s = Console.ReadLine();
if (s != null) {
string[] t = s.Split(' ');
double[] u = new double[6];
for (int i = 0; i < t.Length; ++i) {
u[i] = double.Parse(t[i]);
}
doub... | [["+", 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], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["... | 8 | 194 |
using System;
using System.Text;
namespace _0064 {
class Program {
static void Main(string[] args) {
int passWord = 0;
var text = "";
while ((text = Console.ReadLine()) != string.Empty) {
var textCharacters = text.ToCharArray();
// var numberCharacters = new StringBuilder();
string num... | using System;
using System.Text;
namespace _0064 {
class Program {
static void Main(string[] args) {
int secretNumber = 0;
var text = "";
while ((text = Console.ReadLine()) != null) {
var textCharacters = text.ToCharArray();
// var numberCharacters = new StringBuilder();
string numberC... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 52, 15, 16, 12, 214, 205, 199], ["-", 8, 196, 0, 52, 15, 16, 12, 214, 0, 131], ["-", 8, 196, 0, 52, 15, 16, 12, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 12, 215], ["-", 0, 57, 64, 196, 0, 1, 0, 1... | 8 | 157 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ {
class Program {
static void Main(string[] args) {
string line;
while ((line = Console.ReadLine()) != null) {
for (int i = 0; i < 3; i++) {
if (line[i * 3] != 's' && line[i * 3] == line[i * 3 + 1] &&
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ {
class Program {
static void Main(string[] args) {
string line;
while ((line = Console.ReadLine()) != null) {
for (int i = 0; i < 3; i++) {
if (line[i * 3] != 's' && line[i * 3] == line[i * 3 + 1] &&
l... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], [... | 8 | 244 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication46 {
class Program {
static void Main(string[] args) {
string a = Console.ReadLine();
if (a[0] == 'o' && a[1] == 'o' && a[2] == 'o')
Console.WriteLine("o");
if (a[3] == 'o' && a[4] == '... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication46 {
class Program {
static void Main(string[] args) {
string a;
while ((a = Console.ReadLine()) != null) {
if (a == null)
break;
if (a[0] == 'o' && a[1] == 'o' && a[2] == 'o'... | [["+", 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, 0, 24], ["+", 8, 196, 0, 52, 15, 16, 31, 23, 0, 24], ["+", 0, 52, 15, 16, 31, 23, 0, 11, 31, 22], ["+", 31, 23, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 31, 23, 0, 11, 12, 213, 3, 4, 0, 25], ["+",... | 8 | 666 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ.Volume0 {
class Program0009 {
static void Main(string[] args) {
string input;
Queue<int> results = new Queue<int>();
while ((input = Console.ReadLine()) != null) {
int n = int.Parse(inpu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ.Volume0 {
class Program0009 {
static void Main(string[] args) {
string input;
Queue<int> results = new Queue<int>();
while ((input = Console.ReadLine()) != null) {
int n = int.Parse(inpu... | [["+", 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, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 240 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ.Volume0 {
class Program0009 {
static void Main(string[] args) {
string input;
Queue<int> results = new Queue<int>();
while ((input = Console.ReadLine()) != null) {
int n = int.Parse(inpu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ.Volume0 {
class Program0009 {
static void Main(string[] args) {
string input;
Queue<int> results = new Queue<int>();
while ((input = Console.ReadLine()) != null) {
int n = int.Parse(inpu... | [["-", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 8, 196, 0, 1, 0, 11, 12, 211, 0, 146], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], [... | 8 | 240 |
using System;
using System.Collections.Generic;
namespace test {
class Program {
static int[] primeArray = new int[1000000];
static void Main(string[] args) {
SetPrime();
List<int> list = new List<int>();
string input;
while ((input = Console.ReadLine()) != null) {
int n = int.Parse(input)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Diagnostics;
namespace test {
class Program {
static int[] primeArray = new int[1000000];
static void Main(string[] args) {
SetPrime();
List<int> list = new List<int>();
str... | [["+", 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], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 57, 64, 196, 0, 1... | 8 | 342 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class SearchIsland {
struct Position {
internal int x, y;
}
readonly int[] moveX = new int[] { -1, 0, 1, 0 };
readonly int[] moveY = new int[] { 0, -1, 0, 1 };
char[][] map;
public v... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class SearchIsland {
struct Position {
internal int x, y;
}
readonly int[] moveX = new int[] { -1, 0, 1, 0 };
readonly int[] moveY = new int[] { 0, -1, 0, 1 };
char[][] map;
public v... | [["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 45], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["+", 0, 7, 8, 196, 0, 57, 15, 241, 0, 111], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 7, 8, 196, 0, 57, 64, 116, 0, 117], ["+", 0, 7, 8, 196, 0, 57, 64, 116, 0, 35], ["-", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46], ["+", 0... | 8 | 549 |
using System;
namespace OJcsharp {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
double[] ansx = new double[n];
double[] ansy = new double[n];
double[] ansr = new double[n];
for (int m = 0; m < n; m++) {
string[] str = Console.ReadLine().Split(' ')... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OJcsharp {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
double[] ansx = new double[n];
double[] ansy = new double[n];
double[] ansr = new double[n];
for (int... | [["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, ... | 8 | 477 |
using System;
using System.Linq;
using System.Text;
namespace CircumscribedCircleOfATriangle {
class Program {
static void Main(string[] args) {
var sb = new StringBuilder();
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
decimal[] input =
Console.ReadLine().Split().... | using System;
using System.Linq;
using System.Text;
namespace CircumscribedCircleOfATriangle {
class Program {
static void Main(string[] args) {
var sb = new StringBuilder();
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
decimal[] input =
Console.ReadLine().Split().... | [["-", 0, 74, 51, 23, 0, 16, 31, 16, 31, 22], ["-", 0, 74, 51, 23, 0, 16, 31, 16, 17, 48], ["-", 0, 74, 51, 23, 0, 16, 31, 16, 12, 22], ["-", 0, 28, 0, 74, 51, 23, 0, 16, 17, 72], ["+", 51, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 31, 16, 31, 23, 0, 16, 12, 204, 205, 22], ["... | 8 | 413 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using Microsoft.Xna.Framework;
namespace AOJ.Volume0 {
class Program0010 {
static void Main(string[] args) {
int dataNum;
Queue<string> inputs = new Queue<string>();
Queue<Circle> results = new Queue<Circle... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using Microsoft.Xna.Framework;
namespace AOJ.Volume0 {
class Program0010 {
static void Main(string[] args) {
int dataNum;
Queue<string> inputs = new Queue<string>();
Queue<Circle> results = new Queue<Circle... | [["+", 3, 4, 0, 28, 0, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 12, 230, 3, 4, 0, 28, 0, 16, 17, 72]] | 8 | 1,066 |
using System;
class main {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
string s = Console.ReadLine();
string[] s1 = s.Split(' ');
double x1 = double.Parse(s1[0]);
double x2 = double.Parse(s1[1]);
double x3 = double.Parse... | using System;
class main {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
string[] s1 = Console.ReadLine().Split(' ');
double x1 = double.Parse(s1[0]);
double y1 = double.Parse(s1[1]);
double x2 = double.Parse(s1[2]);
doubl... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 2... | 8 | 588 |
using System;
class AOJ {
public static void Main() {
while (true) {
string ss = Console.ReadLine();
if (ss == null)
break;
string[] s = ss.Split(' ');
int[] a = new int[6];
for (int i = 0; i < 6; i++) {
a[i] = int.Parse(s[i]);
}
double x = (a[2] * ... | using System;
class AOJ {
public static void Main() {
while (true) {
string ss = Console.ReadLine();
if (ss == null)
break;
string[] s = ss.Split(' ');
int[] a = new int[6];
for (int i = 0; i < 6; i++) {
a[i] = int.Parse(s[i]);
}
double x =
... | [["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25], ["+", 0, 212, 0, 16, 31, 74, 51, 23, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3... | 8 | 223 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Programminng {
class AOJ_Volume0004 {
static void Main(string[] args) {
while (true) {
var input = Console.ReadLine();
if (string.IsNullOrEmpty(input))
break;
double a, b, c, d, e, f, x, y;... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Programminng {
class AOJ_Volume0004 {
static void Main(string[] args) {
while (true) {
var input = Console.ReadLine();
if (string.IsNullOrEmpty(input))
break;
double a, b, c, d, e, f, x, y;... | [["-", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["-", 0, 28, 0, 16, 31, 16, 12, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 261 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace content4 {
class Program {
static void Main(string[] args) {
//連立方程式を解く
// ax + by = c
// dx + ey = f
//空白で分割する
var line = Console.ReadLine().Split();
//配列の要素、すべてに処理を行う
var num_array = Array.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace content4 {
class Program {
static void Main(string[] args) {
//連立方程式を解く
// ax + by = c
// dx + ey = f
while (true) {
//空白で分割する
var line_origin = Console.ReadLine();
if (string.IsNullOrEm... | [["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 2... | 8 | 232 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0071 {
public class Program
{
const int WIDTH = 8;
const int SENTINEL = 3;
static int[,] map;
public static void Main(string[] args) {
int n = RInt();
for (int k = 0; k < n; k++) {
RSt(); //空行の読み飛... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0071 {
public class Program
{
const int WIDTH = 8;
const int SENTINEL = 3;
static int[,] map;
public static void Main(string[] args) {
int n = RInt();
for (int k = 0; k < n; k++) {
RSt(); //空行の読み飛... | [["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 21], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 21], ["+", 0, 11, 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, 31, 22], ["-", 206, 207, 0, 28, 0, 16, 12, 204... | 8 | 717 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Aizu {
public class OnlineJudge {
static void Main() {
foreach (var n in Enumerable.Range(1, int.Parse(Console.ReadLine()))) {
Console.ReadLine();
var board = new bool [8][];
for (int i = 0; i < 8; ++i) {
board... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Aizu {
public class OnlineJudge {
static void Main() {
foreach (var n in Enumerable.Range(1, int.Parse(Console.ReadLine()))) {
Console.ReadLine();
var board = new bool [8][];
for (int i = 0; i < 8; ++i) {
board... | [["-", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["-", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 205, 204, 206, 207, 0, 28, 0, 204, ... | 8 | 421 |
using System;
using System.Collections.Generic;
namespace _0071 {
class Program {
static void Main(string[] args) {
List<bool[,]> resultList = new List<bool[,]>();
int numberOfData = int.Parse(Console.ReadLine());
for (int i = 0; i < numberOfData; i++) {
Console.ReadLine();
bool[,] squares... | using System;
using System.Collections.Generic;
namespace _0071 {
class Program {
static void Main(string[] args) {
List<bool[,]> resultList = new List<bool[,]>();
int numberOfData = int.Parse(Console.ReadLine());
for (int i = 0; i < numberOfData; i++) {
Console.ReadLine();
bool[,] squares... | [["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 214, 205, 22], ["-", ... | 8 | 610 |
using System;
using System.Text;
namespace AOJ.Volume0 {
public class QuadrangularPyramid {
public static int Main() {
var output = new StringBuilder();
while (true) {
int x = int.Parse(Console.ReadLine());
int h = int.Parse(Console.ReadLine());
if (x == 0 && h == 0) {
... | using System;
using System.Text;
namespace AOJ.Volume0 {
public class QuadrangularPyramid {
public static int Main() {
var output = new StringBuilder();
while (true) {
int x = int.Parse(Console.ReadLine());
int h = int.Parse(Console.ReadLine());
if (x == 0 && h == 0) {
... | [["-", 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, 23, 0, 24], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 31, 20... | 8 | 140 |
using System;
namespace _0077 {
class Program {
static void Main(string[] args) {
while (true) {
var yommikomichu = false;
string gh = Console.ReadLine();
if (gh == null) {
break;
}
for (int i = 0; i < gh.Length; i++) {
if (gh.Substring(i, 1) == "@") {
yomm... | using System;
namespace _0077 {
class Program {
static void Main(string[] args) {
while (true) {
// var yommikomichu = false;
string gh = Console.ReadLine();
if (gh == null) {
break;
}
for (int i = 0; i < gh.Length; i++) {
if (gh.Substring(i, 1) == "@") {
... | [["-", 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], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32... | 8 | 170 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var s = "";
var v = new List<double[]>();
while ((s = Console.ReadLine()) != null) {
var xy = s.Split(',');
v.Add(xy.Select(d => double.Parse... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var s = "";
var v = new List<double[]>();
while ((s = Console.ReadLine()) != null) {
var xy = s.Split(',');
v.Add(xy.Select(d => double.Parse... | [["-", 0, 11, 12, 23, 0, 16, 31, 23, 0, 24], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 48], ["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 1, 0, 11, 12, 23, 0, 16, 17, 48], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["... | 8 | 207 |
using System;
using System.Linq;
namespace aizu {
class OnlineJudge {
static void Main() {
string input;
while ((input = Console.ReadLine()) != "0 0") {
int[] count = input.Split().Select(p => int.Parse(p)).ToArray();
Player current, first;
current = first = new Player();
for (int i =... | using System;
using System.Linq;
namespace aizu {
class OnlineJudge {
static void Main() {
string input;
while ((input = Console.ReadLine()) != "0 0") {
int[] count = input.Split().Select(p => int.Parse(p)).ToArray();
Player current, first;
current = first = new Player { Index = 1 };
... | [["-", 0, 11, 12, 11, 12, 230, 3, 4, 0, 24], ["-", 0, 11, 12, 11, 12, 230, 3, 4, 0, 25], ["+", 0, 11, 12, 11, 12, 230, 10, 229, 0, 45], ["+", 12, 11, 12, 230, 10, 229, 0, 11, 31, 22], ["+", 12, 230, 10, 229, 0, 11, 0, 202, 0, 32], ["+", 12, 11, 12, 230, 10, 229, 0, 11, 12, 203], ["+", 0, 11, 12, 11, 12, 230, 10, 229, 0... | 8 | 213 |
using System;
using System.Linq;
namespace aizu {
class OnlineJudge {
static void Main() {
string input;
while ((input = Console.ReadLine()) != "0 0") {
int[] count = input.Split().Select(p => int.Parse(p)).ToArray();
Player current, first;
current = first = new Player();
for (int i =... | using System;
using System.Linq;
namespace aizu {
class OnlineJudge {
static void Main() {
string input;
while ((input = Console.ReadLine()) != "0 0") {
int[] cnt = input.Split().Select(p => int.Parse(p)).ToArray();
Player current = new Player { Index = 1 }, first = current;
for (int i = 0;... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 52, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 8, 196, 0, 52, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 8, 196, 0, 1, 0, 11, 12, 11, 31, 22], ["-", 0, 11, 12, 11, 12, 230, 3, 4, 0, 24], ["... | 8 | 213 |
using System;
class main {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
string s = Console.ReadLine();
string[] s1 = s.Split(' ');
double x1 = double.Parse(s1[0]);
double x2 = double.Parse(s1[1]);
double x3 = double.Parse... | using System;
class main {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
string[] s1 = Console.ReadLine().Split(' ');
double x1 = double.Parse(s1[0]);
double y1 = double.Parse(s1[1]);
double x2 = double.Parse(s1[2]);
doubl... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 2... | 8 | 501 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace _0087 {
class Program {
static void Main(string[] args) {
while (true) {
string s = Console.ReadLine();
if (string.IsNullOrEmpty(s))
break;
string[] x = s.Split();
Stack<double> stack = new Stack<double>(... | using System;
using System.Collections.Generic;
using System.Linq;
namespace _0087 {
class Program {
static void Main(string[] args) {
while (true) {
string s = Console.ReadLine();
if (string.IsNullOrEmpty(s))
break;
string[] x = s.Split();
Stack<double> stack = new Stack<double>(... | [["+", 0, 239, 0, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 254, 0, 239, 0, 196, 0, 197,... | 8 | 258 |
using System;
using System.Text;
namespace _088_TheCodeADoctorLoved {
class Program {
static void Main(string[] args) {
string inputStr;
StringBuilder output = new StringBuilder(100 * 200);
while ((inputStr = Console.ReadLine()) != null) {
StringBuilder data = new StringBuilder(inputStr.Length * 8... | using System;
using System.Text;
namespace _088_TheCodeADoctorLoved {
class Program {
static void Main(string[] args) {
string inputStr;
StringBuilder output = new StringBuilder(100 * 200);
while ((inputStr = Console.ReadLine()) != null) {
StringBuilder data = new StringBuilder(inputStr.Length * 8... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12,... | 8 | 841 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var encode = new Dictionary<string, string>() {
{ " ", "101" }, { "'", "000000" }, { ",", "000011" },
{ "-", "10010001" }, { ".", "010001" }, ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var encode = new Dictionary<string, string>() {
{ " ", "101" }, { "'", "000000" }, { ",", "000011" },
{ "-", "10010001" }, { ".", "010001" }, ... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12,... | 8 | 872 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ0088 {
class Program {
private static readonly Dictionary<char, string> FirstMap =
new Dictionary<char, string> {
{ ' ', "101" }, { '\'', "000000" }, { ',', "000011" },
{ '-', "10010001" }, { '.', "010001" }, ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ0088 {
class Program {
private static readonly Dictionary<char, string> FirstMap =
new Dictionary<char, string> {
{ ' ', "101" }, { '\'', "000000" }, { ',', "000011" },
{ '-', "10010001" }, { '.', "010001" }, ... | [["-", 0, 195, 8, 196, 0, 210, 12, 23, 0, 24], ["-", 0, 242, 0, 240, 0, 213, 63, 214, 205, 22], ["+", 0, 242, 0, 240, 0, 213, 63, 214, 205, 22], ["-", 0, 242, 0, 240, 0, 213, 63, 214, 141, 22], ["+", 0, 242, 0, 240, 0, 213, 63, 214, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, ... | 8 | 895 |
using System;
class AOJ {
public static void Main() {
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
string[] s = Console.ReadLine().Split(' ');
double x1 = int.Parse(s[0]);
double y1 = int.Parse(s[1]);
double x2 = int.Parse(s[2]);
double y2 = int.Parse(s... | using System;
class AOJ {
public static void Main() {
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
string[] s = Console.ReadLine().Split(' ');
double x1 = double.Parse(s[0]);
double y1 = double.Parse(s[1]);
double x2 = double.Parse(s[2]);
double y2 = do... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 487 |
using System;
using System.Linq;
namespace _0011 {
class Program {
private static void Main(string[] args) {
const int maxNumberOfLines = 30;
var numberOfVerticalLines = maxNumberOfLines + 1;
var numberOfHorizontalLines = maxNumberOfLines + 1;
while (maxNumberOfLines < numberOfHorizontalLines &&
... | using System;
using System.Linq;
namespace _0011 {
class Program {
private static void Main(string[] args) {
const int maxNumberOfLines = 30;
var numberOfVerticalLines = maxNumberOfLines + 1;
var numberOfHorizontalLines = maxNumberOfLines + 1;
while (maxNumberOfLines < numberOfVerticalLines) {
... | [["-", 8, 196, 0, 52, 15, 16, 31, 16, 12, 22], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 98], ["-", 8, 196, 0, 52, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 52, 15, 16, 12, 16, 17, 18], ["+", 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, 25], ["+", 8,... | 8 | 258 |
using System;
using System.Linq;
class GcdAndLcm {
static void Main() {
var q = from nums in from line in GetProblems() select line.Split(' ')
.Select(long.Parse)
.ToArray() let gcd =
nums[0] > nums[1] ? GetGcd(nums[0], nums[1])
: GetGcd(nums[1], ... | using System;
using System.Linq;
class GcdAndLcm {
static void Main() {
var q = from nums in from line in GetProblems() select line.Split(' ')
.Select(long.Parse)
.ToArray() let gcd = GetGcd(nums[0], nums[1]) let lcm =
(nums[0] * nums[1]) / gcd select string.Format("{0} {1... | [["-", 0, 240, 0, 41, 15, 16, 31, 204, 205, 22], ["-", 0, 41, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 41, 15, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 242, 0, 240, 0, 41, 15, 16, 17, 47], ["-", 0, 240, 0, 41, 15, 16, 12, 204, 205, 22], ["-", 0, 41, 15, 16, 12, 204, 20... | 8 | 226 |
using System;
class Program {
static long Gcd(long a, long b) {
if (a < b)
return Gcd(b, a);
long d = 0;
do {
d = a % b;
a = b;
b = d;
} while (d != 0);
return a;
}
static long Lcd(long a, long b) { return a * b / Gcd(a, b); }
static void Main(string[] args) {
lo... | using System;
class Program {
static long Gcd(long a, long b) {
if (a < b)
return Gcd(b, a);
long d = 0;
do {
d = a % b;
a = b;
b = d;
} while (d != 0);
return a;
}
static long Lcd(long a, long b) { return a * b / Gcd(a, b); }
static void Main(string[] args) {
lo... | [["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 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, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8, ... | 8 | 249 |
using System.Collections;
using System;
using System.Collections.Generic;
public class Program {
public static void Main() {
string line;
List<string> numberList = new List<string>();
// ??\???
while (true) {
line = Console.ReadLine();
if (line != null) {
numberList.Add(line);... | using System.Collections;
using System;
using System.Collections.Generic;
public class Program {
public static void Main() {
string line;
List<string> numberList = new List<string>();
// ??\???
while (true) {
line = Console.ReadLine();
if (line != null) {
numberList.Add(line);... | [["-", 0, 210, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 210, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["-", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 8, 201, 0, 195, 54, 55, 0, ... | 8 | 344 |
using System;
namespace _0019 {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
int y = 1;
for (int i = 1; i <= a; i++) {
y = y * i;
}
Console.WriteLine(y);
Console.ReadLine();
}
}
} | using System;
namespace _0019 {
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
long y = 1;
for (int i = 1; i <= a; i++) {
y = y * i;
}
Console.WriteLine(y);
}
}
} | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22... | 8 | 76 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Problem0005 {
class Problem0005 {
static void Main(string[] args) {
var inputPairs = GetInputLines().Select(
line => line.Split().Select(word => int.Parse(word)).ToArray());
foreach (int[] pair in inputPairs) {
int n1 ... | using System;
using System.Collections.Generic;
using System.Linq;
class Problem0005 {
static void Main(string[] args) {
var inputPairs = GetInputLines().Select(
line => line.Split().Select(word => int.Parse(word)).ToArray());
foreach (int[] pair in inputPairs) {
int n1 = pair[0];
int n2 ... | [["-", 36, 36, 36, 36, 0, 208, 0, 209, 0, 256], ["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 36, 36, 0, 208, 0, 209, 8, 201, 0, 45], ["-", 0, 210, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 210, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 212, 0, 16, 31, 16, 31, 74, ... | 8 | 250 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AthleteProgramming2 {
class Point {
double x, y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
public Point() {}
//??????-?????? p1=?????? p2=??????
public static Point SubVector(Point ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AthleteProgramming2 {
class Point {
double x, y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
public Point() {}
//??????-?????? p1=?????? p2=??????
public static Point SubVector(Point ... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 15, 16, 12, 16, 31, 16, 31, 241, 0, 111], ["+", 31, 16, 31, 241, 0, 213, 63, 214, 205, 22], ["+", 31, 16, 31, 241, 0, 213, 63, 214, 0, 131], ["+", 31, 16, 31, 241, 0, 213, 63, 214, 141, 22], ["+", 31, 16, 31, 241, 0, 213, 3, 4, 0, 24], ["+", 31, 241, 0, 213, 3, 4, 0... | 8 | 507 |
using System;
namespace _0005 {
public static class Program {
public static void Main() {
string input;
while (!string.IsNullOrEmpty(input = Console.ReadLine())) {
var splitStr = input.Split(' ');
var a = int.Parse(splitStr[0]);
var b = int.Parse(splitStr[1]);
Console.WriteLine("{0... | using System;
namespace _0005 {
public static class Program {
public static void Main() {
string input;
while (!string.IsNullOrEmpty(input = Console.ReadLine())) {
var splitStr = input.Split(' ');
var a = long.Parse(splitStr[0]);
var b = long.Parse(splitStr[1]);
Console.WriteLine("... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 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]] | 8 | 173 |
using System;
class main {
static void Main(string[] args) {
string s;
while ((s = Console.ReadLine()) != null) {
double x1, y1, x2, y2, x3, y3, px, py, abc, abp, pbc, apc;
string[] a = s.Split(' ');
x1 = double.Parse(a[0]);
y1 = double.Parse(a[1]);
x2 = double.Parse(a[2]);
... | using System;
class main {
static void Main(string[] args) {
string s;
while ((s = Console.ReadLine()) != null) {
double x1, y1, x2, y2, x3, y3, px, py, abc, abp, pbc, apc;
string[] a = s.Split(' ');
x1 = double.Parse(a[0]);
y1 = double.Parse(a[1]);
x2 = double.Parse(a[2]);
... | [["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 250], ["-", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["... | 8 | 369 |
using System;
namespace v0_0005 {
class Program {
static void Main(string[] args) {
string line;
while (!string.IsNullOrEmpty(line = Console.ReadLine())) {
var ab = line.Split(' ');
var a = int.Parse(ab[0]);
var b = int.Parse(ab[1]);
int LCM = 1;
int GCD = 1;
int divVal;
... | using System;
namespace v0_0005 {
class Program {
static void Main(string[] args) {
string line;
while (!string.IsNullOrEmpty(line = Console.ReadLine())) {
var ab = line.Split(' ');
var a = int.Parse(ab[0]);
var b = int.Parse(ab[1]);
int LCM = 1;
int GCD = 1;
int divVal;
... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["-", 15, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["-", 15, 16, 31, 23, 0, 16, 31, 16, 17, 109], ["-", 15, 16, 31, 23, 0, 16, 31, 16, 12, 203], ["-", 0, 57, 15, 16, 31, 23, 0, 16, 17, 60]... | 8 | 231 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static int Main(string[] args) {
List<int> list = new List<int>();
while (true) {
string v = Console.ReadLine();
if (v.Length == 0) {
break;
}
// string[] vs = v.Split(' ');
list.Add(in... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static int Main(string[] args) {
List<int> list = new List<int>();
while (true) {
string v = Console.ReadLine();
if (v == null) {
break;
}
if (v.Length == 0) {
break;
}
li... | [["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 215], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 46], ["+"... | 8 | 153 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
public class GcdAndLcm {
public static void Main(string[] args) {
BindingList<string> outputList = new BindingList<string>();
do {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(inp... | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
public class GcdAndLcm {
public static void Main(string[] args) {
BindingList<string> outputList = new BindingList<string>();
do {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(inp... | [["-", 0, 82, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 82, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 205, 199], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 205, 199], ["-", 0, 57, 15, 16, 12, ... | 8 | 267 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var ab = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
long gcd = GCD(ab[0], ab[1]);
long lcm = LCM(ab[0], ab[1], gcd);
Console.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var str = "";
while ((str = Console.ReadLine()) != null) {
var ab = str.Split(' ').Select(i => int.Parse(i)).ToArray();
long gcd = GCD(ab[0], ab[... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 62], ["+", 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, 0, 24... | 8 | 182 |
using System;
using System.Collections.Generic;
namespace test {
class MainClass {
public static void Main(string[] args) {
string input;
List<List<int>> outList = new List<List<int>>();
while ((input = Console.ReadLine()) != null) {
string[] array = input.Split(' ');
List<int> list = new Lis... | using System;
using System.Collections.Generic;
namespace test {
class MainClass {
public static void Main(string[] args) {
string input;
List<List<long>> outList = new List<List<long>>();
while ((input = Console.ReadLine()) != null) {
string[] array = input.Split(' ');
List<long> list = new ... | [["-", 39, 236, 237, 238, 0, 236, 237, 238, 0, 199], ["+", 39, 236, 237, 238, 0, 236, 237, 238, 0, 199], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 3, 4, 0, ... | 8 | 258 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace P0005_GCDandLCM {
class Program {
static void Main(string[] args) {
List<string> lines = new List<string>();
string readLine;
do {
readLine = Console.ReadLine();
if (readLine != null) {
lines.Add(readLine);
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace P0005_GCDandLCM {
class Program {
static void Main(string[] args) {
List<string> lines = new List<string>();
string readLine;
do {
readLine = Console.ReadLine();
if (readLine != null) {
lines.Add(readLine);
... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 200, 0, 212, 0, 16, 31, 204, 205, 22], ["-", 0, 212, 0, 16, 31, 204, 206, 207, 0, 70], ["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 212, 0, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 198, 0, 200, 0, 212, 0, ... | 8 | 256 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace AOJV0 {
class P0005 {
static void Main() {
foreach (var s in EnumerateInputs()
.Select(x => x.Split(' '))
.Select(x => x.Select(int.Parse).ToArray())) {
var gcd = Gcd(s[0], s[1]);... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace AOJV0 {
class P0005 {
static void Main() {
foreach (var s in EnumerateInputs()
.Select(x => x.Split(' '))
.Select(x => x.Select(int.Parse).ToArray())) {
var gcd = Gcd(s[0], s[1]);... | [["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 16, 31, 16, 31, 74, 51, 204, 20... | 8 | 224 |
using System;
class main {
static void Main(string[] args) {
while (true) {
string s = Console.ReadLine();
if (s != null) {
int i = 0;
string[] s1 = s.Split(' ');
long[] a = new long[2];
long[] l = new long[2];
a[0] = long.Parse(s1[0]);
a[1] = long.Pars... | using System;
class main {
static void Main(string[] args) {
while (true) {
string s = Console.ReadLine();
if (s != null) {
int i = 0;
string[] s1 = s.Split(' ');
long[] a = new long[2];
long[] l = new long[2];
a[0] = long.Parse(s1[0]);
a[1] = long.Pars... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 0, 213, 3, 4, 0, 28, 0, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 23, 0, 16, 17, 85], ["+", 0, 28... | 8 | 332 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace contest5 {
class Program {
static void Main(string[] args) {
while (true) {
//空白で分割する
var line_origin = Console.ReadLine();
if (string.IsNullOrEmpty(line_origin)) {
break;
}
var ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace contest5 {
class Program {
static void Main(string[] args) {
while (true) {
//空白で分割する
var line_origin = Console.ReadLine();
if (string.IsNullOrEmpty(line_origin)) {
break;
}
var ... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25]] | 8 | 200 |
using System;
class Program {
static void Main() {
string inputString, outputString = "";
int length;
Console.Write("Enter a string : ");
inputString = Console.ReadLine();
length = inputString.Length - 1;
while (0 <= length) {
outputString = outputString + inputString[length];
leng... | using System;
class Program {
static void Main() {
string inputString, outputString = "";
int length;
inputString = Console.ReadLine();
length = inputString.Length - 1;
while (0 <= length) {
outputString = outputString + inputString[length];
length--;
}
Console.WriteLine(output... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201... | 8 | 81 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Prob0007 {
class Program {
const int defMoney = 100000;
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int money = defMoney;
for (int i = 0; i < n; i++) {
money += (int)(mone... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Prob0007 {
class Program {
const int defMoney = 100000;
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int money = defMoney;
for (int i = 0; i < n; i++) {
money += (int)(mone... | [["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 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], ["-", 0, 57, 64, 1, 0, 213, 3, 4, 0, 24],... | 8 | 122 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CSharpPractice {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int ans = 0;
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CSharpPractice {
class Program {
static void Main(string[] args) {
string tmp = "";
while ((tmp = Console.ReadLine()) != null) {
int n = int.Parse(tmp);
int ans = 0;
for (int i = 0; i < 10; i++) ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 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], ["-", 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,... | 8 | 146 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3 {
class Program {
public static void Main() {
while (true) {
int sss = 0;
string a = Console.ReadLine();
if (a == null)
break;
int b = int.Parse(a);
for (int c... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3 {
class Program {
public static void Main() {
while (true) {
int sss = 0;
string a = Console.ReadLine();
if (a == null)
break;
int b = int.Parse(a);
for (int c... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 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 | 148 |
using System;
class Nationalbudget {
public static void Main() {
int n = int.Parse(Console.ReadLine());
int p, q, a, b;
string s1, s2;
int[] sum;
char[] c1, c2;
for (int i = 0; i < n; i++) {
s1 = Console.ReadLine();
s2 = Console.ReadLine();
a = Math.Max(s1.Length, s2.Length... | using System;
class Nationalbudget {
public static void Main() {
int n = int.Parse(Console.ReadLine());
int p, q, a, b;
string s1, s2;
int[] sum;
char[] c1, c2;
for (int i = 0; i < n; i++) {
s1 = Console.ReadLine();
s2 = Console.ReadLine();
a = Math.Max(s1.Length, s2.Length... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 7... | 8 | 441 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static readonly int MAX = 81;
static void Main(string[] args) {
StringBuilder sb = new StringBuilder();
int[] sum = new int[MAX];
int n = int.Parse(Console.ReadLine()... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static readonly int MAX = 81;
static void Main(string[] args) {
StringBuilder sb = new StringBuilder();
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; ... | [["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 212, 0, 227, 39, 224, ... | 8 | 397 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
var a = Console.ReadLine();
var b = Console.ReadLine();
string result ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
var a = Console.ReadLine();
var b = Console.ReadLine();
string result ... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ... | 8 | 290 |
using System;
using System.Linq;
namespace Volume0_0021 {
class Program {
static void Main(string[] args) {
var count = Convert.ToInt32(Console.ReadLine());
for (var i = 0; i < count; i++) {
var input = Console.ReadLine()
.Split(' ')
.Select(s => Convert.ToSi... | using System;
using System.Linq;
namespace Volume0_0021 {
class Program {
static void Main(string[] args) {
var count = Convert.ToInt32(Console.ReadLine());
for (var i = 0; i < count; i++) {
var input = Console.ReadLine()
.Split(' ')
.Select(s => Convert.ToSi... | [["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 327 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.