buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
using System; namespace Atc_0026 { class Program { static void Main(string[] args) { var A = int.Parse(Console.ReadLine()); var B = int.Parse(Console.ReadLine()); if (A != 1 && B != 1) { Console.WriteLine(1); } if (A != 2 && B != 2) { Console.WriteLine(2); } if (A != 2 && ...
using System; namespace Atc_0026 { class Program { static void Main(string[] args) { var A = int.Parse(Console.ReadLine()); var B = int.Parse(Console.ReadLine()); if (A != 1 && B != 1) { Console.WriteLine(1); } if (A != 2 && B != 2) { Console.WriteLine(2); } if (A != 3 && ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
107
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { for (int i = 1; i <= 3; i++) { if (A == i && B == i) { Console.W...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { for (int i = 1; i <= 3; i++) { if (A != i && B != i) { Console.W...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79]]
8
340
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main() { var n = int.Parse(Console.ReadLine()); var tmp = Console.ReadLine().Split(' '); var s = tmp[0]; var t = tmp[1]; var result = string.Empty; for (int i = 0; i < n; i++) {...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main() { var n = int.Parse(Console.ReadLine()); var tmp = Console.ReadLine().Split(' '); var s = tmp[0]; var t = tmp[1]; var result = string.Empty; for (int i = 0; i < n; i++) {...
[["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107]]
8
176
using System; namespace ABC148B { class Program { static void Main(string[] args) { string str1 = Console.ReadLine(); int n = int.Parse(str1); string[] str2 = Console.ReadLine().Split(' '); char[] c1 = str2[0].ToCharArray(); char[] c2 = str2[1].ToCharArray(); for (int i = 0; i < n; i++) { ...
using System; namespace ABC148B { class Program { static void Main(string[] args) { string str1 = Console.ReadLine(); int n = int.Parse(str1); string[] str2 = Console.ReadLine().Split(' '); char[] c1 = str2[0].ToCharArray(); char[] c2 = str2[1].ToCharArray(); for (int i = 0; i < n; i++) { ...
[["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]]
8
127
using System; using System.Collections.Generic; using System.Linq; namespace CountABC { class Program { static void Main(string[] args) { int lettersAmount = int.Parse(Console.ReadLine()); List<char> lettersInput = Console.ReadLine().ToList(); List<string> abcSentences = new List<string>(); int abc...
using System; using System.Collections.Generic; using System.Linq; namespace CountABC { class Program { static void Main(string[] args) { int lettersAmount = int.Parse(Console.ReadLine()); List<char> lettersInput = Console.ReadLine().ToList(); List<string> abcSentences = new List<string>(); int abc...
[["+", 15, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 15, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17,...
8
187
using System; using System.Linq; namespace b { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var s = Console.ReadLine().Trim(); var c = 0; var i = 0; while (true) { if (i + 3 < s.Length) { var sb = s.Substring(i, 3); if (sb.Equals(...
using System; using System.Linq; namespace b { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var s = Console.ReadLine().Trim(); var c = 0; var i = 0; while (true) { if (i + 3 <= s.Length) { var sb = s.Substring(i, 3); if (sb.Equals...
[["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 19]]
8
127
using System; namespace abc150B { class MainClass { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); string temp; int Ans = 0; for (int i = 0; i < N - 3; i++) { temp = S.Substring(i, 3); if (temp == "ABC") Ans = Ans...
using System; namespace abc150B { class MainClass { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); string temp; int Ans = 0; for (int i = 0; i <= N - 3; i++) { temp = S.Substring(i, 3); if (temp == "ABC") Ans = An...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
104
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace CSharp { static class Program { static void Main(string[] args) { ReadString(); string s = ReadString(); int ans = 0; for (int i = 0; i < s.Length - 3; i++) { if (s.Substring(i, 3) == "ABC") ...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace CSharp { static class Program { static void Main(string[] args) { ReadString(); string s = ReadString(); int ans = 0; for (int i = 0; i < s.Length - 2; i++) { if (s.Substring(i, 3) == "ABC") ...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
625
using System; public class AtCoderB { static void Main() { int n = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); int answer = 0; for (int i = 0; i < n - 3; i++) { string str = s.Substring(i, 3); if ("ABC".Equals(str)) { answer++; } } Console.WriteLi...
using System; public class AtCoderB { static void Main() { int n = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); int answer = 0; for (int i = 0; i < n - 2; i++) { string str = s.Substring(i, 3); if ("ABC".Equals(str)) { answer++; } } Console.WriteLi...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
96
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp12 { class Program { static void Main(string[] args) { Console.ReadLine(); var str = Console.ReadLine(); int cnt = 0; int s = 0; while (true) { s = str.In...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp12 { class Program { static void Main(string[] args) { Console.ReadLine(); var str = Console.ReadLine(); int cnt = 0; int s = 0; while (true) { s = str.In...
[["-", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 52, 8, 196, 0, 57, 64, 93, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 29]]
8
179
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace CP { class Atria { static void Main(string[] args) { int n = int.Parse(ReadLine()); string s = ReadLine(); int ans = 0; for (int i = ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace CP { class Atria { static void Main(string[] args) { int n = int.Parse(ReadLine()); string s = ReadLine(); int ans = 0; for (int i =...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
123
using System; namespace B { internal class Program { public static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var S = Console.ReadLine().ToCharArray(); int count = 0; for (int i = 0; i < N; i++) { if (S[i] == 'A' && i < N - 3) { if (S[i + 1] == 'B') { i...
using System; namespace B { internal class Program { public static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var S = Console.ReadLine().ToCharArray(); int count = 0; for (int i = 0; i < N; i++) { if (S[i] == 'A' && i <= N - 3) { if (S[i + 1] == 'B') { ...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19]]
8
131
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { struct mint : IEquatable<mint> { // static uint mod = 998244353; static uint mod = 1000000007; uint _v; public mint(long v) : this((uint)(v % mod + mod)) {} private mint(uint v) { _v = v < mod ?...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { struct mint : IEquatable<mint> { // static uint mod = 998244353; static uint mod = 1000000007; uint _v; public mint(long v) : this((uint)(v % mod + mod)) {} private mint(uint v) { _v = v < mod ?...
[["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 252, 0, 104], ["+", 64, 196, 0, 1, 0, 11, 12, 252, 0, 253], ["+", 75, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
3,519
using System; using System.Collections.Generic; using System.Linq; using static Input; using NX = System.Int64; public class Prog { public struct Pair { public int x, y; public Pair(int a, int b) { y = a; x = b; } } public static void Solve() { int N = NextInt(); string s = NextSt...
using System; using System.Collections.Generic; using System.Linq; using static Input; using NX = System.Int64; public class Prog { public struct Pair { public int x, y; public Pair(int a, int b) { y = a; x = b; } } public static void Solve() { int N = NextInt(); string s = NextSt...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
603
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; class Program { static void Main(string[] args) { new Program().Calc(); } Scanner cin; public Program() {} bool chmax<T>(ref T a, T b) where T : IComparable<...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; class Program { static void Main(string[] args) { new Program().Calc(); } Scanner cin; public Program() {} bool chmax<T>(ref T a, T b) where T : IComparable<...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
638
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; class Program { static void Main(string[] args) { var wrong_answer = new wrong_answer(); wrong_answer.Solve(); } } public class wrong_answer { const int INF = 1 << 3...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; class Program { static void Main(string[] args) { var wrong_answer = new wrong_answer(); wrong_answer.Solve(); } } public class wrong_answer { const int INF = 1 << 3...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
914
using System; namespace ABC150B { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var S = Console.ReadLine(); var count = 0; for (var i = 0; i < N - 3; i++) { if (S.Substring(i, 3) == "ABC") { ++count; } } System.Console.WriteLine(...
using System; namespace ABC150B { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var S = Console.ReadLine(); var count = 0; for (var i = 0; i < N - 2; i++) { if (S.Substring(i, 3) == "ABC") { ++count; } } System.Console.WriteLine(...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
107
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace MyProject { class Program { static void Main(string[] args) { #if Local var sw = new Stopwatch(); sw.Start(); Console.SetIn(new StreamReader("input.in")); #endif var solver = new S...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace MyProject { class Program { static void Main(string[] args) { #if Local var sw = new Stopwatch(); sw.Start(); Console.SetIn(new StreamReader("input.in")); #endif var solver = new S...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
215
using System; class ProgramB { static void Main(string[] args) { //入力 string input = Console.ReadLine(); long n = long.Parse(input); string s = Console.ReadLine(); long count = 0; for (int i = 0; i < n - 2; i++) { if (s[i] == 'A' && s[i + 1] == 'B' && s[i + 2] == 'C') { count++...
using System; class ProgramB { static void Main(string[] args) { //入力 string input = Console.ReadLine(); long n = long.Parse(input); string s = Console.ReadLine(); long count = 0; for (int i = 0; i < n - 2; i++) { if (s[i] == 'A' && s[i + 1] == 'B' && s[i + 2] == 'C') { count++...
[["-", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72]]
8
121
using System; public class Program { public void Solve() { var sc = new Scanner(); int n = sc.NextInt(); string s = sc.Next(); int cnt = 0; for (int i = 0; i < s.Length - 3; i++) { if (s[i] == 'A' && s[i + 1] == 'B' && s[i + 2] == 'C') { cnt++; } } Console.WriteLine(c...
using System; public class Program { public void Solve() { var sc = new Scanner(); int n = sc.NextInt(); string s = sc.Next(); int cnt = 0; for (int i = 0; i + 2 < s.Length; i++) { if (s[i] == 'A' && s[i + 1] == 'B' && s[i + 2] == 'C') { cnt++; } } Console.WriteLine(c...
[["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
549
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { var n = ReadInt(); var s = Read(); var ans = 0; for (int i = 0; i <...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { var n = ReadInt(); var s = Read(); var ans = 0; for (int i = 0; i <...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
312
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var S = sc.ReadStr(); var ans = 0; for (int i = 0; i < N - 3; i++) { var s = S.Substring(i, 3); if (s == "ABC") ans++; } Console.Write...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var S = sc.ReadStr(); var ans = 0; for (int i = 0; i < N - 2; i++) { var s = S.Substring(i, 3); if (s == "ABC") ans++; } Console.Write...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
1,072
using System; using System.Collections.Generic; namespace cswork { class Program { public Program() {} Scanner cin; const int MAXIN = 1024; bool[] used = new bool[MAXIN]; int[] perm = new int[MAXIN]; List<string> permList = new List<string>(); void Omame() { cin = new Scanner(); int n = cin.nex...
using System; using System.Collections.Generic; namespace cswork { class Program { public Program() {} Scanner cin; const int MAXIN = 1024; bool[] used = new bool[MAXIN]; int[] perm = new int[MAXIN]; List<string> permList = new List<string>(); void Omame() { cin = new Scanner(); int n = cin.nex...
[["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95]]
8
611
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace CP { class Atria { static void Main(string[] args) { int n = int.Parse(ReadLine()); int[] p = ReadLine().Split(' ').Select(int.Parse).ToArra...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace CP { class Atria { static void Main(string[] args) { int n = int.Parse(ReadLine()); int[] p = ReadLine().Split(' ').Select(int.Parse).ToArra...
[["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]]
8
471
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ABC150C { static public int numberOfRandom...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ABC150C { static public int numberOfRandom...
[["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95]]
8
1,802
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>; class Solver { public void Solve(Scanner ...
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>; class Solver { public void Solve(Scanner ...
[["+", 12, 16, 12, 23, 0, 16, 12, 74, 0, 24], ["+", 12, 16, 12, 23, 0, 16, 12, 74, 39, 22], ["+", 12, 16, 12, 23, 0, 16, 12, 74, 0, 25]]
8
2,236
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0035 { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var result = s.Split(' ')[0] + s.Split(' ')[1]; Console.WriteLine(result); } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0035 { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var result = s.Split(' ')[1] + s.Split(' ')[0]; Console.WriteLine(result); } } }
[["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 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
89
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { var inputArray = retreiveStringArray(); var inputCount = 2; // 不正な入力は処理しない if (inputArray.Length != inputCount) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { var inputArray = retreiveStringArray(); var inputCount = 2; // 不正な入力は処理しない if (inputArray.Length != inputCount) ...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]]
8
293
using System; namespace ConsoleApp11 { class MainClass { public static void Main() { string[] S = Console.ReadLine().Split(); string A = S[0]; string B = S[1]; string R; R = A + B; Console.WriteLine(R); } } }
using System; namespace ConsoleApp11 { class MainClass { public static void Main() { string[] S = Console.ReadLine().Split(); string A = S[0]; string B = S[1]; string R; R = B + A; Console.WriteLine(R); } } }
[["-", 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
66
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace cswork { class Program { class Scanner { string[] s; int i; char[] cs = new char[] { ' ' }; public Scanner() { s = new string[0]; i = 0; } public string next() { if (i < s.Leng...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace cswork { class Program { class Scanner { string[] s; int i; char[] cs = new char[] { ' ' }; public Scanner() { s = new string[0]; i = 0; } public string next() { if (i < s.Leng...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
528
using System; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().ToArray(); Console.WriteLine(input[1] + " " + input[0]); } } }
using System; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().ToArray(); Console.WriteLine(input[1] + input[0]); } } }
[["-", 0, 28, 0, 16, 31, 16, 12, 5, 0, 62], ["-", 0, 28, 0, 16, 31, 16, 12, 5, 0, 222], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]]
8
63
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderCs { class Program { static void Main() { Console.WriteLine(string.Concat(Console.ReadLine().Split(' '))); } } }
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderCs { class Program { static void Main() { Console.WriteLine(string.Concat(Console.ReadLine().Split(' ').Reverse())); } } }
[["+", 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], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
53
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace A { class Program { public static void Main(string[] args) { var s = ReadLineStringSplit(); Console.WriteLine(s[0] + s[1]); ReadLine(); } /// <summary> /// コンビネーション /// <...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace A { class Program { public static void Main(string[] args) { var s = ReadLineStringSplit(); Console.WriteLine(s[1] + s[0]); ReadLine(); } /// <summary> /// コンビネーション /// <...
[["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 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
543
using System; class ABC149_A { static void Main(string[] args) { string[] str1 = Console.ReadLine().Split(' '); string str2 = str1[0] + str1[1]; Console.WriteLine(str2); } }
using System; class ABC149_A { static void Main(string[] args) { string[] str1 = Console.ReadLine().Split(' '); string str2 = str1[1] + str1[0]; Console.WriteLine(str2); } }
[["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 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
56
using System; namespace ABC149 { public class MainClass { public static void Main(string[] args) { string[] inp = Console.ReadLine().Split(' '); Console.WriteLine(inp[0] + inp[1]); } } }
using System; namespace ABC149 { public class MainClass { public static void Main(string[] args) { string[] inp = Console.ReadLine().Split(' '); Console.WriteLine(inp[1] + inp[0]); } } }
[["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 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
57
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder { public class ABC { static readonly int mod = 1000000007; // 10^9+7 static void Main(string[] args) { Console.SetOut( new StreamWriter(Console...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder { public class ABC { static readonly int mod = 1000000007; // 10^9+7 static void Main(string[] args) { Console.SetOut( new StreamWriter(Console...
[["+", 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], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
120
using System; namespace Strings { class Program { static void Main(string[] args) { var input = Console.ReadLine(); var inputs = input.Split(); Console.WriteLine(inputs[0] + inputs[1]); } } }
using System; namespace Strings { class Program { static void Main(string[] args) { var input = Console.ReadLine(); var inputs = input.Split(); Console.WriteLine(inputs[1] + inputs[0]); } } }
[["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 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
55
using System; namespace AtCoder { class Program { static void Main() { string[] input = Console.ReadLine().Split(' '); Console.WriteLine(input[0] + input[1]); } } }
using System; namespace AtCoder { class Program { static void Main() { string[] input = Console.ReadLine().Split(' '); Console.WriteLine(input[1] + input[0]); } } }
[["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 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
51
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { string[] S = Console.ReadLine().Split(' '); Console.WriteLine(S[0] + S[1]); } }
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { string[] S = Console.ReadLine().Split(' '); Console.WriteLine(S[1] + S[0]); } }
[["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 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
59
using System; using System.Linq; namespace AtCoder_Begginer_Contest1 { class Program { static void Main(string[] args) { string[] ST = Console.ReadLine().Split(); string S = ST[0]; string T = ST[1]; string ans = S + T; Console.WriteLine(ans); } } }
using System; using System.Linq; namespace AtCoder_Begginer_Contest1 { class Program { static void Main(string[] args) { string[] ST = Console.ReadLine().Split(); string S = ST[0]; string T = ST[1]; string ans = T + S; Console.WriteLine(ans); } } }
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]]
8
72
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var list = Console.ReadLine().Split(' '); Console.WriteLine(list[0] + list[1]); } } }
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var list = Console.ReadLine().Split(' '); Console.WriteLine(list[1] + list[0]); } } }
[["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 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
53
using System; using System.IO; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Linq; namespace atcoder_past_problem { class Program { static void Main(string[] args) { new Program().Solve(new Input(Console.In)); } public void Solve(Input input) { var a = input.Read; ...
using System; using System.IO; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Linq; namespace atcoder_past_problem { class Program { static void Main(string[] args) { new Program().Solve(new Input(Console.In)); } public void Solve(Input input) { var a = input.Read; ...
[["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 22], ["+", 3, 4, 0, 28, 0, 283, 0, 284, 0, 22]]
8
342
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var res = new List<int>(); int i = 0; int idx =...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var res = new List<int>(); int i = 0; int idx =...
[["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
195
using System; namespace AtCoder { class Program { static void Main() { int n = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(' '); int search_index = 1; int broken_count = 0; int check_count = 0; for (int i = 0; i < input.Length; i++) { if (int.Parse(input[i]...
using System; namespace AtCoder { class Program { static void Main() { int n = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(' '); int search_index = 1; int broken_count = 0; int check_count = 0; for (int i = 0; i < input.Length; i++) { if (int.Parse(input[i]...
[["+", 8, 196, 0, 57, 15, 16, 12, 223, 0, 29], ["-", 0, 213, 3, 4, 0, 28, 0, 241, 0, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 241, 0, 203], ["+", 0, 57, 75, 57, 15, 16, 12, 223, 0, 29]]
8
153
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class Program { static void Main() { string line = Console.ReadLine().Trim(); string[] lineRecord = Console.ReadLine().Trim().Split(' '); var list = new List<int>(); foreach (var item in lineRecord) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class Program { static void Main() { string line = Console.ReadLine().Trim(); string[] lineRecord = Console.ReadLine().Trim().Split(' '); var list = new List<int>(); foreach (var item in lineRecord) { ...
[["+", 0, 195, 8, 196, 0, 57, 15, 241, 0, 111]]
8
184
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 a = Console.ReadLine().Split().Select(int.Parse).ToArray(); var ans = 0; var index = 0; var max = a.Max(); 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 a = Console.ReadLine().Split().Select(int.Parse).ToArray(); var ans = 0; var index = 0; var max = a.Max(); var...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
207
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush ...
[["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 85]]
8
1,178
using System; namespace GraphTheory { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); if (N % 2 != 0) { Console.WriteLine(0); return; } long m = 10; long sum = 0; while (m < N) { sum += N / m; m *= 5; } Console.Write...
using System; namespace GraphTheory { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); if (N % 2 != 0) { Console.WriteLine(0); return; } long m = 10; long sum = 0; while (m <= N) { sum += N / m; m *= 5; } Console.Writ...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
90
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Win32; using static System.Console; public static class Program { private static readonly long INF = long.MaxValue / 2; private static readonly int MOD = 1000000007; struct Pair<T, U> : IComparable<Pair<T, U>> ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Win32; using static System.Console; public static class Program { private static readonly long INF = long.MaxValue / 2; private static readonly int MOD = 1000000007; struct Pair<T, U> : IComparable<Pair<T, U>> ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79]]
8
1,747
using System; using System.Collections; using System.Collections.Generic; using static Exter; using System.Linq; using System.Numerics; #if DEBUG #else using console = System.Console; #endif public class App { public static void Main(string[] args) { long n = long.Parse(console.ReadLine()); if (n % 2 == 1) {...
using System; using System.Collections; using System.Collections.Generic; using static Exter; using System.Linq; using System.Numerics; #if DEBUG #else using console = System.Console; #endif public class App { public static void Main(string[] args) { long n = long.Parse(console.ReadLine()); if (n % 2 == 1) {...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
1,620
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { #if DEBUG // MyDebugger.MakeTestCase("../TextFile2.txt"); return; MyDebugger.Test(process, "../TextFile1.txt"); #else object r...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { #if DEBUG // MyDebugger.MakeTestCase("../TextFile2.txt"); return; MyDebugger.Test(process, "../TextFile1.txt"); #else object r...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
191
using System; using System.Linq; namespace ABC148 { class E { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); if (N % 2 != 0) { Console.WriteLine(0); return; } long res = 0; N /= 2; while (5 < N) { res += N / 5; N /= 5; } Console.Wri...
using System; using System.Linq; namespace ABC148 { class E { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); if (N % 2 != 0) { Console.WriteLine(0); return; } long res = 0; N /= 2; while (5 <= N) { res += N / 5; N /= 5; } Console.Wr...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
94
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; namespace AtCoder { public class MainClass { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput(), Console.Out.Encoding); sw.AutoFlush = false; ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; namespace AtCoder { public class MainClass { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput(), Console.Out.Encoding); sw.AutoFlush = false; ...
[["-", 0, 57, 64, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 57, 64, 196, 0, 7, 15, 16, 17, 19]]
8
1,080
using System; using System.Collections.Generic; using System.Linq; namespace template { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } public void Solve(ConsoleInput cin) { var n = cin.ReadLong; var cnt = 0L; if (n % 2...
using System; using System.Collections.Generic; using System.Linq; namespace template { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } public void Solve(ConsoleInput cin) { var n = cin.ReadLong; var cnt = 0L; if (n % 2...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]]
8
462
using System; class E { static void Main() { var n = long.Parse(Console.ReadLine()); if (n % 2 == 1) { Console.WriteLine(0); return; } long r = 0, t = 1; while (t < n) r += n / (t *= 10); Console.WriteLine(r); } }
using System; class E { static void Main() { var n = long.Parse(Console.ReadLine()); if (n % 2 == 1) { Console.WriteLine(0); return; } long r = 0, t = 2; while (t < n) r += n / (t *= 5); Console.WriteLine(r); } }
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 11, 12, 16, 12, 23, 0, 11, 12, 203], ["+", 0, 11, 12, 16, 12, 23, 0, 11, 12, 203]]
8
79
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Console; namespace AtCoder_1 { class Program { static void Main(string[] args) { var n = CinL(); if (n % 2 == 1) { Cout(0); }...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Console; namespace AtCoder_1 { class Program { static void Main(string[] args) { var n = CinL(); if (n % 2 == 1) { Cout(0); }...
[["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 17, 48], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25]]
8
1,060
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { struct mint : IEquatable<mint> { // static uint mod = 998244353; static uint mod = 1000000007; uint _v; public mint(long v) : this((uint)(v % mod + mod)) {} private mint(uint v) { _v = v < mod ?...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { struct mint : IEquatable<mint> { // static uint mod = 998244353; static uint mod = 1000000007; uint _v; public mint(long v) : this((uint)(v % mod + mod)) {} private mint(uint v) { _v = v < mod ?...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
3,451
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var wrong_answer = new wrong_answer(); wrong_answer.Solve(); } } public class wrong_answer { const int INF = 1 << 30; const long INFL = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var wrong_answer = new wrong_answer(); wrong_answer.Solve(); } } public class wrong_answer { const int INF = 1 << 30; const long INFL = ...
[["-", 75, 57, 75, 196, 0, 7, 15, 16, 17, 18], ["+", 75, 57, 75, 196, 0, 7, 15, 16, 17, 19]]
8
905
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC148F { class Program { static void Main(string[] args) { var N = RInt; var u = RInt - 1; var v = RInt - 1; List<int>[] edges = new List...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC148F { class Program { static void Main(string[] args) { var N = RInt; var u = RInt - 1; var v = RInt - 1; List<int>[] edges = new List...
[["-", 12, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 17, 72], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 12, 203]]
8
1,539
using System; using System.Linq; class A { static void Main() { int[] Ar = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); if (Ar.Sum() > 22) Console.WriteLine("bust"); else Console.WriteLine("win"); } }
using System; using System.Linq; class A { static void Main() { int[] Ar = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); if (Ar.Sum() > 21) Console.WriteLine("bust"); else Console.WriteLine("win"); } }
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]]
8
72
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC_147a { class Program { static void Main(string[] args) { int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); if (input.Sum() <= 21) { Console.WriteLine...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC_147a { class Program { static void Main(string[] args) { int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); if (input.Sum() <= 21) { Console.WriteLine...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
112
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { class Program { static void Main(string[] args) { var str = Console.ReadLine().Split(' '); int a1 = int.Parse(str[0]); ...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { class Program { static void Main(string[] args) { var str = Console.ReadLine().Split(' '); int a1 = int.Parse(str[0]); ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
144
using System; using System.Collections.Generic; using static System.Math; using System.Linq; class DandA { static void Main(string[] args) { int[] aaa = ReadLineIntArray(); if (aaa[0] + aaa[0] + aaa[0] <= 21) { Console.WriteLine("win"); } else { Console.WriteLine("bust"); } } static ...
using System; using System.Collections.Generic; using static System.Math; using System.Linq; class DandA { static void Main(string[] args) { int[] aaa = ReadLineIntArray(); if (aaa[0] + aaa[1] + aaa[2] <= 21) { Console.WriteLine("win"); } else { Console.WriteLine("bust"); } } static ...
[["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
401
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC147A { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int b = int.Parse(str[1]); int c = int.Pa...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC147A { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int b = int.Parse(str[1]); int c = int.Pa...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
148
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
3,878
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { long[] iArray = Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray(); long A = iArray[0]; lon...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { long[] iArray = Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray(); long A = iArray[0]; lon...
[["-", 0, 57, 75, 57, 75, 57, 15, 16, 17, 18], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 17, 19], ["-", 75, 57, 64, 196, 0, 57, 15, 16, 17, 18], ["+", 75, 57, 64, 196, 0, 57, 15, 16, 17, 19]]
8
232
using System; using System.Collections.Generic; using System.Linq; namespace GreedyTakahashi { class Program { static void Main(string[] args) { var abk = Console.ReadLine().Split(); int A = int.Parse(abk[0]); int B = int.Parse(abk[1]); int K = int.Parse(abk[2]); if (K > A) { K -= A; ...
using System; using System.Collections.Generic; using System.Linq; namespace GreedyTakahashi { class Program { static void Main(string[] args) { var abk = Console.ReadLine().Split(); long A = long.Parse(abk[0]); long B = long.Parse(abk[1]); long K = long.Parse(abk[2]); if (K > A) { K -= A;...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
161
using System; namespace ABC149B { class Program { static void Main(string[] args) { int a, b, k; string[] ss = Console.ReadLine().Split(' '); a = int.Parse(ss[0]); b = int.Parse(ss[1]); k = int.Parse(ss[2]); if (a + b <= k) Console.WriteLine("0" + " " + "0"); else if (a + b >= k &&...
using System; namespace ABC149B { class Program { static void Main(string[] args) { double a, b, k; string[] ss = Console.ReadLine().Split(' '); a = double.Parse(ss[0]); b = double.Parse(ss[1]); k = double.Parse(ss[2]); if (a + b <= k) Console.WriteLine("0" + " " + "0"); else if (a...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199]]
8
180
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 ...
[["-", 75, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
201
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var soliver = new Solver(); soliver.Exe(); } } public class Solver { public void Exe() { var p = Console.Read...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var soliver = new Solver(); soliver.Exe(); // Console.ReadLine(); } } public class Solver { public void Exe(...
[["+", 0, 284, 0, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 28, 0, 16, 12, 204, 206, 207, 0, 73]]
8
200
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main() { var tmp = ReadLine(); long a = tmp[0]; long b = tmp[1]; long k = tmp[2]; if (a <= k) { k -= a; a = 0; } else { a -= k; } if (b <= k) { ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main() { var tmp = ReadLine(); long a = tmp[0]; long b = tmp[1]; long k = tmp[2]; if (a <= k) { k -= a; a = 0; } else { a -= k; k = 0; } if (b <...
[["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35]]
8
170
using System; namespace example { class plactis { static void Main() { string line = System.Console.ReadLine(); string[] l = line.Split(' '); long[] data = new long[l.Length]; for (int i = 0; i < l.Length; i++) { data[i] = long.Parse(l[i]); } if ((data[0] + data[1]) - data[2] <= 0) ...
using System; namespace example { class plactis { static void Main() { string line = System.Console.ReadLine(); string[] l = line.Split(' '); long[] data = new long[l.Length]; for (int i = 0; i < l.Length; i++) { data[i] = long.Parse(l[i]); } if ((data[0] + data[1]) - data[2] <= 0) ...
[["+", 0, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]]
8
207
using System; namespace AtCoder { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); long A = long.Parse(str[0]); long B = long.Parse(str[1]); long K = long.Parse(str[2]); if (A >= K) A = A - K; else { K = K - A; B = B - K; ...
using System; namespace AtCoder { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); long A = long.Parse(str[0]); long B = long.Parse(str[1]); long K = long.Parse(str[2]); if (A >= K) A = A - K; else { K = K - A; B = B - K; ...
[["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35]]
8
133
using System; namespace B { class Program { static void Main(string[] args) { var s = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var A = s[0]; var B = s[1]; var K = s[2]; if (K < A) { Console.WriteLine("{0} {1}", K - A, B); } else if (A <= K && K < A + B) { Cons...
using System; namespace B { class Program { static void Main(string[] args) { var s = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var A = s[0]; var B = s[1]; var K = s[2]; if (K < A) { Console.WriteLine("{0} {1}", A - K, B); } else if (A <= K && K < A + B) { Cons...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
148
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public static void Main(string[] args) { var p = Input(); var a = p[0].ToLong(); var b = p[1].ToLong(); var k = p[2].ToLong(); if (a - k >= 0) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public static void Main(string[] args) { var p = Input(); var a = p[0].ToLong(); var b = p[1].ToLong(); var k = p[2].ToLong(); if (a - k >= 0) { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
384
using System; using System.Linq; using System.Collections.Generic; using E = System.Linq.Enumerable; public class Program { public static void Main() { var abk = Console.ReadLine().Split().Select(x => long.Parse(x)).ToArray(); var a = abk[0]; var b = abk[1]; var k = abk[2]; Console.WriteLine($"...
using System; using System.Linq; using System.Collections.Generic; using E = System.Linq.Enumerable; public class Program { public static void Main() { var abk = Console.ReadLine().Split().Select(x => long.Parse(x)).ToArray(); var a = abk[0]; var b = abk[1]; var k = abk[2]; Console.WriteLine( ...
[["+", 0, 283, 0, 284, 0, 213, 63, 214, 205, 22], ["+", 0, 283, 0, 284, 0, 213, 63, 214, 0, 131], ["+", 0, 283, 0, 284, 0, 213, 63, 214, 141, 22], ["+", 0, 283, 0, 284, 0, 213, 3, 4, 0, 24], ["+", 0, 284, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 283, 0, 284, 0, 213, 3, 4, 0, 21], ["+", 12, 23, 0, 16, 12, 213, 3, 4, 0, 25...
8
127
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var N = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var A = N[0]; var B = N[1]; var K = N[2]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var N = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var A = N[0]; var B = N[1]; var K = N[2]; ...
[["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296], ["+", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296], ["+", 3, 4, 0, 28, 0, 283, 0, 284, 0, 45], ["+", 3, 4, 0, 28, 0, 283, 0, 284, 0, 22], ["+", 3, 4, 0, 28, 0, 283, 0, 284, 0, 46]]
8
177
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp3 { class Program { static void Main(string[] args) { long[] nums = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); long A = nums[0]; long B...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp3 { class Program { static void Main(string[] args) { long[] nums = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); long A = nums[0]; long B...
[["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296], ["+", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296], ["+", 3, 4, 0, 28, 0, 283, 0, 284, 0, 45], ["+", 3, 4, 0, 28, 0, 283, 0, 284, 0, 22], ["+", 3, 4, 0, 28, 0, 283, 0, 284, 0, 46]]
8
165
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { static void Main(string[] args) { string[] data = Console.ReadLine().Split(' '); ulong a = ulong.Parse(data[0]); ulong b = ulong.Parse(data[1]); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { static void Main(string[] args) { string[] data = Console.ReadLine().Split(' '); long a = long.Parse(data[0]); long b = long.Parse(data[1]); lo...
[["-", 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
195
using System; using System.Linq; namespace AtCoderBeginnerContest149 { class Program { static void Main(string[] args) { var inputs = Console.ReadLine() .Split(' ') .ToList() .Select(x => long.Parse(x)) .ToList(); var a = inp...
using System; using System.Linq; namespace AtCoderBeginnerContest149 { class Program { static void Main(string[] args) { var inputs = Console.ReadLine() .Split(' ') .ToList() .Select(x => long.Parse(x)) .ToList(); var a = inp...
[["-", 0, 28, 0, 16, 31, 16, 12, 252, 0, 104], ["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 62]]
8
160
using System; using System.IO; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Linq; namespace atcoder_past_problem { class Program { static void Main(string[] args) { new Program().Solve(new Input(Console.In)); } public void Solve(Input input) { var a = input.ReadLo...
using System; using System.IO; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Linq; namespace atcoder_past_problem { class Program { static void Main(string[] args) { new Program().Solve(new Input(Console.In)); } public void Solve(Input input) { var a = input.ReadLo...
[["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 75, 196, 0, 37, 0, 38], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 46]]
8
409
using System; using System.Linq; namespace Sample { class Sample { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); bool flg = false; int tmp = N; int i = 0; while (!IsPrime(tmp)) { tmp += i; i++; } Console.WriteLine(tmp); } public static bool IsPri...
using System; using System.Linq; namespace Sample { class Sample { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); bool flg = false; int tmp = N; int i = 0; while (!IsPrime(tmp)) { tmp++; } Console.WriteLine(tmp); } public static bool IsPrime(int num) { ...
[["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 0, 52, 8, 196, 0, 1, 0, 11, 12, 22], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22]]
8
167
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static void Main() { int X = RInt(); int num = X; while (true) { bool frag = true; for (int i = 2; i < Sqrt(X) + 2; i++) { if (num % i ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static void Main() { int X = RInt(); int num = X; while (true) { bool frag = true; for (int i = 2; i <= Sqrt(X); i++) { if (num % i == ...
[["-", 0, 52, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 52, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
735
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC149C { class Program { static void Main(string[] args) { var S = RInt; var pList = PrimeNumbers(100010); for (int i = 0; i < pList.Length; i++) { ...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC149C { class Program { static void Main(string[] args) { var S = RInt; var pList = PrimeNumbers(100010); for (int i = 0; i < pList.Length; i++) { ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
780
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var n = Read().ToInt(); var ans = 0; for (int i = n + 1; i <= 999999; i++) { if (IsP...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var n = Read().ToInt(); var ans = 0; for (int i = n; i <= 999999; i++) { if (IsPrime...
[["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
615
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { #if DEBUG MyDebugger.Test(process, "../TextFile1.txt"); // MyDebugger.Test(process, "../TextFile2.txt"); // MyDebugger.MakeTes...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { #if DEBUG MyDebugger.Test(process, "../TextFile1.txt"); // MyDebugger.Test(process, "../TextFile2.txt"); // MyDebugger.MakeTes...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 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
197
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Net; using System.Net.Mail; using System.Threading.Tasks; namespace ConsoleApp5 { public class Program { // static void SendAll() //{ // Console.WriteLine("Start!!!"); // int count = 0; ...
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Net; using System.Net.Mail; using System.Threading.Tasks; namespace ConsoleApp5 { public class Program { // static void SendAll() //{ // Console.WriteLine("Start!!!"); // int count = 0; ...
[["-", 0, 57, 75, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 57, 75, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35]]
8
196
using System; using System.Linq; namespace Next_Prime { class Program { static void Main(string[] args) { const int MAX_PRIME = 100004; var input = long.Parse(Console.ReadLine()); var primeArray = Enumerable.Repeat<bool>(true, MAX_PRIME + 1).ToArray(); primeArray[0] = false; primeArray[1] = false...
using System; using System.Linq; namespace Next_Prime { class Program { static void Main(string[] args) { const int MAX_PRIME = 100004; var input = long.Parse(Console.ReadLine()); var primeArray = Enumerable.Repeat<bool>(true, MAX_PRIME + 1).ToArray(); primeArray[0] = false; primeArray[1] = false...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18]]
8
160
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace atcorder { class Program { static void Main(string[] args) { string strArray = Console.ReadLine(); int start = Int32.Parse(strArray); while (start <= 100000) { if (IsPrime...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace atcorder { class Program { static void Main(string[] args) { string strArray = Console.ReadLine(); int start = Int32.Parse(strArray); while (start <= 100003) { if (IsPrime...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 12, 203]]
8
181
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp3 { class Program { static void Main(string[] args) { var primes = Primes(10000); var X = int.Parse(Console.ReadLine()); var prime = primes.SkipWhile(x => x < X).First...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp3 { class Program { static void Main(string[] args) { var primes = Primes(100010); var X = int.Parse(Console.ReadLine()); var prime = primes.SkipWhile(x => x < X).Firs...
[["-", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203]]
8
208
using System; using System.Collections.Generic; using System.Linq; namespace PaizaTest { class Program { static void Main(string[] args) { var x = int.Parse(Console.ReadLine()); // 素数を求める var max = 100000; var list = new List<int>(); for (int i = 2; i < max; i++) { if (list.Any(s => i % s...
using System; using System.Collections.Generic; using System.Linq; namespace PaizaTest { class Program { static void Main(string[] args) { var x = int.Parse(Console.ReadLine()); // 素数を求める var max = 110000; var list = new List<int>(); for (int i = 2; i < max; i++) { if (list.Any(s => i % s...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 20]]
8
128
using System; namespace AtCoder { class Program { static void Main() { int x = int.Parse(Console.ReadLine()); int xx = x; int result = 0; bool found = false; while (!found) { int check = 0; for (int i = 1; i < xx; i++) { if (xx % i == 0) { check++; } ...
using System; namespace AtCoder { class Program { static void Main() { int x = int.Parse(Console.ReadLine()); int xx = x; int result = 0; bool found = false; while (!found) { int check = 0; for (int i = 1; i < xx; i++) { if (xx % i == 0) { check++; } ...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
117
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; class Program { static void Main(string[] args) { var wrong_answer = new wrong_answer(); wrong_answer.Solve(); } } public class wrong_answer { const int INF = 1 << 3...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; class Program { static void Main(string[] args) { var wrong_answer = new wrong_answer(); wrong_answer.Solve(); } } public class wrong_answer { const int INF = 1 << 3...
[["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 20]]
8
1,012
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); for (int i = N; i < 100001; i++) { if (Sosu(i)) { Console.WriteLi...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); for (int i = N; i < 1000000; i++) { if (Sosu(i)) { Console.WriteL...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]]
8
178
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { var X = long.Parse(Console.ReadLine()); var syugo = SieveOfEratosthenes(100000).Where(n => n >= X).Min(); Console.WriteLine(syugo); ...
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { var X = long.Parse(Console.ReadLine()); var syugo = SieveOfEratosthenes(100090).Where(n => n >= X).Min(); Console.WriteLine(syugo); ...
[["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203]]
8
265
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { //入力 var arr = arrInt(); var n = arr[0]; var k = arr[1]; arr = arrInt(); string t = crS(); //定義 var win = new char[n]; int sum = 0; for (int i = 0; i < n; i++...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { //入力 var arr = arrInt(); var n = arr[0]; var k = arr[1]; arr = arrInt(); string t = crS(); //定義 var win = new char[n]; int sum = 0; for (int i = 0; i < n; i++...
[["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46]]
8
513
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { // 入力 string[] sS = System.Console.ReadLine().Trim().Split(' '); int iN = int.Parse(sS[0]); int iK = int.Parse(sS[1]); List<ClsJan> lstJan = new List<ClsJan>(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { // 入力 string[] sS = System.Console.ReadLine().Trim().Split(' '); int iN = int.Parse(sS[0]); int iK = int.Parse(sS[1]); List<ClsJan> lstJan = new List<ClsJan>(); ...
[["-", 75, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], ["+", 75, 196, 0, 1, 0, 11, 12, 252, 0, 104], ["+", 75, 196, 0, 1, 0, 11, 12, 252, 0, 253]]
8
599
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace CSharp { static class Program { static void Main(string[] args) { int n, k; ReadInt(out n, out k); int r, s, p; ReadInt(out r, out s, out p); var T = ReadString(); int ans = 0; List<cha...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace CSharp { static class Program { static void Main(string[] args) { int n, k; ReadInt(out n, out k); int r, s, p; ReadInt(out r, out s, out p); var T = ReadString(); int ans = 0; List<cha...
[["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 104], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 44]]
8
826
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ABC149E { static public int numberOfRandom...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ABC149E { static public int numberOfRandom...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25]]
8
5,866
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; namespace V { partial class Solver { public void Solve() { // var n = Read; Write(SolveLong()); // YesNo(SolveBool()); } public long SolveLong() { var n = Read; var m = ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; namespace V { partial class Solver { public void Solve() { // var n = Read; Write(SolveLong()); // YesNo(SolveBool()); } public long SolveLong() { var n = Read; var m = ...
[["-", 0, 57, 75, 1, 0, 11, 12, 16, 17, 33], ["-", 0, 57, 75, 1, 0, 11, 12, 16, 12, 203]]
8
10,354