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;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
for (int first = 0; first < 10; first++) {
for (int second = 0; second < 10; second++) {
Console.WriteLine(first.ToString() + "x" + second.ToString() + "=" +
(first * second).To... | using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
for (int first = 1; first < 10; first++) {
for (int second = 1; second < 10; second++) {
Console.WriteLine(first.ToString() + "x" + second.ToString() + "=" +
(first * second).To... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 89 |
using System;
class calc {
static void Main() {
int i, j;
for (i = 0; i < 10; i++) {
for (j = 1; j < 10; j++) {
Console.WriteLine("{0}x{1}={2}", i, j, i * j);
}
}
}
} | using System;
class calc {
static void Main() {
int i, j;
for (i = 1; i < 10; i++) {
for (j = 1; j < 10; j++) {
Console.WriteLine("{0}x{1}={2}", i, j, i * j);
}
}
}
} | [["-", 0, 195, 8, 196, 0, 7, 10, 11, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 10, 11, 12, 203]] | 8 | 66 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace contest {
class Program {
static void Main(string[] args) {
for (int x = 0; x < 10; x++) {
for (int y = 0; y < 10; y++) {
Console.WriteLine("{0}x{1}={2}", x, y, x * y);
}
}
Console.ReadKey(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace contest {
class Program {
static void Main(string[] args) {
for (int x = 1; x < 10; x++) {
for (int y = 1; y < 10; y++) {
Console.WriteLine("{0}x{1}={2}", x, y, x * y);
}
}
Console.ReadKey(... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 94 |
public class Hello {
public static void Main() {
int f = 0;
int s = 0;
int t = 0;
for (int i = 0; i < 10; i++) {
int height = int.Parse(System.Console.ReadLine());
if (t > height) {
t = height;
}
if (s > height) {
t = s;
s = height;
}
if (f >... | public class Hello {
public static void Main() {
int f = 0;
int s = 0;
int t = 0;
for (int i = 0; i < 10; i++) {
int height = int.Parse(System.Console.ReadLine());
if (t < height) {
t = height;
}
if (s < height) {
t = s;
s = height;
}
if (f <... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18]] | 8 | 143 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
var inputs = new int[10];
foreach (var i in Enumerable.Range(0, 9)) {
inputs[i] = int.Parse(Console.ReadLine());
}
foreach (var x in inputs.OrderByDescending(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
var inputs = new int[10];
foreach (var i in Enumerable.Range(0, inputs.Length)) {
inputs[i] = int.Parse(Console.ReadLine());
}
foreach (var x in inputs.OrderB... | [["-", 0, 210, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 12, 213, 3, 4, 0, 28, 0, 214, 205, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["+", 12, 213, 3, 4, 0, 28, 0, 214, 141, 22]] | 8 | 104 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp15 {
public class Program {
static void Main(string[] args) {
List<int> b = new List<int>();
for (int f = 0; f < 10; f++) {
int a = int.Parse(Console.ReadLine());
b.Add(a);
}
b.Sort()... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp15 {
public class Program {
static void Main(string[] args) {
List<int> b = new List<int>();
for (int f = 0; f < 10; f++) {
int a = int.Parse(Console.ReadLine());
b.Add(a);
}
b.Sort()... | [["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203]] | 8 | 139 |
using System;
namespace practise {
class Program {
static void Main(string[] args) {
int[] num = new int[10];
for (int i = 1; i < num.Length; i++) {
num[i] = int.Parse(Console.ReadLine());
}
Array.Sort(num);
Array.Reverse(num);
for (int j = 0; j < 3; j++) {
Console.WriteLine(num[j... | using System;
namespace practise {
class Program {
static void Main(string[] args) {
int[] num = new int[10];
for (int i = 0; i < num.Length; i++) {
num[i] = int.Parse(Console.ReadLine());
}
Array.Sort(num);
Array.Reverse(num);
for (int j = 0; j < 3; j++) {
Console.WriteLine(num[j... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 107 |
using System;
class yama {
static void Main() {
int[] a = new int[10];
int[] b = new int[3];
for (int i = 0; i < 10; i++) {
a[i] = int.Parse(Console.ReadLine());
for (int j = 0; j < 3; j++) {
if (b[j] <= a[i]) {
if (j == 0) {
b[j + 2] = b[j + 1];
b[j +... | using System;
class yama {
static void Main() {
int[] a = new int[10];
int[] b = new int[3];
for (int i = 0; i < 10; i++) {
a[i] = int.Parse(Console.ReadLine());
for (int j = 0; j < 3; j++) {
if (b[j] <= a[i]) {
if (j == 0) {
b[j + 2] = b[j + 1];
b[j +... | [["+", 64, 196, 0, 57, 64, 196, 0, 126, 0, 127], ["+", 64, 196, 0, 57, 64, 196, 0, 126, 0, 22], ["+", 64, 196, 0, 57, 64, 196, 0, 126, 0, 35], ["+", 64, 196, 0, 57, 64, 196, 0, 1, 0, 35]] | 8 | 222 |
using System;
public class Program {
public static void Main() {
int[] a = new int[9];
for (int i = 0; i < 10; i++)
a[i] = int.Parse(Console.ReadLine());
Array.Sort(a);
for (int i = 9; i > 6; i--)
Console.WriteLine(a[i]);
}
} | using System;
public class Program {
public static void Main() {
int[] a = new int[10];
for (int i = 0; i < 10; i++)
a[i] = int.Parse(Console.ReadLine());
Array.Sort(a);
for (int i = 9; i > 6; i--)
Console.WriteLine(a[i]);
}
} | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203]] | 8 | 88 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0066 {
class Program {
static void Main(string[] args) {
const int gridSize = 3 * 3;
int[][] winRowIndexs = { new int[] { 0, 1, 2 }, new int[] { 3, 4, 5 },
new int[] { 6, 7, 8 },
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0066 {
class Program {
static void Main(string[] args) {
const int gridSize = 3 * 3;
int[][] winRowIndexs = { new int[] { 0, 1, 2 }, new int[] { 3, 4, 5 },
new int[] { 6, 7, 8 },
... | [["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 98]] | 8 | 302 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _071_BombsChain {
class Program {
const char Bomb = '1';
const char Nothing = '0';
const int Width = 8;
const int Height = 8;
static void Main(string[] args) {
int dataCount = int.Parse(Console.ReadLine());
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _071_BombsChain {
class Program {
const char Bomb = '1';
const char Nothing = '0';
const int Width = 8;
const int Height = 8;
static void Main(string[] args) {
int dataCount = int.Parse(Console.ReadLine());
... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 12, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 16, 12, 5, 0, 222]] | 8 | 659 |
using System;
using System.Text;
using System.Collections.Generic;
namespace AOJ2 {
class Program {
class Point {
public int x { get; set; }
public int y { get; set; }
public Point() {
this.x = 0;
this.y = 0;
}
public Point(int x, int y) {
this.x = x;
this.y = y;
}
... | using System;
using System.Text;
using System.Collections.Generic;
namespace AOJ2 {
class Program {
class Point {
public int x { get; set; }
public int y { get; set; }
public Point() {
this.x = 0;
this.y = 0;
}
public Point(int x, int y) {
this.x = x;
this.y = y;
}
... | [["+", 0, 210, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 210, 8, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 210, 8, 196, 0, 1, 0, 35]] | 8 | 617 |
using System;
class Program {
static void Main(string[] args) {
while (true) {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
if (a == b && a == 0) {
break;
}
double g = Math.Sqrt(b * b + (a / 2 * a / 2));
Console.WriteLine((a * a) + (2 * ... | using System;
class Program {
static void Main(string[] args) {
while (true) {
double a = int.Parse(Console.ReadLine());
double b = int.Parse(Console.ReadLine());
if (a == b && a == 0) {
break;
}
double g = Math.Sqrt(b * b + (a / 2 * a / 2));
Console.WriteLine((a * a) +... | [["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 107 |
using System;
namespace _0073 {
class Program {
static void Main(string[] args) {
while (true) {
int x = int.Parse(Console.ReadLine());
int h = int.Parse(Console.ReadLine());
if (x == 0 && h == 0) {
break;
}
Console.WriteLine(x * x + Math.Sqrt(x * x / 4 + h * h) * x * 2);
... | using System;
namespace _0073 {
class Program {
static void Main(string[] args) {
while (true) {
double x = int.Parse(Console.ReadLine());
double h = int.Parse(Console.ReadLine());
if (x == 0 && h == 0) {
break;
}
Console.WriteLine(x * x + Math.Sqrt(x * x / 4 + h * h) * x * ... | [["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 98 |
using System;
namespace AOJ.Volume0 {
public class Videotape {
public static int Main() {
while (true) {
var input = Console.ReadLine().Split(' ');
int t = int.Parse(input[0]);
int h = int.Parse(input[1]);
int s = int.Parse(input[2]);
if (t == -1 && h == -1 && s == ... | using System;
namespace AOJ.Volume0 {
public class Videotape {
public static int Main() {
while (true) {
var input = Console.ReadLine().Split(' ');
int t = int.Parse(input[0]);
int h = int.Parse(input[1]);
int s = int.Parse(input[2]);
if (t == -1 && h == -1 && s == ... | [["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22]] | 8 | 323 |
using System;
using System.Collections.Generic;
namespace aizu {
class OnlineJudge {
static void Main() {
string input;
while ((input = Console.ReadLine()) != null) {
double weight = double.Parse(input);
Console.WriteLine(weight <= 48.0 ? "light fly"
: weight <= 51.0 ? "f... | using System;
using System.Collections.Generic;
namespace aizu {
class OnlineJudge {
static void Main() {
string input;
while ((input = Console.ReadLine()) != null) {
double weight = double.Parse(input);
Console.WriteLine(weight <= 48.0 ? "light fly"
: weight <= 51.0 ? "f... | [["-", 75, 41, 75, 41, 75, 41, 64, 5, 0, 222], ["+", 75, 41, 75, 41, 75, 41, 64, 5, 0, 222]] | 8 | 143 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ {
class Program {
public static void Main() {
var currentDirection = 90;
var currentX = 0.0;
var currentY = 0.0;
foreach (var direction in ReadNumbers().TakeWhile(ds => ds[0] != 0 &&
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ {
class Program {
public static void Main() {
var currentDirection = 90;
var currentX = 0.0;
var currentY = 0.0;
foreach (var direction in ReadNumbers().TakeWhile(
ds => !(ds[0] == 0 && ds[1] == 0))) {
... | [["+", 3, 4, 0, 28, 0, 218, 8, 241, 0, 111], ["+", 0, 28, 0, 218, 8, 241, 0, 23, 0, 24], ["-", 0, 28, 0, 218, 8, 16, 31, 16, 17, 79], ["+", 8, 241, 0, 23, 0, 16, 31, 16, 17, 60], ["-", 0, 28, 0, 218, 8, 16, 12, 16, 17, 79], ["+", 8, 241, 0, 23, 0, 16, 12, 16, 17, 60], ["+", 0, 28, 0, 218, 8, 241, 0, 23, 0, 25]] | 8 | 215 |
using System;
using System.Linq;
namespace Test06 {
class MainClass {
public static void Main(string[] args) {
int[] mountains = new int[10];
for (int i = 0; i < 10; i++) {
mountains[i] = int.Parse(Console.ReadLine());
}
Console.WriteLine(mountains.Max());
for (int i = 0; i < 10; i++) {
... | using System;
using System.Linq;
namespace Test06 {
class MainClass {
public static void Main(string[] args) {
int[] mountains = new int[10];
for (int i = 0; i < 10; i++) {
mountains[i] = int.Parse(Console.ReadLine());
}
Console.WriteLine(mountains.Max());
for (int i = 0; i < 10; i++) {
... | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]] | 8 | 180 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace AOJV0 {
public class P0001 {
public static void Main() {
foreach (var i in Enumerable.Range(0, 10)
.Select(_ => Console.ReadLine())
.Select(int.Parse)
.OrderBy(x => x)
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace AOJV0 {
public class P0001 {
public static void Main() {
foreach (var i in Enumerable.Range(0, 10)
.Select(_ => Console.ReadLine())
.Select(int.Parse)
.OrderByDescending(x => x)
... | [["-", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22]] | 8 | 83 |
using System;
class Program {
static void Main(string[] args) {
double[] x = new double[1000];
double[] y = new double[1000];
int count = -1;
string str = Console.ReadLine();
while (!string.IsNullOrEmpty(str)) {
count++;
string[] s = str.Split(' ');
double a = double.Parse(s[0]);... | using System;
class Program {
static void Main(string[] args) {
double[] x = new double[1000];
double[] y = new double[1000];
int count = -1;
string str = Console.ReadLine();
while (!string.IsNullOrEmpty(str)) {
count++;
string[] s = str.Split(' ');
double a = double.Parse(s[0]);... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22]] | 8 | 264 |
using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
while (true) {
string input = Console.ReadLine();
if (input == null)
break;
string[] split = input.Split();
double a = double.Parse(split[0]);
double b = double.Parse(split[1]);
... | using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
while (true) {
string input = Console.ReadLine();
if (input == null)
break;
string[] split = input.Split();
double a = double.Parse(split[0]);
double b = double.Parse(split[1]);
... | [["-", 31, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 31, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 12, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 12, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 218 |
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, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 296 |
using System;
class _0016 {
public static void Main() {
char[] splitChar = { ',' };
vector2 origin = new vector2();
double degree = 90.0;
string str = Console.ReadLine();
string[] data = str.Split(splitChar);
while (data[0] != "0" && data[1] != "0") {
vector2 move =
new vector2... | using System;
class _0016 {
public static void Main() {
char[] splitChar = { ',' };
vector2 origin = new vector2();
int degree = 90;
string str = Console.ReadLine();
string[] data = str.Split(splitChar);
while (data[0] != "0" || data[1] != "0") {
vector2 move =
new vector2(doub... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 250], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 98], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 106], ["-", 0, 1, 0, 11, 12, 213, 63, 214,... | 8 | 309 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp16 {
class Program {
public static void Main() {
while (true) {
string a = Console.ReadLine();
if (a == null)
break;
decimal[] b = a.Split().Select(decimal.Parse).ToArray();
d... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp16 {
class Program {
public static void Main() {
while (true) {
string a = Console.ReadLine();
if (a == null)
break;
decimal[] b = a.Split().Select(decimal.Parse).ToArray(); // 1 2... | [["+", 0, 16, 31, 23, 0, 16, 12, 16, 17, 48], ["+", 31, 23, 0, 16, 12, 16, 12, 204, 205, 22], ["+", 0, 16, 12, 16, 12, 204, 206, 207, 0, 70], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 16, 12, 204, 206, 207, 0, 73]] | 8 | 175 |
using System;
class A {
static void Main() {
string a = Console.ReadLine();
a.Replace("apple", "RaAaYssdHOTATEISTHESTRONGEST");
a.Replace("peach", "apple");
a.Replace("RaAaYssdHOTATEISTHESTRONGEST", "peach");
Console.WriteLine(a);
}
} | using System;
class A {
static void Main() {
string a = Console.ReadLine();
a = a.Replace("apple", "RaAaYssdHOTATEISTHESTRONGEST");
a = a.Replace("peach", "apple");
a = a.Replace("RaAaYssdHOTATEISTHESTRONGEST", "peach");
Console.WriteLine(a);
}
} | [["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22]] | 8 | 69 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
string line = "";
while ((line = Console.ReadLine()) != null) {
String[] arg = line.Split(',');
double o = double.Parse(arg[1]);
double s =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
string line = "";
while ((line = Console.ReadLine()) != null) {
String[] arg = line.Split(',');
double o = double.Parse(arg[1]);
double s =... | [["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 25]] | 8 | 126 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace JagArrayTest {
class Program {
static void Main(string[] args) {
while (true) {
var readline = Console.ReadLine();
if (readline == null) {
break;
}
var d = readline.Split(' ').ToList().ConvertAll(double... | using System;
using System.Collections.Generic;
using System.Linq;
namespace JagArrayTest {
class Program {
static void Main(string[] args) {
while (true) {
var readline = Console.ReadLine();
if (readline == null) {
break;
}
var d = readline.Split(' ').ToList().ConvertAll(double... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22]] | 8 | 111 |
using System;
using System.Linq;
class DigitNumber {
static void Main() {
var sums =
from numpair in Enumerable.Range(0, 1000000)
.Select(_ => Console.ReadLine())
.TakeWhile(_ => _ != null)
.Select(_ => _.Split(' ').Select(__ => int.Parse(__))) let a =
nump... | using System;
using System.Linq;
class DigitNumber {
static void Main() {
var sums =
from numpair in Enumerable.Range(0, 1000000)
.Select(_ => Console.ReadLine())
.TakeWhile(_ => _ != null)
.Select(_ => _.Split(' ').Select(__ => int.Parse(__))) let a =
nump... | [["+", 0, 242, 0, 244, 0, 16, 12, 23, 0, 24], ["+", 0, 242, 0, 244, 0, 16, 12, 23, 0, 25], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22]] | 8 | 121 |
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 n = int.Parse(Console.ReadLine());
if (n == 0)
break;
... | 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 n = int.Parse(Console.ReadLine());
if (n == 0)
break;
... | [["-", 0, 52, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 52, 8, 196, 0, 52, 15, 16, 17, 19]] | 8 | 120 |
using System;
class aoj {
static void Main() {
while (true) {
string a = Console.ReadLine();
if (String.IsNullOrEmpty(a))
break;
string[] b = a.Split(' ');
int c = int.Parse(b[0]), d = int.Parse(b[1]), n = int.Parse(b[2]);
double e = (double)c / (double)d;
string f = e.... | using System;
class aoj {
static void Main() {
while (true) {
string a = Console.ReadLine();
if (String.IsNullOrEmpty(a))
break;
string[] b = a.Split(' ');
int c = int.Parse(b[0]), d = int.Parse(b[1]), n = int.Parse(b[2]);
double e = (double)c / (double)d;
string f = e.... | [["-", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]] | 8 | 238 |
using System;
using System.IO;
using System.Linq;
namespace Simultaneous_Equation {
class Program {
static void Main(string[] args) {
var result =
Enumerable.Range(0, int.MaxValue)
.Select(_ => Console.ReadLine())
.TakeWhile(x => x != null)
.Select(x => x.Split(' ').Se... | using System;
using System.IO;
using System.Linq;
namespace Simultaneous_Equation {
class Program {
static void Main(string[] args) {
var result =
Enumerable.Range(0, int.MaxValue)
.Select(_ => Console.ReadLine())
.TakeWhile(x => x != null)
.Select(x => x.Split(' ').Se... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 222 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace AOJ2 {
class Program {
static void Main(string[] args) {
List<int> resultList = new List<int>();
string input;
while ((input = Console.ReadLine()) != null) {
decimal[] array =
input.Split(' ').Select(s => decima... | using System;
using System.Linq;
using System.Collections.Generic;
namespace AOJ2 {
class Program {
static void Main(string[] args) {
List<int> resultList = new List<int>();
string input;
while ((input = Console.ReadLine()) != null) {
decimal[] array =
input.Split(' ').Select(s => decima... | [["+", 205, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 205, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 216 |
using System;
using System.Collections.Generic;
namespace test {
class MainClass {
public static void Main(string[] args) {
string input;
List<string> outList = new List<string>();
while ((input = Console.ReadLine()) != "0") {
string[] array = input.Split(' ');
List<double> list = new List<do... | using System;
using System.Collections.Generic;
namespace test {
class MainClass {
public static void Main(string[] args) {
string input;
List<string> outList = new List<string>();
while ((input = Console.ReadLine()) != null) {
string[] array = input.Split(' ');
List<double> list = new List<d... | [["-", 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 | 269 |
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;
... | [["-", 0, 195, 8, 196, 0, 7, 26, 11, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 26, 11, 12, 203]] | 8 | 231 |
using System;
class Program {
public static void Main() {
string s;
while ((s = Console.ReadLine()) != null) {
int[] n = Array.ConvertAll(s.Split(' '), int.Parse);
int a = GCD(n[0], n[1]);
Console.WriteLine(a + " " + n[0] * n[1] / a);
}
}
static int GCD(int x, int y) {
if (y =... | using System;
class Program {
public static void Main() {
string s;
while ((s = Console.ReadLine()) != null) {
int[] n = Array.ConvertAll(s.Split(' '), int.Parse);
int a = GCD(n[0], n[1]);
Console.WriteLine(a + " " + n[0] / a * n[1]);
}
}
static int GCD(int x, int y) {
if (y =... | [["+", 0, 28, 0, 16, 12, 16, 31, 16, 17, 85], ["+", 0, 28, 0, 16, 12, 16, 31, 16, 12, 22], ["-", 3, 4, 0, 28, 0, 16, 12, 16, 17, 85], ["-", 3, 4, 0, 28, 0, 16, 12, 16, 12, 22]] | 8 | 127 |
using System;
class main {
static void Main(string[] args) {
const int N = 50;
string[] I = new string[N];
string[] I1;
int a, b, G, L;
for (int i = 0; i < N; i++) {
I[i] = Console.ReadLine();
}
for (int i = 0; i < N; i++) {
if (string.IsNullOrEmpty(I[i]))
break;
... | using System;
class main {
static void Main(string[] args) {
const int N = 50;
string[] I = new string[N];
string[] I1;
int a, b, G, L;
for (int i = 0; i < N; i++) {
I[i] = Console.ReadLine();
}
for (int i = 0; i < N; i++) {
if (string.IsNullOrEmpty(I[i]))
break;
... | [["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 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, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 0, 2... | 8 | 230 |
using System;
using System.Text;
namespace GCDandLCM {
class Program {
static void Main(string[] args) {
var sb = new StringBuilder();
while (true) {
string str = Console.ReadLine();
if (str == "") {
break;
}
double[] inputs = Array.ConvertAll(str.Split(' '), double.Parse);
... | using System;
using System.Text;
namespace GCDandLCM {
class Program {
static void Main(string[] args) {
var sb = new StringBuilder();
while (true) {
string str = Console.ReadLine();
if (str == null) {
break;
}
double[] inputs = Array.ConvertAll(str.Split(' '), double.Parse);
... | [["-", 8, 196, 0, 57, 15, 16, 12, 5, 0, 62], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 215]] | 8 | 218 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ {
class Program {
public static void Main() {
var candidateBase = new[] { "the", "this", "that" };
var candidates = new Dictionary<string, List<string>>();
foreach (var candidate in candidateBase) {
candidates[candidat... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ {
class Program {
public static void Main() {
var candidateBase = new[] { "the", "this", "that" };
var candidates = new Dictionary<string, List<string>>();
foreach (var candidate in candidateBase) {
candidates[candidat... | [["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 203]] | 8 | 358 |
using System;
class AOJ {
static void Main(string[] args) {
string s = Console.ReadLine();
string ans = "";
int[] x = Array.ConvertAll(s.Split(' '), int.Parse);
Array.Sort(x);
for (int i = 0; i < 5; i++) {
ans += (4 - x[i]);
if (i != 4)
ans += " ";
}
Console.WriteLi... | using System;
class AOJ {
static void Main(string[] args) {
string s = Console.ReadLine();
string ans = "";
int[] x = Array.ConvertAll(s.Split(' '), int.Parse);
Array.Sort(x);
for (int i = 0; i < 5; i++) {
ans += (x[4 - i]);
if (i != 4)
ans += " ";
}
Console.WriteLi... | [["-", 0, 1, 0, 11, 12, 23, 0, 16, 31, 203], ["-", 0, 1, 0, 11, 12, 23, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 31, 203], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33]] | 8 | 109 |
using System;
class Program {
static void Main() {
int[] n = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
Array.Sort(n);
for (int i = 3; i > 0; i--)
Console.Write(n[i] + " ");
Console.WriteLine(n[0]);
}
} | using System;
class Program {
static void Main() {
int[] n = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
Array.Sort(n);
for (int i = 4; i > 0; i--)
Console.Write(n[i] + " ");
Console.WriteLine(n[0]);
}
} | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 86 |
using System;
using System.Collections.Generic;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
List<int> hList = new List<int>();
string s = "";
int dat = 0;
while (true) {
s = Console.ReadLine();
if (s == "") {
break;
}
dat = C... | using System;
using System.Collections.Generic;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
List<int> hList = new List<int>();
string s = "";
int dat = 0;
while (true) {
s = Console.ReadLine();
if (s == null) {
break;
}
dat =... | [["-", 8, 196, 0, 57, 15, 16, 12, 5, 0, 62], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 215]] | 8 | 166 |
using System;
namespace GCDandLCM {
class Program {
static void Main(string[] args) {
string buf;
while (!string.IsNullOrEmpty(buf = Console.ReadLine())) {
string[] str = buf.Split(' ');
int a = int.Parse(str[0]), b = int.Parse(str[1]);
int gcd = (a > b) ? Myfunc(a, b) : Myfunc(b, a);
... | using System;
namespace GCDandLCM {
class Program {
static void Main(string[] args) {
string buf;
while (!string.IsNullOrEmpty(buf = Console.ReadLine())) {
string[] str = buf.Split(' ');
int a = int.Parse(str[0]), b = int.Parse(str[1]);
int gcd = (a > b) ? Myfunc(a, b) : Myfunc(b, a);
... | [["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 156 |
using System;
class main {
static void Main(string[] args) {
string s = string.Empty;
while ((s = Console.ReadLine()) != null) {
string[] s1 = s.Split(' ');
int[] a = new int[3];
a[0] = int.Parse(s1[0]);
a[1] = int.Parse(s1[1]);
a[2] = 0;
Array.Sort(a);
Array.Reverse(... | using System;
class main {
static void Main(string[] args) {
string s = string.Empty;
while ((s = Console.ReadLine()) != null) {
string[] s1 = s.Split(' ');
long[] a = new long[3];
a[0] = long.Parse(s1[0]);
a[1] = long.Parse(s1[1]);
a[2] = 0;
Array.Sort(a);
Array.Reve... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199]] | 8 | 244 |
using System;
class main {
static void Main(string[] args) {
string s = string.Empty;
while ((s = Console.ReadLine()) != null) {
string[] s1 = s.Split(' ');
long[] a = new long[3];
a[0] = long.Parse(s1[0]);
a[1] = long.Parse(s1[1]);
a[2] = 0;
Array.Sort(a);
Array.Reve... | using System;
class main {
static void Main(string[] args) {
string s = string.Empty;
while ((s = Console.ReadLine()) != null) {
string[] s1 = s.Split(' ');
long[] a = new long[3];
a[0] = long.Parse(s1[0]);
a[1] = long.Parse(s1[1]);
a[2] = 0;
Array.Sort(a);
Array.Reve... | [["+", 64, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 52, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 238 |
using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
char[] c = Console.ReadLine().ToCharArray();
Array.Reverse(c);
Console.WriteLine(c.ToString());
}
}
} | using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
char[] c = Console.ReadLine().ToCharArray();
Array.Reverse(c);
Console.WriteLine(new String(c));
}
}
} | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 230, 0, 228], ["+", 0, 213, 3, 4, 0, 28, 0, 230, 39, 22], ["+", 0, 28, 0, 230, 3, 4, 0, 28, 0, 22]] | 8 | 55 |
using System;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
int sum = n;
for (int i = n - 1; i >= 1; i--) {
sum = sum * i;
}
Console.WriteLine(sum);
}
}
| using System;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
long sum = n;
for (int i = n - 1; i >= 1; i--) {
sum = sum * i;
}
Console.WriteLine(sum);
}
}
| [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 64 |
using System;
namespace AOJ.Volume0 {
class Factorial {
public static void Main() {
int n = int.Parse(Console.ReadLine());
uint ans = 1;
for (int i = 2; i <= n; i++) {
ans = ans * (uint)i;
}
Console.WriteLine(ans);
}
}
} | using System;
namespace AOJ.Volume0 {
class Factorial {
public static void Main() {
int n = int.Parse(Console.ReadLine());
long ans = 1;
for (int i = 2; i <= n; i++) {
ans = ans * i;
}
Console.WriteLine(ans);
}
}
} | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 1, 0, 11, 12, 16, 12, 74, 0, 24], ["-", 0, 1, 0, 11, 12, 16, 12, 74, 39, 199], ["-", 0, 1, 0, 11, 12, 16, 12, 74, 0, 25]] | 8 | 72 |
using System;
namespace OJcsharp {
class Program {
static void Main(string[] args) {
int N;
N = int.Parse(Console.ReadLine());
int ans = 1;
for (int n = 2; n <= N; n++) {
ans *= n;
}
Console.WriteLine(ans);
}
}
} | using System;
namespace OJcsharp {
class Program {
static void Main(string[] args) {
int N;
N = int.Parse(Console.ReadLine());
long ans = 1;
for (int n = 2; n <= N; n++) {
ans *= n;
}
Console.WriteLine(ans);
}
}
} | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 70 |
using System;
using System.Linq;
namespace AOJ {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
Console.WriteLine(Enumerable.Range(1, n).Aggregate((a, b) => a * b));
}
}
} | using System;
using System.Linq;
namespace AOJ {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
Console.WriteLine(
Enumerable.Range(1, n).Aggregate((long)1, (a, b) => a * b));
}
}
} | [["+", 0, 213, 3, 4, 0, 28, 0, 74, 39, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 74, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 74, 51, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 24]] | 8 | 68 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication34 {
class Program {
static void Main() {
int a = 1, s = int.Parse(Console.ReadLine());
for (int b = 1; b <= s; b++) {
a *= b;
}
Console.WriteLine(a);
}
}
} | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication34 {
class Program {
static void Main() {
long a = 1;
int s = int.Parse(Console.ReadLine());
for (int b = 1; b <= s; b++) {
a *= b;
}
Console.WriteLine(a);
}
}
} | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35]] | 8 | 80 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp5 {
class Program {
static void Main(string[] args) {
{
string a = Console.ReadLine();
int b = a.Length;
for (; b > 0; b--) {
Console.Write(a[b]);
}
Console.WriteLine();... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp9 {
class Program {
public static void Main(string[] args)
{
{
string a = Console.ReadLine();
int b = a.Length;
for (; b > 0; b--) {
Console.Write(a[b - 1]);
}
Consol... | [["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 0, 235, 8, 201, 0, 195, 0, 251, 0, 259], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 85 |
using System;
using System.Linq;
class AOJ {
static void Main(string[] args) {
string s = Console.ReadLine();
Console.WriteLine(s.Reverse());
}
} | using System;
using System.Linq;
class AOJ {
static void Main(string[] args) {
string s = Console.ReadLine();
Console.WriteLine(s.Reverse().ToArray());
}
} | [["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25]] | 8 | 43 |
using System;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
double price = 100000;
for (int i = 0; i < n; i++) {
price = price * 1.05;
}
price = price / 10000;
double tmp = Math.Ceiling(price);
price = tmp * 10000;
Console.WriteLine(price);
}
... | using System;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
double price = 100000;
for (int i = 0; i < n; i++) {
price = price * 1.05;
price = price / 1000;
double tmp = Math.Ceiling(price);
price = tmp * 1000;
}
Console.WriteLine(price);
... | [["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]] | 8 | 84 |
using System;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
double money = 1000;
for (int i = 0; i < n + 1; i++) {
money = Math.Ceiling(money * 1.05);
}
Console.WriteLine(money * 1000);
}
} | using System;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
double money = 100;
for (int i = 0; i < n; i++) {
money = Math.Ceiling(money * 1.05);
}
Console.WriteLine(money * 1000);
}
} | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 75 |
using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.IO;
public class Sample8 {
public static void Main() {
int week = int.Parse(Console.ReadLine());
double result = debutResult(week);
Console.WriteLine(result);
}
public static double debutRes... | using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.IO;
public class Sample8 {
public static void Main() {
int week = int.Parse(Console.ReadLine());
double result = debutResult(week);
Console.WriteLine(result);
}
public static double debutRes... | [["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]] | 8 | 126 |
using System;
class _0007 {
public static void Main() {
double money = 100000;
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
money += money * 0.05;
money = Math.Ceiling(money / 1000.0) * 1000.0;
}
Console.WriteLine();
}
} | using System;
class _0007 {
public static void Main() {
double money = 100000;
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
money += money * 0.05;
money = Math.Ceiling(money / 1000.0) * 1000.0;
}
Console.WriteLine(money);
}
} | [["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 75 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
//空白で分割する
var line_origin = Console.ReadLine();
if (string.IsNullOrEmpty(line_origin)) {
return;
}
int week_num = int.Par... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
var line_origin = Console.ReadLine();
if (string.IsNullOrEmpty(line_origin)) {
return;
}
int week_num = int.Parse(line_origin... | [["-", 0, 11, 12, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 16, 31, 213, 3, 4, 0, 24], ["+", 31, 213, 3, 4, 0, 28, 0, 23, 0, 25]] | 8 | 126 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static string InputPattern = "Input1";
static List<string> GetInputList() {
var WillReturn = new List<string>();
if (InputPattern == "Input1") {
WillReturn.Add("35");
WillReturn.Add("1");
} else {
str... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static string InputPattern = "Input2";
static List<string> GetInputList() {
var WillReturn = new List<string>();
if (InputPattern == "Input1") {
WillReturn.Add("35");
WillReturn.Add("1");
} else {
str... | [["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]] | 8 | 247 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication51 {
class Program {
static void Main() {
while (true) {
string l = Console.ReadLine();
if (l == null)
break;
int[] a = l.Split().Select(int.Parse).ToArray();
int b = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication51 {
class Program {
static void Main() {
while (true) {
string l = Console.ReadLine();
if (l == null)
break;
int[] a = l.Split().Select(int.Parse).ToArray();
int b = ... | [["-", 0, 200, 0, 212, 0, 16, 12, 16, 17, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72]] | 8 | 250 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication4 {
class Program {
static void Main(string[] args) {
string input;
int sum = 0, digit = 1;
while ((input = Console.ReadLine()) != null) {
foreach (string num in input.Split()) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication4 {
class Program {
static void Main(string[] args) {
string input;
int sum = 0, digit = 1;
while ((input = Console.ReadLine()) != null) {
foreach (string num in input.Split()) {
... | [["-", 0, 52, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 203]] | 8 | 121 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int a, b;
string tmp;
string[] inp;
List<int> res = new List<int>();
while (true) {
tmp = Console.ReadLine();
if (tmp == "") {
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int a, b;
string tmp;
string[] inp;
List<int> res = new List<int>();
while (true) {
tmp = Console.ReadLine();
if (tmp == null) {
... | [["-", 8, 196, 0, 57, 15, 16, 12, 5, 0, 62], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 215]] | 8 | 185 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication32 {
class Program {
static void Main(string[] args) {
int s = 1;
int a = int.Parse(Console.ReadLine());
for (int f = 2; f < a + 1; f++)
s *= f;
Console.WriteLine(s);
}
}
} | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication32 {
class Program {
static void Main(string[] args) {
long s = 1;
int a = int.Parse(Console.ReadLine());
for (int f = 2; f < a + 1; f++)
s *= f;
Console.WriteLine(s);
}
}
} | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 85 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ.Volume0 {
class Program0002 {
static void Main(string[] args) {
const int N = 2;
string input;
Queue<int[]> queue = new Queue<int[]>();
while ((input = Console.ReadLine()) != string.Empty) {
string[]... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ.Volume0 {
class Program0002 {
static void Main(string[] args) {
const int N = 2;
string input;
Queue<int[]> queue = new Queue<int[]>();
while ((input = Console.ReadLine()) != null) {
string[] splited... | [["-", 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]] | 8 | 174 |
using System;
using System.Text;
namespace _083_EraNameTransformation {
class Program {
static void Main(string[] args) {
DateTime meiji = new DateTime(1868, 9, 8);
DateTime taisyo = new DateTime(1912, 7, 30);
DateTime showa = new DateTime(1926, 12, 25);
DateTime heisei = new DateTime(1989, 1, 8);
... | using System;
using System.Text;
namespace _083_EraNameTransformation {
class Program {
static void Main(string[] args) {
DateTime meiji = new DateTime(1868, 9, 8);
DateTime taisho = new DateTime(1912, 7, 30);
DateTime showa = new DateTime(1926, 12, 25);
DateTime heisei = new DateTime(1989, 1, 8);
... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 0, 28, 0, 16, 31, 16, 12, 214, 205, 22], ... | 8 | 441 |
using System;
using System.Text;
using System.Collections.Generic;
namespace AOJ2 {
class Program {
static void Main(string[] args) {
List<string> resultList = new List<string>();
string input;
while ((input = Console.ReadLine()) != null) {
string[] inputArray = input.Split(' ');
int date ... | using System;
using System.Text;
using System.Collections.Generic;
namespace AOJ2 {
class Program {
static void Main(string[] args) {
List<string> resultList = new List<string>();
string input;
while ((input = Console.ReadLine()) != null) {
string[] inputArray = input.Split(' ');
int date ... | [["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 25]] | 8 | 383 |
using System;
class aoj {
static void Main() {
int a = int.Parse(Console.ReadLine());
int b = 1;
for (int i = 1; i <= a; i++) {
b *= i;
}
Console.WriteLine(b);
}
} | using System;
class aoj {
static void Main() {
int a = int.Parse(Console.ReadLine());
ulong b = 1;
for (int i = 1; i <= a; i++) {
b *= (ulong)i;
}
Console.WriteLine(b);
}
} | [["-", 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, 11, 12, 74, 0, 24], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 0, 25]] | 8 | 60 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Miscelleneous {
class Program {
static Dictionary<char, string> Encode0 =
new Dictionary<char, string>() { { ' ', "101" }, { '\'', "000000" },
{ ',', "000011" }, { '-', "100... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Miscelleneous {
class Program {
static Dictionary<char, string> Encode0 =
new Dictionary<char, string>() { { ' ', "101" }, { '\'', "000000" },
{ ',', "000011" }, { '-', "100... | [["-", 8, 196, 0, 37, 0, 41, 15, 16, 17, 18], ["+", 8, 196, 0, 37, 0, 41, 15, 16, 17, 19]] | 8 | 537 |
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Diagnostics;
using System.Threading;
class Program {
public const int Inf = 1 << 29;
private static int[,] dp = new int[100, 100];
private static int... | using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Diagnostics;
using System.Threading;
class Program {
public const int Inf = 1 << 29;
public static int[,] dp = new int[100, 100];
public static int[,... | [["-", 0, 235, 8, 201, 0, 124, 0, 251, 0, 261], ["+", 0, 235, 8, 201, 0, 124, 0, 251, 0, 259], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 200, 0, 212, 0, 41, 15, 16, 17, 20], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 47]] | 8 | 401 |
using System;
public class Hello {
public static void Main() {
var a = new int[99, 50];
var j = 0;
string line;
for (; (line = Console.ReadLine()) != null;) {
string[] line2 = line.Trim().Split(',');
for (int i = 0; i < line2.Length; i++)
a[j, i] = int.Parse(line2[i]);
j++;
... | using System;
public class Hello {
public static void Main() {
var a = new int[99, 50];
var j = 0;
string line;
for (; (line = Console.ReadLine()) != null;) {
string[] line2 = line.Trim().Split(',');
for (int i = 0; i < line2.Length; i++)
a[j, i] = int.Parse(line2[i]);
j++;
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 409 |
using System;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
int ans = 1;
while (n > 0)
ans *= n--;
Console.WriteLine(ans);
}
} | using System;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
long ans = 1;
while (n > 0)
ans *= n--;
Console.WriteLine(ans);
}
} | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 51 |
using System;
namespace _0019 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int output = n;
for (int i = n - 1; i > 0; i--) {
output *= i;
}
Console.WriteLine(output);
Console.ReadLine();
}
}
} | using System;
namespace _0019 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
long output = n;
for (int i = n - 1; i > 0; i--) {
output *= i;
}
Console.WriteLine(output);
Console.ReadLine();
}
}
} | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 76 |
using System;
namespace _019_Factorial {
class Program {
static void Main(string[] args) {
int inputNum = int.Parse(Console.ReadLine());
int sum = 1;
for (int lp = 2; lp <= inputNum; lp++) {
sum *= lp;
}
Console.WriteLine(sum);
}
}
} | using System;
namespace _019_Factorial {
class Program {
static void Main(string[] args) {
int inputNum = int.Parse(Console.ReadLine());
long sum = 1;
for (int lp = 2; lp <= inputNum; lp++) {
sum *= lp;
}
Console.WriteLine(sum);
}
}
} | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 68 |
using System;
namespace Factorial {
class Program {
static void Main(string[] args) {
int k = int.Parse(Console.ReadLine());
int ans = 1;
for (int i = 1; i <= k; i++)
ans *= i;
Console.WriteLine(ans);
}
}
} | using System;
namespace Factorial {
class Program {
static void Main(string[] args) {
int k = int.Parse(Console.ReadLine());
long ans = 1;
for (int i = 1; i <= k; i++)
ans *= i;
Console.WriteLine(ans);
}
}
} | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 66 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static int Main(string[] args) {
// List<int> list = new List<int>();
string v = Console.ReadLine();
// string[] vs = v.Split(' ');
int n = int.Parse(v);
int x = n;
for (int i = n - 1; i >= 1; i--) {
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static int Main(string[] args) {
// List<int> list = new List<int>();
string v = Console.ReadLine();
// string[] vs = v.Split(' ');
int n = int.Parse(v);
long x = n;
for (int i = n - 1; i >= 1; i--) {
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 90 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ {
class Program {
public static void Main() {
Console.WriteLine(Factorial(int.Parse(Console.ReadLine())));
}
static int Factorial(int n) { return Factorial(n, 1); }
static int Factorial(int n, int acc) {
if (n == 1)
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ {
class Program {
public static void Main() {
Console.WriteLine(Factorial(decimal.Parse(Console.ReadLine())));
}
static decimal Factorial(decimal n) { return Factorial(n, 1); }
static decimal Factorial(decimal n, decimal acc... | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["+", 3, 4, 0, 28, 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 | 100 |
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());
var r = 1;
while (n-- != 0)
r *= n + 1;
Console.WriteLine(r);
}
}
} | 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());
long r = 1;
while (n-- != 0)
r *= n + 1;
Console.WriteLine(r);
}
}
} | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 78 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace test {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int a = 1;
for (int i = 1; i <= n; i++) {
a *= i;
}
Console.WriteLine(a);
}
}
} | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace test {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
long a = 1;
for (int i = 1; i <= n; i++) {
a *= i;
}
Console.WriteLine(a);
}
}
} | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 85 |
using System;
class Factorial {
static void Main() {
int input;
input = int.Parse(Console.ReadLine());
Console.WriteLine(Fact(input));
}
static int Fact(int num) {
if (num == 0) {
return 1;
} else {
return num * Fact(num - 1);
}
}
} | using System;
class Factorial {
static void Main() {
long input;
input = long.Parse(Console.ReadLine());
Console.WriteLine(Fact(input));
}
static long Fact(long num) {
if (num == 0) {
return 1;
} else {
return num * Fact(num - 1);
}
}
} | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 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 | 73 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace contest19 {
class Program {
static void Main(string[] args) {
var read_line_origin = Console.ReadLine();
// string[] read_line = read_line_origin.Split();
int n = int.Parse(read_line_origin);
i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace contest19 {
class Program {
static void Main(string[] args) {
var read_line_origin = Console.ReadLine();
// string[] read_line = read_line_origin.Split();
int n = int.Parse(read_line_origin);
l... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 96 |
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 n = int.Parse(Console.ReadLine());
if (n == 0)
break;
... | 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 n = int.Parse(Console.ReadLine());
if (n == 0)
break;
... | [["-", 0, 200, 0, 212, 0, 16, 31, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 16, 31, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 16, 31, 214, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 204, 206,... | 8 | 199 |
using System;
class Program {
static void Main() {
string s = Console.ReadLine();
int n;
while ((n = int.Parse(s)) != 0) {
int max = -100001;
int sum = 0;
while (n-- > 0) {
int m = int.Parse(Console.ReadLine());
sum += m;
if (sum > max)
max = sum;
... | using System;
class Program {
static void Main() {
string s = Console.ReadLine();
int n;
while ((n = int.Parse(s)) != 0) {
int max = -100001;
int sum = 0;
while (n-- > 0) {
int m = int.Parse(Console.ReadLine());
sum += m;
if (sum > max)
max = sum;
... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 116 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace mondai0022 {
class Program {
static void Main(string[] args) {
while (true) {
var n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
var a = new long[n];
for (int i = 0; i ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace mondai0022 {
class Program {
static void Main(string[] args) {
while (true) {
var n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
var a = new long[n];
for (int i = 0; i... | [["-", 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, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0... | 8 | 183 |
using System;
namespace AOJ0023 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
int N = int.Parse(input);
int output;
for (int i = 0; i < N; i++) {
input = Console.ReadLine();
string[] num = input.Split(' ');
Circle A = new Circle(num[0], num[... | using System;
namespace AOJ0023 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
int N = int.Parse(input);
int output;
for (int i = 0; i < N; i++) {
input = Console.ReadLine();
string[] num = input.Split(' ');
Circle A = new Circle(num[0], num[... | [["+", 64, 196, 0, 1, 0, 11, 12, 241, 0, 33], ["-", 64, 196, 0, 1, 0, 11, 12, 241, 0, 33]] | 8 | 491 |
using System;
class A {
public static void Main() {
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
string[] s = Console.ReadLine().Split(' ');
double xa = double.Parse(s[0]);
double ya = double.Parse(s[1]);
double ra = double.Parse(s[2]);
double xb = dou... | using System;
class A {
public static void Main() {
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
string[] s = Console.ReadLine().Split(' ');
double xa = double.Parse(s[0]);
double ya = double.Parse(s[1]);
double ra = double.Parse(s[2]);
double xb = dou... | [["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 28, 0, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 25]] | 8 | 237 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Vol0_24 {
class Program {
static void Main(string[] args) {
string sInput = "";
// ??\??????????????????
do {
sInput = Console.ReadLine();
if (sInput != null && sInput != "") {
double dSpee... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Vol0_24 {
class Program {
static void Main(string[] args) {
string sInput = "";
// ??\??????????????????
do {
sInput = Console.ReadLine();
if (sInput != null && sInput != "") {
double dSpee... | [["-", 0, 11, 12, 74, 51, 23, 0, 16, 12, 250], ["+", 0, 11, 12, 74, 51, 23, 0, 16, 12, 203]] | 8 | 195 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace test {
class Program {
static void Main(string[] args) {
List<double> resultList = new List<double>();
string input;
while ((input = Console.ReadLine()) != null) {
double minV = double.Parse(input);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace test {
class Program {
static void Main(string[] args) {
List<double> resultList = new List<double>();
string input;
while ((input = Console.ReadLine()) != null) {
double minV = double.Parse(input);
... | [["-", 31, 16, 31, 74, 51, 213, 63, 214, 141, 22], ["+", 31, 16, 31, 74, 51, 213, 63, 214, 141, 22]] | 8 | 160 |
using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int[] a = new int[4];
int[] b = new int[4];
string str;
while ((str = Console.ReadLine()) != null) {
int hit = 0;
int blow = 0;
string[] s = str.Split();
for (int i = 0; i < 4; i++) ... | using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int[] a = new int[4];
int[] b = new int[4];
string str;
while ((str = Console.ReadLine()) != null) {
int hit = 0;
int blow = 0;
string[] s = str.Split();
for (int i = 0; i < 4; i++) ... | [["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 25]] | 8 | 230 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication33 {
class Program {
static void Main() {
while (true) {
int x = 0, y = 0;
string a = Console.ReadLine();
if (a == null)
break;
string[] b = a.Split();
string c ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication33 {
class Program {
static void Main() {
while (true) {
int x = 0, y = 0;
string a = Console.ReadLine();
if (a == null)
break;
string[] b = a.Split();
string c ... | [["+", 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, 241, 0, 33], ["+", 64, 196, 0, 1, 0, 11, 12, 241, 0, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]] | 8 | 355 |
using System;
namespace AOJ.Volume0 {
public class DroppingInk {
public static void Main() {
// 紙を初期化
int[,] paper = new int[10, 10];
// 入力がなくなるまで処理
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input)) {
break;
}
var... | using System;
namespace AOJ.Volume0 {
public class DroppingInk {
public static void Main() {
// 紙を初期化
int[,] paper = new int[10, 10];
// 入力がなくなるまで処理
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input)) {
break;
}
var... | [["-", 8, 254, 0, 239, 0, 57, 15, 16, 17, 106], ["+", 8, 254, 0, 239, 0, 57, 15, 16, 17, 98]] | 8 | 361 |
using System;
namespace AOJ0026 {
class Program {
static void Main(string[] args) {
string input;
int[,] plain = new int[14, 14];
while (true) {
input = Console.ReadLine();
if (string.IsNullOrEmpty(input) == true) {
break;
}
string[] num = input.Split(',');
int x ... | using System;
namespace AOJ0026 {
class Program {
static void Main(string[] args) {
string input;
int[,] plain = new int[14, 14];
while (true) {
input = Console.ReadLine();
if (string.IsNullOrEmpty(input) == true) {
break;
}
string[] num = input.Split(',');
int x ... | [["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 557 |
using System;
class Program {
static int[,] table = new int[10, 10];
static void Main() {
String s;
while ((s = Console.ReadLine()) != null) {
int[] a = Array.ConvertAll(s.Split(' '), int.Parse);
switch (a[2]) {
case 1:
inkS(a[0], a[1]);
break;
case 2:
inkM(a[... | using System;
class Program {
static int[,] table = new int[10, 10];
static void Main() {
String s;
while ((s = Console.ReadLine()) != null) {
int[] a = Array.ConvertAll(s.Split(','), int.Parse);
switch (a[2]) {
case 1:
inkS(a[0], a[1]);
break;
case 2:
inkM(a[... | [["-", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253]] | 8 | 397 |
using System;
using System.Linq;
namespace Volume0_0026 {
class Program {
static void Main(string[] args) {
int[,] paper = new int[10, 10];
string input;
while ((input = Console.ReadLine()) != "") {
int[] inkData =
input.Split(',').Select(s => Convert.ToInt32(s)).ToArray();
InkBase... | using System;
using System.Linq;
namespace Volume0_0026 {
class Program {
static void Main(string[] args) {
int[,] paper = new int[10, 10];
string input;
while ((input = Console.ReadLine()) != null) {
int[] inkData =
input.Split(',').Select(s => Convert.ToInt32(s)).ToArray();
InkBa... | [["-", 8, 196, 0, 52, 15, 16, 12, 5, 0, 62], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 12, 215]] | 8 | 744 |
using System;
namespace AOJ0027 {
class Program {
static void Main(string[] args) {
int[] DoM = { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
while (true) {
string input = Console.ReadLine();
string[] num = input.Split(' ');
int count = 0;
string output = "";
if (int.Par... | using System;
namespace AOJ0027 {
class Program {
static void Main(string[] args) {
int[] DoM = { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
while (true) {
string input = Console.ReadLine();
string[] num = input.Split(' ');
int count = 0;
string output = "";
if (int.Par... | [["-", 0, 99, 8, 254, 0, 239, 0, 264, 0, 203], ["+", 0, 99, 8, 254, 0, 239, 0, 264, 0, 203]] | 8 | 248 |
using System;
class aoj {
static void Main() {
string[] a = new string[50];
int f = 0;
while (true) {
string[] b = Console.ReadLine().Split(' ');
if (b[0] == "0") {
break;
}
int[] c = new int[2];
c[0] = int.Parse(b[0]);
c[1] = int.Parse(b[1]);
DateTime d =... | using System;
class aoj {
static void Main() {
string[] a = new string[50];
int f = 0;
while (true) {
string[] b = Console.ReadLine().Split(' ');
if (b[0] == "0") {
break;
}
int[] c = new int[2];
c[0] = int.Parse(b[0]);
c[1] = int.Parse(b[1]);
DateTime d =... | [["-", 0, 239, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 0, 239, 0, 1, 0, 11, 12, 5, 0, 222]] | 8 | 277 |
using System;
using System.Linq;
namespace _0027 {
class Program {
static void Main(string[] args) {
while (true) {
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (a[0] == a[1] && a[1] == 0) {
break;
}
int[] m = new int[13];
m[1] = 31;
m[2] = 29;
... | using System;
using System.Linq;
namespace _0027 {
class Program {
static void Main(string[] args) {
while (true) {
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (a[0] == a[1] && a[1] == 0) {
break;
}
int[] m = new int[13];
m[1] = 31;
m[2] = 29;
... | [["-", 0, 52, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 52, 8, 196, 0, 7, 15, 16, 17, 18]] | 8 | 335 |
using System;
class _0027 {
public static void Main() {
string[] SD = { "Wednesday", "Thursday", "Friday", "Satruday",
"Sunday", "Monday", "Tuesday" };
int[] days = { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30 };
string str = Console.ReadLine();
int count, m, d;
while (str... | using System;
class _0027 {
public static void Main() {
string[] SD = { "Wednesday", "Thursday", "Friday", "Saturday",
"Sunday", "Monday", "Tuesday" };
int[] days = { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30 };
string str = Console.ReadLine();
int count, m, d;
while (str... | [["-", 0, 200, 0, 212, 0, 229, 0, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 229, 0, 5, 0, 222]] | 8 | 201 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication27 {
class Program {
static void Main() {
List<int> s = new List<int>();
int x = 0;
int y = 0;
List<int> z = new List<int>();
while (true) {
string a = Console.ReadLine();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication27 {
class Program {
static void Main() {
List<int> s = new List<int>();
int x = 0;
int y = 0;
List<int> z = new List<int>();
while (true) {
string a = Console.ReadLine();
... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 75, 57, 64, 196, 0, 46], ["-", 8, 196, 0, 57, 75, 57, 64, 196, 0, 46]] | 8 | 287 |
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 cin() { return int.Parse(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 cin() { return int.Parse(Console.ReadLine()); ... | [["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22]] | 8 | 383 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Programminng {
class AOJ_Volume0031 {
public static void Main(string[] args) {
int[] value = new int[10];
List<int> v = new List<int>();
for (int i = 0; i < 10; i++) {
value[i] = (int)Math.Pow(2, i);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Programminng {
class AOJ_Volume0031 {
public static void Main(string[] args) {
int[] value = new int[10];
List<int> v = new List<int>();
for (int i = 0; i < 10; i++) {
value[i] = (int)Math.Pow(2, i);
... | [["-", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22]] | 8 | 246 |
using System;
namespace AOJ.Volume0 {
public class Weight {
public static void Main() {
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input)) {
break;
}
int weight = int.Parse(input);
var binary = Convert.ToString(weight, 2);
... | using System;
namespace AOJ.Volume0 {
public class Weight {
public static void Main() {
while (true) {
string input = Console.ReadLine();
if (string.IsNullOrEmpty(input)) {
break;
}
int weight = int.Parse(input);
var binary = Convert.ToString(weight, 2);
... | [["+", 31, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 149 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.