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 | change_count int64 0 100 |
|---|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace ConsoleApplication2 {
class Program {
private static bool HasSustring(string s, string p) {
int endPos = s.Length - p.Length + 1;
for (int i = 0; i < endPos; i++) {
if (p == s.Substring(i, p.Length - 1))
... | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace ConsoleApplication2 {
class Program {
private static bool HasSustring(string s, string p) {
int endPos = s.Length - p.Length + 1;
for (int i = 0; i < endPos; i++) {
if (p == s.Substring(i, p.Length))
... | [["-", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 157 | 2 |
using System;
namespace ConsoleApplication9 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
string s2 = s + s;
string p = Console.ReadLine();
if (s2.Contains(p)) {
Console.WriteLine("yes");
} else
Console.WriteLine("no");
}
}
} | using System;
namespace ConsoleApplication9 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
string s2 = s + s;
string p = Console.ReadLine();
if (s2.Contains(p)) {
Console.WriteLine("Yes");
} else
Console.WriteLine("No");
}
}
} | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 77 | 4 |
using System;
namespace AOJ {
class Program {
static void Main(string[] args) {
string serch_word, sample_word;
// while(true)
{
//??????????????????
var read = Console.ReadLine();
sample_word = read;
read = Console.ReadLine();
serch_word = read;
serch_word += serch_w... | using System;
namespace AOJ {
class Program {
static void Main(string[] args) {
string serch_word, sample_word;
// while(true)
{
//??????????????????
var read = Console.ReadLine();
sample_word = read;
read = Console.ReadLine();
serch_word = read;
sample_word += sample... | [["-", 8, 196, 0, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 196, 0, 1, 0, 11, 12, 22]] | 8 | 94 | 4 |
using System;
using System.Collections.Generic;
namespace ConsoleApplication5 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
string p = Console.ReadLine();
s += s;
if (s.Contains(p)) {
Console.WriteLine("YES");
} else {
Console.WriteLine("NO");
... | using System;
using System.Collections.Generic;
namespace ConsoleApplication5 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
string p = Console.ReadLine();
s += s;
if (s.Contains(p)) {
Console.WriteLine("Yes");
} else {
Console.WriteLine("No");
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 83 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
string p = Console.ReadLine();
int ma = 0;
for (int i = 0; i < s.Length; i++)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
string p = Console.ReadLine();
int ma = 0;
for (int i = 0; i < s.Length; i++)... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 197 | 4 |
using System;
class Program {
static void Main() {
string str1 = Console.ReadLine();
string str2 = Console.ReadLine();
string strroop = str1 + str1;
if (0 <= strroop.IndexOf(str2))
Console.WriteLine("YES");
else
Console.WriteLine("NO");
}
} | using System;
class Program {
static void Main() {
string str1 = Console.ReadLine();
string str2 = Console.ReadLine();
string strroop = str1 + str1;
if (0 <= strroop.IndexOf(str2))
Console.WriteLine("Yes");
else
Console.WriteLine("No");
}
} | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 69 | 4 |
using System;
namespace Test {
class MainClass {
public static void Main(string[] args) {
var W = Console.ReadLine();
var count = 0;
var line = "";
while ((line = Console.ReadLine()) != "END_OF_TEXT") {
var words = line.Split();
foreach (var item in words) {
if (item == W)
... | using System;
namespace Test {
class MainClass {
public static void Main(string[] args) {
var W = Console.ReadLine();
var count = 0;
var line = "";
while ((line = Console.ReadLine()) != "END_OF_TEXT") {
var words = line.ToLower().Split();
foreach (var item in words) {
if (item == ... | [["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131]] | 8 | 95 | 4 |
using System;
namespace AOJ {
class Program {
static void Main(string[] args) {
string serch_word, sample_word = "";
int ans = 0;
var read_text = Console.ReadLine();
serch_word = read_text;
while (true) {
//??????????????????
read_text = Console.ReadLine();
if (read_text == "EN... | using System;
namespace AOJ {
class Program {
static void Main(string[] args) {
string serch_word, sample_word = "";
int ans = 0;
var read_text = Console.ReadLine();
serch_word = read_text;
while (true) {
//??????????????????
read_text = Console.ReadLine();
if (read_text == "EN... | [["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131]] | 8 | 121 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace StartFinish {
class Program {
static void Main(string[] args) {
string word = Console.ReadLine();
string str;
int count = 0;
while ((str = Console.ReadLine()) != "END_OF_TEXT") {
s... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace StartFinish {
class Program {
static void Main(string[] args) {
string word = Console.ReadLine();
string str;
int count = 0;
while ((str = Console.ReadLine()) != "END_OF_TEXT") {
s... | [["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131]] | 8 | 124 | 4 |
using System;
namespace ITP1_9 {
class Program {
static void Main(string[] args) {
string w = Console.ReadLine();
int c = 0;
while (true) {
string a = Console.ReadLine();
if (a == "END_OF_TEXT")
break;
foreach (string s in a.Split(' '))
if (s == w)
c++;
}
... | using System;
namespace ITP1_9 {
class Program {
static void Main(string[] args) {
string w = Console.ReadLine();
int c = 0;
while (true) {
string a = Console.ReadLine();
if (a == "END_OF_TEXT")
break;
foreach (string s in a.ToLower().Split(' '))
if (s == w)
c+... | [["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 0, 131]] | 8 | 95 | 4 |
using System;
namespace ITP1_9 {
class Program {
static void Main() {
var w = Console.ReadLine();
int c = 0;
while (true) {
var t = Console.ReadLine();
if (t == "END_OF_TEXT")
break;
foreach (var u in t.Split())
if (w == u)
c++;
}
Console.Write("{0}\n",... | using System;
namespace ITP1_9 {
class Program {
static void Main() {
var w = Console.ReadLine();
int c = 0;
while (true) {
var t = Console.ReadLine();
if (t == "END_OF_TEXT")
break;
foreach (var u in t.ToLower().Split())
if (w == u)
c++;
}
Console.Writ... | [["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 0, 131]] | 8 | 89 | 4 |
using System;
namespace ITP1_9_A {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int count = 0;
while (true) {
string str = Console.ReadLine();
if (str == "END_OF_TEXT")
break;
string Lowstr = str.ToLower();
string[] strArray = Lowstr.Spl... | using System;
namespace ITP1_9_A {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int count = 0;
while (true) {
string str = Console.ReadLine();
if (str == "END_OF_TEXT")
break;
string Lowstr = str.ToLower();
string[] strArray = Lowstr.Spl... | [["-", 8, 196, 0, 7, 15, 16, 12, 214, 205, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 205, 22]] | 8 | 121 | 2 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace AizuOnline {
internal class Program {
private static void Main(string[] args) {
var W = Console.ReadLine();
var T = string.Empty;
while (true) {
var tmp = Console.ReadLine();
if (tmp == "END_OF_TEXT"... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace AizuOnline {
internal class Program {
private static void Main(string[] args) {
var W = Console.ReadLine();
var T = string.Empty;
while (true) {
var tmp = Console.ReadLine();
if (tmp == "END_OF_TEXT"... | [["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 11, 12, 16, 12, 5, 0, 222]] | 8 | 141 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication14 {
class Program {
static void Main() {
while (true) {
string a = Console.ReadLine();
if (a == "-")
break;
int s = 0;
int c = int.Parse(Console.ReadLine());
fo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication14 {
class Program {
static void Main() {
while (true) {
string a = Console.ReadLine();
if (a == "-")
break;
int s = 0;
int c = int.Parse(Console.ReadLine());
fo... | [["+", 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, 52, 8, 196, 0, 1, 0, 35]] | 8 | 183 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace StartFinish {
class Program {
static void Main(string[] args) {
string left;
string right;
while (true) {
string str = Console.ReadLine();
if (str == "-") {
break;
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace StartFinish {
class Program {
static void Main(string[] args) {
string left;
string right;
while (true) {
string str = Console.ReadLine();
if (str == "-") {
break;
... | [["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22]] | 8 | 154 | 4 |
using System;
public class Test {
public static void Main() {
int n = int.Parse(Console.ReadLine());
int tscore = 0;
int hscore = 0;
for (var i = 0; i < n; i++) {
string[] th = Console.ReadLine().Split(' ');
var res = string.Compare(th[0], th[1]);
if (res < 0) {
hscore += 3;... | using System;
public class Test {
public static void Main() {
int n = int.Parse(Console.ReadLine());
int tscore = 0;
int hscore = 0;
for (var i = 0; i < n; i++) {
string[] th = Console.ReadLine().Split(' ');
var res = string.Compare(th[0], th[1]);
if (res < 0) {
hscore += 3;... | [["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]] | 8 | 139 | 2 |
using LIB;
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int n = io.r<int>();
int t = 0;
int h = 0;
for (int i = 0; i < n; i++) {
string[] s = io.r<string>(' ');
int ans = s[0].CompareTo(s[1]);
... | using LIB;
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int n = io.r<int>();
int t = 0;
int h = 0;
for (int i = 0; i < n; i++) {
string[] s = io.r<string>(' ');
int ans = s[0].CompareTo(s[1]);
... | [["-", 75, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 75, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 57, 75, 196, 0, 1, 0, 11, 31, 22]] | 8 | 617 | 4 |
using System;
namespace _9_C {
class Program {
static void Main(string[] args) {
int kaisuu = int.Parse(Console.ReadLine());
int taro = 0;
int hanako = 0;
for (int i = 0; i < kaisuu; i++) {
string[] x = Console.ReadLine().Split();
string Taro = x[0];
string Hanako = x[1];
Arra... | using System;
namespace _9_C {
class Program {
static void Main(string[] args) {
int kaisuu = int.Parse(Console.ReadLine());
int taro = 0;
int hanako = 0;
for (int i = 0; i < kaisuu; i++) {
string[] x = Console.ReadLine().Split();
string Taro = x[0];
string Hanako = x[1];
Arra... | [["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203]] | 8 | 150 | 2 |
using System;
class ASHKJA {
static void Main() {
int n = int.Parse(Console.ReadLine());
int[] a = new int[2];
for (int i = 0; i < n; i++) {
string[] s = Console.ReadLine().Split();
if (s[0] == s[1]) {
a[0]++;
a[1]++;
}
string[] x = new string[2];
x[0] = s[0];... | using System;
class ASHKJA {
static void Main() {
int n = int.Parse(Console.ReadLine());
int[] a = new int[2];
for (int i = 0; i < n; i++) {
string[] s = Console.ReadLine().Split();
if (s[0] == s[1]) {
a[0]++;
a[1]++;
continue;
}
string[] x = new string[2];
... | [["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 35]] | 8 | 184 | 2 |
using System;
class Program {
static void Main() {
int num = int.Parse(Console.ReadLine());
int[] score = new int[2];
for (int i = 0; i < num; i++) {
string[] card = Console.ReadLine().Split(' ');
int flg = card[0].CompareTo(card[1]);
switch (flg) {
case 0:
score[0]++;
... | using System;
class Program {
static void Main() {
int num = int.Parse(Console.ReadLine());
int[] score = new int[2];
for (int i = 0; i < num; i++) {
string[] card = Console.ReadLine().Split(' ');
int flg = card[0].CompareTo(card[1]);
switch (flg) {
case 0:
score[0]++;
... | [["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203]] | 8 | 164 | 4 |
using System;
namespace AizuOnLine {
class Program {
static void Main(string[] args) {
while (true) {
string[] data = Console.ReadLine().Split(' ');
int r = int.Parse(data[0]);
int c = int.Parse(data[1]);
string[,] cell = new string[r + 1, c + 1];
for (int i = 0; i < r; i++) {
... | using System;
namespace AizuOnLine {
class Program {
static void Main(string[] args) {
string[] data = Console.ReadLine().Split(' ');
int r = int.Parse(data[0]);
int c = int.Parse(data[1]);
string[,] cell = new string[r + 1, c + 1];
for (int i = 0; i < r; i++) {
string[] row = Console.Rea... | [["-", 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, 52, 8, 196, 0, 7, 8, 196, 0, 46]] | 8 | 311 | 6 |
using System;
using System.Collections.Generic;
namespace ConsoleApplication31 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int r = int.Parse(str[0]);
int c = int.Parse(str[1]);
int[,] a = new int[r, c];
for (int i = 0; i < r; ++i) {
str... | using System;
using System.Collections.Generic;
namespace ConsoleApplication31 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int r = int.Parse(str[0]);
int c = int.Parse(str[1]);
int[,] a = new int[r, c];
for (int i = 0; i < r; ++i) {
str... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 299 | 2 |
using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
string[] rc = input.Split(' ');
int r = int.Parse(rc[0]);
int c = int.Parse(rc[1]);
int rowsum, colsum = 0;
int sum = 0;
int[,] answer = new int[r + 1, c + 1... | using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
string[] rc = input.Split(' ');
int r = int.Parse(rc[0]);
int c = int.Parse(rc[1]);
int rowsum, colsum = 0;
int sum = 0;
int[,] answer = new int[r + 1, c + 1... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22]] | 8 | 418 | 4 |
using System;
namespace Project {
class MainClass {
public static void Main(string[] args) {
string s1 = Console.ReadLine();
string[] sar1 = s1.Split(' ');
int r = int.Parse(sar1[0]);
int c = int.Parse(sar1[1]);
int[,] a = new int[r + 1, c + 1];
for (int i = 0; i < r; i++) {
string s2 =... | using System;
namespace Project {
class MainClass {
public static void Main(string[] args) {
string s1 = Console.ReadLine();
string[] sar1 = s1.Split(' ');
int r = int.Parse(sar1[0]);
int c = int.Parse(sar1[1]);
int[,] a = new int[r + 1, c + 1];
for (int i = 0; i < r; i++) {
string s2 =... | [["+", 0, 7, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 7, 8, 196, 0, 7, 8, 196, 0, 46]] | 8 | 312 | 2 |
using System;
public class Spreadsheet {
//??¨????????°r??¨?????°c???r ?? c
//???????´????????????¨?????????????????§???????????¨??????????¨?????????\????????°????????¨???????????????????????°??????
static void Main(string[] args) {
/*---??£?¨???¨---*/
string[] rowAndLine;
string[] tableNumBuffer;
... | using System;
public class Spreadsheet {
//??¨????????°r??¨?????°c???r ?? c
//???????´????????????¨?????????????????§???????????¨??????????¨?????????\????????°????????¨???????????????????????°??????
static void Main(string[] args) {
/*---??£?¨???¨---*/
string[] rowAndLine;
string[] tableNumBuffer;
... | [["-", 0, 57, 64, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 57, 64, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 57, 64, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 57, 64, 196, 0, 7, 15, 16, 12, 22]] | 8 | 342 | 4 |
using System;
class Program {
static void Main(string[] args) {
String[] aryInput = Console.ReadLine().Split(' ');
int n = int.Parse(aryInput[0]);
int m = int.Parse(aryInput[1]);
int l = int.Parse(aryInput[2]);
long[,] A = new long[n, m];
long[,] B = new long[m, l];
long[,] C = new long[... | using System;
class Program {
static void Main(string[] args) {
String[] aryInput = Console.ReadLine().Split(' ');
int n = int.Parse(aryInput[0]);
int m = int.Parse(aryInput[1]);
int l = int.Parse(aryInput[2]);
long[,] A = new long[n, m];
long[,] B = new long[m, l];
long[,] C = new long[... | [["-", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22]] | 8 | 388 | 2 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace ConsoleApplication2 {
class Program {
static void Main(string[] args) {
int[] data =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int n = data[0];
int m = data[1];
int l = da... | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace ConsoleApplication2 {
class Program {
static void Main(string[] args) {
int[] data =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int n = data[0];
int m = data[1];
int l = da... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22]] | 8 | 435 | 8 |
using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
string[] nml = input.Split(' ');
int n = int.Parse(nml[0]);
int m = int.Parse(nml[1]);
int l = int.Parse(nml[2]);
int[,] a = new int[n, m];
int[,] b = new in... | using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
string[] nml = input.Split(' ');
int n = int.Parse(nml[0]);
int m = int.Parse(nml[1]);
int l = int.Parse(nml[2]);
int[,] a = new int[n, m];
int[,] b = new in... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 471 | 4 |
using System;
namespace AOJ.ITP {
public class TogglingCases {
public static void Main() {
string input = Console.ReadLine();
string output = "";
for (int i = 0; i < input.Length; i++) {
if (input[i] >= 'a' && input[i] <= 'z') {
output += input.Substring(i, 1).ToUpper();
... | using System;
namespace AOJ.ITP {
public class TogglingCases {
public static void Main() {
string input = Console.ReadLine();
string output = "";
for (int i = 0; i < input.Length; i++) {
if (input[i] >= 'a' && input[i] <= 'z') {
output += input.Substring(i, 1).ToUpper();
... | [["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 203]] | 8 | 151 | 2 |
using System;
namespace ConsoleApplication4 {
class Program {
static void Main(string[] args) {
String Input = Console.ReadLine();
Char[] input = Input.ToCharArray();
for (int i = 0; i < input.Length - 1; i++) {
if (char.IsUpper(input[i])) {
input[i] = char.ToLower(input[i]);
Consol... | using System;
namespace ConsoleApplication4 {
class Program {
static void Main(string[] args) {
String Input = Console.ReadLine();
Char[] input = Input.ToCharArray();
for (int i = 0; i < input.Length; i++) {
if (char.IsUpper(input[i])) {
input[i] = char.ToLower(input[i]);
Console.Wr... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 57, 75, 196, 0, 45], ["+", 8, 196, 0, 57, 75, 57, 75, 196, 0, 46]] | 8 | 160 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2 {
class Program {
static void Main(string[] args) {
string a = Console.ReadLine();
string b = "abcdefghijklmnopqrsyuvwxyz";
string c = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int d = a.Length;
... | using System; // fAIR, LATER, OCCASIONALLY CLOUDY.
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2 {
class Program {
static void Main(string[] args) {
string a = Console.ReadLine();
string b = "abcdefghijklmnopqrstuvwxyz";
string c = "ABCDEFGHIJKLMNOP... | [["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]] | 8 | 181 | 2 |
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) {
//??\??????0???
string x = Console.ReadLine();
if (x[x.Length - 1] == '0') {
break;
}
... |
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) {
//??\??????0???
string x = Console.ReadLine();
if (x[0] == '0') {
break;
}
int ... | [["-", 206, 207, 0, 28, 0, 16, 31, 214, 205, 22], ["-", 206, 207, 0, 28, 0, 16, 31, 214, 0, 131], ["-", 206, 207, 0, 28, 0, 16, 31, 214, 141, 22], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203]] | 8 | 125 | 6 |
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, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22]] | 8 | 986 | 4 |
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, 218, 8, 41, 15, 16, 17, 60], ["+", 0, 28, 0, 218, 8, 41, 15, 16, 17, 79], ["-", 0, 218, 8, 41, 75, 41, 15, 16, 17, 60], ["+", 0, 218, 8, 41, 75, 41, 15, 16, 17, 79], ["-", 8, 41, 75, 41, 75, 41, 15, 16, 17, 60], ["+", 8, 41, 75, 41, 75, 41, 15, 16, 17, 79], ["-", 75, 41, 75, 41, 75, 41, 15, 16, 17, 60]... | 8 | 1,139 | 8 |
using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
var hs = new HashSet<int>();
var count = 0;
var q = int.Parse(Console.ReadLine().Trim());
for (int i = 0; i < q; i++) {
string[] line = Console.ReadLine().Trim().Split(' ');
var c = int.Parse(... | using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
var hs = new HashSet<int>();
var count = 0;
var q = int.Parse(Console.ReadLine().Trim());
for (int i = 0; i < q; i++) {
string[] line = Console.ReadLine().Trim().Split(' ');
var c = int.Parse(... | [["-", 8, 196, 0, 57, 75, 57, 75, 196, 0, 45], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 24], ["+", 75, 57, 75, 57, 15, 213, 3, 4, 0, 25], ["-", 0, 57, 75, 57, 75, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 57, 75, 57, 75, 196, 0, 46]] | 8 | 197 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
public class Prime {
public static void Main() {
int n = int.Parse(Console.ReadLine());
var primeFactors = PrimeFactors(n);
// primeFactors.Dump();
string output =
primeFactors.Count() == 0
? n.ToString()
... | using System;
using System.Linq;
using System.Collections.Generic;
public class Prime {
public static void Main() {
int n = int.Parse(Console.ReadLine());
var primeFactors = PrimeFactors(n);
string output =
primeFactors.Count() == 0
? n.ToString()
: string.Join(
... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 15, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+... | 8 | 187 | 10 |
using System;
namespace _1_A {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
Console.Write(n + ":");
for (int i = 2; i <= Math.Sqrt(n); i++) {
while (n % i == 0) {
Console.Write(" " + i);
n = n / i;
}
}
Console.WriteLine(n == ... | using System;
namespace _1_A {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
Console.Write(n + ":");
for (int i = 2; i <= Math.Sqrt(n); i++) {
while (n % i == 0) {
Console.Write(" " + i);
n = n / i;
}
}
Console.WriteLine(n == ... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203]] | 8 | 117 | 2 |
// Elementary Number Theory - Prime Factorize
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=NTL_1_A
using System;
using System.Linq;
using System.Collections.Generic;
namespace NTL_1_A {
class Program {
public Program() {}
public static void Main() { new Program().Calc(); }
void Calc() {
var ... | // Elementary Number Theory - Prime Factorize
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=NTL_1_A
using System;
using System.Linq;
using System.Collections.Generic;
namespace NTL_1_A {
class Program {
public Program() {}
public static void Main() { new Program().Calc(); }
void Calc() {
var ... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25]] | 8 | 304 | 6 |
using System;
namespace Sample {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int m = int.Parse(str[0]);
int n = int.Parse(str[1]);
int divide = 1000000007;
string binary = Convert.ToString(n, 2);
int sum = 1;
for (int i = 0; i < binary.L... | using System;
namespace Sample {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int m = int.Parse(str[0]);
int n = int.Parse(str[1]);
int divide = 1000000007;
string binary = Convert.ToString(n, 2);
long sum = 1;
for (int i = 0; i < binary.... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 140 | 2 |
using System;
public class Hello {
public const int MD = 1000000007;
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var m = int.Parse(line[0]);
var n = int.Parse(line[1]);
Console.WriteLine(power(m, n));
}
public static long power(int m, int n) {
if (n == ... | using System;
public class Hello {
public const int MD = 1000000007;
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var m = int.Parse(line[0]);
var n = int.Parse(line[1]);
Console.WriteLine(power(m, n));
}
public static long power(long m, long n) {
if (n =... | [["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 196, 0, 37, 0, 41, 75, 16, 17, 109], ["+", 8, 196, 0, 37, 0, 41, 75, 16, 12, 22]] | 8 | 140 | 6 |
using System;
using System.Linq;
namespace _1_C {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
long ret = x[0];
for (int i = 1; i < n; i++) {
long a = Math.Min(ret, x[1]);
long b ... | using System;
using System.Linq;
namespace _1_C {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
long ret = x[0];
for (int i = 1; i < n; i++) {
long a = Math.Min(ret, x[i]);
long b ... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["-", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 22]] | 8 | 162 | 6 |
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, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33]] | 8 | 1,707 | 2 |
using System;
namespace _10009 {
class Program {
static void Main(string[] args) {
string readline = Console.ReadLine();
if (readline != null) {
int a = int.Parse(readline);
double b = a * a * Math.PI;
double c = a * 2 * Math.PI;
Console.WriteLine(string.Format("{0:f6}", b) + " " +
... | using System;
namespace _10009 {
class Program {
static void Main(string[] args) {
string readline = Console.ReadLine();
if (readline != null) {
double a = double.Parse(readline);
double b = a * a * Math.PI;
double c = a * 2 * Math.PI;
Console.WriteLine(string.Format("{0:f6}", b) + " ... | [["-", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 57, 64, 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 | 102 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace mondai10009 {
class Program {
static void Main(string[] args) {
var r = float.Parse(Console.ReadLine());
var s = Math.PI * r * r;
var l = 2.0f * Math.PI * r;
Console.WriteLine("{0:f6} {1:f6}", s, l);
}
}... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace mondai10009 {
class Program {
static void Main(string[] args) {
var r = double.Parse(Console.ReadLine());
var s = Math.PI * r * r;
var l = 2.0 * Math.PI * r;
Console.WriteLine("{0:f6} {1:f6}", s, l);
}
}... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 31, 250], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 250]] | 8 | 88 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var r = (double)int.Parse(Console.ReadLine());
Console.WriteLine("{0} {1}", (r * r * Math.PI), (r * 2.0 * Math.PI));
}
}
} | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
double r = double.Parse(Console.ReadLine());
Console.WriteLine("{0} {1}", (r * r * Math.PI), (r * 2.0 * Math.PI));
}
}
} | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["-", 0, 212, 0, 74, 51, 213, 63, 214, 205, 199]] | 8 | 85 | 5 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace test {
class Program {
static void Main(string[] args) {
double r = int.Parse(Console.ReadLine());
double shu = ToRoundDown(2 * Math.PI * r, 5);
double area = ToRoundDown(Math.PI * r * r, 5);
Console.Wri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace test {
class Program {
static void Main(string[] args) {
double r = double.Parse(Console.ReadLine());
double shu = ToRoundDown(2 * Math.PI * r, 5);
double area = ToRoundDown(Math.PI * r * r, 5);
Console.... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]] | 8 | 156 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var num = int.Parse(Console.ReadLine());
Console.WriteLine("{0} {1}", num * num * Math.PI, 2 * Math.PI * num);
}
}
} | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var num = double.Parse(Console.ReadLine());
Console.WriteLine("{0} {1}", num * num * Math.PI, 2 * Math.PI * num);
}
}
} | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]] | 8 | 78 | 2 |
using System;
namespace OSJ {
class Program {
static void Main(string[] args) {
int r = int.Parse(Console.ReadLine());
Console.WriteLine((r * r * Math.PI).ToString("f6") + " " +
(r * 2 * Math.PI).ToString("f6"));
}
}
} | using System;
namespace OSJ {
class Program {
static void Main(string[] args) {
double r = double.Parse(Console.ReadLine());
Console.WriteLine((r * r * Math.PI).ToString("f6") + " " +
(r * 2 * Math.PI).ToString("f6"));
}
}
} | [["-", 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 | 79 | 4 |
using System;
using System.IO;
public class AOJ100 {
public static void Main() {
double PI = 3.141592653589;
int r = Int32.Parse(Console.ReadLine());
double S, L;
S = PI * r * r;
L = 2 * PI * r;
Console.WriteLine("{0:f6} {1:f6}", S, L);
}
} | using System;
using System.IO;
public class AOJ100 {
public static void Main() {
double PI = 3.141592653589;
double r = double.Parse(Console.ReadLine());
double S, L;
S = PI * r * r;
L = 2 * PI * r;
Console.WriteLine("{0:f6} {1:f6}", S, L);
}
} | [["-", 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, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]] | 8 | 74 | 4 |
using System;
namespace AOJ {
public class Program {
public static void Main(string[] cmdargs) {
int i = 1;
while (true) {
string arg = Console.ReadLine();
if (arg == "0") {
break;
}
Console.WriteLine(String.Format("Case {0}: {1}", i, arg));
}
}
}
} | using System;
namespace AOJ {
public class Program {
public static void Main(string[] cmdargs) {
int i = 1;
while (true) {
string arg = Console.ReadLine();
if (arg == "0") {
break;
}
Console.WriteLine(String.Format("Case {0}: {1}", i++, arg));
}
}
}
} | [["+", 0, 213, 3, 4, 0, 28, 0, 223, 0, 29]] | 8 | 74 | 1 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication4 {
class Program {
static void Main(string[] args) {
int b = 1;
while (true) {
int a = int.Parse(Console.ReadLine());
if (a == 0)
break;
Console.WriteLine("case {0}: {1... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication4 {
class Program {
static void Main(string[] args) {
int b = 1;
while (true) {
int a = int.Parse(Console.ReadLine());
if (a == 0)
break;
Console.WriteLine("Case {0}: {1... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 88 | 2 |
using System;
class AOJ {
static void Main(string[] args) {
int i = 1;
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0)
break;
Console.WriteLine("Case{0}: {1}", i++, n);
}
}
} | using System;
class AOJ {
static void Main(string[] args) {
int i = 1;
while (true) {
int n = int.Parse(Console.ReadLine());
if (n == 0)
break;
Console.WriteLine("Case {0}: {1}", i++, n);
}
}
} | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 65 | 2 |
using System;
class cls {
static void Main() {
int i = 0;
while (true) {
string s = Console.ReadLine();
if (s == "0")
break;
Console.WriteLine("Case {0}: {1}", i, s);
i++;
}
}
} | using System;
class cls {
static void Main() {
int i = 1;
while (true) {
string s = Console.ReadLine();
if (s == "0")
break;
Console.WriteLine("Case {0}: {1}", i, s);
i++;
}
}
} | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 60 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace test {
class Program {
static void Main(string[] args) {
int a;
List<int> list = new List<int>();
do {
a = int.Parse(Console.ReadLine());
list.Add(a);
} while (a != 0);
int i = 1;
for... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace test {
class Program {
static void Main(string[] args) {
int a;
List<int> list = new List<int>();
do {
a = int.Parse(Console.ReadLine());
list.Add(a);
} while (a != 0);
int i = 1;
for... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 126 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp4 {
class Program {
static void Main(string[] args) {
int K = Convert.ToInt32(Console.ReadLine());
for (int i = 0; i < K; i++) {
Console.Write("ALC");
}
}
}
} | using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp4 {
class Program {
static void Main(string[] args) {
int K = Convert.ToInt32(Console.ReadLine());
for (int i = 0; i < K; i++) {
Console.Write("ACL");
}
}
}
}
| [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 73 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace atcoder {
public class Program {
public static void Main(string[] args) {
var buffer = Console.ReadLine().Split();
var N = int.Parse(buffer[0]);
var M = int.Parse(buffer[1]);
var union
= new Uni... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace atcoder {
public class Program {
public static void Main(string[] args) {
var buffer = Console.ReadLine().Split();
var N = int.Parse(buffer[0]);
var M = int.Parse(buffer[1]);
var union
= new Uni... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 459 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Text;
using System.Linq;
using E = System.Linq.Enumerable;
using System.Threading;
internal partial class Solver {
public void Run() {
var n = ni();
v... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Text;
using System.Linq;
using E = System.Linq.Enumerable;
using System.Threading;
internal partial class Solver {
public void Run() {
var n = ni();
v... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203]] | 8 | 1,799 | 2 |
using System;
namespace ConsoleApp8 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
if (s.Substring(s.Length - 2, 1) == "s") {
Console.WriteLine(s + "es");
} else {
Console.WriteLine(s + "s");
}
}
}
}
| using System;
namespace ConsoleApp8 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
if (s.Substring(s.Length - 1, 1) == "s") {
Console.WriteLine(s + "es");
} else {
Console.WriteLine(s + "s");
}
}
}
}
| [["-", 31, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 77 | 2 |
using System;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
namespace AtcoderProblem {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
int len = S.Length;
string M = S.Substring(len);
string answer;
if (M == "s") {
answer = S + "es"... | using System;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
namespace AtcoderProblem {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
int len = S.Length - 1;
string M = S.Substring(len);
string answer;
if (M == "s") {
answer = S + ... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 101 | 2 |
using System;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var line = Console.ReadLine();
if (line.Last().Equals("s")) {
Console.WriteLine(line + "es");
} else {
Console.WriteLine(line + "s");
}
}
}
}
| using System;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var line = Console.ReadLine();
if (line.Last().Equals('s')) {
Console.WriteLine(line + "es");
} else {
Console.WriteLine(line + "s");
}
}
}
}
| [["-", 15, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 15, 213, 3, 4, 0, 28, 0, 252, 0, 104]] | 8 | 78 | 4 |
using System;
namespace PluralForm {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
int lenS = S.Length;
if (S[lenS - 1] == 'S') {
S += "es";
} else {
S += 's';
}
Console.WriteLine(S);
}
}
}
| using System;
namespace PluralForm {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
int lenS = S.Length;
if (S[lenS - 1] == 's') {
S += "es";
} else {
S += 's';
}
Console.WriteLine(S);
}
}
}
| [["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253]] | 8 | 75 | 2 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
//回答
// Console.WriteLine(Math.Ceiling((double)N / X) * T);
// Console.WriteLine("");
//整数の入力
// int input = int.Parse(Console.ReadLine());
//文字列の入力
// string input = Console.ReadLine();
string input... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
//回答
// Console.WriteLine(Math.Ceiling((double)N / X) * T);
// Console.WriteLine("");
//整数の入力
// int input = int.Parse(Console.ReadLine());
//文字列の入力
// string input = Console.ReadLine();
//
strin... | [["-", 31, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 31, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 286 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC179A {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
int l = S.Length;
if (S[l].ToString() == "s")
Console.WriteLine(S + "es");
els... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC179A {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
int l = S.Length;
if (S[l - 1].ToString() == "s")
Console.WriteLine(S + "es");
... | [["+", 205, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 100 | 2 |
using System;
using System.IO;
namespace ConsoleApp8 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[,] d = new int[n, 3];
int cnt = 0;
for (int i = 0; i <= n - 1; i++) {
string[] dice = Console.ReadLine().Split(' ');
d[i, 0] = int.Parse(di... | using System;
using System.IO;
namespace ConsoleApp8 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[,] d = new int[n, 3];
int cnt = 0;
for (int i = 0; i <= n - 1; i++) {
string[] dice = Console.ReadLine().Split(' ');
d[i, 0] = int.Parse(di... | [["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 57, 64, 196, 0, 57, 75, 196, 0, 46]] | 8 | 194 | 2 |
using System;
using System.Collections;
namespace gotojail {
class Program {
static void Main(string[] args) {
//結果格納ハッシュテーブル
Hashtable hsResult = new Hashtable();
// 1行目をとる
var times = int.Parse(Console.ReadLine());
for (var i = 0; i < times; i++) {
// for文ぐるぐるで標準入力ピコピコして配列に入れ込んでいる
... | using System;
using System.Collections;
namespace gotojail {
class Program {
static void Main(string[] args) {
//結果格納ハッシュテーブル
Hashtable hsResult = new Hashtable();
// 1行目をとる
var times = int.Parse(Console.ReadLine());
for (var i = 0; i < times; i++) {
// for文ぐるぐるで標準入力ピコピコして配列に入れ込んでいる
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 230 | 4 |
using System;
using System.Linq;
class B {
private static char[] c;
private static int[] d1 = new int[3] { 0, 0, 0 };
private static int[] d2 = new int[3] { -1, -1, -1 };
static void Main() {
var n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
c = Console.ReadLine().ToCharArray()... | using System;
using System.Linq;
class B {
private static char[] c;
private static int[] d1 = new int[3] { 0, 0, 0 };
private static int[] d2 = new int[3] { -1, -1, -1 };
static void Main() {
var n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
c = Console.ReadLine().ToCharArray()... | [["-", 0, 57, 15, 16, 12, 16, 12, 204, 205, 22], ["+", 0, 57, 15, 16, 12, 16, 12, 204, 205, 22]] | 8 | 233 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC179B {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
bool hantei = false;
int zoro = 0;
for (int i = 0; i < N; i++) {
strin... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC179B {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
bool hantei = false;
int zoro = 0;
for (int i = 0; i < N; i++) {
strin... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 8, 196, 0, 57, 75, 1, 0, 11, 31, 22], ["+", 0, 57, 75, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 57, 75, 1, 0, 11, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 75, 1, 0, 35]] | 8 | 153 | 5 |
using System;
using System.Collections;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Threading.Tasks;
class Program {
// Main
static void Main(string[] args) {
//出力準備(AutoFlushを切る)
var sw =
new StreamWrit... | using System;
using System.Collections;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Threading.Tasks;
class Program {
// Main
static void Main(string[] args) {
//出力準備(AutoFlushを切る)
var sw =
new StreamWrit... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 267 | 2 |
using System;
namespace CABC {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int counter = 0;
for (int A = 0; A <= N; A++) {
counter += (N - 1) / A;
}
Console.WriteLine(counter);
}
}
}
| using System;
namespace CABC {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int counter = 0;
for (int A = 1; A <= N; A++) {
counter += (N - 1) / A;
}
Console.WriteLine(counter);
}
}
}
| [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 74 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static ABC.Cin;
using static ABC.Cout;
using static ABC.Tool;
namespace ABC {
class Program {
static void Main(string[] args) {
Scanf(out int n, out int k);
var L = new int[k];
var R = new int[k];
for (int i = 0; i < k; i++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using static ABC.Cin;
using static ABC.Cout;
using static ABC.Tool;
namespace ABC {
class Program {
static void Main(string[] args) {
Scanf(out int n, out int k);
var L = new int[k];
var R = new int[k];
for (int i = 0; i < k; i++) {
... | [["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 969 | 6 |
using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = long.Parse(line[0]);
var x = int.Parse(line[1]);
var m = int.Parse(line[2]);
getAns(n, x, m);
}
static void getAns(long n, int x, int ... | using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = long.Parse(line[0]);
var x = int.Parse(line[1]);
var m = int.Parse(line[2]);
getAns(n, x, m);
}
static void getAns(long n, int x, int ... | [["+", 0, 200, 0, 212, 0, 41, 15, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 60], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 101], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 64, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 102]] | 8 | 428 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
public static class Solution {
public static long Solve(long N, long X, long Mod) {
long sum = 0;
var list = new List<long>();
var indexes = new Dictionary<long, int>();
var a = X;
list.Add(a);
indexes[a] = 0;
sum += a;
... | using System;
using System.Collections.Generic;
using System.Linq;
public static class Solution {
public static long Solve(long N, long X, long Mod) {
long sum = 0;
var list = new List<long>();
var indexes = new Dictionary<long, int>();
var a = X;
list.Add(a);
indexes[a] = 0;
sum += a;
... | [["+", 0, 57, 15, 16, 31, 16, 12, 23, 0, 24], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 12, 23, 0, 25], ["+", 0, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 12, 23, 0, 25]] | 8 | 318 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Numerics;
namespace ABC179 {
class Program {
static void Main(string[] args) {
var NXM = Console.ReadLine().Split().Select(long.Parse).ToArray();
var N = NXM[0];
var X = NXM[1];
var M = NXM[2];
// make array
var ... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Numerics;
namespace ABC179 {
class Program {
static void Main(string[] args) {
var NXM = Console.ReadLine().Split().Select(long.Parse).ToArray();
var N = NXM[0];
var X = NXM[1];
var M = NXM[2];
// make array
var ... | [["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203]] | 8 | 447 | 2 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Numerics;
namespace AtCoder {
class Program {
private static void Main(string[] args) {
var ss = Scanner.ArrayLong(3);
var n = ss[0];
v... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Numerics;
namespace AtCoder {
class Program {
private static void Main(string[] args) {
var ss = Scanner.ArrayLong(3);
var n = ss[0];
v... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 1,536 | 2 |
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
namespace CSharp_Shell {
public static class Program {
public static void Main() {
int a = int.Parse(Console.ReadLine());
if (a == 1) {
a = 0;
}
if (a == 0) {
a = 1;
}
Console.WriteLine(a);
}
}
... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
namespace CSharp_Shell {
public static class Program {
public static void Main() {
int a = int.Parse(Console.ReadLine());
if (a == 1) {
a = 0;
} else if (a == 0) {
a = 1;
}
Console.WriteLine(a);
}
}... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]] | 8 | 83 | 1 |
using System;
namespace ConsoleApp1 {
class ABC178A {
static void Main(string[] args) {
int x = Int32.Parse(Console.ReadLine());
if (x > 0) {
Console.WriteLine("1");
} else {
Console.WriteLine("0");
}
}
}
}
| using System;
namespace ConsoleApp1 {
class ABC178A {
static void Main(string[] args) {
int x = Int32.Parse(Console.ReadLine());
if (x > 0) {
Console.WriteLine("0");
} else {
Console.WriteLine("1");
}
}
}
}
| [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 65 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace abc {
class Program {
static void Main(string[] args) {
var input =
Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList();
var (a, b, c, d) = (input[0], input[1], input[2], input[3]);
long max = -1010101010;... | using System;
using System.Collections.Generic;
using System.Linq;
namespace abc001 {
class Program {
static void Main(string[] args) {
var input =
Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList();
var (a, b, c, d) = (input[0], input[1], input[2], input[3]);
long max = long.MinV... | [["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 2... | 8 | 159 | 7 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var a = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
Console.WriteLine(
new List<int> { a[0] * a[2], a[0] * a[3], a[1] * a[2], a[1] * a[3] }
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var a = Console.ReadLine().Split().Select(x => long.Parse(x)).ToArray();
Console.WriteLine(
new List<long> { a[0] * a[2], a[0] * a[3], a[1] * a[2], a[1] * a[3] ... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 63, 214, 205, 230, 39, 236, 237, 238, 0, 199], ["+", 63, 214, 205, 230, 39, 236, 237, 238, 0, 199]] | 8 | 119 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.IO.Compression;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.RegularExpressions;
using Console ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.IO.Compression;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.RegularExpressions;
using Console ... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]] | 8 | 200 | 2 |
using System;
using System.Linq;
class Program {
static void Main() {
var args =
Console.ReadLine().Split().ToList().ConvertAll(x => double.Parse(x));
var a = args[0];
var b = args[1];
var c = args[2];
var d = args[3];
var ans = (double)0;
ans = a * c;
if (a * d > ans)
a... | using System;
using System.Linq;
class Program {
static void Main() {
var args =
Console.ReadLine().Split().ToList().ConvertAll(x => long.Parse(x));
var a = args[0];
var b = args[1];
var c = args[2];
var d = args[3];
var ans = (long)0;
ans = a * c;
if (a * d > ans)
ans =... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199]] | 8 | 143 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Runtime.ExceptionServices;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtCoder {
class Program {
static void Main(string[... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Runtime.ExceptionServices;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtCoder {
class Program {
static void Main(string[... | [["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 339 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography.X509Certificates;
public class Program {
public static void Main(string[] args) { new B().test(); }
}
public class A {
public void test() {
// 普通の数値
var zero = CommonRead.ReadInt();
... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography.X509Certificates;
public class Program {
public static void Main(string[] args) { new B().test(); }
}
public class A {
public void test() {
// 普通の数値
var zero = CommonRead.ReadInt();
... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 789 | 2 |
using System;
using System.Linq;
namespace abc178_b {
class Program {
static void Main(string[] args) {
var line = Console.ReadLine().Split(" ").Select(long.Parse).ToArray();
var a = line[0];
var b = line[1];
var c = line[2];
var d = line[3];
var ab = new long[] { a, 0, b };
var cd = new... | using System;
using System.Linq;
namespace abc178_b {
class Program {
static void Main(string[] args) {
var line = Console.ReadLine().Split(" ").Select(long.Parse).ToArray();
var a = line[0];
var b = line[1];
var c = line[2];
var d = line[3];
var ab = new long[] { a, 0, b };
var cd = new... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18]] | 8 | 193 | 4 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO.Pipes;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading;
class Test {
static long mod = (long)1e9 + 7;
static long[] fact = new long[500001];
static long[] factinv = new long[500001];
... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO.Pipes;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading;
class Test {
static long mod = (long)1e9 + 7;
static long[] fact = new long[500001];
static long[] factinv = new long[500001];
... | [["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 867 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace AtCoderBeginnerContest178 {
class Program {
static void Main(string[] args) {
// 課題B - Product Max(2020/9/13)
string[] input = Console.ReadLine().Split(' ');
long max = -100000000000000000;... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace AtCoderBeginnerContest178 {
class Program {
static void Main(string[] args) {
// 課題B - Product Max(2020/9/13)
string[] input = Console.ReadLine().Split(' ');
long max = -1000000000000000000... | [["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203]] | 8 | 140 | 2 |
using System;
using System.Linq;
class Program {
static void Main() {
var num =
Console.ReadLine().Split(' ').Select(_ => double.Parse(_)).ToArray();
double[] list = new double[4];
list[0] = num[0] * num[2]; // ac
list[1] = num[0] * num[3]; // ad
list[2] = num[1] * num[2]; // bc
list[... | using System;
using System.Linq;
class Program {
static void Main() {
var num =
Console.ReadLine().Split(' ').Select(_ => long.Parse(_)).ToArray();
long[] list = new long[4];
list[0] = num[0] * num[2]; // ac
list[1] = num[0] * num[3]; // ad
list[2] = num[1] * num[2]; // bc
list[3] = n... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 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, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 195, 8, 196, 0, ... | 8 | 142 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
int[] abcd = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var list = new List<int>();
list.Add(abcd[0] * abcd[2]);
list.Add(abcd[0] * abcd[3]);
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
long[] abcd = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
var list = new List<long>();
list.Add(abcd[0] * abcd[2]);
list.Add(abcd[0] * abcd[3]);... | [["-", 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], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]] | 8 | 145 | 6 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
long a = long.... | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
long a = long.... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]] | 8 | 195 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace contest_Csharp {
class Program {
public static (long m, long s)[,] dp;
public static long mod;
public static List<int> getprimes(int n) {
var result = new List<int>();
result.Add(2)... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace contest_Csharp {
class Program {
public static (long m, long s)[,] dp;
public static long mod;
public static List<int> getprimes(int n) {
var result = new List<int>();
result.Add(2)... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199]] | 8 | 367 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_178 {
class C {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_178 {
class C {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25], ["-", 0, 212, 0, 16, 31, 16, 12, 23, 0, 25]] | 8 | 375 | 2 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["+", 12, 16, 31, 23, 0, 16, 12, 16, 31, 203], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 48]] | 8 | 543 | 2 |
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Net.WebSockets;
class Test {
// Driver code
public static void Main() {
/// var t = int.Parse(Console.ReadLine());
// while (t > 0)
{
// t--;
var ii = Console.ReadLine... |
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Net.WebSockets;
class Test {
// Driver code
public static void Main() {
/// var t = int.Parse(Console.ReadLine());
// while (t > 0)
{
// t--;
var ii = Console.ReadLine... | [["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 25]] | 8 | 155 | 2 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace atcoder151 {
public class MainClass {
public static void Main(string[] args) {
new MainClass().Solve(new ConsoleInput(Console.In, ' '));
... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace atcoder151 {
public class MainClass {
public static void Main(string[] args) {
new MainClass().Solve(new ConsoleInput(Console.In, ' '));
... | [["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 109], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 109], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203]] | 8 | 580 | 6 |
using System;
using System.Linq;
namespace AtCoderContest {
class Program {
static void Main() {
var inputs = Console.ReadLine().Split(" ").Select(int.Parse).ToList();
var (n, x, t) = (inputs[0], inputs[1], inputs[2]);
if (n % t == 0) {
Console.WriteLine((n / x) * t);
} else {
Console.Wr... | using System;
using System.Linq;
namespace AtCoderContest {
class Program {
static void Main() {
var inputs = Console.ReadLine().Split(" ").Select(int.Parse).ToList();
var (n, x, t) = (inputs[0], inputs[1], inputs[2]);
if (n % x == 0) {
Console.WriteLine((n / x) * t);
} else {
Console.Wr... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]] | 8 | 117 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC086A {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var N = int.Parse(input[0]);
var X = int.Parse(input[1]);
var T = int.Parse(input[2]);
var count = (Math.Round((doub... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC086A {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var N = int.Parse(input[0]);
var X = int.Parse(input[1]);
var T = int.Parse(input[2]);
var count = (Math.Ceiling((do... | [["-", 0, 212, 0, 23, 0, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 23, 0, 213, 63, 214, 141, 22]] | 8 | 117 | 2 |
using System;
using System.Linq;
namespace atc {
class Program {
static void Main(string[] args) {
int num = 0;
string input = Console.ReadLine();
foreach (char c in input) {
num += Convert.ToInt32(c);
}
// long p = long.Parse(Console.ReadLine());
// int[] p = Console.ReadLine().Split('... | using System;
using System.Linq;
namespace atc {
class Program {
static void Main(string[] args) {
int num = 0;
string input = Console.ReadLine();
foreach (char c in input) {
num += Convert.ToInt32(c.ToString());
}
// long p = long.Parse(Console.ReadLine());
// int[] p = Console.ReadLin... | [["+", 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, 1, 0, 11, 12, 213, 3, 4, 0, 25]] | 8 | 93 | 4 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace Atcoder.Abc {
// https://atcoder.jp/contests/abc176/tasks/abc176_b
public class Abc176_B {
public static void Main(string[] args) ... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace Atcoder.Abc {
// https://atcoder.jp/contests/abc176/tasks/abc176_b
public class Abc176_B {
public static void Main(string[] args) ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 171 | 2 |
using System;
class Program {
static void Main(string[] args) {
string N = Console.ReadLine(); //標準入力
int count = 0;
for (int i = 0; i < N.Length; i++) {
string s2 = N.Substring(i, 1);
int a = int.Parse(s2);
count = (count + a) % 9;
}
if (count == 0) {
Console.WriteLine(... | using System;
class Program {
static void Main(string[] args) {
string N = Console.ReadLine(); //標準入力
int count = 0;
for (int i = 0; i < N.Length; i++) {
string s2 = N.Substring(i, 1);
int a = int.Parse(s2);
count = (count + a) % 9;
}
if (count == 0) {
Console.WriteLine(... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 124 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace KCLC {
class Program {
static void Main() {
string Input = Console.ReadLine();
int Length = Input.Length;
int[] Hairetu = new int[Length];
for (int i = 0; i < Length; i++) {
Hairetu[i] = (int)Input[i];
}
int Wa ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace KCLC {
class Program {
static void Main() {
string Input = Console.ReadLine();
int Length = Input.Length;
int[] Hairetu = new int[Length];
for (int i = 0; i < Length; i++) {
Hairetu[i] = (int)Input[i] - 48;
}
in... | [["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]] | 8 | 145 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC174 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int n = 0;
foreach (char cs in s) {
n += cs - '0';
}
if (n != 0 && n % 9 ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC174 {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
int n = 0;
foreach (char cs in s) {
n += cs - '0';
}
if (n % 9 == 0) {
... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22]] | 8 | 112 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.