buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
using System;
class Program {
static void Main() {
while (true) {
string[] s = Console.ReadLine().Split(' ');
int H = int.Parse(s[0]);
int W = int.Parse(s[1]);
if (H == 0 && W == 0)
break;
for (int i = 0; i < H; i++) {
string a = new string('#', W);
Console.W... | using System;
class Program {
static void Main() {
while (true) {
string[] s = Console.ReadLine().Split(' ');
int H = int.Parse(s[0]);
int W = int.Parse(s[1]);
if (H == 0 && W == 0)
break;
for (int i = 0; i < H; i++) {
string a = new string('#', W);
Console.W... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 8 | 112 |
using System;
using System.Collections.Generic;
class Program {
static void Main() {
while (true) {
// Input H, W
string[] str = Console.ReadLine().Split(' ');
int H = int.Parse(str[0]);
int W = int.Parse(str[1]);
if (H == 0 && W == 0) {
break;
}
for (int i = 0... | using System;
using System.Collections.Generic;
class Program {
static void Main() {
while (true) {
// Input H, W
string[] str = Console.ReadLine().Split(' ');
int H = int.Parse(str[0]);
int W = int.Parse(str[1]);
if (H == 0 && W == 0) {
break;
}
for (int i = 0... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 230, 0, 228], ["-", 0, 213, 3, 4, 0, 28, 0, 230, 39, 199], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 230, 3, 4, 0, 21], ["-", 0, 28, 0, 230, 3, 4, 0, 28, 0, 22], ["-", 8, 19... | 8 | 142 |
using System;
class MainClass {
public static void Main() {
while (true) {
string str = Console.ReadLine();
string[] spStr = str.Split(' ');
int h = int.Parse(spStr[0]);
int m = int.Parse(spStr[1]);
if (h == 0 && m == 0) {
break;
}
for (int i = 0; i < h; i++)... | using System;
class MainClass {
public static void Main() {
while (true) {
string str = Console.ReadLine();
string[] spStr = str.Split(' ');
int h = int.Parse(spStr[0]);
int m = int.Parse(spStr[1]);
if (h == 0 && m == 0) {
break;
}
for (int i = 0; i < h; i++)... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196... | 8 | 144 |
using System;
namespace ConsoleApplication3 {
class Program {
static void Main(string[] args) {
int a, b;
while (true) {
string[] array = Console.ReadLine().Split(' ');
a = int.Parse(array[0]);
b = int.Parse(array[1]);
if (a != 0 && b != 0) {
for (int i = 0; i < a; i++) {
... | using System;
namespace ConsoleApplication3 {
class Program {
static void Main(string[] args) {
int a, b;
while (true) {
string[] array = Console.ReadLine().Split(' ');
a = int.Parse(array[0]);
b = int.Parse(array[1]);
if (a == 0 && b == 0) {
break;
}
for (int i = ... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 46], ... | 8 | 137 |
using System;
namespace Project {
class MainClass {
public static void Main(string[] args) {
while (true) {
int H, W;
string s = Console.ReadLine();
string[] sar = s.Split(' ');
H = int.Parse(sar[0]);
W = int.Parse(sar[1]);
if (H == 0 && W == 0) {
break;
}
... | using System;
namespace Project {
class MainClass {
public static void Main(string[] args) {
while (true) {
int H, W;
string s = Console.ReadLine();
string[] sar = s.Split(' ');
H = int.Parse(sar[0]);
W = int.Parse(sar[1]);
if (H == 0 && W == 0) {
break;
}
... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 44], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196,... | 8 | 145 |
using System;
using System.Linq;
namespace Sample1 {
class Program {
static void Main(string[] args) {
string input;
while (true) {
input = Console.ReadLine();
int H = int.Parse(input.Split(' ')[0]);
int W = int.Parse(input.Split(' ')[1]);
if (H != 0 & W != 0) {
for (int i = ... | using System;
using System.Linq;
namespace Sample1 {
class Program {
static void Main(string[] args) {
string input;
while (true) {
input = Console.ReadLine();
int H = int.Parse(input.Split(' ')[0]);
int W = int.Parse(input.Split(' ')[1]);
if (H != 0 & W != 0) {
for (int i = 0... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 95], ["+", 0, 52, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 8, 196, 0, 57, 75, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 75, 196, 0, 93, 0, 35], ["+", 0, 52, 8, 196, 0, 57, 75, 196, 0, 46], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["... | 8 | 128 |
using System;
using System.Collections.Generic;
class Program {
static int Main(string[] args) {
List<int[]> list = new List<int[]>();
while (true) {
string v = Console.ReadLine();
int H = int.Parse(v.Split(' ')[0]);
int W = int.Parse(v.Split(' ')[1]);
if ((H == 0) && (W == 0)) {
... | using System;
using System.Collections.Generic;
class Program {
static int Main(string[] args) {
List<int[]> list = new List<int[]>();
while (true) {
string v = Console.ReadLine();
int H = int.Parse(v.Split(' ')[0]);
int W = int.Parse(v.Split(' ')[1]);
if ((H == 0) && (W == 0)) {
... | [["-", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 47], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212... | 8 | 230 |
using System;
using System.Collections.Generic;
using System.Linq;
public class PrintARectangle {
//??????H cm ?????? W cm ???????????¢?????????
static void Main(string[] args) {
/*---??£?¨???¨---*/
int i;
int k;
int l;
string[] strRectangleData;
List<string> strRectangleList = new List<str... | using System;
using System.Collections.Generic;
using System.Linq;
public class PrintARectangle {
//??????H cm ?????? W cm ???????????¢?????????
static void Main(string[] args) {
/*---??£?¨???¨---*/
int i;
int k;
int l;
string[] strRectangleData;
List<string> strRectangleList = new List<str... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 21], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 2... | 8 | 274 |
using System;
class Program {
static void Main(string[] args) {
int h, w;
while (true) {
string[] num = Console.ReadLine().Split(' ');
h = int.Parse(num[0]);
w = int.Parse(num[1]);
if (h == 0 && w == 0) {
break;
}
for (int i = 0; i < h; i++) {
for (int j... | using System;
class Program {
static void Main(string[] args) {
int h, w;
while (true) {
string[] num = Console.ReadLine().Split(' ');
h = int.Parse(num[0]);
w = int.Parse(num[1]);
if (h == 0 && w == 0) {
break;
}
for (int i = 0; i < h; i++) {
for (int j... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196... | 8 | 135 |
using System;
class WhileSample {
static void Main() {
int H;
int W;
string[] input = Console.ReadLine().Split(' ');
H = int.Parse(input[0]);
W = int.Parse(input[1]);
while (H != 0 && W != 0) {
for (int x = 1; x <= H; x++) {
for (int y = 1; y <= W; y++) {
// xy の値を... | using System;
class WhileSample {
static void Main() {
int H;
int W;
string[] input = Console.ReadLine().Split(' ');
H = int.Parse(input[0]);
W = int.Parse(input[1]);
while (H != 0 && W != 0) {
for (int x = 1; x <= H; x++) {
for (int y = 1; y <= W; y++) {
// xy の値を... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 44], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196,... | 8 | 164 |
using System;
class Program {
static void Main() {
while (true) {
string[] line = Console.ReadLine().Split(' ');
int height = int.Parse(line[0]);
int width = int.Parse(line[1]);
if (height == 0 && width == 0)
break;
for (int i = 0; i < height; i++) {
for (int j = ... | using System;
class Program {
static void Main() {
while (true) {
string[] line = Console.ReadLine().Split(' ');
int height = int.Parse(line[0]);
int width = int.Parse(line[1]);
if (height == 0 && width == 0)
break;
for (int i = 0; i < height; i++) {
for (int j = ... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 44], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196,... | 8 | 126 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace _5_B {
class Program {
static void Main(string[] args) {
List<int> H = new List<int>();
List<int> W = new List<int>();
while (true) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (x[0] == 0 && ... | using System;
using System.Linq;
using System.Collections.Generic;
namespace _5_B {
class Program {
static void Main(string[] args) {
List<int> H = new List<int>();
List<int> W = new List<int>();
while (true) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (x[0] == 0 && ... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 8, 196, 0, 7, 15, 16, 12, 204, 205, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 204, 205, 22], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], [... | 8 | 298 |
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication4 {
class Program {
static void Main(string[] args) {
while (true) {
string[] s = Console.ReadLine().Split(' ');
int h = int.Parse(s[0]);
int w = int.Parse(s[1]);
if (w == 0 && h == 0)
... | using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication4 {
class Program {
static void Main(string[] args) {
while (true) {
string[] s = Console.ReadLine().Split(' ');
int h = int.Parse(s[0]);
int w = int.Parse(s[1]);
if (w == 0 && h == 0)
... | [["-", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 31, 16, 31, 16, 12, 16, 12, 16, 17, 33], ["+", 31, 16, 31, 16, 12, 16, 12, 16, 12, 203], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 12, 1... | 8 | 191 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ITP1_5_B {
class Program {
static void Main(string[] args) {
var list = new List<byte[]>();
string input;
while ((input = Console.ReadLine()) != "0 0")
list.Add(input.Split(' ').Select(x => Convert.ToByte(x)).ToArray());
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ITP1_5_B {
class Program {
static void Main(string[] args) {
var list = new List<byte[]>();
string input;
while ((input = Console.ReadLine()) != "0 0")
list.Add(input.Split(' ').Select(x => Convert.ToByte(x)).ToArray());
... | [["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 24], ["-", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["-", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 57, 15, 16, 31, ... | 8 | 211 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication16 {
class Program {
static void Main(string[] args) {
var hw = Console.ReadLine().Split().Select(int.Parse).ToArray();
int h = hw[0];
int w = hw[1];
for (int a = 0; a < w; ++a) {
C... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication12 {
class Program {
static void Main(string[] args) {
while (true) {
var hw = Console.ReadLine().Split().Select(int.Parse).ToArray();
int h = hw[0];
int w = hw[1];
if (h == 0... | [["-", 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, 54, 55, 0, 25], ["+", 0, 235, 8, 201, 0, 195, 8, 196, 0, 45], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, ... | 8 | 206 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace IPT1_5B {
class Program {
static void Main(string[] args) {
int numH, numW;
while (true) {
string[] inString = Console.ReadLine().Split(' ');
numH = int.Parse(inString[0]);
numW = int.Parse(inS... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace IPT1_5B {
class Program {
static void Main(string[] args) {
int numH, numW;
while (true) {
string[] inString = Console.ReadLine().Split(' ');
numH = int.Parse(inString[0]);
numW = int.Parse(inS... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 44], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196,... | 8 | 210 |
using System;
namespace AOJ {
class Program {
static void Main(string[] args) {
while (true) {
var read = Console.ReadLine();
var temp_string = read.Split(' ');
int H = int.Parse(temp_string[0]), W = int.Parse(temp_string[1]);
if (H == 0 && W == 0)
break;
if (H != 0) {
... | using System;
namespace AOJ {
class Program {
static void Main(string[] args) {
while (true) {
var read = Console.ReadLine();
var temp_string = read.Split(' ');
int H = int.Parse(temp_string[0]), W = int.Parse(temp_string[1]);
if (H == 0 && W == 0)
break;
if (H != 0) {
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", ... | 8 | 233 |
using System;
class MainClass {
public static void Main(string[] args) {
while (true) {
string str = Console.ReadLine();
string[] spStr = str.Split(' ');
int a = int.Parse(spStr[0]);
int b = int.Parse(spStr[1]);
if (a == 0 && b == 0) {
break;
}
for (int i = 0;... | using System;
class MainClass {
public static void Main(string[] args) {
while (true) {
string str = Console.ReadLine();
string[] spStr = str.Split(' ');
int a = int.Parse(spStr[0]);
int b = int.Parse(spStr[1]);
if (a == 0 && b == 0) {
break;
}
for (int i = 0;... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 8 | 173 |
using System;
public class Class1 {
public static void Main() {
int h = 0;
int w = 0;
int k = 0;
do {
string dataSet = Console.ReadLine();
string[] data = dataSet.Split();
h = int.Parse(data[0]);
w = int.Parse(data[1]);
for (int i = 0; i < h; i++) {
if (i == 0 |... | using System;
public class Class1 {
public static void Main() {
int h = 0;
int w = 0;
int k = 0;
while (true) {
string dataSet = Console.ReadLine();
string[] data = dataSet.Split();
h = int.Parse(data[0]);
w = int.Parse(data[1]);
if (h == 0 && w == 0) {
break;
... | [["-", 8, 201, 0, 195, 8, 196, 0, 82, 0, 170], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", ... | 8 | 206 |
using System;
namespace ConsoleApp_ITP1_5_B {
class Program {
static void Main(string[] args) {
for (;;) {
string[] input = Console.ReadLine().Split(' ');
var h = Int32.Parse(input[0]);
var w = Int32.Parse(input[1]);
if (h == 0 && w == 0) {
break;
} else {
for (int ... | using System;
namespace ConsoleApp_ITP1_5_B {
class Program {
static void Main(string[] args) {
for (;;) {
string[] input = Console.ReadLine().Split(' ');
var h = Int32.Parse(input[0]);
var w = Int32.Parse(input[1]);
if (h == 0 && w == 0)
break;
else {
for (int j = ... | [["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 57, 75, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 57, 75, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 57, 75, 196, 0, 57, 75, 196, 0, 45], ["-", 0, 57, 75, 196, 0, 57, 75, 196, 0, 46], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ... | 8 | 185 |
using System;
namespace Csharp_ITP1 {
class ITP1_5_C {
static void Main() {
while (true) {
string[] s = Console.ReadLine().Split(' ');
int w = int.Parse(s[0]);
int h = int.Parse(s[1]);
if (h == 0 && w == 0)
break;
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; ... | using System;
namespace Csharp_ITP1 {
class ITP1_5_C {
public static void Main() {
while (true) {
string[] str = Console.ReadLine().Split(' ');
int h = int.Parse(str[0]);
int w = int.Parse(str[1]);
if (h == 0 && w == 0)
break;
for (int i = 0; i < h; ++i) {
for (int j... | [["+", 0, 235, 8, 201, 0, 195, 0, 251, 0, 259], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 0, 52, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 52, 8, 196, 0, 7, 26, 241, 0, 22]... | 8 | 150 |
using System;
namespace Test {
class MainClass {
public static void Main(string[] args) {
while (true) {
var inputs = Console.ReadLine().Split(' ');
var H = int.Parse(inputs[0]);
var W = int.Parse(inputs[1]);
if (H == 0 && W == 0)
return;
const char blockA = '#';
cons... | using System;
namespace Test {
class MainClass {
public static void Main(string[] args) {
while (true) {
var inputs = Console.ReadLine().Split(' ');
var H = int.Parse(inputs[0]);
var W = int.Parse(inputs[1]);
if (H == 0 && W == 0)
return;
const char blockA = '#';
cons... | [["-", 0, 52, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 275], ["+", 0, 57, 64, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 230, 0, 228], ["+", 0, 213, 3, 4, 0, 28, 0, 230, 39, 199], ["+", 0, 57, 64, 1, 0, 213, 3, 4, 0, 25], ["+", 3, 4, 0, 2... | 8 | 233 |
using System;
class Program {
/// <summary>
/// チェスボードのベースとなる文字列を用意しておく
/// </summary>
const string BaseString =
"#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.... | using System;
class Program {
/// <summary>
/// チェスボードのベースとなる文字列を用意しておく
/// </summary>
const string BaseString =
"#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22], ["-... | 8 | 143 |
using System;
namespace ITP1_5_C {
class Program {
static void Main(string[] args) {
while (true) {
var input = Console.ReadLine();
var values = input.Split(' ');
int H = int.Parse(values[0]);
int W = int.Parse(values[1]);
if (H == 0 && W == 0) {
break;
}
for (i... | using System;
namespace ITP1_5_C {
class Program {
static void Main(string[] args) {
while (true) {
var input = Console.ReadLine();
var values = input.Split(' ');
int H = int.Parse(values[0]);
int W = int.Parse(values[1]);
if (H == 0 && W == 0) {
return;
}
for (... | [["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", ... | 8 | 165 |
using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
while (true) {
string[] s = Console.ReadLine().Split(' ');
int h = int.Parse(s[0]);
int w = int.Parse(s[1]);
if (h == 0 && w == 0) {
break;
}
for (int i = 0; i < h; i++) {
... | using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
while (true) {
string[] s = Console.ReadLine().Split(' ');
int h = int.Parse(s[0]);
int w = int.Parse(s[1]);
if (h == 0 && w == 0) {
break;
}
for (int i = 0; i < h; i++) {
... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 8 | 225 |
using System;
using System.Text.RegularExpressions;
namespace AizuOnLine {
class Program {
static void Main(string[] args) {
while (true) {
string[] data = Console.ReadLine().Split(' ');
int h = Convert.ToInt32(data[0]);
int w = Convert.ToInt32(data[1]);
if (h == 0 && w == 0) {
b... | using System;
using System.Text.RegularExpressions;
namespace AizuOnLine {
class Program {
static void Main(string[] args) {
while (true) {
string[] data = Console.ReadLine().Split(' ');
int h = Convert.ToInt32(data[0]);
int w = Convert.ToInt32(data[1]);
if (h == 0 && w == 0) {
b... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 15, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, ... | 8 | 190 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2 {
class Program {
static void Main(string[] args) {
var HW = Console.ReadLine().Split().Select(int.Parse).ToArray();
var H = HW[0];
var W = HW[1];
var h = H % 2;
var w = W % 2;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2 {
class Program {
static void Main(string[] args) {
while (true) {
var HW = Console.ReadLine().Split().Select(int.Parse).ToArray();
var H = HW[0];
var W = HW[1];
if (H == 0)... | [["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+... | 8 | 295 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace StartFinish {
class Program {
static void Main(string[] args) {
while (true) {
int[] hw = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
if (hw[0] == 0 && hw[1] == 0) {
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace StartFinish {
class Program {
static void Main(string[] args) {
while (true) {
int[] hw = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
if (hw[0] == 0 && hw[1] == 0) {
... | [["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 52, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, ... | 8 | 191 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class aizu_judge {
static void Main(string[] args) {
while (true) {
int[] num = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (num[0] + num[1] == 0)
break;
StringBuilder sb = new StringB... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class aizu_judge {
static void Main(string[] args) {
while (true) {
int[] num = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (num[0] + num[1] == 0)
break;
for (int i = 1; i <= num[0]; i... | [["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 22], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 39, 22], ["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 25... | 8 | 169 |
using System;
using System.Linq;
namespace Number {
class Program {
static void Main(string[] args) {
while (true) {
string s = Console.ReadLine().Trim('\n');
if (s == "0 0")
break;
int[] i = s.Split(' ').Select(e => int.Parse(e)).ToArray();
int a = i[0];
int b = i[1];
... | using System;
using System.Linq;
namespace Number {
class Program {
static void Main(string[] args) {
while (true) {
string s = Console.ReadLine().Trim('\n');
if (s == "0 0")
break;
int[] i = s.Split(' ').Select(e => int.Parse(e)).ToArray();
int a = i[0];
int b = i[1];
... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 212, 0, 227, 39, 224,... | 8 | 197 |
using System;
using System.Linq;
class Problem {
public static void Main() {
var str = "";
while ((str = Console.ReadLine()) != "0 0") {
var data = str.Split().Select(int.Parse).ToArray();
var od = "";
var ev = "";
for (var i = 0; i < data[1]; i++) {
od += i % 2 == 1 ? "." : "... | using System;
using System.Linq;
class Problem {
public static void Main() {
var str = "";
while ((str = Console.ReadLine()) != "0 0") {
var data = str.Split().Select(int.Parse).ToArray();
var od = "";
var ev = "";
for (var i = 0; i < data[1]; i++) {
od += i % 2 == 1 ? "#" : "... | [["-", 0, 1, 0, 11, 12, 41, 64, 5, 0, 222], ["+", 0, 1, 0, 11, 12, 41, 64, 5, 0, 222], ["-", 0, 1, 0, 11, 12, 41, 75, 5, 0, 222], ["+", 0, 1, 0, 11, 12, 41, 75, 5, 0, 222]] | 8 | 165 |
using System;
class Program {
public static void Main(string[] args) {
double r = double.Parse(Console.ReadLine());
Console.WriteLine("{0:f6} {1:f6}", 2 * Math.PI * r, Math.PI * r * r);
}
} | using System;
class Program {
public static void Main(string[] args) {
double r = double.Parse(Console.ReadLine());
Console.WriteLine("{0:f6} {1:f6}", Math.PI * r * r, 2 * Math.PI * r);
}
} | [["-", 3, 4, 0, 28, 0, 16, 31, 16, 31, 203], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 31, 203], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22]] | 8 | 58 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Simple_Calculator {
class Program {
static void Main(string[] args) {
List<string> all = new List<string>();
while (true) {
string temp = Console.ReadLine();
if (temp.E... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Simple_Calculator {
class Program {
static void Main(string[] args) {
List<string> all = new List<string>();
while (true) {
string temp = Console.ReadLine();
string[] te... | [["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 57, 15, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 57, 15, 213, 3, 4, 0, 24], ["-", 15, 213, 3, 4, 0, 28, 0, 5, 0, 62]... | 8 | 286 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ITP1 {
class ITP1_4_C {
static void Main(string[] args) {
int a, b;
char op;
List<char> dataSet;
while (true) {
dataSet = Console.ReadLine().Split().Select(char.Parse).... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ITP1 {
class ITP1_4_C {
static void Main(string[] args) {
int a, b;
char op;
List<string> dataSet;
while (true) {
dataSet = Console.ReadLine().Split().ToList();
... | [["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 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], ["-", 205, 213, 3... | 8 | 217 |
using System;
namespace csharptest {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
double[] ans = new double[100000];
int n;
for (n = 0; str[1] != "?"; n++) {
if (str[1] == "+") {
ans[n] = int.Parse(str[0]) + int.Parse(str[2]);
} el... | using System;
namespace csharptest {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
double[] ans = new double[100000];
int n;
for (n = 0; str[1] != "?"; n++) {
if (str[1] == "+") {
ans[n] = int.Parse(str[0]) + int.Parse(str[2]);
} el... | [["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 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,... | 8 | 260 |
using System;
using System.Collections.Generic;
namespace ITP1_4_C {
class Program {
static void Main(string[] args) {
var list = new List<string[]>();
string input;
while ((input = Console.ReadLine()) != "0 ? 0")
list.Add(input.Split(' '));
foreach (var l in list) {
switch (l[1]) {
... | using System;
using System.Collections.Generic;
namespace ITP1_4_C {
class Program {
static void Main(string[] args) {
var list = new List<string[]>();
string[] input;
while (true) {
input = Console.ReadLine().Split(' ');
if (input[1] == "?")
break;
list.Add(input);
}
fo... | [["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0,... | 8 | 221 |
using System;
namespace Project {
class MainClass {
public static void Main(string[] args) {
string s = Console.ReadLine();
string[] sar = s.Split(' ');
int a = int.Parse(sar[0]);
int b = int.Parse(sar[2]);
switch (sar[1]) {
case "+":
Console.WriteLine(a + b);
break;
case "-":... | using System;
namespace Project {
class MainClass {
public static void Main(string[] args) {
while (true) {
string s = Console.ReadLine();
string[] sar = s.Split(' ');
int a = int.Parse(sar[0]);
int b = int.Parse(sar[2]);
switch (sar[1]) {
case "+":
Console.WriteLine(a... | [["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["-", 0, 99, 8, 254, 0, 239, 0, 93, 0, 94], ["+", 0, 99, 8, 254, 0, 239, 0, 126, 0, 127], ["... | 8 | 149 |
using System;
public class Class1 {
public static void Main() {
string dataSet = Console.ReadLine();
string[] data = dataSet.Split();
int a = int.Parse(data[0]);
string op = data[1];
int b = int.Parse(data[2]);
switch (op) {
case "+":
Console.WriteLine(a + b);
break;
case... | using System;
public class Class1 {
public static void Main() {
string op = "?";
do {
string dataSet = Console.ReadLine();
string[] data = dataSet.Split();
int a = int.Parse(data[0]);
op = data[1];
int b = int.Parse(data[2]);
switch (op) {
case "+":
Console... | [["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 62], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 82, 0, 170], ["+", 0, 195, 8, 196, 0, 82, 8, 196, 0, 45],... | 8 | 147 |
using System;
using System.Collections.Generic;
public class SimpleCalculator {
//???????????????????????????????¨??????????
static void Main(string[] args) {
/*---??£?¨???¨---*/
List<string> dataSetList = new List<string>();
string[] dataSplit; //????????????????????????????????????
int i = 0;
... | using System;
using System.Collections.Generic;
public class SimpleCalculator {
//???????????????????????????????¨??????????
static void Main(string[] args) {
/*---??£?¨???¨---*/
List<string> dataSetList = new List<string>();
string[] dataSplit; //????????????????????????????????????
int i = 0;
... | [["-", 0, 28, 0, 213, 63, 214, 205, 23, 0, 24], ["-", 63, 214, 205, 23, 0, 16, 31, 74, 0, 24], ["-", 63, 214, 205, 23, 0, 16, 31, 74, 39, 199], ["-", 63, 214, 205, 23, 0, 16, 31, 74, 0, 25], ["-", 0, 28, 0, 213, 63, 214, 205, 23, 0, 25], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 1... | 8 | 254 |
using System;
namespace AizuOnlineJudge {
class Program {
static void Main(string[] args) {
string[] array;
do {
array = Console.ReadLine().Split(' ');
Console.WriteLine(Calc(array));
} while (array[1] != "?");
}
static int Calc(string[] array) {
int a = int.Parse(array[0]);
int ... | using System;
namespace AizuOnlineJudge {
class Program {
static void Main(string[] args) {
for (;;) {
var array = Console.ReadLine().Split(' ');
if (array[1] == "?")
break;
Console.WriteLine(Calc(array));
}
}
static int Calc(string[] array) {
int a = int.Parse(array[0]);
... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 8, 201, 0, 195, 8, 196, 0, 82,... | 8 | 178 |
using System;
namespace AOJ.intro {
namespace ITP_1_4_C {
static public class Calclator {
static public void Main() {
string[] inputData = Console.ReadLine().Split();
int a, b;
string op;
a = int.Parse(inputData[0]);
b = int.Parse(inputData[2]);
op = inputData[1];
int... | using System;
namespace AOJ.intro {
namespace ITP_1_4_C {
static public class Calclator {
static public void Main() {
while (true) {
string[] inputData = Console.ReadLine().Split();
int a, b;
string op;
a = int.Parse(inputData[0]);
b = int.Parse(inputData[2]);
... | [["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["+", 0, 57, 75, 57, 75, 57, 75, 57, 0, 95], ["+", 75, 57, 75, 57, 75, 57, 75, 57, 0, 121], ... | 8 | 186 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ITP1 {
class ITP1_4_D {
static void Main(string[] args) {
int n;
List<int> numberList;
int max = 0, min = 0, sum = 0;
n = int.Parse(Console.ReadLine());
numberList = Cons... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ITP1 {
class ITP1_4_D {
static void Main(string[] args) {
int n;
List<long> numberList;
long max = 0, min = 0, sum = 0;
// string path =
// @"C:\_workspa... | [["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 2... | 8 | 150 |
using System;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
return;
}
string[] data = Console.ReadLine().Split(' ');
int min, max, sum;
min = max = sum = int.Parse(data[0]);
for (int i = 1; i < n; i++) {
int num = int.Par... | using System;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
if (n == 0) {
return;
}
string[] data = Console.ReadLine().Split(' ');
int min, max;
long sum;
min = max = int.Parse(data[0]);
sum = int.Parse(data[0]);
for (int i = 1; i < ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 11, 12, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 11, 12, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 11, 12, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 11, 12, 213, 3,... | 8 | 155 |
using System;
namespace MinMaxandSum {
class MainClass {
public static void Main(string[] args) {
int intMin = 0;
int intMax = 0;
double sum = 0;
string x = Console.ReadLine();
int cnt = int.Parse(x);
for (int i = 0; i < cnt; i++) {
string input = Console.ReadLine();
char[] Char... | using System;
namespace MinMaxandSum {
class MainClass {
public static void Main(string[] args) {
int intMin = 0;
int intMax = 0;
double sum = 0;
string n = Console.ReadLine();
int cnt = int.Parse(n);
string input = Console.ReadLine();
char[] CharSeparators = new char[] { ' ' };
str... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-... | 8 | 211 |
using System;
namespace MinMaxandSum {
class MainClass {
public static void Main(string[] args) {
//????°????
int intMin = 0;
//?????§???
int intMax = 0;
//????¨?
int sum = 0;
// 1???????????\??????
string n = Console.ReadLine();
int cnt = int.Parse(n);
// 2???????????\?????... | using System;
namespace MinMaxandSum {
class MainClass {
public static void Main(string[] args) {
//????°????
int intMin = 0;
//?????§???
int intMax = 0;
//????¨?
double sum = 0;
// 1???????????\??????
string n = Console.ReadLine();
int cnt = int.Parse(n);
// 2???????????\??... | [["-", 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 | 183 |
using System;
using System.Linq;
class Program {
private static int Main() {
// 1行目は読み捨て
var input = Console.ReadLine();
// 2行目を読む
input = Console.ReadLine();
var values = input.Split(' ');
var intValues = values.Select(_ => int.Parse(_));
int min = intValues.Min();
int max = intValu... | using System;
using System.Linq;
class Program {
private static int Main() {
// 1行目は読み捨て
var input = Console.ReadLine();
// 2行目を読む
input = Console.ReadLine();
var values = input.Split(' ');
var longValues = values.Select(_ => long.Parse(_));
long min = longValues.Min();
long max = lo... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213,... | 8 | 123 |
using System;
public class Test {
static public void Main() {
var n = int.Parse(Console.ReadLine());
string[] data = Console.ReadLine().Split(' ');
var max = int.MinValue;
var min = int.MaxValue;
var sum = 0;
for (var i = 0; i < n; i++) {
var v = int.Parse(data[i]);
if (max < v) ... | using System;
public class Test {
static public void Main() {
var n = int.Parse(Console.ReadLine());
string[] data = Console.ReadLine().Split(' ');
var max = Int64.MinValue;
var min = Int64.MaxValue;
var sum = Int64.Parse("0");
for (var i = 0; i < n; i++) {
var v = Int64.Parse(data[i])... | [["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5,... | 8 | 139 |
using System;
namespace ConsoleApplication18 {
class Program {
static void Main(string[] args) {
string N = Console.ReadLine();
string[] S = Console.ReadLine().Split(' ');
int n = int.Parse(N);
int max = int.Parse(S[0]);
int min = int.Parse(S[0]);
int T = 0;
for (int i = 0; i < n; i++) ... | using System;
namespace ConsoleApplication18 {
class Program {
static void Main(string[] args) {
string N = Console.ReadLine();
string[] S = Console.ReadLine().Split(' ');
long n = long.Parse(N);
long max = long.Parse(S[0]);
long min = long.Parse(S[0]);
long T = 0;
for (int i = 0; i < n... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 184 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ITP1_4 {
class Program {
static void Main(string[] args) {
long sum = 0; // ????¨????
string[] str_List = Console.ReadLine().Split(' ');
long min = int.Parse(str_List[0]); // ????°????
long max = int.Pa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ITP1_4 {
class Program {
static void Main(string[] args) {
long sum = 0; // ????¨????
Console.ReadLine();
string[] str_List = Console.ReadLine().Split(' ');
long min = int.Parse(str_List[0]); // ????°???... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 157 |
using LIB;
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int c = io.r<int>();
int[] n = io.r<int>(' ');
Array.Sort(n);
io.w(n[0].ToString() + " " + n[c - 1].ToString() + " " + n.Sum());
io.wflush();
}
}
n... | using LIB;
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
io.r<int>();
long[] n = io.r<long>(' ');
io.w(n.Min() + " " + n.Max() + " " + n.Sum());
io.wflush();
}
}
namespace LIB {
public class io {
private co... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 213, 63, 214, 141, 236, 237, 238, 0, 199], ["+", 0, 213, 63, 214, 141,... | 8 | 574 |
using System;
using System.Collections;
class main {
public static void Main() {
int sum = 0;
int n = int.Parse(Console.ReadLine());
string[] str = Console.ReadLine().Split(' ');
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = int.Parse(str[i]);
}
Array.Sort(a);
foreac... | using System;
using System.Collections;
class main {
public static void Main() {
long sum = 0;
long n = long.Parse(Console.ReadLine());
string[] str = Console.ReadLine().Split(' ');
long[] a = new long[n];
for (long i = 0; i < n; i++) {
a[i] = long.Parse(str[i]);
}
Array.Sort(a);
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 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, ... | 8 | 142 |
using System;
namespace ITP1 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int set;
string[] input = Console.ReadLine().Split(' ');
int min = 1000000;
int max = -1000000;
int sum = 0;
for (int i = 0; i < n; i++) {
set = int.Parse(input[i... | using System;
namespace ITP1 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int set;
string[] input = Console.ReadLine().Split(' ');
int min = 1000000;
int max = -1000000;
long sum = 0;
for (int i = 0; i < n; i++) {
set = int.Parse(input[... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 24], ["+", 12, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 12, 213, 3, 4, 0, 28, 0, 5, 0, 222], ... | 8 | 148 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ITP1_4D {
class Program {
private static Boolean EOF = false;
public static string word(char delimita) {
string inString = "";
int inInt;
char inChar;
// Console.WriteLine("DEBUG: -" + delimita + "-");... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ITP1_4D {
class Program {
private static Boolean EOF = false;
public static string word(char delimita) {
string inString = "";
int inInt;
char inChar;
// Console.WriteLine("DEBUG: -" + delimita + "-");... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 250], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32]... | 8 | 268 |
using System;
class MainClass {
public static int Main() {
int n = Convert.ToInt32(Console.ReadLine());
int[] a = new int[n];
string[] str = Console.ReadLine().Split(' ');
int i = 0;
foreach (string s in str) {
a[i] = Convert.ToInt32(s);
i++;
}
int min = a[0];
int max =... | using System;
class MainClass {
public static int Main() {
int n = Convert.ToInt32(Console.ReadLine());
string[] str = Console.ReadLine().Split(' ');
int[] a = new int[n];
int i = 0;
foreach (string s in str) {
a[i] = Convert.ToInt32(s);
i++;
}
int min = a[0];
int max =... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 3... | 8 | 162 |
using System;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string[] s = Console.ReadLine().Split();
int min = int.MaxValue;
int max = int.MinValue;
int sum = 0;
for (int i = 0; i < n; ++i) {
int a = int.Parse(s[i]);
if (a < min) {
... | using System;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string[] s = Console.ReadLine().Split();
long min = long.MaxValue;
long max = long.MinValue;
long sum = 0;
for (int i = 0; i < n; ++i) {
long a = long.Parse(s[i]);
if (a < min... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63,... | 8 | 138 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace StartFinish {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
n++;
int[] array = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
Conso... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace StartFinish {
class Program {
static void Main(string[] args) {
long n = int.Parse(Console.ReadLine());
n++;
long[] array = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
Co... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 8, 201, 0, 235, 8, 201,... | 8 | 226 |
using System;
public class Program {
public static void Main(string[] args) {
var ss = new StreamScanner();
//---------------------------------
var n = ss.Next<int>();
int[] a = ss.Next<int>(n);
int sum = 0;
for (int i = 0; i < n; i++) {
sum += a[i];
}
int max = sum / n;
for... | using System;
public class Program {
public static void Main(string[] args) {
var ss = new StreamScanner();
//---------------------------------
var n = ss.Next<int>();
long[] a = ss.Next<long>(n);
long sum = 0;
for (int i = 0; i < n; i++) {
sum += a[i];
}
long max = long.MinValu... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 213, 63, 214, 141, 236, 237, 238, 0, 199], ["+", 0, 213, 63, 214, 141, 236, 237, 238, 0, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200,... | 8 | 497 |
using System;
namespace aoj4a {
class Program {
static void Main(string[] args) {
int n =
int.Parse(Console.ReadLine()); // 1???????????´??°?????????????????????
string[] str =
(Console.ReadLine()).Split(' '); // 2???????????´??°???????????????
int tmp = 0;
long sum = 0;
int max ... | using System;
namespace aoj4a {
class Program {
static void Main(string[] args) {
int n =
int.Parse(Console.ReadLine()); // 1???????????´??°?????????????????????
string[] str =
(Console.ReadLine()).Split(' '); // 2???????????´??°???????????????
int tmp = 0;
long sum = 0;
int max ... | [["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0... | 8 | 161 |
using System;
using System.Linq;
namespace D14 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string[] str = new string[n];
str = Console.ReadLine().Split(' ');
int[] intAry = Array.ConvertAll<string, int>(
str, delegate(string value) { return int.... | using System;
using System.Linq;
namespace D14 {
class Program {
static void Main(string[] args) {
long n = long.Parse(Console.ReadLine());
string[] str = new string[n];
str = Console.ReadLine().Split(' ');
long[] longAry = Array.ConvertAll<string, long>(
str, delegate(string value) { return... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 8, 196, 0, 197, 0, ... | 8 | 165 |
using System;
class Program {
public static int getMin(int[] values, int num) {
int min = values[0];
for (int i = 1; i < num; i++) {
if (min > values[i])
min = values[i];
}
return min;
}
public static int getMax(int[] values, int num) {
int max = values[0];
for (int i = 1; ... | using System;
class Program {
public static long getMin(long[] values, long num) {
long min = values[0];
for (int i = 1; i < num; i++) {
if (min > values[i])
min = values[i];
}
return min;
}
public static long getMax(long[] values, long num) {
long max = values[0];
for (int... | [["-", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 0, 195, 54, 55, 0, 220, 39, 224, 39, 199], ["+", 0, 195, 54, 55, 0, 220, 39, 224, 39, 199], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["-", 0, 195, 8, 196, 0, 197,... | 8 | 298 |
using System;
class Program {
static void Main() {
int i, total = 0, max, min;
string kazu = Console.ReadLine();
string inp = Console.ReadLine();
string[] data = inp.Split(' ');
max = int.Parse(data[0]);
min = int.Parse(data[0]);
for (i = 0; i < int.Parse(kazu); i++) {
total = total... | using System;
class Program {
static void Main() {
long i, total = 0, max, min;
string kazu = Console.ReadLine();
string inp = Console.ReadLine();
string[] data = inp.Split(' ');
max = long.Parse(data[0]);
min = long.Parse(data[0]);
for (i = 0; i < long.Parse(kazu); i++) {
total = t... | [["-", 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, 7, 15, 16, 12, 213, 63, 214, 205, 199], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 205, 199], ["-", 0, 11, 12, 16, 12, 213,... | 8 | 186 |
using System;
namespace ITP1_5_A {
class Program {
static void Main() {
while (true) {
string[] x = Console.ReadLine().Split(' ');
int h = int.Parse(x[0]);
int w = int.Parse(x[1]);
if (h == 0 && w == 0)
break;
for (int j = 0; j < h; j++) {
for (int i = 0; i < w; i++... | using System;
class Program {
static void Main() {
while (true) {
string[] inputs = Console.ReadLine().Split(' ');
int h = int.Parse(inputs[0]);
int w = int.Parse(inputs[1]);
if (h == 0 && w == 0)
break;
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
... | [["-", 36, 36, 36, 36, 0, 208, 0, 209, 0, 256], ["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 36, 36, 0, 208, 0, 209, 8, 201, 0, 45], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 20... | 8 | 133 |
using System;
namespace PrintRectangle {
class MainClass {
public static void Main(string[] args) {
while (true) {
string[] tmp = Console.ReadLine().Split(" ".ToCharArray());
int height, Wide;
height = int.Parse(tmp[0]);
Wide = int.Parse(tmp[1]);
if (height == 0 && Wide == 0)
... | using System;
namespace PrintRectangle {
class MainClass {
public static void Main(string[] args) {
while (true) {
string[] tmp = Console.ReadLine().Split(" ".ToCharArray());
int height, Wide;
height = int.Parse(tmp[0]);
Wide = int.Parse(tmp[1]);
if (height == 0 && Wide == 0)
... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 44], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196,... | 8 | 142 |
using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int H, W;
while (true) {
string[] str = Console.ReadLine().Split(' ');
H = int.Parse(str[0]);
W = int.Parse(str[1]);
if ((H == 0) && (W == 0))
break;
for (int i = 0; i < H; ... | using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int H, W;
while (true) {
string[] str = Console.ReadLine().Split(' ');
H = int.Parse(str[0]);
W = int.Parse(str[1]);
if ((H == 0) && (W == 0))
break;
for (int i = 0; i < H; ... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 44], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196,... | 8 | 139 |
using System;
namespace ConsoleApplicationSample {
class Program {
static void Main(string[] args) {
int height, weight;
string[] str = new string[2];
do {
str = Console.ReadLine().Split(' ');
height = int.Parse(str[0]);
weight = int.Parse(str[1]);
if (0 == height && 0 == weight)... | using System;
namespace ConsoleApplicationSample {
class Program {
static void Main(string[] args) {
int height, weight;
string[] str = new string[2];
while (true) {
str = Console.ReadLine().Split(' ');
height = int.Parse(str[0]);
weight = int.Parse(str[1]);
if (0 == height && 0... | [["-", 8, 201, 0, 195, 8, 196, 0, 82, 0, 170], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["-", 0, 82, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 82, 8, 196, 0, 57, 64, 196, 0, 46], [... | 8 | 162 |
using System;
namespace PrintaRectangle {
class MainClass {
public static void Main(string[] args) {
while (true) {
string[] hw = Console.ReadLine().Split(' ');
int H, W;
//???
H = int.Parse(hw[0]);
//?¨?
W = int.Parse(hw[1]);
// H, W ?????¨?????? 0 ?????¨????????\????... | using System;
namespace PrintaRectangle {
class MainClass {
public static void Main(string[] args) {
while (true) {
string[] hw = Console.ReadLine().Split(' ');
int H, W;
//???
H = int.Parse(hw[0]);
//?¨?
W = int.Parse(hw[1]);
// H, W ?????¨?????? 0 ?????¨????????\????... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 44], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196,... | 8 | 134 |
using System;
using System.Linq;
class ITP1 {
static void Main() {
for (;;) {
var a = Console.ReadLine();
int b = int.Parse(a.Split(' ')[0]);
int c = int.Parse(a.Split(' ')[1]);
if (b == 0 && c == 0) {
break;
}
for (int i = 0; i < b; i++) {
for (int j = 0; j < ... | using System;
using System.Linq;
class ITP1 {
static void Main() {
for (;;) {
var a = Console.ReadLine();
int b = int.Parse(a.Split(' ')[0]);
int c = int.Parse(a.Split(' ')[1]);
if (b == 0 && c == 0) {
break;
}
for (int i = 0; i < b; i++) {
for (int j = 0; j < ... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 104], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 44], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8,... | 8 | 139 |
using System;
namespace ITP1_3_D {
class Program {
static void Main(string[] args) {
string[] strs = Console.ReadLine().Split(' ');
int a = int.Parse(strs[0]);
int b = int.Parse(strs[1]);
int c = int.Parse(strs[2]);
int sqrt = (int)Math.Sqrt(b);
if (b > sqrt)
b = sqrt;
int n = 0;
... | using System;
namespace ITP1_3_D {
class Program {
static void Main(string[] args) {
string[] strs = Console.ReadLine().Split(' ');
int a = int.Parse(strs[0]);
int b = int.Parse(strs[1]);
int c = int.Parse(strs[2]);
int n = 0;
for (int i = a; i <= b; i++) {
if (c % i == 0)
n++;
... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["-", 0, 212, 0, 74, 51, 213, 63, 214, 205, 22], ["-", 0, 212, 0, 74, 51, 213, 63, 214, ... | 8 | 141 |
using System;
using System.Linq;
namespace _3_D {
class Program {
static void Main(string[] args) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
for (int a = x[0]; a <= x[1]; a++) {
int q = x[2];
int w = 0;
if (q % a == 0) {
w++;
}
}
}
}
} | using System;
using System.Linq;
namespace _3_D {
class Program {
static void Main(string[] args) {
int w = 0;
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
for (int a = x[0]; a <= x[1]; a++) {
int q = x[2];
if (q % a == 0) {
w++;
} else {
}
}
... | [["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39,... | 8 | 101 |
public class How_Many_Divisors {
static void Main(string[] args) {
var line = System.Console.ReadLine().Trim().Split(' ');
int a = int.Parse(line[0]);
int b = int.Parse(line[1]);
int c = int.Parse(line[2]);
int counter = 0;
for (int i = a; i <= b; i++) {
if (c % i == 0) {
cou... | public class How_Many_Divisors {
static void Main(string[] args) {
var line = System.Console.ReadLine().Trim().Split(' ');
int a = int.Parse(line[0]);
int b = int.Parse(line[1]);
int c = int.Parse(line[2]);
int counter = 0;
for (int i = a; i <= b; i++) {
if (c % i == 0) {
cou... | [["+", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22... | 8 | 112 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AOJ1_4_A {
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 d = a / b;... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AOJ1_4_A {
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 d = (int)(... | [["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["+", 0, 200, 0, 212, 0, 74, 51, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 74, 51, 23, 0, 25], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 19... | 8 | 130 |
using System;
class test {
static void Main() {
string[] str;
str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
Console.WriteLine("{0} {1} {2}", a / b, a % b, W(a, b));
}
static string W(int x, int y) {
string str = "";
int q = x / y;
str +... | using System;
class test {
static void Main() {
string[] str;
str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
Console.WriteLine("{0} {1} {2}", a / b, a % b, W(a, b));
}
static string W(int x, int y) {
string str = "";
int q = x / y;
str +... | [["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 48], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 8, 1... | 8 | 177 |
using System;
public class Test {
public static void Main() {
// your code goes here
string line = System.Console.ReadLine();
string[] ab = line.Split(' ');
decimal r = Convert.ToDecimal(ab[0]);
decimal pi = 3.14159265m;
decimal s = pi * r * r;
decimal l = 2 * pi * r;
Console.WriteLin... | using System;
public class Hello {
public static void Main() {
// Here your code !
// your code goes here
string line = System.Console.ReadLine();
string[] ab = line.Split(' ');
decimal r = Convert.ToDecimal(ab[0]);
decimal pi = Convert.ToDecimal(Math.PI);
decimal s = pi * r * r;
deci... | [["-", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 250], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, ... | 8 | 91 |
using System;
class Program {
static void Main(string[] args) {
Input CInput = new Input();
double input = 0;
// int[] input = new int[(int)Input.Define.MAX_ArraySize];
// int[,] input = new int[(int) Input.Define.MAX_ArraySize, (int)
// Input.Define.ArraySize2d]; int num = 0;
input = CInput.... | using System;
class Program {
static void Main(string[] args) {
Input CInput = new Input();
double input = 0;
// int[] input = new int[(int)Input.Define.MAX_ArraySize];
// int[,] input = new int[(int) Input.Define.MAX_ArraySize, (int)
// Input.Define.ArraySize2d]; int num = 0;
input = CInput.... | [["-", 63, 214, 205, 23, 0, 16, 31, 16, 31, 250], ["-", 63, 214, 205, 23, 0, 16, 31, 16, 17, 48], ["+", 205, 23, 0, 16, 12, 213, 63, 214, 205, 22], ["+", 205, 23, 0, 16, 12, 213, 63, 214, 0, 131], ["+", 205, 23, 0, 16, 12, 213, 63, 214, 141, 22], ["-", 63, 214, 205, 23, 0, 16, 12, 74, 39, 199], ["-", 63, 214, 205, 23, ... | 8 | 522 |
using System;
using System.Collections.Generic;
namespace ITP1_4_B {
class Problem {
public static List<string[]> getinputdata() {
List<string[]> list_temp = new List<string[]>();
string strdata = Console.ReadLine();
while (strdata != null) {
string[] s_temp = strdata.Split(' ');
list_tem... | using System;
using System.Collections.Generic;
namespace ITP1_4_B {
class Problem {
public static List<string[]> getinputdata() {
List<string[]> list_temp = new List<string[]>();
string strdata = Console.ReadLine();
while (strdata != null) {
string[] s_temp = strdata.Split(' ');
list_tem... | [["+", 0, 28, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 51, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 222], ["-", 8, 19... | 8 | 190 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ITP1 {
class ITP1_6_C {
static void Main(string[] args) {
int n;
int b, f, r, v;
List<List<int>> dataSet;
// List<(int b, int f, int r, int v)> dataSet3 = new List<(int b, in... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ITP1 {
class ITP1_6_C {
static void Main(string[] args) {
int n;
int b, f, r, v;
List<List<int>> dataSet;
// List<(int b, int f, int r, int v)> dataSet3 = new List<(int b, in... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196... | 8 | 317 |
using System;
using System.Linq;
namespace Test {
class MainClass {
public static void Main(string[] args) {
const int BuildingMaxValue = 4;
const int FloorMaxValue = 3;
const int RoomMaxValue = 10;
var college = new int[BuildingMaxValue, FloorMaxValue, RoomMaxValue];
string partition = new strin... | using System;
using System.Linq;
namespace Test {
class MainClass {
public static void Main(string[] args) {
const int BuildingMaxValue = 4;
const int FloorMaxValue = 3;
const int RoomMaxValue = 10;
var college = new int[BuildingMaxValue, FloorMaxValue, RoomMaxValue];
string partition = new strin... | [["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 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,... | 8 | 248 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication6 {
// ONLINE JUDGE (ITP1_6_C)
class Program {
static void Output(int[,] house) //????£??????\????????°?????????
{
for (int i = 0; i < 3; ++i) {
for (int j = 0; j < 10; ++j) {
if (h... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication6 {
// ONLINE JUDGE (ITP1_6_C)
class Program {
static void Output(int[,] house) //????£??????\????????°?????????
{
for (int i = 0; i < 3; ++i) {
for (int j = 0; j < 10; ++j) {
if (h... | [["-", 0, 239, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 239, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 239, 0, 1, 0, 11, 12, 23, 0, 24], ["+", 0, 239, 0, 1, 0, 11, 12, 23, 0, 25]] | 8 | 421 |
using System;
class Program {
static void Main() {
int[,,] A = new int[4, 3, 10];
int D = int.Parse(Console.ReadLine());
for (int i = 0; i < D; i++) {
string[] sD = Console.ReadLine().Split(' ');
A[int.Parse(sD[0]) - 1, int.Parse(sD[1]) - 1, int.Parse(sD[2]) - 1] +=
int.Parse(sD[3])... | using System;
class Program {
static void Main() {
int[,,] A = new int[4, 3, 10];
int D = int.Parse(Console.ReadLine());
for (int i = 0; i < D; i++) {
string[] sD = Console.ReadLine().Split(' ');
A[int.Parse(sD[0]) - 1, int.Parse(sD[1]) - 1, int.Parse(sD[2]) - 1] +=
int.Parse(sD[3])... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 8, 196... | 8 | 219 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace AizuOnLine {
class Program {
static void Main(string[] args) {
int n = Convert.ToInt32(Console.ReadLine());
RoomMgr mgr = new RoomMgr();
for (int i = 0; i < n; i++) {
string[] data = Console.ReadLine().Split(' ');
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace AizuOnLine {
class Program {
static void Main(string[] args) {
int n = Convert.ToInt32(Console.ReadLine());
RoomMgr mgr = new RoomMgr();
for (int i = 0; i < n; i++) {
string[] data = Console.ReadLine().Split(' ');
... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 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, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8... | 8 | 316 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ITP1_6_C {
class Problem {
public static List<string[]> getinputdata() {
List<string[]> list_temp = new List<string[]>();
string strdata = Console.ReadLine();
while (strdata != null) {
string[] s_temp = strdata.Split(' ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ITP1_6_C {
class Problem {
public static List<string[]> getinputdata() {
List<string[]> list_temp = new List<string[]>();
string strdata = Console.ReadLine();
while (strdata != null) {
string[] s_temp = strdata.Split(' ... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["+", 0, 198, 0, 200, 0, 212, 0, 230, 39, 199], ["+", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["+", 0, 230, 3, 4, 0, 28, 0, 252, 0, ... | 8 | 637 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3 {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
int[,,] R;
R = new int[4, 3, 10];
foreach (var i in Enumerable.Range(0, 4)) {
foreach (v... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3 {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
int[,,] R;
R = new int[4, 3, 10];
foreach (var i in Enumerable.Range(0, 4)) {
foreach (v... | [["+", 0, 1, 0, 11, 12, 16, 31, 204, 205, 22], ["+", 0, 11, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 11, 12, 16, 31, 204, 206, 207, 0, 21], ["+", 0, 11, 12, 16, 31, 204, 20... | 8 | 321 |
using System;
namespace ConsoleApplication3 {
class Program {
static void Main(string[] args) {
string lines = new string('#', 20);
int num = int.Parse(Console.ReadLine());
int[,,] array = new int[4, 3, 10];
for (int i = 0; i < num; i++) {
string[] info = Console.ReadLine().Split(' ');
in... | using System;
namespace ConsoleApplication3 {
class Program {
static void Main(string[] args) {
string lines = new string('#', 20);
int num = int.Parse(Console.ReadLine());
int[,,] array = new int[4, 3, 10];
for (int i = 0; i < num; i++) {
string[] info = Console.ReadLine().Split(' ');
in... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 7, ... | 8 | 253 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int jouhousu = int.Parse(Console.ReadLine());
int[,,] a = new int[4, 3, 10];
for (int i = 0; i < jouhousu; i++) {
int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray();
a[(s[0] - 1), s[1], s[2]] +=... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int jouhousu = int.Parse(Console.ReadLine());
int[,,] a = new int[4, 3, 10];
for (int i = 0; i < jouhousu; i++) {
int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray();
a[(s[0] - 1), s[1] - 1, s[2]... | [["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 3, 4, 0, 28, 0, 16, 12, 5, 0, 62], ["-", 3, 4, ... | 8 | 234 |
using System;
namespace ITP1_6_C {
class Program {
static void Main(string[] args) {
var memo = new int[5, 4, 11];
var n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
var input = Console.ReadLine().Split(' ');
var b = int.Parse(input[0]);
var f = int.Parse(input[1]);
... | using System;
namespace ITP1_6_C {
class Program {
static void Main(string[] args) {
var memo = new int[5, 4, 11];
var n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
var input = Console.ReadLine().Split(' ');
var b = int.Parse(input[0]);
var f = int.Parse(input[1]);
... | [["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["+", 0, 198, 0, 200, 0, 212, 0, 230, 39, 199], ["+", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["+", 0, 230, 3, 4, 0, 28, 0, 252, 0, ... | 8 | 237 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
namespace LogicSummoner {
class Program {
class Floor {
private int[] room = new int[10];
public int this[int i] {
get { return room[i]; }
set { room[i] = value; }
... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
namespace LogicSummoner {
class Program {
class Floor {
private int[] room = new int[10];
public int this[int i] {
get { return room[i]; }
set { room[i] = value; }
... | [["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 22], ["-", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 39, 22], ["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["-", 0, 230, 3, 4, 0, 28, 0, 5, 0, 62],... | 8 | 635 |
using System;
using System.IO;
using System.Linq;
namespace AizuOnline {
internal class Program {
private static void Main(string[] args) {
var x = int.Parse(Console.ReadLine());
var buildingNo = new int[x];
var floorNo = new int[x];
var roomNo = new int[x];
var roomID = new int[x];
for (int... | using System;
using System.IO;
using System.Linq;
namespace AizuOnline {
internal class Program {
private static void Main(string[] args) {
var x = int.Parse(Console.ReadLine());
var buildingNo = new int[x];
var floorNo = new int[x];
var roomNo = new int[x];
var roomID = new int[x];
for (int... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 2... | 8 | 341 |
using System;
class Program {
static void Main(string[] args) {
Input CInput = new Input();
// EasyTask CEasyTask = new EasyTask();
// int input = 0;
// int[] input = new int[(int)Input.Define.MAX_ArraySize];
// int[,] input = new int[(int)Input.Define.MAX_ArraySize,
// (int)Input.Define.Arra... | using System;
class Program {
static void Main(string[] args) {
Input CInput = new Input();
// EasyTask CEasyTask = new EasyTask();
// int input = 0;
// int[] input = new int[(int)Input.Define.MAX_ArraySize];
// int[,] input = new int[(int)Input.Define.MAX_ArraySize,
// (int)Input.Define.Arra... | [["-", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["-", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["-", 0, 1, 0, 213, 63, 214, 205, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62... | 8 | 961 |
using System;
namespace AOJ {
class Program {
static void Main(string[] args) {
var read = Console.ReadLine();
var temp_string = read.Split(' ');
var X_vec = new int[int.Parse(temp_string[0]), int.Parse(temp_string[1])];
var Y_vec = new int[int.Parse(temp_string[1])];
int x = int.Parse(temp_st... | using System;
namespace AOJ {
class Program {
static void Main(string[] args) {
var read = Console.ReadLine();
var temp_string = read.Split(' ');
var X_vec = new int[int.Parse(temp_string[0]), int.Parse(temp_string[1])];
var Y_vec = new int[int.Parse(temp_string[1])];
int x = int.Parse(temp_st... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 11, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 12, 204, 205, 22], ["+", 0, 11, 12, 16, 12, 204, 206, 207, 0, ... | 8 | 279 |
using System;
namespace ITP1_6_D {
class Program {
static void Main(string[] args) {
string[] strs = Console.ReadLine().Split(' ');
int r = int.Parse(strs[0]);
int c = int.Parse(strs[1]);
int[,] matrix = new int[r, c];
int[] vector = new int[c];
for (int i = 0; i < r; i++) {
string[] ro... | using System;
namespace ITP1_6_D {
class Program {
static void Main(string[] args) {
string[] strs = Console.ReadLine().Split(' ');
int r = int.Parse(strs[0]);
int c = int.Parse(strs[1]);
int[,] matrix = new int[r, c];
int[] vector = new int[c];
for (int i = 0; i < r; i++) {
string[] ro... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 0, 213, 63, 214, 205... | 8 | 261 |
using System;
class Program {
static void Main(string[] args) {
int n, m;
int i, j;
int subTotal = 0;
int total = 0;
//整数受け取りok
string[] str = Console.ReadLine().Split(' ');
n = int.Parse(str[0]);
m = int.Parse(str[1]);
// 2次元配列数値受け取り
int[,] array1 = new int[n, m];
for ... | using System;
class Program {
static void Main(string[] args) {
int n, m, i, j;
int subTotal = 0;
int total = 0;
//整数受け取り
string[] str = Console.ReadLine().Split(' ');
n = int.Parse(str[0]);
m = int.Parse(str[1]);
// 2次元配列数値受け取り
int[,] array1 = new int[n, m];
for (i = 0; i ... | [["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 0, 1, 0, 11, 12, 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 | 292 |
using System;
namespace Aizu {
class OnlineJudge {
public static void Main() {
for (string input; (input = Console.ReadLine()) != "-1 -1 -1";) {
var score = input.Split();
int m = int.Parse(score[0]), f = int.Parse(score[1]),
r = int.Parse(score[2]);
Console.WriteLine((m | f) == -1 ?... | using System;
namespace Aizu {
class OnlineJudge {
public static void Main() {
for (string input; (input = Console.ReadLine()) != "-1 -1 -1";) {
var score = input.Split();
int m = int.Parse(score[0]), f = int.Parse(score[1]),
r = int.Parse(score[2]);
Console.WriteLine(((m | f) == -1 |... | [["+", 15, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 41, 15, 23, 0, 16, 17, 106], ["+", 15, 23, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 12, 22], ["+", 15, 23, 0, 16, 12, 16, 31, 23, 0, 25], ["+"... | 8 | 155 |
using System;
class Program {
static void Main() {
string D1;
while ((D1 = Console.ReadLine()) != "-1 -1 -1") {
string[] D2 = D1.Split(' ');
int m = int.Parse(D2[0]), f = int.Parse(D2[1]), r = int.Parse(D2[2]);
if (m == -1 || f == -1 || m + f < 30) {
Console.WriteLine("F");
}
... | using System;
class Program {
static void Main() {
string D1;
while ((D1 = Console.ReadLine()) != "-1 -1 -1") {
string[] D2 = D1.Split(' ');
int m = int.Parse(D2[0]), f = int.Parse(D2[1]), r = int.Parse(D2[2]);
if (m == -1 || f == -1 || m + f < 30)
Console.WriteLine("F");
else... | [["-", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 52, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 95], ["+", 0, 52, 8, 196, 0, 57, 75, 57, 0, 95], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 95], ["+", 0, 57, 75, 57, 75, 57, 75, 57, 0, 95], ["-", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["-",... | 8 | 229 |
using System;
using System.Collections;
using System.Collections.Generic;
namespace JKTX_AOJ2015 {
class Student {
public int M { get; set; }
public int F { get; set; }
public int R { get; set; }
}
class Program {
static void Main(string[] args) {
List<Student> studentList = new List<Student>();
whil... | using System;
using System.Collections;
using System.Collections.Generic;
namespace JKTX_AOJ2015 {
class Student {
public int M { get; set; }
public int F { get; set; }
public int R { get; set; }
}
class Program {
static void Main(string[] args) {
List<Student> studentList = new List<Student>();
whil... | [["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 25], ["-", 0, 210, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 64, 196, 0, 1, 0, 11, 31, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 11, 31, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 11, 31, 214, 141, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203],... | 8 | 442 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ITP1_7_A {
class Problem {
public static List<string[]> getinputdata() {
List<string[]> list_temp = new List<string[]>();
string strdata = Console.ReadLine();
while (strdata != null) {
string[] s_temp = strdata.Split(' ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ITP1_7_A {
class Problem {
public static List<string[]> getinputdata() {
List<string[]> list_temp = new List<string[]>();
string strdata = Console.ReadLine();
while (strdata != null) {
string[] s_temp = strdata.Split(' ... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 12, 241, 0, 33], ["+", 0, 57, 15, 16, 31, 16, 12, 241, 0, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, ... | 8 | 336 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Threading.Tasks;
namespace IPT1_7A {
class Program {
static void Main(string[] args) {
while (true) {
//?????????????????\??? m f r
string[] in_num = Console.ReadLine().Split(' ');
int m = int.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Threading.Tasks;
namespace IPT1_7A {
class Program {
static void Main(string[] args) {
while (true) {
//?????????????????\??? m f r
string[] in_num = Console.ReadLine().Split(' ');
int m = int.... | [["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 60], ["+", 15, 16, 31, 23, 0, 16, 12, 241, 0, 33], ["+", 15, 16, 31, 23, 0, 16, 12, 241, 0, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 0, 57, 15, 16, 12, 23, 0, 16, 31, 22], ... | 8 | 233 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ_console {
class _1_7_A {
static void Main() {
List<List<int>> datas = new List<List<int>>();
while (true) {
var data =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
if (data[0] == -1 && ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AOJ_console {
class _1_7_A {
static void Main() {
List<List<int>> datas = new List<List<int>>();
while (true) {
var data =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
if (data[0] == -1 && ... | [["+", 0, 218, 8, 41, 15, 16, 31, 16, 17, 60], ["+", 8, 41, 15, 16, 31, 16, 12, 241, 0, 33], ["+", 8, 41, 15, 16, 31, 16, 12, 241, 0, 203], ["+", 0, 28, 0, 218, 8, 41, 15, 16, 17, 106], ["+", 8, 41, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 2... | 8 | 233 |
using System;
namespace Project {
class MainClass {
public static void Main(string[] args) {
while (true) {
string s = Console.ReadLine();
string[] sar = s.Split(' ');
int m = int.Parse(sar[0]);
int f = int.Parse(sar[1]);
int r = int.Parse(sar[2]);
if (m == -1 && f == -1) {
... | using System;
namespace Project {
class MainClass {
public static void Main(string[] args) {
while (true) {
string s = Console.ReadLine();
string[] sar = s.Split(' ');
int m = int.Parse(sar[0]);
int f = int.Parse(sar[1]);
int r = int.Parse(sar[2]);
if ((m == -1 && f == -1) && ... | [["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 23, 0, 16, 12, 16, 17, 60], ["+", 31, 23, 0, 16, 12, 16, 12, 241, 0, 33], ["+", 31, 23, 0, 16, 12, 16, 12, 241, 0, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22],... | 8 | 224 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace _7_A {
class Program {
static void Main(string[] args) {
List<string> output = new List<string>();
while (true) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
int tyukan = x[0];
int kimatu = x[... | using System;
using System.Collections.Generic;
using System.Linq;
namespace _7_A {
class Program {
static void Main(string[] args) {
List<string> output = new List<string>();
while (true) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
int tyukan = x[0];
int kimatu = x[... | [["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 7... | 8 | 267 |
using System;
public class Class1 {
public static void Main() {
string outPut = "F";
while (true) {
string scores = Console.ReadLine();
string[] score = scores.Split();
int m = int.Parse(score[0]);
int f = int.Parse(score[1]);
int r = int.Parse(score[2]);
int s = m + f;
... | using System;
public class Class1 {
public static void Main() {
string outPut = "F";
while (true) {
string scores = Console.ReadLine();
string[] score = scores.Split();
int m = int.Parse(score[0]);
int f = int.Parse(score[1]);
int r = int.Parse(score[2]);
int s = m + f;
... | [["-", 75, 57, 75, 57, 15, 16, 31, 16, 31, 203], ["-", 75, 57, 75, 57, 15, 16, 31, 16, 17, 19], ["+", 75, 57, 75, 57, 15, 16, 31, 16, 17, 20], ["+", 75, 57, 75, 57, 15, 16, 31, 16, 12, 203], ["+", 75, 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, 5, 0, 62... | 8 | 220 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.