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 |
|---|---|---|---|---|---|
// デバッグ実行:Ctrl+F5
using System;
class Program {
static void Main(string[] args) {
String line;
line = Console.ReadLine();
String[] words = line.Split(' ');
int N = int.Parse(line);
int maxX = 100, maxY = 100, minX = 0, minY = 0;
if (N == 1) {
// そのまま出力?
line = Console.ReadLine()... | // デバッグ実行:Ctrl+F5
using System;
class Program {
static void Main(string[] args) {
String line;
line = Console.ReadLine();
String[] words = line.Split(' ');
int N = int.Parse(line);
int maxX = 100, maxY = 100, minX = 0, minY = 0;
if (N == 1) {
// そのまま出力?
line = Console.ReadLine()... | [["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 688 | 4 |
using System;
using System.Linq;
namespace D {
class Program {
static void Main(string[] args) {
int[] IN =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
long n = IN[0];
long m = IN[1];
for (long i = m / n; i >= 2; i--) {
if (m % i == 0) {
Console.WriteLine(... | using System;
using System.Linq;
namespace D {
class Program {
static void Main(string[] args) {
int[] IN =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
long n = IN[0];
long m = IN[1];
for (long i = m / n; i >= 1; i--) {
if (m % i == 0) {
Console.WriteLine(... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 114 | 2 |
using System;
using System.Numerics;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace debug {
class main {
static void Main(string[] args) {
//問題クラスを展開
ProgramD a = new ProgramD();
a.main(); //実行する
}
}
class ProgramA {
public void main() {
... | using System;
using System.Numerics;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace debug {
class main {
static void Main(string[] args) {
//問題クラスを展開
ProgramD a = new ProgramD();
a.main(); //実行する
}
}
class ProgramA {
public void main() {
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 95], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46]] | 8 | 697 | 5 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
class Myon {
public Myon() {}
public static int Main() {
cin = new Scanner();
new Myon().calc();
return 0;
}
static Scanner cin;
// メンバ変数---... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
class Myon {
public Myon() {}
public static int Main() {
cin = new Scanner();
new Myon().calc();
return 0;
}
static Scanner cin;
// メンバ変数---... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 669 | 2 |
using System;
namespace ABC112_D___Partition {
class Program {
static void Main(string[] args) { Console.WriteLine(solver()); }
static int solver() {
var NM = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var N = NM[0];
var M = NM[1];
for (int i = 2; i <= M / 2; i++) {
if (M % i... | using System;
namespace ABC112_D___Partition {
class Program {
static void Main(string[] args) { Console.WriteLine(solver()); }
static int solver() {
var NM = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var N = NM[0];
var M = NM[1];
for (int i = N; i <= M / 2; i++) {
if (M % i... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]] | 8 | 117 | 6 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.IO;
namespace SolutionCS {
class Program {
static List<ulong> Divisor(ulong input) {
List<ulong> result = new List<ulong>();
for (ulong i = 2; i * i <= input; i++) {
if (0 == input % i) {
res... | using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.IO;
namespace SolutionCS {
class Program {
static List<ulong> Divisor(ulong input) {
List<ulong> result = new List<ulong>();
for (ulong i = 1; i * i <= input; i++) {
if (0 == input % i) {
res... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 253 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
class Procon {
public Procon() {}
static void Main(string[] agrs) { new Procon().Do(); }
Scanner cin;
public void Do() {
cin = new Scanner();
long N = cin.nextLong();
long M = cin.nextLong();
double X = Math.Sqrt(M);
long... | using System;
using System.Collections.Generic;
using System.Linq;
class Procon {
public Procon() {}
static void Main(string[] agrs) { new Procon().Do(); }
Scanner cin;
public void Do() {
cin = new Scanner();
long N = cin.nextLong();
long M = cin.nextLong();
double X = Math.Sqrt(M);
long... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 581 | 2 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using static System.Math;
using System.Text;
namespace Program {
public static class ABC112D {
static public void Solve() {
var N = NextLong;
var M = NextLong;
foreach (var item in D... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using static System.Math;
using System.Text;
namespace Program {
public static class ABC112D {
static public void Solve() {
var N = NextLong;
var M = NextLong;
foreach (var item in D... | [["-", 8, 196, 0, 210, 12, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 210, 12, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 210, 12, 213, 3, 4, 0, 24], ["-", 0, 210, 12, 213, 3, 4, 0, 28, 0, 203], ["-", 8, 196, 0, 210, 12, 213, 3, 4, 0, 25]] | 8 | 4,139 | 5 |
using System;
using System.Collections.Generic;
// using System.Linq;
class Program {
static void Main(string[] args) {
// 入力フェーズ
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int M = int.Parse(input[1]);
// Mの約数のうちM/N以下の物を探す
// Mの約数を探す
int max = (int)Math.... | using System;
using System.Collections.Generic;
// using System.Linq;
class Program {
static void Main(string[] args) {
// 入力フェーズ
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int M = int.Parse(input[1]);
// Mの約数のうちM/N以下の物を探す
// Mの約数を探す
int max = (int)Math.... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 227 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
class Scanner //標準入力
{
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
return s[i++];
string st = Console.ReadLine();
whi... | using System;
using System.Collections.Generic;
using System.Linq;
class Scanner //標準入力
{
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
return s[i++];
string st = Console.ReadLine();
whi... | [["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 375 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] a_asArgs) {
int[] l_aiInput =
Console.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
int l_iN = l_aiInput[0];
int l_iM = l_aiInput[1];
for (int l_i... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] a_asArgs) {
int[] l_aiInput =
Console.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
int l_iN = l_aiInput[0];
int l_iM = l_aiInput[1];
for (int l_i... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20]] | 8 | 121 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
int n = (int)input[0];
long m = input[1];
var rtm = Math.Pow(m, 0.5);
if (n == 1) {
Console.WriteLine(... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
int n = (int)input[0];
long m = input[1];
var rtm = Math.Pow(m, 0.5);
if (n == 1) {
Console.WriteLine(... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85]] | 8 | 183 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
class P {
static void Main() {
string[] s = Console.ReadLine().Split();
int n = int.Parse(s[0]);
int m = int.Parse(s[1]);
int u = m / n;
for (int i = u; i > 0; i++) {
if (m % i == 0) {
Console.WriteLine(i);
re... | using System;
using System.Collections.Generic;
using System.Linq;
class P {
static void Main() {
string[] s = Console.ReadLine().Split();
int n = int.Parse(s[0]);
int m = int.Parse(s[1]);
int u = m / n;
for (int i = u; i > 0; i--) {
if (m % i == 0) {
Console.WriteLine(i);
re... | [["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 68]] | 8 | 109 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace AtCoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return long.P... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace AtCoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return long.P... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 307 | 2 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
long A = long.Parse(str[0]);
long B = long.Parse(str[1]);
var list = enum_div(B);
list.Sort();
long ans = 1;
for (var i = 0; i < list.Count; i++) {
... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
long A = long.Parse(str[0]);
long B = long.Parse(str[1]);
var list = enum_div(B);
list.Sort();
long ans = 1;
for (var i = 0; i < list.Count; i++) {
... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85]] | 8 | 225 | 2 |
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
long[] inpt =
Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray();
int numCount = (int)inpt[0];
long ans = 0;
for (long i = 1; i * ... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
long[] inpt =
Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray();
int numCount = (int)inpt[0];
long ans = 0;
for (long i = 1; i * ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258]] | 8 | 287 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) { new Program().Calc(); }
Scanner cin;
public Program() {}
void Calc() {
cin = new Scanner();
string n = cin.next();
char[] ans = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) { new Program().Calc(); }
Scanner cin;
public Program() {}
void Calc() {
cin = new Scanner();
string n = cin.next();
char[] ans = ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 509 | 2 |
using System;
namespace abc111_a {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
for (int i = 0; i < 3; i++)
Console.Write(s[0] == '1' ? 9 : 1);
Console.WriteLine();
}
}
}
| using System;
namespace abc111_a {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
for (int i = 0; i < 3; i++)
Console.Write(s[i] == '1' ? 9 : 1);
Console.WriteLine();
}
}
}
| [["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22]] | 8 | 69 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sample1 {
class Program {
static void Main(string[] args) {
string str = Console.ReadLine();
char[] cha = new char[3];
for (int i = 0; i < str.Length; i++) {
if (str[i] == '... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sample1 {
class Program {
static void Main(string[] args) {
string str = Console.ReadLine();
char[] cha = new char[3];
for (int i = 0; i < str.Length; i++) {
if (str[i] == '... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 95], ["+", 8, 196, 0, 57, 75, 57, 75, 196, 0, 45], ["+", 8, 196, 0, 57, 75, 57, 75, 196, 0, 46], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 145 | 6 |
using System;
public class Contest {
public static void Main(string[] args) {
string p = args[0];
string r = string.Empty;
for (int i = 0; i < p.Length; i++) {
r += (char)((10 - (p[i] - '0')) + '0');
}
Console.WriteLine(r);
}
} | using System;
public class Contest {
public static void Main(string[] args) {
string p = Console.ReadLine();
string r = string.Empty;
for (int i = 0; i < p.Length; i++) {
r += (char)((10 - (p[i] - '0')) + '0');
}
Console.WriteLine(r);
}
} | [["-", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["+", 0, 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, ... | 8 | 86 | 9 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
//入力
var a = int.Parse(Console.ReadLine());
int b = a / 111;
var c = (b + 1) * 111;
Console.Write... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
//入力
var a = int.Parse(Console.ReadLine());
int b = (a - 1) / 111;
var c = (b + 1) * 111;
Console... | [["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25]] | 8 | 96 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
public static void Main() {
var sw ... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
public static void Main() {
var sw ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 161 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) { new Program().Calc(); }
Scanner cin;
public Program() {}
void Calc() {
cin = new Scanner();
int n = cin.nextInt();
int contest =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) { new Program().Calc(); }
Scanner cin;
public Program() {}
void Calc() {
cin = new Scanner();
int n = cin.nextInt();
int contest =... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22]] | 8 | 482 | 2 |
using System;
class Program {
static void Main(string[] args) {
Write((int)(Read() - 1 / 111) * 111 + 111);
}
static void Write(string s) {
Console.WriteLine(s);
return;
}
static void Write(long n) {
Console.WriteLine(n.ToString());
return;
}
static string ReadStr() { return Console.R... | using System;
class Program {
static void Main(string[] args) {
Write((int)((Read() - 1) / 111) * 111 + 111);
}
static void Write(string s) {
Console.WriteLine(s);
return;
}
static void Write(long n) {
Console.WriteLine(n.ToString());
return;
}
static string ReadStr() { return Console... | [["+", 31, 74, 51, 23, 0, 16, 31, 23, 0, 24], ["+", 31, 74, 51, 23, 0, 16, 31, 23, 0, 25]] | 8 | 639 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder111 {
class Program {
static void Main(string[] args) {
int input = int.Parse(Console.ReadLine());
int res =
Enumerable.Range(1, 9).Select(x => x * 111).Where(x => x > ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder111 {
class Program {
static void Main(string[] args) {
int input = int.Parse(Console.ReadLine());
int res = Enumerable.Range(1, 9)
.Select(x => x * 111)
... | [["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 20]] | 8 | 101 | 2 |
using static System.Console;
namespace ConsoleApp4 {
class Program {
static void Main(string[] args) {
var n = ReadLine();
var nInt = int.Parse(n);
var nca = n.ToCharArray();
var nDoublets = Doublets(nca[0]);
WriteLine((nInt <= nDoublets) ? nDoublets : (char)(nca[0] + 1));
}
private static ... | using static System.Console;
namespace ConsoleApp4 {
class Program {
static void Main(string[] args) {
var n = ReadLine();
var nInt = int.Parse(n);
var nca = n.ToCharArray();
var nDoublets = Doublets(nca[0]);
WriteLine((nInt <= nDoublets) ? nDoublets : Doublets((char)(nca[0] + 1)));
}
priva... | [["+", 3, 4, 0, 28, 0, 41, 75, 213, 63, 22], ["+", 75, 213, 3, 4, 0, 28, 0, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 74, 51, 23, 0, 25]] | 8 | 116 | 3 |
using System;
namespace ABC111_B {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
for (int i = 111; i <= 999; i += 111) {
if (n < i) {
Console.WriteLine(i);
return;
}
}
}
}
}
| using System;
namespace ABC111_B {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
for (int i = 111; i <= 999; i += 111) {
if (n <= i) {
Console.WriteLine(i);
return;
}
}
}
}
}
| [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 70 | 2 |
using System;
namespace ABC111 {
class Program {
static void Main(string[] args) {
int x = int.Parse(Console.ReadLine());
int a = (x - 1) / 111 + 1;
Console.WriteLine(x * a);
}
}
}
| using System;
namespace ABC111 {
class Program {
static void Main(string[] args) {
int x = int.Parse(Console.ReadLine());
int a = (x - 1) / 111 + 1;
Console.WriteLine(111 * a);
}
}
}
| [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203]] | 8 | 58 | 2 |
using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
private static long mod = 1000000007;
private static long max = 999999999999;
static void Main(string[] args) {
var kl = new Di... | using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
private static long mod = 1000000007;
private static long max = 999999999999;
static void Main(string[] args) {
var kl = new Di... | [["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22]] | 8 | 1,440 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | [["-", 3, 4, 0, 28, 0, 218, 8, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 12, 203]] | 8 | 1,269 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace MyProgram {
class AtCoder {
static void Main() {
var N = int.Parse(Console.ReadLine());
var v = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var dict_odd = new Dictionary<int, int>();
var dict_even = new Dictio... | using System;
using System.Collections.Generic;
using System.Linq;
namespace MyProgram {
class AtCoder {
static void Main() {
var N = int.Parse(Console.ReadLine());
var v = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var dict_odd = new Dictionary<int, int>();
var dict_even = new Dictio... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 31, 22], ["+", 75, 57, 15, 16, 31, 213, 63, 214, 205, 22], ["+", 75, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 75, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 75, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 75, 57, 15, 16, 31, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 75, 57, 15, 1... | 8 | 470 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using ll = System.Int64;
public class Contest {
static void Swap1<T>(ref T a, ref T b) {
T t = a;
a = b;
b = t;
}
static void Swap2<T>(ref T a, ref T b)
where T : ICompa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using ll = System.Int64;
public class Contest {
static void Swap1<T>(ref T a, ref T b) {
T t = a;
a = b;
b = t;
}
static void Swap2<T>(ref T a, ref T b)
where T : ICompa... | [["-", 0, 195, 8, 196, 0, 210, 8, 196, 0, 45], ["-", 0, 195, 8, 196, 0, 210, 8, 196, 0, 46], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 41, 75, 213, 3, 4, 0, 25]] | 8 | 2,777 | 6 |
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, ' '));
r... | 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, ' '));
r... | [["-", 0, 195, 8, 196, 0, 57, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 15, 22]] | 8 | 932 | 2 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine().Split(' ');
var d = new int[n];
for (int i = 0; i < n; i++) {
d[i] = int.Parse(s[i]);
}
var maps = new[] { new Dictionary<... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine().Split(' ');
var d = new int[n];
for (int i = 0; i < n; i++) {
d[i] = int.Parse(s[i]);
}
var maps = new[] { new Dictionary<... | [["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22]] | 8 | 476 | 4 |
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
int itemCount = int.Parse(Reader.ReadLine());
int[] list =
Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
Dictionary<int, int> lst... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
int itemCount = int.Parse(Reader.ReadLine());
int[] list =
Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
Dictionary<int, int> lst... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258]] | 8 | 538 | 10 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Algorithm {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var array = Console.ReadLine().Split().Select(z => int.Parse(z)).ToArray();
var oddDict = new Dictionary<int, int>();
var ... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Algorithm {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var array = Console.ReadLine().Split().Select(z => int.Parse(z)).ToArray();
var oddDict = new Dictionary<int, int>();
var ... | [["-", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["-", 0, 57, 15, 16, 12, 16, 12, 204, 205, 22], ["+", 0, 57, 15, 16, 12, 16, 12, 204, 205, 22]] | 8 | 530 | 4 |
#if DEBUG
using System.Reflection;
using System.Threading.Tasks;
#endif
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Numerics;
using System.Globalization;
#if DEBUG
using System.Diagnostics;
#endif
namespace at103 {
class Program {
static strin... | #if DEBUG
using System.Reflection;
using System.Threading.Tasks;
#endif
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Numerics;
using System.Globalization;
#if DEBUG
using System.Diagnostics;
#endif
namespace at103 {
class Program {
static strin... | [["-", 0, 28, 0, 16, 31, 16, 12, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 16, 12, 204, 205, 22]] | 8 | 980 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
class Solution {
static void Main() {
var n = int.Parse(Console.ReadLine());
var v = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var a = new Dictionary<int, int>();
var b = new Dictionary<int, int>();
for (int i = ... | using System;
using System.Collections.Generic;
using System.Linq;
class Solution {
static void Main() {
var n = int.Parse(Console.ReadLine());
var v = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var a = new Dictionary<int, int>();
var b = new Dictionary<int, int>();
for (int i = ... | [["-", 3, 4, 0, 28, 0, 16, 31, 16, 31, 203], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 85], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 85], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 203]] | 8 | 528 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace easy_Atcoder {
class Program {
static void Main(string[] args) {
int[] ABC = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
Array.Sort(ABC);
Console.WriteLine(ABC[0] * 10 + ABC[1] + ABC[2]);
}
// float[] ABN = Arra... | using System;
using System.Collections.Generic;
using System.Linq;
namespace easy_Atcoder {
class Program {
static void Main(string[] args) {
int[] ABC = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
Array.Sort(ABC);
Console.WriteLine(ABC[2] * 10 + ABC[0] + ABC[1]);
}
// float[] ABN = Arra... | [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 123 | 6 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
//入力
// int n = 100;
/*
long n = long.Parse(Console.ReadLine());
long[] input = new long[5];
for(int a = 0; a < 5; a++)
{
i... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
//入力
// int n = 100;
/*
long n = long.Parse(Console.ReadLine());
long[] input = new long[5];
for(int a = 0; a < 5; a++)
{
i... | [["-", 3, 4, 0, 28, 0, 16, 12, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 12, 203]] | 8 | 108 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var logos = Console.ReadLine().Split(' ');
var ML = new MaximizeLogo(logos);
var max = ML.CalcMax();
Console.WriteLine(max);
}
}
public class MaximizeLogo {
string[] logos;
int... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var logos = Console.ReadLine().Split(' ');
var ML = new MaximizeLogo(logos);
var max = ML.CalcMax();
Console.WriteLine(max);
}
}
public class MaximizeLogo {
string[] logos;
int... | [["-", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 192 | 2 |
using System;
using System.Linq;
namespace abc110_a {
class program {
static void Main(string[] args) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
int ans;
if (x[0] > x[1] && x[0] > x[2]) {
ans = 10 * x[0] + x[1] + x[2];
} else {
if (x[1] > x[0] && x[1] > x[2]) {
... | using System;
using System.Linq;
namespace abc110_a {
class program {
static void Main(string[] args) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
int ans;
if (x[0] >= x[1] && x[0] >= x[2]) {
ans = 10 * x[0] + x[1] + x[2];
} else {
if (x[1] >= x[0] && x[1] >= x[2]) ... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20], ["-", 75, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["-", 75, 196, 0, 57, 15, 16, 12, 16, 17,... | 8 | 174 | 8 |
// デバッグ実行:Ctrl+F5
using System;
class Program {
static void Main(string[] args) {
String line;
line = Console.ReadLine();
String[] words = line.Split(' ');
int A, B, C;
int result;
A = int.Parse(words[0]);
B = int.Parse(words[1]);
C = int.Parse(words[2]);
if (A > B && A > C) {
... | // デバッグ実行:Ctrl+F5
using System;
class Program {
static void Main(string[] args) {
String line;
line = Console.ReadLine();
String[] words = line.Split(' ');
int A, B, C;
int result;
A = int.Parse(words[0]);
B = int.Parse(words[1]);
C = int.Parse(words[2]);
if (A > B && A > C) {
... | [["-", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 31, 22], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 47]] | 8 | 153 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
long[] NMXY =
Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
long[] NMXY =
Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArr... | [["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 267 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
int m = sc.NextInt();
int x = sc.NextInt();
int y = sc.NextInt();
int[] xs = sc.IntArray();
int[] ys = sc.IntA... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
int m = sc.NextInt();
int x = sc.NextInt();
int y = sc.NextInt();
int[] xs = sc.IntArray();
int[] ys = sc.IntA... | [["-", 0, 41, 15, 16, 31, 16, 12, 16, 17, 19], ["+", 0, 41, 15, 16, 31, 16, 12, 16, 17, 18]] | 8 | 438 | 2 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray();
int x = Console.ReadLine().Split().Select(int.Parse).ToArray().Max();
int y = Console.ReadLine().Split().Select(int.Parse).ToArray().Min();
Console.Writ... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray();
int x = Console.ReadLine().Split().Select(int.Parse).ToArray().Max();
int y = Console.ReadLine().Split().Select(int.Parse).ToArray().Min();
Console.Writ... | [["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222]] | 8 | 194 | 2 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray();
int x = Console.ReadLine()
.Split()
.Select(int.Parse)
.ToArray()
.Concat(new[] { s[2] })
... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray();
int x = Console.ReadLine()
.Split()
.Select(int.Parse)
.ToArray()
.Concat(new[] { s[2] })
... | [["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222]] | 8 | 148 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace B._1_Dimensional_World_s_Tale {
class Program {
static void Main(string[] args) {
var NMXY =
Console.ReadLine().Split(null).Select(x => int.Parse(x)).ToList();
var N... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace B._1_Dimensional_World_s_Tale {
class Program {
static void Main(string[] args) {
var NMXY =
Console.ReadLine().Split(null).Select(x => int.Parse(x)).ToList();
var N... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 217 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
//[summary]B - 1 Dimensional World's Tale
var line = ReadLine();
int x = line[2];
int y = line[3];
var xCoords = ReadLine().OrderByDescending(c => c).ToList();... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
//[summary]B - 1 Dimensional World's Tale
var line = ReadLine();
int x = line[2];
int y = line[3];
var xCoords = ReadLine().OrderByDescending(c => c).ToList();... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22]] | 8 | 235 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace MyProgram {
public class Program {
public static void Main(string[] args) {
int[] n = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int N = n[0];
int M = n[1];
int X = n[2];
... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace MyProgram {
public class Program {
public static void Main(string[] args) {
int[] n = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int N = n[0];
int M = n[1];
int X = n[2];
... | [["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 259 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var input = Array.ConvertAll(ReadLine().Split(' '), int.Parse);
var xCityNum = input[0];
var yCityNum = ... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var input = Array.ConvertAll(ReadLine().Split(' '), int.Parse);
var xCityNum = input[0];
var yCityNum = ... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19]] | 8 | 230 | 6 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var inputNMXY =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var maxX = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).Max();
var minY = Console.ReadLine().Split(' ').Select(x => int.... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var inputNMXY =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var maxX = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).Max();
var minY = Console.ReadLine().Split(' ').Select(x => int.... | [["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 18], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 19], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 18]] | 8 | 183 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var S = sc.ReadStr();
var T = sc.ReadStr();
var map = new HashMap<char, char>();
for (int i = 0; i < S.Length; i++) {
if (map[S[i]] != 0 && map[S[i]] != T[i]) {
Console.W... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var S = sc.ReadStr();
var T = sc.ReadStr();
var map = new HashMap<char, char>();
for (int i = 0; i < S.Length; i++) {
if (map[S[i]] != 0 && map[S[i]] != T[i]) {
Console.W... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 808 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Math;
using static System.Console;
class Program {
static void Main() {
string[] ST = { ReadLine(), ReadLine() };
string S = ST[0];
string T = ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Math;
using static System.Console;
class Program {
static void Main() {
string[] ST = { ReadLine(), ReadLine() };
string S = ST[0];
string T = ... | [["-", 3, 4, 0, 28, 0, 230, 10, 229, 0, 203], ["+", 3, 4, 0, 28, 0, 230, 10, 229, 0, 22]] | 8 | 1,164 | 4 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
public static class Program {
static void Main() {
char[] s = Console.ReadLine().ToCharArray();
char[] t = Console.ReadLine().ToCharArray();
Dictionary<char, char> S_pair = new Dictionary<char, char>();
Dictionary<cha... | using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
public static class Program {
static void Main() {
char[] s = Console.ReadLine().ToCharArray();
char[] t = Console.ReadLine().ToCharArray();
Dictionary<char, char> S_pair = new Dictionary<char, char>();
Dictionary<cha... | [["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["-", 0, 57, 75, 57, 64, 196, 0, 1, 0, 35], ["-", 0, 57, 75, 57, 64, 196, 0, 37, 0, 38]] | 8 | 231 | 4 |
using System;
using System.Collections.Generic;
namespace ABC110_C {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
var t = Console.ReadLine();
var dics = new Dictionary<char, char>();
var dict = new Dictionary<char, char>();
for (int i = 0; i < s.Length; i++) {
... | using System;
using System.Collections.Generic;
namespace ABC110_C {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
var t = Console.ReadLine();
var dics = new Dictionary<char, char>();
var dict = new Dictionary<char, char>();
for (int i = 0; i < s.Length; i++) {
... | [["-", 75, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 75, 57, 15, 16, 12, 16, 31, 204, 205, 22]] | 8 | 262 | 2 |
using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC110D {
class Program {
static int n;
static void Main(string[] args) {
n = RInt;
var m = RInt;
var divs = Factors(m);
Mlong ans = 1;
Mlo... | using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC110D {
class Program {
static int n;
static void Main(string[] args) {
n = RInt;
var m = RInt;
var divs = Factors(m);
Mlong ans = 1;
Mlo... | [["-", 64, 1, 0, 223, 0, 204, 206, 207, 0, 70], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 0, 131], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 57, 64, 1, 0, 213, 3, 4, 0, 24], ["-", 64, 1, 0, 223, 0, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 57, 64, 1, 0, 223, 0, 29], ["+", 0, 57, 64, 1, 0, 213, 3, 4, 0, 21], ["+"... | 8 | 1,300 | 9 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { ABC110.D(); }
class ABC110 {
public static void C() {
var S = ReadStr();
var T = ReadStr();
var dict1 = new Dictionary<char, char>();
var dict2 = new ... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { ABC110.D(); }
class ABC110 {
public static void C() {
var S = ReadStr();
var T = ReadStr();
var dict1 = new Dictionary<char, char>();
var dict2 = new ... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 1,522 | 2 |
using System;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
using static System.Math;
using System.Numerics;
static class Program {
const int mod = (int)1e9 + 7;
static void Main() {
... | using System;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
using static System.Math;
using System.Numerics;
static class Program {
const int mod = (int)1e9 + 7;
static void Main() {
... | [["-", 0, 230, 3, 4, 0, 28, 0, 16, 17, 151], ["-", 0, 230, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 230, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 230, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 2,112 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
var cin = new Scanner2();
int n = cin.Int();
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
var cin = new Scanner2();
int n = cin.Int();
... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 1,591 | 2 |
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;
internal partial class Solver {
List<int> Factorize(int x) {
var r = new List<int>();
for... | 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;
internal partial class Solver {
List<int> Factorize(int x) {
var r = new List<int>();
for... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 1,530 | 2 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static bool[] isPrimes = makePrimeList(100000); // i-1が素数かどうか
static long factMax = 200000; // nCkにおけるnの最大値
static long[] factorials = new long[factMax + 1]; // i!(mod p)を先にメモ
static lo... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static bool[] isPrimes = makePrimeList(100000); // i-1が素数かどうか
static long factMax = 200000; // nCkにおけるnの最大値
static long[] factorials = new long[factMax + 1]; // i!(mod p)を先にメモ
static lo... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22]] | 8 | 1,050 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
namespace ProgrammingContest {
class Writer : IDisposable {
private System.IO.TextWriter Out { get; }
private StringBuilder Sb { get; }
private bool IsReactive { get; }
public ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
namespace ProgrammingContest {
class Writer : IDisposable {
private System.IO.TextWriter Out { get; }
private StringBuilder Sb { get; }
private bool IsReactive { get; }
public ... | [["-", 0, 200, 0, 212, 0, 16, 31, 74, 51, 250], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 51, 250]] | 8 | 1,845 | 2 |
using MathX;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ABC110D___Factorization {
public class Program {
public static readonly int MOD = (int)Math.Pow(10, 9) + 7;
public static void Main(string[] args) {
checked {
string[] line = Console.ReadLine().... | using MathX;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ABC110D___Factorization {
public class Program {
public static readonly int MOD = (int)Math.Pow(10, 9) + 7;
public static void Main(string[] args) {
checked {
string[] line = Console.ReadLine().... | [["-", 0, 1, 0, 11, 12, 16, 31, 74, 0, 24], ["-", 0, 1, 0, 11, 12, 16, 31, 74, 39, 199], ["-", 0, 1, 0, 11, 12, 16, 31, 74, 0, 25], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 0, 196, 0, 210, 8, 196, 0, 1, 0, 35], ["+", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132]] | 8 | 934 | 7 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
long N = long.Parse(str[0]);
long M = long.Parse(str[1]);
long mod = 1000000007;
List<long> list = PrimeFactors(M);
long ans = 1;
while (true) {
... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
long N = long.Parse(str[0]);
long M = long.Parse(str[1]);
long mod = 1000000007;
List<long> list = PrimeFactors(M);
long ans = 1;
while (list.Count >... | [["-", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 196, 0, 52, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 52, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 52, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 12, 203]] | 8 | 426 | 6 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
var N = sc.ReadInt();
var X = sc.ReadInt();
var A = sc.... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
var N = sc.ReadInt();
var X = sc.ReadInt();
var A = sc.... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]] | 8 | 1,137 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var line = Console.ReadLine().Split(' ').Select(Int32.Parse).ToArray();
var H = line[0];
var W = line[1];
var K = line[2];
var dp = new int[H + 1, W];
dp[0, 0] = 1;
for (... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var line = Console.ReadLine().Split(' ').Select(Int32.Parse).ToArray();
var H = line[0];
var W = line[1];
var K = line[2];
var dp = new int[H + 1, W];
dp[0, 0] = 1;
for (... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 386 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
class Dmondai {
static void Main() {
const long Mod = 1000000007;
var line =
Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray();
var H = line[0];
var W = line[1];
var K = line[2];
//縦棒が一つしかない場合は1
... | using System;
using System.Linq;
using System.Collections.Generic;
class Dmondai {
static void Main() {
const long Mod = 1000000007;
var line =
Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray();
var H = line[0];
var W = line[1];
var K = line[2];
//縦棒が一つしかない場合は1
... | [["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 33], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 652 | 6 |
using System;
class A {
static void Main() {
int i;
var x = Console.ReadLine();
if (x.Length == 3) {
char[] y = x.ToCharArray();
for (i = 2; i < 0; i--) {
Console.Write("{0}", y[i]);
}
} else
Console.Write("{0}", x);
}
} | using System;
class A {
static void Main() {
int i;
var x = Console.ReadLine();
if (x.Length == 3) {
char[] y = x.ToCharArray();
for (i = 2; i >= 0; i--) {
Console.Write("{0}", y[i]);
}
} else
Console.Write("{0}", x);
}
} | [["-", 0, 57, 64, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 57, 64, 196, 0, 7, 15, 16, 17, 20]] | 8 | 88 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sample1 {
class Program {
static void Main(string[] args) {
char[] rts = new char[3];
string str = Console.ReadLine();
if (str.Length == 2) {
Console.WriteLine($"{str}");
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sample1 {
class Program {
static void Main(string[] args) {
char[] rts = new char[3];
string str = Console.ReadLine();
if (str.Length == 2) {
Console.WriteLine($"{str}");
... | [["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 295], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 45], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 46], ["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 62]] | 8 | 143 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var str = ReadLine();
if (str.Length == 2)
WriteLine(2);
else {
var result = "";
for (... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var str = ReadLine();
if (str.Length == 2)
WriteLine(str);
else {
var result = "";
for... | [["-", 64, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 64, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 105 | 2 |
using System;
class Program {
static void Main() {
string r = Console.ReadLine();
int A = int.Parse(r.Split(' ')[0]);
int B = int.Parse(r.Split(' ')[1]);
int X = int.Parse(r.Split(' ')[2]);
for (bool f = true; --X > 1; f = !f) {
if (f) {
B += (A /= 2);
} else {
A += (B ... | using System;
class Program {
static void Main() {
string r = Console.ReadLine();
int A = int.Parse(r.Split(' ')[0]);
int B = int.Parse(r.Split(' ')[1]);
int X = int.Parse(r.Split(' ')[2]);
for (bool f = true; X-- > 0; f = !f) {
if (f) {
B += (A /= 2);
} else {
A += (B ... | [["-", 8, 196, 0, 7, 15, 16, 31, 241, 0, 68], ["+", 8, 196, 0, 7, 15, 16, 31, 223, 0, 68], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 149 | 4 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | [["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 1,242 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var A = sc.ReadLongArray(N);
Array.Sort(A);
var l = 0;
var r = N - 1;
var list = new LinkedList<long>();
for (int i = 0; i < N; i++) {
long max ... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var A = sc.ReadLongArray(N);
Array.Sort(A);
var l = 0;
var r = N - 1;
var list = new LinkedList<long>();
for (int i = 0; i < N; i++) {
long max ... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 200, 0, 212, 0, 214, 205, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 214, 205, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 214, 205, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22]] | 8 | 1,374 | 6 |
using System;
using System.CodeDom;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace AtCoder {
public static class Ex {
public static List<string> FastSort(this List<string> s) {
s.Sort(StringComparer.OrdinalIgnoreCase);
return s.ToList();
}
public static void yesno(this bo... | using System;
using System.CodeDom;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace AtCoder {
public static class Ex {
public static List<string> FastSort(this List<string> s) {
s.Sort(StringComparer.OrdinalIgnoreCase);
return s.ToList();
}
public static void yesno(this bo... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 2,166 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Library;
using static Library.Input;
namespace AtCoderTemplate {
class ProgramF {
static void Main() {
int n = NextInt;
int comb = 3, size = 3;
while (comb < n)
comb += size++;
if (co... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Library;
using static Library.Input;
namespace AtCoderTemplate {
class ProgramF {
static void Main() {
int n = NextInt;
int comb = 1, size = 2;
while (comb < n)
comb += size++;
if (co... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 1,638 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
/**
* 部分集合の組が共通の要素を一つもつので、共通要素から元の部分集合を構成する。
* S1,S2 => A
* S1,S3 => B
* ならば、S1 = {A,B}ということがわかる。
* また、kC2個のパターンが存在しており、それはNと一致していなければならない。
* したがって、以下の方針で問題を解くことが可能となる。
* ①N=kC2からkを確定する。
* ②kC2の組み合わせを網羅して、共通要素を... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
/**
* 部分集合の組が共通の要素を一つもつので、共通要素から元の部分集合を構成する。
* S1,S2 => A
* S1,S3 => B
* ならば、S1 = {A,B}ということがわかる。
* また、kC2個のパターンが存在しており、それはNと一致していなければならない。
* したがって、以下の方針で問題を解くことが可能となる。
* ①N=kC2からkを確定する。
* ②kC2の組み合わせを網羅して、共通要素を... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 512 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
class Dmondai {
static void Main() {
var N = Int32.Parse(Console.ReadLine());
var k = 0;
for (int i = 0; i <= N; ++i)
if (i * (i - 1) == 2 * N)
k = i;
if (k == 0) {
Console.WriteLine("No");
return;
}
... | using System;
using System.Linq;
using System.Collections.Generic;
class Dmondai {
static void Main() {
var N = Int32.Parse(Console.ReadLine());
var k = 0;
for (int i = 0; i <= N; ++i)
if (i * (i + 1) == 2 * N)
k = i + 1;
if (k == 0) {
Console.WriteLine("No");
return;
}
... | [["-", 15, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["+", 8, 57, 64, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 57, 64, 1, 0, 11, 12, 16, 12, 203]] | 8 | 339 | 4 |
using System;
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine());
long a = 0, b = 0;
for (long i = 2; i <= n; i++) {
if (i * (i + 1) == n * 2) {
a = i;
b = i + 1;
break;
}
}
if (a == 0) {
Console.WriteLine("No");
} else {
... | using System;
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine());
long a = 0, b = 0;
for (long i = 0; i <= n; i++) {
if (i * (i + 1) == n * 2) {
a = i;
b = i + 1;
break;
}
}
if (a == 0) {
Console.WriteLine("No");
} else {
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 257 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using System.Runtime.InteropServices;
using static System.Math;
using stat... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22]] | 8 | 1,163 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
#endif
#en... | using System;
using System.Collections.Generic;
using System.Linq;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
#endif
#en... | [["-", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 31, 203]] | 8 | 2,155 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
using System.Threading.Tasks;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
S... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
using System.Threading.Tasks;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
S... | [["-", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22]] | 8 | 661 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
// using System.Text;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
// using System.Numerics;
// using static System.Math;
using pair = Pair<int, int>;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
// using System.Text;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
// using System.Numerics;
// using static System.Math;
using pair = Pair<int, int>;
... | [["-", 0, 28, 0, 16, 31, 16, 12, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 16, 12, 204, 205, 22], ["-", 31, 16, 31, 16, 31, 16, 12, 204, 205, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 204, 205, 22], ["-", 0, 16, 31, 16, 31, 16, 12, 204, 205, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 204, 205, 22]] | 8 | 971 | 8 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static ABC122_20200406A.Input;
namespace ABC122_20200406A {
static class Input {
private static Func<string, T[]>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray();
private static Func<string, T> Convert<T>() {... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static ABC122_20200406A.Input;
namespace ABC122_20200406A {
static class Input {
private static Func<string, T[]>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray();
private static Func<string, T> Convert<T>() {... | [["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24]] | 8 | 1,427 | 5 |
using System;
namespace okayama__112 {
class Program {
static void Main(string[] args)
{
int n;
n = int.Parse(Console.ReadLine());
switch (n) {
case 1:
Console.WriteLine("Hell World");
break;
case 2:
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadL... | using System;
namespace okayama__112 {
class Program {
static void Main(string[] args)
{
int n;
n = int.Parse(Console.ReadLine());
switch (n) {
case 1:
Console.WriteLine("Hello World");
break;
case 2:
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.Read... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 100 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.NothingToLearn {
class ABC112_A {
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.NothingToLearn {
class ABC112_A {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 328 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC112A {
class Program {
static void Main(string[] args) {
int A, B, N, x;
N = int.Parse(Console.ReadLine());
if (N == 1)
//{ A = int.Parse(Console.ReadLine());
/... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC112A {
class Program {
static void Main(string[] args) {
int A, B, N;
N = int.Parse(Console.ReadLine());
if (N == 1)
Console.WriteLine("Hello World");
else
{
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 130 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Runtime.CompilerServices;
using static System.Console;
using static System.Math;
using static Ex;
using static Util;
using static IO_Z;
class AC {
/*---------------------------------------------------... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Runtime.CompilerServices;
using static System.Console;
using static System.Math;
using static Ex;
using static Util;
using static IO_Z;
class AC {
/*---------------------------------------------------... | [["-", 0, 1, 0, 213, 63, 214, 205, 5, 0, 222], ["+", 0, 1, 0, 213, 63, 214, 205, 5, 0, 222]] | 8 | 1,716 | 2 |
using System;
using System.IO;
using System.Linq;
using System.Runtime;
using System.Reflection;
using System.Diagnostics;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.RegularExpressions;
using static System.Math;
class P {
static void Main() {
int... | using System;
using System.IO;
using System.Linq;
using System.Runtime;
using System.Reflection;
using System.Diagnostics;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.RegularExpressions;
using static System.Math;
class P {
static void Main() {
int... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 131 | 2 |
//#define TEST
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Diagnostics;
class p {
static void Main() {
int[] nx = Console.ReadLine().Split().Select(int.Parse).ToArray();
int n = nx[0], x = nx[1];
int[] a = Console.ReadLine().Split().Select(int.Parse).... | //#define TEST
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Diagnostics;
class p {
static void Main() {
int[] nx = Console.ReadLine().Split().Select(int.Parse).ToArray();
int n = nx[0], x = nx[1];
long[] a = Console.ReadLine().Split().Select(long.Parse... | [["-", 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, 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,... | 8 | 219 | 7 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AtCoder.AGC027 {
class Program {
static void Main() {
var sc = new Scanner();
var n = sc.Nextint();
var x = sc.Nextint... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace AtCoder.AGC027 {
class Program {
static void Main() {
var sc = new Scanner();
var n = sc.Nextint();
var x = sc.NextLon... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 596 | 6 |
using System;
class Program {
static void Main() {
int[] s = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
int[] a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
Array.Sort(a);
int ans = 0;
for (int i = 0; i < s[0]; i++) {
s[1] -= a[i];
if (s[1] > -1) {
a... | using System;
class Program {
static void Main() {
long[] s = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
long[] a = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
Array.Sort(a);
long ans = 0;
for (long i = 0; i < s[0]; i++) {
s[1] -= a[i];
if (s[1] > -1) {
... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 1... | 8 | 143 | 12 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using static Template;
using static System.Console;
using static System.Convert;
using static System.Math;
using Pi = Pair<int, int>;
using Number = System.Int64;
class Solver {... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using static Template;
using static System.Console;
using static System.Convert;
using static System.Math;
using Pi = Pair<int, int>;
using Number = System.Int64;
class Solver {... | [["+", 3, 4, 0, 28, 0, 218, 8, 241, 0, 111]] | 8 | 1,845 | 1 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC109A {
class Program {
static void Main(string[] args) {
var word = Console.ReadLine().Split();
int a = int.Parse(word[0]);
int b = int.Parse(word[1]);
var max = new int[3... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC109A {
class Program {
static void Main(string[] args) {
var word = Console.ReadLine().Split();
int a = int.Parse(word[0]);
int b = int.Parse(word[1]);
var max = new int[3... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 188 | 8 |
using System;
namespace AtCoder.ABC110 {
public class A {
public static void Solve() {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
Console.WriteLine((a * b) % 2 == 0 ? "Yes" : "No");
}
}
}
namespace AtCoder {
class Prog... | using System;
namespace AtCoder.ABC110 {
public class A {
public static void Solve() {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
Console.WriteLine((a * b) % 2 == 0 ? "No" : "Yes");
}
}
}
namespace AtCoder {
class Prog... | [["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 116 | 4 |
using System;
class Program {
static void Main() {
var sl = Console.ReadLine().Split(' ');
var a = int.Parse(sl[0]);
var b = int.Parse(sl[0]);
for (var c = 1; c <= 3; c++)
if ((a * b * c) % 2 != 0) {
Console.WriteLine("Yes");
return;
}
Console.WriteLine("No");
}
} | using System;
class Program {
static void Main() {
var sl = Console.ReadLine().Split(' ');
var a = int.Parse(sl[0]);
var b = int.Parse(sl[1]);
for (var c = 1; c <= 3; c++)
if ((a * b * c) % 2 != 0) {
Console.WriteLine("Yes");
return;
}
Console.WriteLine("No");
}
} | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 106 | 2 |
using System;
namespace ABC333A {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var A = int.Parse(input[0]);
var B = int.Parse(input[1]);
var flag = false;
for (int C = 1; C < 4; C++) {
if ((A * B * C) % 2 != 0) {
flag = true;
}... | using System;
namespace ABC333A {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var A = int.Parse(input[0]);
var B = int.Parse(input[1]);
var flag = false;
for (int C = 1; C < 4; C++) {
if ((A * B * C) % 2 != 0) {
flag = true;
}... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 132 | 4 |
using System;
class MainClass {
public static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
string ans = "Yes";
if (a % 2 == 0 && b % 2 == 0) {
ans = "No";
}
Console.WriteLine(ans);
}
}
| using System;
class MainClass {
public static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
string ans = "Yes";
if (a % 2 == 0 || b % 2 == 0) {
ans = "No";
}
Console.WriteLine(ans);
}
}
| [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106]] | 8 | 99 | 2 |
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var a = int.Parse(line[0]);
var b = int.Parse(line[1]);
if (a * b % 2 == 0)
Console.WriteLine("No");
else
Console.WriteLine("YES");
}
}
| using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var a = int.Parse(line[0]);
var b = int.Parse(line[1]);
if (a * b % 2 == 0)
Console.WriteLine("No");
else
Console.WriteLine("Yes");
}
}
| [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 93 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
List<string> list = new List<string>();
int dameflg = 0;
for (int i = 0; i < N; i++) {
list.Add(Console.ReadLine()... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
List<string> list = new List<string>();
int dameflg = 0;
for (int i = 0; i < N; i++) {
list.Add(Console.ReadLine()... | [["-", 12, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 12, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["-", 12, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 12, 16, 12, 213, 3, 4, 0, 28, 0, 203]] | 8 | 198 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.