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.IO;
using System.Linq;
using System.Collections.Generic;
public class Program {
public void Proc() {
int[] inpt =
Reader.ReadLine().Split(' ').Select(t => int.Parse(t)).ToArray();
int a = inpt[0];
int b = inpt[1];
int kaku = inpt[2];
double rad = kaku * (Math.P... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
public class Program {
public void Proc() {
int[] inpt =
Reader.ReadLine().Split(' ').Select(t => int.Parse(t)).ToArray();
int a = inpt[0];
int b = inpt[1];
int kaku = inpt[2];
double rad = kaku * (Math.P... | [["-", 0, 28, 0, 16, 12, 23, 0, 16, 17, 85], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 17, 48], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258]] | 8 | 310 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Contexts;
using System.Security.Cryptography.X509Certificates;
using System.Threading;
namespace AOJ {
internal class Program {
public static void Main(string[] args) { new Program().solve(); }
void solve() {
Func<d... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Contexts;
using System.Security.Cryptography.X509Certificates;
using System.Threading;
namespace AOJ {
internal class Program {
public static void Main(string[] args) { new Program().solve(); }
void solve() {
Func<d... | [["-", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 308 |
using System;
class ITP1_10_B {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
double rad = int.Parse(input[2]) * Math.PI / 180;
double S = a * b * Math.Sin(rad) / 2;
Console.WriteLine(S);
Console.WriteLine(a +... | using System;
class ITP1_10_B {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
double rad = int.Parse(input[2]) * Math.PI / 180;
double S = a * b * Math.Sin(rad) / 2;
Console.WriteLine(S);
Console.WriteLine(a +... | [["+", 0, 16, 12, 16, 31, 16, 31, 16, 31, 203], ["+", 0, 16, 12, 16, 31, 16, 31, 16, 17, 48]] | 8 | 144 |
using System;
namespace ITP1_10_C_2 {
class Program {
static void Main(string[] args) {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0)
Environment.Exit(0);
string[] data = Console.ReadLine().Split(' ');
int[] tokuten = new int[n];
int sum = 0;
for (... | using System;
namespace ITP1_10_C_2 {
class Program {
static void Main(string[] args) {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0)
Environment.Exit(0);
string[] data = Console.ReadLine().Split(' ');
int[] tokuten = new int[n];
double sum = 0;
fo... | [["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 227 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication21 {
class Program {
static void Main(string[] args) {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
string[] str = Console.ReadLine()... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication21 {
class Program {
static void Main(string[] args) {
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
break;
}
string[] str = Console.ReadLine()... | [["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25]] | 8 | 210 |
using System;
namespace ConsoleApplication26 {
class Program {
static void Main(string[] args) {
while (true) {
//?????°
string N = Console.ReadLine();
int n = int.Parse(N);
int Lav = 0;
int Sav = 0;
double Lhy = 0;
double Shy = 0;
if (n == 0)
break;
... | using System;
namespace ConsoleApplication26 {
class Program {
static void Main(string[] args) {
while (true) {
//?????°
string N = Console.ReadLine();
int n = int.Parse(N);
double Lav = 0;
double Sav = 0;
double Lhy = 0;
double Shy = 0;
if (n == 0)
break;
... | [["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 201 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ITP1_10_C {
class Program {
static void Main(string[] args) {
int member;
var result = new List<double>();
while ((member = int.Parse(Console.ReadLine())) != 0) {
int[] input = Console.ReadLine()
.... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ITP1_10_C {
class Program {
static void Main(string[] args) {
double member;
var result = new List<double>();
while ((member = double.Parse(Console.ReadLine())) != 0.0) {
double[] input = Console.ReadLine()
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 31, 23, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 31, 23, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 12, 250], ["-", 8, 196, 0, 197, 0, 198,... | 8 | 176 |
using System;
public class Class1 {
public static void Main(String[] args) {
int n = 0;
while ((n = int.Parse(Console.ReadLine())) != 0) {
string line = Console.ReadLine();
string[] data = line.Split();
double[] score = new double[n];
double sum = 0;
double square = 0;
for... | using System;
public class Class1 {
public static void Main(String[] args) {
int n = 0;
while ((n = int.Parse(Console.ReadLine())) != 0) {
string line = Console.ReadLine();
string[] data = line.Split();
double[] score = new double[n];
double sum = 0;
double square = 0;
for... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 178 |
using System;
using System.Linq;
namespace Math_Functions {
class Standard_Deviation {
static void Main(string[] args) {
while ((int.Parse(Console.ReadLine())) != 0) {
var score =
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var score2 = score.Select(s => s * s).ToArra... | using System;
using System.Linq;
namespace Math_Functions {
class Standard_Deviation {
static void Main(string[] args) {
while ((int.Parse(Console.ReadLine())) != 0) {
var score =
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var score2 = score.Select(s => s * s).ToArra... | [["+", 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], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 16, 12, 16, 12, 213, 3, 4, 0, 25]] | 8 | 119 |
using System;
class Cubic {
static void Main() {
int x = int.Parse(Console.ReadLine());
Console.WriteLine(x);
}
} | using System;
class Cubic {
static void Main() {
int x = int.Parse(Console.ReadLine());
Console.WriteLine(x * x * x);
}
} | [["+", 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 | 35 |
using System;
class Hello_World {
static void Main() {
int n = Convert.ToInt32(System.Console.Read());
Console.WriteLine(n * n * n);
}
} | using System;
class Hello_World {
static void Main() {
int n = Convert.ToInt32(System.Console.ReadLine());
Console.WriteLine(n * n * n);
}
} | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]] | 8 | 41 |
using System;
class Test {
static void Main(string[] args) {
var i = int.Parse(args[0]);
if (!(1 <= i && i <= 100))
return;
Console.WriteLine(i * i * i);
}
} | using System;
class Test {
static void Main(string[] args) {
var i = int.Parse(Console.ReadLine());
if (!(1 <= i && i <= 100))
return;
Console.WriteLine(i * i * i);
}
} | [["-", 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], ["+", 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], ... | 8 | 57 |
using System;
class hoge {
static void Main(String[] args) {
String input = Console.ReadLine();
int x = int.Parse(input);
Console.WriteLine(x ^ 3);
}
} | using System;
class hoge {
static void Main(String[] args) {
String input = Console.ReadLine();
int x = int.Parse(input);
Console.WriteLine(x * x * x);
}
} | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 140], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 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 | 46 |
using System;
namespace ConsoleApp10 {
class Program {
static void Main(string[] args) {
string str = Console.ReadLine();
int x = int.Parse(str);
Console.WriteLine(Math.Pow(3, x));
}
}
}
| using System;
namespace ITP1_1_B {
class Program {
static void Main(string[] args) {
string str = Console.ReadLine();
int x = int.Parse(str);
Console.WriteLine(Math.Pow(x, 3));
}
}
}
| [["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 55 |
using System;
namespace _1_1c {
class Program {
static void Main(string[] args) {
int piyo = 1;
int perimeter = 0;
string ab;
string[] side;
ab = Console.ReadLine();
side = ab.Split(' ');
foreach (string hoge in side) {
piyo = piyo * int.Parse(hoge);
perimeter += int.Parse(ho... | using System;
namespace _1_1c {
class Program {
static void Main(string[] args) {
int piyo = 1;
int perimeter = 0;
string ab;
string[] side;
ab = Console.ReadLine();
side = ab.Split(' ');
foreach (string hoge in side) {
piyo = piyo * int.Parse(hoge);
perimeter += int.Parse(ho... | [["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]] | 8 | 101 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int h = int.Parse(str[0]);
int w = int.Parse(str[1]);
Console.WriteLine(h * w + " " + 2 * h + 2 * w);
}
} | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int h = int.Parse(str[0]);
int w = int.Parse(str[1]);
Console.WriteLine(h * w + " " + (2 * h + 2 * w));
}
} | [["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]] | 8 | 100 |
using System;
using System.Linq;
using System.Collections.Generic;
public class rectangle {
public static void Main() {
string[] strs = Console.ReadLine().Split(' ');
int[] num = new int[strs.Length];
for (int i = 0; i < strs.Length; i++) {
num[i] = int.Parse(strs[i]);
}
System.Console.Write... | using System;
using System.Linq;
using System.Collections.Generic;
public class rectangle {
public static void Main() {
string[] strs = Console.ReadLine().Split(' ');
int[] num = new int[strs.Length];
for (int i = 0; i < strs.Length; i++) {
num[i] = int.Parse(strs[i]);
}
System.Console.Write... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22]] | 8 | 136 |
using System;
using System.Linq;
namespace AOJ000 {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
var a = int.Parse(str.Split(' ')[0]);
var b = int.Parse(str.Split(' ')[1]);
Console.WriteLine(a * b + " " + a * 2 + b * 2);
}
}
} | using System;
using System.Linq;
namespace AOJ000 {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
var a = int.Parse(str.Split(' ')[0]);
var b = int.Parse(str.Split(' ')[1]);
Console.WriteLine(a * b + " " + (a * 2 + b * 2));
}
}
} | [["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]] | 8 | 97 |
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication9 {
class Program {
static void Main(string[] args) {
String[] str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int x = a * b;
int y = 2 * (a + b);
Console.... | using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication9 {
class Program {
static void Main(string[] args) {
String[] str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int x = a * b;
int y = 2 * (a + b);
Console... | [["-", 0, 28, 0, 16, 31, 16, 12, 252, 0, 104], ["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 62]] | 8 | 109 |
using System;
namespace ConsoleApplication11 {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int m = int.Parse(s[0]);
int n = int.Parse(s[1]);
Console.WriteLine(m * n + " " + (m * n) * 2);
}
}
} | using System;
namespace ConsoleApplication11 {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int m = int.Parse(s[0]);
int n = int.Parse(s[1]);
Console.WriteLine(m * n + " " + (m + n) * 2);
}
}
} | [["-", 0, 16, 12, 16, 31, 23, 0, 16, 17, 48], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 72]] | 8 | 87 |
using System;
namespace Application {
class Program {
public static void Main(string[] args) {
string line = Console.ReadLine();
string[] vals = line.Split(' ');
int a = int.Parse(vals[0]);
int b = int.Parse(vals[1]);
Console.WriteLine(a * b + " " + a * 2 + b * 2);
}
}
} | using System;
namespace Application {
class Program {
public static void Main(string[] args) {
string line = Console.ReadLine();
string[] vals = line.Split(' ');
int a = int.Parse(vals[0]);
int b = int.Parse(vals[1]);
Console.WriteLine(a * b + " " + (a * 2 + b * 2));
}
}
} | [["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]] | 8 | 93 |
using System;
namespace p3 {
class prg {
static void Main() {
int a, b;
{
string[] str = Console.ReadLine().Split(' ');
a = int.Parse(str[0]);
b = int.Parse(str[1]);
}
Console.WriteLine((a * b) + (a * 2 + b * 2));
}
}
} | using System;
namespace p3 {
class prg {
static void Main() {
int a, b;
{
string[] str = Console.ReadLine().Split(' ');
a = int.Parse(str[0]);
b = int.Parse(str[1]);
}
Console.WriteLine((a * b) + " " + (a * 2 + b * 2));
}
}
} | [["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]] | 8 | 88 |
using System;
namespace ITP1_1_C {
class Program {
static void Main(string[] args) {
string[] strs = Console.ReadLine().Split(' ');
int a = int.Parse(strs[0]);
int b = int.Parse(strs[1]);
Console.WriteLine("{0} {1}", a * b, (a + b) >> 1);
}
}
} | using System;
namespace ITP1_1_A {
class Program {
static void Main(string[] args) {
string[] strs = Console.ReadLine().Split(' ');
int a = int.Parse(strs[0]);
int b = int.Parse(strs[1]);
Console.WriteLine("{0} {1}", a * b, (a + b) << 1);
}
}
} | [["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 152], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 151]] | 8 | 87 |
using System;
namespace ConsoleApplication3 {
class Program {
static void Main(string[] args) {
string[] array = Console.ReadLine().Split(' ');
int x = int.Parse(array[0]) * int.Parse(array[1]);
int z = (int.Parse(array[0]) * 2) + (int.Parse(array[1]) * 2);
Console.WriteLine(z + " " + x);
}
}
} | using System;
namespace ConsoleApplication3 {
class Program {
static void Main(string[] args) {
string[] array = Console.ReadLine().Split(' ');
int z = int.Parse(array[0]) * int.Parse(array[1]);
int x = (int.Parse(array[0]) * 2) + (int.Parse(array[1]) * 2);
Console.WriteLine(z + " " + x);
}
}
} | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22]] | 8 | 107 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var x_y = Console.ReadLine().Split(' ');
var rectangleResult = 0;
foreach (var val in x_y) {
rectangleResult *= int.Parse(val);
}
var areaResult = x_y.Select(x => int.Parse(x) * 2).Sum();
Console.WriteLi... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var x_y = Console.ReadLine().Split(' ');
var rectangleResult = 1;
foreach (var val in x_y) {
rectangleResult *= int.Parse(val);
}
var areaResult = x_y.Select(x => int.Parse(x) * 2).Sum();
Console.WriteLi... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 98 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _20170409_AOJ {
class Program {
static void Main(string[] args) {
string[] sArr = Console.ReadLine().Split(' ');
int a = int.Parse(sArr[0]);
int b = int.Parse(sArr[1]);
int s = a * a;
int l = 2 * (a +... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _20170409_AOJ {
class Program {
static void Main(string[] args) {
string[] sArr = Console.ReadLine().Split(' ');
int a = int.Parse(sArr[0]);
int b = int.Parse(sArr[1]);
int s = a * b;
int l = 2 * (a +... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]] | 8 | 125 |
using System;
class Program {
static void Main(string[] args) {
int a, b, c, d;
string[] str = Console.ReadLine().Split(' ');
a = int.Parse(str[0]);
b = int.Parse(str[1]);
c = a + b;
d = a * b;
Console.WriteLine(d + " " + c);
}
} | using System;
class Program {
static void Main(string[] args) {
int a, b, c, d;
string[] str = Console.ReadLine().Split(' ');
a = int.Parse(str[0]);
b = int.Parse(str[1]);
c = 2 * (a + b);
d = a * b;
Console.WriteLine(d + " " + c);
}
} | [["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25]] | 8 | 94 |
using System;
namespace Getting_Started {
class Rectangle {
static void Main(string[] args) {
string line = Console.ReadLine();
string[] token = line.Split(' ');
int a = int.Parse(token[0]);
int b = int.Parse(token[1]);
Console.WriteLine(a * b + " " + 2 * a + 2 * b);
}
}
} | using System;
namespace Getting_Started {
class Rectangle {
static void Main(string[] args) {
string line = Console.ReadLine();
string[] token = line.Split(' ');
int a = int.Parse(token[0]);
int b = int.Parse(token[1]);
Console.WriteLine(a * b + " " + (2 * a + 2 * b));
}
}
} | [["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]] | 8 | 92 |
using System;
public class Program {
public static void Main(string[] args) {
int tate = 0, yoko = 0, menseki = 0, syu = 0;
string[] data = Console.ReadLine().Split(); //????????\?????????
tate = int.Parse(data[0]);
yoko = int.Parse(data[1]);
menseki = tate * yoko; //??¢???????±??????????... | using System;
public class Test {
public static void Main() {
int tate = 0, yoko = 0, menseki = 0, syu = 0;
string[] data = Console.ReadLine().Split(); //????????\?????????
tate = int.Parse(data[0]);
yoko = int.Parse(data[1]);
menseki = tate * yoko; //??¢???????±?????????????
syu = (t... | [["-", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["-", 0, 195, 54, 55, 0, 220, 39, 224, 39, 199], ["-", 54, 55, 0, 220, 39, 224, 225, 226, 0, 70], ["-", 54, 55, 0, 220, 39, 224, 225, 226, 0, 73], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0... | 8 | 112 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
short[] l =
Console.ReadLine().Split(' ').Select(x => short.Parse(x)).ToArray();
Console.WriteLine(l[1] * l[1] + " " + (l[0] * 2 + l[1] * 2));
}
} | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
short[] l =
Console.ReadLine().Split(' ').Select(x => short.Parse(x)).ToArray();
Console.WriteLine(l[0] * l[1] + " " + (l[0] * 2 + l[1] * 2));
}
} | [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203]] | 8 | 92 |
using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(
' '); // 2?????\?????????????????????????????\????????????
var a =
int.Parse(str[0]); //??°?????§????????????????????´??????????????????
var b = int.Par... | using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(
' '); // 2?????\?????????????????????????????\????????????
var a =
int.Parse(str[0]); //??°?????§????????????????????´??????????????????
var b = int.Par... | [["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25]] | 8 | 87 |
using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
string[] dw = input.Split(' ');
int length = Int32.Parse(dw[0]) * Int32.Parse(dw[1]);
int area = (Int32.Parse(dw[0]) + Int32.Parse(dw[1])) * 2;
Console.WriteLine("{0} {1}",... | using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
string[] dw = input.Split(' ');
int area = Int32.Parse(dw[0]) * Int32.Parse(dw[1]);
int length = (Int32.Parse(dw[0]) + Int32.Parse(dw[1])) * 2;
Console.WriteLine("{0} {1}",... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22]] | 8 | 108 |
using System.IO;
using System;
class Program {
static void Main() {
string[] c = Console.ReadLine().Split();
var a = int.Parse(c[0]);
var b = int.Parse(c[0]);
var area = a * b;
var outline = 2 * (a + b);
Console.WriteLine("{0} {1}", area, outline);
}
}
| using System.IO;
using System;
class Program {
static void Main() {
string[] c = Console.ReadLine().Split();
var a = int.Parse(c[0]);
var b = int.Parse(c[1]);
var area = a * b;
var outline = 2 * (a + b);
Console.WriteLine("{0} {1}", area, outline);
}
}
| [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 91 |
using System;
namespace ITP1 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
double[] x = new double[n];
double[] y = new double[n];
string[] input = Console.ReadLine().Split(' ');
for (int i = 0; i < n; i++) {
x[i] = double.Parse(input[i]);
... | using System;
namespace ITP1 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
double[] x = new double[n];
double[] y = new double[n];
string[] input = Console.ReadLine().Split(' ');
for (int i = 0; i < n; i++) {
x[i] = double.Parse(input[i]);
... | [["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25]] | 8 | 318 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2 {
class Program {
const int diceUpDownSum = 7;
static void Main(string[] args) {
int id = 0;
var diceList = Console.ReadLine()
.Split(' ')
.Sel... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2 {
class Program {
const int diceUpDownSum = 7;
static void Main(string[] args) {
int id = 0;
var diceList = Console.ReadLine()
.Split(' ')
.Sel... | [["-", 0, 239, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 0, 239, 0, 1, 0, 11, 12, 16, 12, 22]] | 8 | 276 |
using System;
using System.Linq;
namespace Structure_and_Class {
class Dice_I {
static void Main(string[] args) {
var dice = new Dice(
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray());
dice.Move(Console.ReadLine());
dice.Show();
}
}
public class Dice {
int[] label = new int... | using System;
using System.Linq;
namespace Structure_and_Class {
class Dice_I {
static void Main(string[] args) {
var dice = new Dice(
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray());
dice.Move(Console.ReadLine());
dice.Show();
}
}
public class Dice {
int[] label = new int... | [["+", 8, 254, 0, 239, 0, 1, 0, 11, 31, 22], ["+", 0, 239, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 254, 0, 239, 0, 1, 0, 11, 12, 22], ["+", 0, 99, 8, 254, 0, 239, 0, 1, 0, 35]] | 8 | 384 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ITP1_11_B {
public class Program
{
public class Dice {
public int top;
public int front;
public int right;
public int left;
public int back;
public int bottom;
public Dice(int[] num) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ITP1_11_B {
public class Program
{
public class Dice {
public int top;
public int front;
public int right;
public int left;
public int back;
public int bottom;
public Dice(int[] num) {
... | [["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]] | 8 | 664 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Dice2 {
class Program {
static void Main(string[] args) {
string st1 = Console.ReadLine();
string[] dice = st1.Trim().Split(' ');
string[] search1 = { "S", "S", "S", "S", "W", "W... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Dice2 {
class Program {
static void Main(string[] args) {
string st1 = Console.ReadLine();
string[] dice = st1.Trim().Split(' ');
string[] search1 = { "S", "S", "S", "S", "W", "W... | [["+", 0, 198, 0, 200, 0, 212, 0, 229, 0, 21], ["+", 0, 200, 0, 212, 0, 229, 0, 5, 0, 62], ["+", 0, 200, 0, 212, 0, 229, 0, 5, 0, 222], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 659 |
using System;
using System.Collections.Generic;
namespace ConsoleApplication1 {
class Dice {
private int[] dicelabel = new int[6]; //???????????????°?????????±
private int temp = 0;
public Dice(
string num) //???????????????°?????????±???????????????????????????
{
var dicenum = num.Split(' ');
f... | using System;
using System.Collections.Generic;
namespace ConsoleApplication1 {
class Dice {
private int[] dicelabel = new int[6]; //???????????????°?????????±
private int temp = 0;
public Dice(
string num) //???????????????°?????????±???????????????????????????
{
var dicenum = num.Split(' ');
f... | [["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 211, 0, 146], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 680 |
using System;
namespace ITP1_11_B {
class Dice {
private int[,] adj =
new int[6, 4] { { 2, 3, 5, 4 }, { 1, 4, 6, 3 }, { 1, 2, 6, 5 },
{ 1, 5, 6, 2 }, { 1, 3, 6, 4 }, { 2, 4, 5, 3 } };
public int Top { get; private set; }
public int North { get; private set; }
public Dice(int top = 1... | using System;
namespace ITP1_11_B {
class Dice {
private int[,] adj =
new int[6, 4] { { 2, 3, 5, 4 }, { 1, 4, 6, 3 }, { 1, 2, 6, 5 },
{ 1, 5, 6, 2 }, { 1, 3, 6, 4 }, { 2, 4, 5, 3 } };
public int Top { get; private set; }
public int North { get; private set; }
public Dice(int top = 1... | [["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73]] | 8 | 410 |
using System;
using System.Linq;
namespace Structure_and_Class {
class Dice_II {
static void Main(string[] args) {
var dice = new Dice2(
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray());
var q = int.Parse(Console.ReadLine());
for (int i = 0; i < q; i++) {
var token =
... | using System;
using System.Linq;
namespace Structure_and_Class {
class Dice_II {
static void Main(string[] args) {
var dice = new Dice2(
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray());
var q = int.Parse(Console.ReadLine());
for (int i = 0; i < q; i++) {
var token =
... | [["-", 0, 11, 12, 227, 0, 229, 0, 229, 0, 203], ["-", 0, 11, 12, 227, 0, 229, 0, 229, 0, 21], ["+", 0, 11, 12, 227, 0, 229, 0, 229, 0, 21], ["+", 0, 11, 12, 227, 0, 229, 0, 229, 0, 203]] | 8 | 366 |
using System;
using System.Collections.Generic;
using System.Text;
namespace ITP1_11_C {
class Program {
// faces[] = { 0, 1, 2, 3, 4, 5, 6 };
// 0
// 3 1 2 4
// 5
static void Main(string[] args) {
string s1 = Console.ReadLine();
string[] faces1 = s1.Split();
string s2 = Console.ReadLine();
... | using System;
using System.Collections.Generic;
using System.Text;
namespace ITP1_11_C {
class Program {
// faces[] = { 0, 1, 2, 3, 4, 5, 6 };
// 0
// 3 1 2 4
// 5
static void Main(string[] args) {
string s1 = Console.ReadLine();
string[] faces1 = s1.Split();
string s2 = 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], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 593 |
using System;
public class Program {
public static void Main() {
Dice d1 = new Dice(Console.ReadLine().Split(' '));
Dice d2 = new Dice(Console.ReadLine().Split(' '));
if (d1.IsEquals(d2))
Console.WriteLine("Yes");
else
Console.WriteLine("No");
}
}
public class Dice {
public string L... | using System;
public class Program {
public static void Main() {
Dice d1 = new Dice(Console.ReadLine().Split(' '));
Dice d2 = new Dice(Console.ReadLine().Split(' '));
if (d1.IsEquals(d2))
Console.WriteLine("Yes");
else
Console.WriteLine("No");
}
}
public class Dice {
public string L... | [["-", 0, 263, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 263, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 0, 1, 0, 213, 63, 214, 205, 273, 0, 274], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22]] | 8 | 584 |
using System;
namespace Project {
class Dice {
public int face;
public int N;
public int E;
public int S;
public int W;
public int back;
public Dice(int a1, int a2, int a3, int a4, int a5, int a6) {
face = a1;
N = a5;
E = a3;
S = a2;
W = a4;
back = a6;
}
public void roll(char... | using System;
namespace Project {
class Dice {
public int face;
public int N;
public int E;
public int S;
public int W;
public int back;
public Dice(int a1, int a2, int a3, int a4, int a5, int a6) {
face = a1;
N = a5;
E = a3;
S = a2;
W = a4;
back = a6;
}
public void roll(char... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 630 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ITP1_11_D {
public class Program
{
public struct Dice {
public int top { get; private set; }
public int front { get; private set; }
public int right { get; private set; }
public int left { get; private se... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ITP1_11_D {
public class Program
{
public struct Dice {
public int top { get; private set; }
public int front { get; private set; }
public int right { get; private set; }
public int left { get; private se... | [["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 764 |
using System;
namespace Dice {
class Program {
readonly static Dise[] dise = new Dise[100];
static void Main(string[] args) {
//サイコロ数
short n;
//サイコロ
string result = "Yes";
//サイコロ数
n = short.Parse(Console.ReadLine());
for (short i = 0; i < n; i++) {
dise[i] = new Dise();
... | using System;
namespace Dice {
class Program {
readonly static Dise[] dise = new Dise[100];
static void Main(string[] args) {
//サイコロ数
short n;
//サイコロ
string result = "Yes";
//サイコロ数
n = short.Parse(Console.ReadLine());
for (short i = 0; i < n; i++) {
dise[i] = new Dise();
... | [["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 18]] | 8 | 670 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ITP1_11_D {
class Program {
public static IEnumerable<string[]> ReadSplitWords(Func<string> reader,
char splitChar) {
while (true) {
yield return reader().Sp... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ITP1_11_D {
class Program {
public static IEnumerable<string[]> ReadSplitWords(Func<string> reader,
char splitChar) {
while (true) {
yield return reader().Sp... | [["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147]] | 8 | 1,229 |
using System;
using System.Collections.Generic;
namespace ConsoleApplication1 {
class Dice {
private int[] dicelabel = new int[6];
private int temp = 0;
public Dice(string num) //???????????????????????°?????\??????
{
var dicenum = num.Split(' ');
for (int i = 0; i < 6; i++) {
dicelabel[i] = int... | using System;
using System.Collections.Generic;
namespace ConsoleApplication1 {
class Dice {
private int[] dicelabel = new int[6];
private int temp = 0;
public Dice(string num) //???????????????????????°?????\??????
{
var dicenum = num.Split(' ');
for (int i = 0; i < 6; i++) {
dicelabel[i] = int... | [["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 0, 7... | 8 | 940 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace ConsoleApplication1 {
class Dice : IEquatable<Dice> {
protected string[] val = new string[6];
public Dice(string[] str) { Array.Copy(val, str, 6); }
public bool Equals(Dice dice2) {
if ((... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace ConsoleApplication1 {
class Dice : IEquatable<Dice> {
protected string[] val = new string[6];
public Dice(string[] str) { Array.Copy(str, val, 6); }
public bool Equals(Dice dice2) {
if ((... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 16, 31, 16, 12, 204, 205, 214, 205, 22], ["+", 0, 16, 31, 16, 12, 204, 205, 214, 0, 131]] | 8 | 641 |
using System;
using System.Linq;
namespace Structure_and_Class {
class Dice_IV {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var dices = new Dice4[n];
for (int i = 0; i < n; i++)
dices[i] = new Dice4(
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToA... | using System;
using System.Linq;
namespace Structure_and_Class {
class Dice_IV {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var dices = new Dice4[n];
for (int i = 0; i < n; i++)
dices[i] = new Dice4(
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToA... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 7, 8, 7, 15, 16, 12, 16, 17, 33], ["-", 0, 7, 8, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 7, 8, 7, 8, 57, 15, 241, 0, 111]] | 8 | 676 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Aizu {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var diceList = new Dictionary<string, List<Dice>>();
// さいころを作成し、構成する数値が同じもの同士でまとめる
for (int i = 0; i < n; i++) {
var dic... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Aizu {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var diceList = new Dictionary<string, List<Dice>>();
// さいころを作成し、構成する数値が同じもの同士でまとめる
for (int i = 0; i < n; i++) {
var dic... | [["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 1,074 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AOJ1_1_B {
class Program {
static void Main(string[] args) {
int x;
x = int.Parse(Console.ReadLine());
Console.WriteLine(x ^ 3);
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AOJ1_1_B {
class Program {
static void Main(string[] args) {
int x;
x = int.Parse(Console.ReadLine());
Console.WriteLine(x * x * x);
}
}
}
| [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 140], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 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 | 71 |
using System;
class Program {
static void Main() {
int x, y;
x = int.Parse(Console.ReadLine());
y = x ^ 3;
Console.WriteLine(y);
}
} | using System;
class Program {
static void Main() {
int x, y;
x = int.Parse(Console.ReadLine());
y = x * x * x;
Console.WriteLine(y);
}
} | [["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 140], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22]] | 8 | 45 |
using System;
namespace helloworld {
class Program {
static void Main(string[] args) {
var x = int.Parse(Console.ReadLine());
Console.WriteLine(x);
}
}
} | using System;
namespace helloworld {
class Program {
static void Main(string[] args) {
var x = int.Parse(Console.ReadLine());
Console.WriteLine(x * x * x);
}
}
} | [["+", 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 | 43 |
using System;
namespace ConsoleApplication34 {
class Program {
static void Main(string[] args) {
int x = int.Parse(Console.ReadLine());
x = 2;
Console.WriteLine(x * x * x);
}
}
} | using System;
namespace ConsoleApplication34 {
class Program {
static void Main(string[] args) {
int x = int.Parse(Console.ReadLine());
Console.WriteLine(x * x * x);
}
}
} | [["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 51 |
using System;
public class Test {
public static void Main() {
// your code goes here
var n = int.Parse(Console.ReadLine());
Console.WriteLine(n ^ 3);
}
} | using System;
public class Test {
public static void Main() {
// your code goes here
var n = int.Parse(Console.ReadLine());
Console.WriteLine(n * n * n);
}
} | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 140], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 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 | 40 |
using System;
class ITP1_1_B {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
Console.WriteLine(n ^ 3);
}
} | using System;
class ITP1_1_B {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
Console.WriteLine(n * n * n);
}
} | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 140], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 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 | 41 |
using System;
class Cubic {
static void Main() {
int x = int.Parse(Console.ReadLine());
Console.WriteLine(x * 3);
}
} | using System;
class Cubic {
static void Main() {
int x = int.Parse(Console.ReadLine());
Console.WriteLine(x * x * x);
}
} | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 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 | 37 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
public struct Card {
public char c;
public int d;
}
static void Main(string[] args) {
SolveA(args);
// SolveB(args);
// SolveC(args);
// SolveD(args);
}
static vo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
public struct Card {
public char c;
public int d;
}
static void Main(string[] args) {
SolveA(args);
// SolveB(args);
// SolveC(args);
// SolveD(args);
}
static vo... | [["-", 3, 4, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 805 |
using System;
using System.Collections.Generic;
public class my {
public static void Main() {
var n = my.GetInt();
var A = new Card[n];
for (int i = 0; i < n; i++) {
A[i] = new Card(Console.ReadLine());
}
Card[] B = new Card[n];
A.CopyTo(B, 0);
my.QuickSort(A, 0, n - 1);
my.M... | using System;
using System.Collections.Generic;
public class my {
public static void Main() {
var n = my.GetInt();
var A = new Card[n];
for (int i = 0; i < n; i++) {
A[i] = new Card(Console.ReadLine());
}
Card[] B = new Card[n];
A.CopyTo(B, 0);
my.QuickSort(A, 0, n - 1);
my.M... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 1,536 |
using System;
class Program {
class Card {
public int value;
public char suit;
public Card(char suit, int value) {
this.suit = suit;
this.value = value;
}
}
static void Swap(Card[] A, int a, int b) {
var tmp = A[a];
A[a] = A[b];
A[b] = tmp;
}
static int Partition(Car... | using System;
class Program {
class Card {
public int value;
public char suit;
public Card(char suit, int value) {
this.suit = suit;
this.value = value;
}
}
static void Swap(Card[] A, int a, int b) {
var tmp = A[a];
A[a] = A[b];
A[b] = tmp;
}
static int Partition(Car... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 802 |
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
Tuple<char, int>[] cards = new Tuple<char, int>[n];
for (int i = 0; i < n; i++) {
string[] inp... | using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
Tuple<char, int>[] cards = new Tuple<char, int>[n];
for (int i = 0; i < n; i++) {
string[] inp... | [["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 653 |
using System;
using System.IO;
namespace Sort_II {
class Quick_Sort {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var A = new Card[n];
var B = new Card[n];
for (int i = 0; i < n; i++) {
var token = Console.ReadLine().Split(' ');
A[i] = B[i] = new Card(token[0]... | using System;
using System.IO;
namespace Sort_II {
class Quick_Sort {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var A = new Card[n];
var B = new Card[n];
for (int i = 0; i < n; i++) {
var token = Console.ReadLine().Split(' ');
A[i] = B[i] = new Card(token[0]... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 806 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Aoj.ALDS.Chapter6C {
class Card : IComparable<Card> {
public string Suit { get; set; }
public int Number { get; set; }
public Card(string suit, int number) {
Suit = suit;
Number = number;
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Aoj.ALDS.Chapter6C {
class Card : IComparable<Card> {
public string Suit { get; set; }
public int Number { get; set; }
public Card(string suit, int number) {
Suit = suit;
Number = number;
}
... | [["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 962 |
using System;
using System.Linq;
using System.Text;
namespace test {
class Program {
struct Card {
internal char suit;
internal int value;
}
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
Card[] A1 = new Card[n];
Card[] A2 = new Card[n];
string[] input;
fo... | using System;
using System.Linq;
using System.Text;
namespace test {
class Program {
struct Card {
internal char suit;
internal int value;
}
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
Card[] A1 = new Card[n];
Card[] A2 = new Card[n];
string[] input;
fo... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79]] | 8 | 518 |
using System;
namespace B {
class Check {
public int dep(Node[] node, int id) {
if (node[id].p == -1) {
return 0;
}
return dep(node, node[id].p) + 1;
}
public int height(Node[] node, int id) {
if (id == -1) {
return 0;
}
return Math.Max(height(node, node[id].left), height(nod... | using System;
namespace B {
class Check {
public int dep(Node[] node, int id) {
if (node[id].p == -1) {
return 0;
}
return dep(node, node[id].p) + 1;
}
public int height(Node[] node, int id) {
if (id == -1) {
return -1;
}
return Math.Max(height(node, node[id].left), height(no... | [["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 203], ["+", 0, 57, 64, 196, 0, 37, 0, 241, 0, 33], ["+", 0, 57, 64, 196, 0, 37, 0, 241, 0, 203]] | 8 | 818 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
public class Node {
public int id;
public int parent = -1;
public int left = -1;
public int right = -1;
public int sibling = -1;
public int height;
public int depth;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
public class Node {
public int id;
public int parent = -1;
public int left = -1;
public int right = -1;
public int sibling = -1;
public int height;
public int depth;
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 666 |
using System;
using System.Linq;
class A7 {
struct Tree {
public int id;
public int parent;
public int depth;
public int height;
public int left, right;
public int sibling;
public int degree;
public string type;
}
public static void Main() {
int n = int.Parse(Console.ReadLine... | using System;
using System.Linq;
class A7 {
struct Tree {
public int id;
public int parent;
public int depth;
public int height;
public int left, right;
public int sibling;
public int degree;
public string type;
}
public static void Main() {
int n = int.Parse(Console.ReadLine... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 627 |
using System;
using System.Text;
namespace ALDS1_7_B {
public struct node {
public int parent;
public int left;
public int right;
public node(int parent, int left, int right) {
this.parent = parent;
this.left = left;
this.right = right;
}
}
class Program {
public static int nil = -1;
stati... | using System;
using System.Text;
namespace ALDS1_7_B {
public struct node {
public int parent;
public int left;
public int right;
public node(int parent, int left, int right) {
this.parent = parent;
this.left = left;
this.right = right;
}
}
class Program {
public static int nil = -1;
stati... | [["-", 0, 28, 0, 16, 31, 16, 31, 5, 0, 222], ["+", 0, 28, 0, 16, 31, 16, 31, 5, 0, 222]] | 8 | 1,052 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ALDS1_7B {
public class Program {
public static void Main(string[] args) {
var sr = new StreamReader();
//---------------------------------
var N = sr.Next<int>();
var tree = new Tree(N);
for (var i = 0; i < N; i++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ALDS1_7B {
public class Program {
public static void Main(string[] args) {
var sr = new StreamReader();
//---------------------------------
var N = sr.Next<int>();
var tree = new Tree(N);
for (var i = 0; i < N; i++) {
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 910 |
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
BinaryTree btree = new BinaryTree();
for (int i = 0; i < n; i++) {
int[] node =
Cons... | using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
BinaryTree btree = new BinaryTree();
for (int i = 0; i < n; i++) {
int[] node =
Cons... | [["-", 0, 57, 75, 196, 0, 57, 64, 37, 0, 38], ["-", 0, 280, 8, 196, 0, 57, 75, 196, 0, 46], ["+", 75, 196, 0, 37, 0, 213, 63, 214, 205, 22], ["+", 75, 196, 0, 37, 0, 213, 63, 214, 0, 131], ["+", 75, 196, 0, 37, 0, 213, 63, 214, 141, 22], ["+", 75, 196, 0, 37, 0, 213, 3, 4, 0, 24], ["-", 8, 196, 0, 37, 0, 11, 0, 202, 0,... | 8 | 929 |
using System;
using System.Collections.Generic;
namespace alds17c {
class node {
public int id;
public node parent;
public node left;
public node right;
public node(int setid) { id = setid; }
public void setleft(node tgt) {
left = tgt;
tgt.parent = this;
}
public void setright(node tgt) {
r... | using System;
using System.Collections.Generic;
namespace alds17c {
class node {
public int id;
public node parent;
public node left;
public node right;
public node(int setid) { id = setid; }
public void setleft(node tgt) {
left = tgt;
tgt.parent = this;
}
public void setright(node tgt) {
r... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 500 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _20170410_AOJ_ALDS1_7D {
class ALDS1_7D {
static void Main(string[] args) {
for (;;) {
string line = Console.ReadLine();
if (string.IsNullOrEmpty(line)) {
break;
}
int n = int.Parse(li... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _20170410_AOJ_ALDS1_7D {
class ALDS1_7D {
static void Main(string[] args) {
for (;;) {
string line = Console.ReadLine();
if (string.IsNullOrEmpty(line)) {
break;
}
int n = int.Parse(li... | [["-", 64, 196, 0, 1, 0, 11, 31, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 11, 31, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 11, 31, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 11, 31, 214, 141, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 215], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22]] | 8 | 661 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace Aoj.ALDS.Chapter8C {
class Node {
public int Key { get; set; }
public Node Parent { get; set; }
public Node Left { get; set; }
public Node Right { get; set; }
public Node(int... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace Aoj.ALDS.Chapter8C {
class Node {
public int Key { get; set; }
public Node Parent { get; set; }
public Node Left { get; set; }
public Node Right { get; set; }
public Node(int... | [["+", 0, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22]] | 8 | 1,192 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _20170410_AOJ_ALDS1_8A {
class ALDS1_8A {
static void Main(string[] args) {
for (;;) {
string line = Console.ReadLine();
if (string.IsNullOrEmpty(line)) {
break;
}
BinaryTree bt = new ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _20170410_AOJ_ALDS1_8A {
class ALDS1_8A {
static void Main(string[] args) {
for (;;) {
string line = Console.ReadLine();
if (string.IsNullOrEmpty(line)) {
break;
}
BinaryTree bt = new ... | [["-", 75, 57, 15, 16, 12, 23, 0, 16, 17, 79], ["+", 75, 57, 15, 16, 12, 23, 0, 16, 17, 60]] | 8 | 1,205 |
using System;
using System.Text;
namespace ALDS1_9_A {
class Program {
static int parent(int i) { return i / 2; }
static int left(int i) { return 2 * i; }
static int right(int i) { return 2 * i + 1; }
static void Main(string[] args) {
var sb = new StringBuilder();
var H = scan()[0];
var A = new int... | using System;
using System.Text;
namespace ALDS1_9_A {
class Program {
static int parent(int i) { return i / 2; }
static int left(int i) { return 2 * i; }
static int right(int i) { return 2 * i + 1; }
static void Main(string[] args) {
var sb = new StringBuilder();
var H = scan()[0];
var A = new int... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 222], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 222]] | 8 | 308 |
using System;
class Program {
public static void Main() {
var H = int.Parse(Console.ReadLine());
var nodes = new int[H];
var s = Console.ReadLine().Split(' ');
for (var i = 0; i < H; i++) {
nodes[i] = int.Parse(s[i]);
}
for (var i = 0; i < H; i++) {
Console.Write("node " + (i + 1... | using System;
class Program {
public static void Main() {
var H = int.Parse(Console.ReadLine());
var nodes = new int[H];
var s = Console.ReadLine().Split(' ');
for (var i = 0; i < H; i++) {
nodes[i] = int.Parse(s[i]);
}
for (var i = 0; i < H; i++) {
Console.Write("node " + (i + 1... | [["-", 3, 4, 0, 28, 0, 16, 12, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 16, 12, 5, 0, 222]] | 8 | 239 |
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
class Program {
static void Main() {
int l = int.Parse(Console.ReadLine());
int[] heap =
Console.ReadLine().Split(' ').Select(val => int.Parse(val)).ToArray();
for (int... | using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
class Program {
static void Main() {
int l = int.Parse(Console.ReadLine());
int[] heap =
Console.ReadLine().Split(' ').Select(val => int.Parse(val)).ToArray();
for (int... | [["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 72], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 12, 203]] | 8 | 217 |
using System;
namespace A {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var array = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
for (int i = 1; i <= n; i++) {
Console.Write("node {0}: key = {1},", i, array[i - 1]);
if ((i >> 1) > 0)... | using System;
namespace A {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var array = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
for (int i = 1; i <= n; i++) {
Console.Write("node {0}: key = {1}, ", i, array[i - 1]);
if ((i >> 1) > 0... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 191 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AizuOnline_DataStructure {
public class Node {
public int id;
public bool isPassed = false;
public int groupId;
public int cost = int.MaxValue;
}
internal class Program {
private static void Main(string[] args) {
var nodes = ne... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AizuOnline_DataStructure {
public class Node {
public int id;
public bool isPassed = false;
public int groupId;
public int cost = int.MaxValue;
}
internal class Program {
private static void Main(string[] args) {
var nodes = ne... | [["+", 206, 207, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 206, 207, 0, 28, 0, 16, 31, 23, 0, 25]] | 8 | 319 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace B {
class Heap<T> : IEnumerable<T>
where T : IComparable<T> {
private List<T> data = new List<T>() { default(T) };
public Heap() {}
public Heap(T[] array) { data.AddRange(array); }
public IEnumerator<T> ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace B {
class Heap<T> : IEnumerable<T>
where T : IComparable<T> {
private List<T> data = new List<T>() { default(T) };
public Heap() {}
public Heap(T[] array) { data.AddRange(array); }
public IEnumerator<T> ... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 354 |
using System;
using System.Linq;
namespace geometry {
public class Point {
public double x, y;
public Point() { this.x = this.y = 0; }
public Point(double x, double y) {
this.x = x;
this.y = y;
}
public static Point operator +(Point p1, Point p2) {
return new Point(p1.x + p2.x, p1.y + p2.y);
... | using System;
using System.Linq;
namespace geometry {
public class Point {
public double x, y;
public Point() { this.x = this.y = 0; }
public Point(double x, double y) {
this.x = x;
this.y = y;
}
public static Point operator +(Point p1, Point p2) {
return new Point(p1.x + p2.x, p1.y + p2.y);
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 1,423 |
using System;
class Program {
public struct Vector {
public int x, y;
}
public static double norm(Vector v) { return v.x * v.x + v.y * v.y; }
public static double dot(Vector v1, Vector v2) {
return v1.x * v2.x + v1.y * v2.y;
}
public static void Main() {
string[] s1 = Console.ReadLine().Split... | using System;
class Program {
public struct Vector {
public int x, y;
}
public static double norm(Vector v) { return v.x * v.x + v.y * v.y; }
public static double dot(Vector v1, Vector v2) {
return v1.x * v2.x + v1.y * v2.y;
}
public static void Main() {
string[] s1 = Console.ReadLine().Split... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 317 |
using System;
using System.Collections.Generic;
using System.Linq;
/*
Points/Vectors - Projection
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=CGL_1_A
?????????????°???±????±?????????????
??¨???: Vec2f ??? float ??§?¨????????????¨???????????????
*/
class Program {
static int ReadInt() { retu... | using System;
using System.Collections.Generic;
using System.Linq;
/*
Points/Vectors - Projection
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=CGL_1_A
?????????????°???±????±?????????????
??¨???: Vec2f ??? float ??§?¨????????????¨???????????????
*/
class Program {
static int ReadInt() { retu... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 639 |
using System;
// using System.Collections.Generic;
// using System.Linq;
// using Vector = CGL.Point;
// using Line = CGL.Segment;
// using Polygon = System.Collections.Generic.List<CGL.Point>;
namespace CGL {
class Program {
static void Main(string[] args) {
var t = scan;
var q = scan[0];
var p0 = new P... | using System;
// using System.Collections.Generic;
// using System.Linq;
// using Vector = CGL.Point;
// using Line = CGL.Segment;
// using Polygon = System.Collections.Generic.List<CGL.Point>;
namespace CGL {
class Program {
static void Main(string[] args) {
var t = scan;
var q = scan[0];
var p0 = new P... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 95], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 95]] | 8 | 1,063 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static int ReadInt() { return int.Parse(Console.ReadLine()); }
static int[] ReadInts() {
return Console.ReadLine().Split().Select(int.Parse).ToArray();
}
static string[] ReadStrings() { return Console.ReadLine().Split(); }
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static int ReadInt() { return int.Parse(Console.ReadLine()); }
static int[] ReadInts() {
return Console.ReadLine().Split().Select(int.Parse).ToArray();
}
static string[] ReadStrings() { return Console.ReadLine().Split(); }
... | [["-", 8, 196, 0, 57, 64, 37, 0, 5, 0, 222], ["+", 8, 196, 0, 57, 64, 37, 0, 5, 0, 222], ["-", 64, 196, 0, 57, 64, 37, 0, 5, 0, 222], ["+", 64, 196, 0, 57, 64, 37, 0, 5, 0, 222]] | 8 | 754 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using Aoj.CGL.Lib;
namespace Aoj.CGL.Chapter1C {
class Program {
public static string ConvertCcwToStr(Ccw ccw) {
var map = new Dictionary<Ccw, string>() {
{ Ccw.CounterClockwise, "COUNTER... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using Aoj.CGL.Lib;
namespace Aoj.CGL.Chapter1C {
class Program {
public static string ConvertCcwToStr(Ccw ccw) {
var map = new Dictionary<Ccw, string>() {
{ Ccw.CounterClockwise, "COUNTER... | [["-", 0, 230, 10, 229, 0, 229, 0, 5, 0, 222], ["+", 0, 230, 10, 229, 0, 229, 0, 5, 0, 222]] | 8 | 1,490 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
using P_Pair = System.Collections.Generic.KeyValuePair<Point, Point>;
using Polygon = System.Collections.Generic.List<Point>;
class Program {
static v... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
using P_Pair = System.Collections.Generic.KeyValuePair<Point, Point>;
using Polygon = System.Collections.Generic.List<Point>;
class Program {
static v... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 57, 15, 16, 12, 16, 12, 241, 0, 203],... | 8 | 2,002 |
using System;
namespace CGL_3_C_Polygon_Point_Containment {
class Program {
static void Main(string[] args) {
int inputCount = int.Parse(Console.ReadLine());
Vector2[] polygon = new Vector2[inputCount];
for (int lp = 0; lp < inputCount; lp++) {
int[] input = Array.ConvertAll(Console.ReadLine().Spl... | using System;
namespace CGL_3_C_Polygon_Point_Containment {
class Program {
static void Main(string[] args) {
int inputCount = int.Parse(Console.ReadLine());
Vector2[] polygon = new Vector2[inputCount];
for (int lp = 0; lp < inputCount; lp++) {
int[] input = Array.ConvertAll(Console.ReadLine().Spl... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19]] | 8 | 561 |
using System;
using System.Collections.Generic;
// using System.Linq;
// using Vector = CGL.Point;
// using Line = CGL.Segment;
// using Polygon = System.Collections.Generic.List<CGL.Point>;
namespace CGL {
class Program {
static void Main(string[] args) {
var k = scan;
var C = new Circle(new Point(k[0], k[1... | using System;
using System.Collections.Generic;
// using System.Linq;
// using Vector = CGL.Point;
// using Line = CGL.Segment;
// using Polygon = System.Collections.Generic.List<CGL.Point>;
namespace CGL {
class Program {
static void Main(string[] args) {
var k = scan;
var C = new Circle(new Point(k[0], k[1... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 1,430 |
using System;
using System.Text;
namespace CGL_1_C_Counter_Clockwise {
class Program {
static void Main(string[] args) {
int[] inputNum = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int inputCount = int.Parse(Console.ReadLine());
StringBuilder output = new StringBuilder(inputCount * 18);... | using System;
using System.Text;
namespace CGL_1_C_Counter_Clockwise {
class Program {
static void Main(string[] args) {
int[] inputNum = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int inputCount = int.Parse(Console.ReadLine());
StringBuilder output = new StringBuilder(inputCount * 18);... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 641 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Program {
static int n;
static int m;
static int[] cs;
static int[] minCounts;
static void Main(string[] args) {
string[] first = Console.ReadLine().Split();
n = int.Parse(first[0])... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Program {
static int n;
static int m;
static int[] cs;
static int[] minCounts;
static void Main(string[] args) {
string[] nm = Console.ReadLine().Split();
n = int.Parse(nm[0]);
... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 12, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 0, 11, 12, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 11, 12, 227, 39, 224, 225, 226, 0, 203]] | 8 | 288 |
using System;
class Program {
private static int[] a = new int[50];
static void Main() {
string[] s = Console.ReadLine().Split(' ');
int n = int.Parse(s[0]);
int m = int.Parse(s[1]);
s = Console.ReadLine().Split(' ');
int[] g = new int[m];
for (int i = 0; i < m; i++)
g[i] = int.Par... | using System;
class Program {
// 最小値保持
private static int[] a = new int[50001];
static void Main() {
string[] s = Console.ReadLine().Split(' ');
int n = int.Parse(s[0]);
int m = int.Parse(s[1]);
s = Console.ReadLine().Split(' ');
int[] g = new int[m];
for (int i = 0; i < m; i++)
... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203]] | 8 | 258 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
public class Program {
public static void Main() {
string filename = "";
TextReader reader;
if (filename.Count() == 0)
reader = Console.In;
else
reader = new StreamReader(filename);
var s = reader.Read... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
public class Program {
public static void Main() {
string filename = "";
TextReader reader;
if (filename.Count() == 0)
reader = Console.In;
else
reader = new StreamReader(filename);
var s = reader.Read... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 317 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Solve {
public Solve() {}
StringBuilder sb;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
Calc();
Console.Write(sb.ToString());
}
void Calc() {... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Solve {
public Solve() {}
StringBuilder sb;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
Calc();
Console.Write(sb.ToString());
}
void Calc() {... | [["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22]] | 8 | 541 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
struct Rectangle {
internal int height, pos;
}
class Program {
static void Main(string[] args) {
int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int H = input[0];... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
struct Rectangle {
internal int height, pos;
}
class Program {
static void Main(string[] args) {
int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int H = input[0];... | [["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 424 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Solve {
public Solve() {}
StringBuilder sb;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
Calc();
Console.Write(sb.ToString());
}
void Calc() {... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Solve {
public Solve() {}
StringBuilder sb;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
Calc();
Console.Write(sb.ToString());
}
void Calc() {... | [["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 506 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using SB = System.Text.StringBuilder;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
using System.Numerics;
using static System.Math;
using pair = Pair<i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using SB = System.Text.StringBuilder;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
using System.Numerics;
using static System.Math;
using pair = Pair<i... | [["-", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 934 |
using System;
using System.Linq;
namespace ACTest {
class AOJDSL2A {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int num = int.Parse(input[0]);
int query = int.Parse(input[1]);
int[] com = new int[query];
int[] x = new int[query];
int[] y = new int[query]... | using System;
using System.Linq;
namespace ACTest {
class AOJDSL2A {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int num = int.Parse(input[0]);
int query = int.Parse(input[1]);
int[] com = new int[query];
int[] x = new int[query];
int[] y = new int[query]... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 539 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Competitive {
internal class Solution {
public int N, Q;
public void Run() {
{
var line = Input.ReadIntArray();
N = line[0];
Q = line[1];
}
var S = new SegTree(N);
for (int i = 0; i <... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Competitive {
internal class Solution {
public int N, Q;
public void Run() {
{
var line = Input.ReadIntArray();
N = line[0];
Q = line[1];
}
var S = new SegTree(N);
for (int i = 0; i <... | [["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107]] | 8 | 1,009 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.