buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
change_count
int64
0
100
using System; using System.Text; using System.Collections.Generic; using System.Collections; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { var NAB = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); var A = NAB[0]; var B ...
using System; using System.Text; using System.Collections.Generic; using System.Collections; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { var NAB = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); var A = NAB[0]; var B ...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
568
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static ABC120A.Input; namespace ABC120A { static class Input { /// <summary> /// 1行の入力をTに応じてリストに変換する関数を返す /// </summary> static Func<string, List<T>> Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToList(); /// ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static ABC120A.Input; namespace ABC120A { static class Input { /// <summary> /// 1行の入力をTに応じてリストに変換する関数を返す /// </summary> static Func<string, List<T>> Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToList(); /// ...
[["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]]
8
1,465
2
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { public class Solver { public void Solve() { var cin = new Scanner(); var a = cin.nextInt(); var b = cin.nextInt(); var...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { public class Solver { public void Solve() { var cin = new Scanner(); var a = cin.nextInt(); var b = cin.nextInt(); var...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18]]
8
587
2
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { int[] a = Input.ScanIntArray(); Console.WriteLine(Math.Max(a[1] / a[0], a[2])); } } static class Input { static public int ScanInt() { return int.Parse(Console.ReadLine()); } sta...
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { int[] a = Input.ScanIntArray(); Console.WriteLine(Math.Min(a[1] / a[0], a[2])); } } static class Input { static public int ScanInt() { return int.Parse(Console.ReadLine()); } sta...
[["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]]
8
597
2
using System; using System.Collections; 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 }; Cons...
using System; using System.Collections; 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 }; Cons...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20]]
8
1,521
2
using System; namespace ABC120_a { class Program { static void Main(string[] args) { int d; string[] array = Console.ReadLine().Split(' '); int a = int.Parse(array[0]); int b = int.Parse(array[1]); int c = int.Parse(array[2]); d = b / a; if (d > c) { Console.WriteLine(d); } els...
using System; namespace ABC120_a { class Program { static void Main(string[] args) { int d; string[] array = Console.ReadLine().Split(' '); int a = int.Parse(array[0]); int b = int.Parse(array[1]); int c = int.Parse(array[2]); d = b / a; if (d > c) { Console.WriteLine(c); } els...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
113
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC120_A { class Program { static void Main(string[] args) { string[] strs = Console.ReadLine().Split(' '); int a = int.Parse(strs[0]); int b = int.Parse(strs[1]); int c = int...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC120_A { class Program { static void Main(string[] args) { string[] strs = Console.ReadLine().Split(' '); int a = int.Parse(strs[0]); int b = int.Parse(strs[1]); int c = int...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
131
2
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int cost = int.Parse(input[0]); int money = int.Parse(input[1]); int max = int.Parse(input[2]); if (money / cost >= max) Console.WriteLine("4"); else Console.WriteLine(mo...
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int cost = int.Parse(input[0]); int money = int.Parse(input[1]); int max = int.Parse(input[2]); if (money / cost >= max) Console.WriteLine(max); else Console.WriteLine(mo...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 64, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
102
4
using System; using System.Linq; class Program { static void Main() { int ans; int[] input = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray(); if (input[1] / input[0] > input[2]) { ans = input[3]; } else { ans = (input[1] / input[0]); } Console.WriteLine(ans);...
using System; using System.Linq; class Program { static void Main() { int ans; int[] input = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray(); if (input[1] / input[0] > input[2]) { ans = input[2]; } else { ans = (input[1] / input[0]); } Console.WriteLine(ans);...
[["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203]]
8
109
2
using System; using System.Collections.Generic; using System.Linq; namespace CompetitiveProgramming { class Program { static void Main(string[] args) { MainStream(); } static void MainStream() { string[] a_b_c = Console.ReadLine().Split(' '); int a = int.Parse(a_b_c[0]); int b = int.Parse(a_b_c[1]); ...
using System; using System.Collections.Generic; using System.Linq; namespace CompetitiveProgramming { class Program { static void Main(string[] args) { MainStream(); } static void MainStream() { string[] a_b_c = Console.ReadLine().Split(' '); int a = int.Parse(a_b_c[0]); int b = int.Parse(a_b_c[1]); ...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
134
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { A(); } public static void A() { Scanner cin = new Scanner(); int a = cin.NextInt(); int b = cin.NextInt(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { A(); } public static void A() { Scanner cin = new Scanner(); int a = cin.NextInt(); int b = cin.NextInt(); ...
[["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]]
8
466
2
using System; using System.Collections.Generic; using static System.Console; using System.Linq; class Program { static void Main(string[] Args) { var list = new List<string>(ReadLine().Split(' ')) .Select(ele => Int32.Parse(ele)) .ToList(); int Result = (int)Math...
using System; using System.Collections.Generic; using static System.Console; using System.Linq; class Program { static void Main(string[] Args) { var list = new List<string>(ReadLine().Split(' ')) .Select(ele => Int32.Parse(ele)) .ToList(); int Result = (int)Math.Min(Mat...
[["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]]
8
116
2
using System; namespace ABC119_a { class Program { static void Main(string[] args) { string[] array = Console.ReadLine().Split('/'); int a = int.Parse(array[0]); int b = int.Parse(array[1]); int c = int.Parse(array[2]); if (a < 2019) { Console.WriteLine("Heisei"); } else if ((a <= 2019...
using System; namespace ABC119_a { class Program { static void Main(string[] args) { string[] array = Console.ReadLine().Split('/'); int a = int.Parse(array[0]); int b = int.Parse(array[1]); int c = int.Parse(array[2]); if (a < 2019) { Console.WriteLine("Heisei"); } else if ((a == 2019...
[["-", 75, 57, 15, 16, 31, 23, 0, 16, 17, 19], ["+", 75, 57, 15, 16, 31, 23, 0, 16, 17, 60], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
134
4
using System; class Plogram { static void Main() { Console.WriteLine( int.Parse(Console.ReadLine().Substring(5, 2)) <= 4 ? "Heisei" : "HBD"); } }
using System; class Plogram { static void Main() { Console.WriteLine( int.Parse(Console.ReadLine().Substring(5, 2)) <= 4 ? "Heisei" : "TBD"); } }
[["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
47
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Collections; class Program { static void Main() { string S = Console.ReadLine(); if (string.Compare(S, "2019/04/30") <= 0) { Console.W...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Collections; class Program { static void Main() { string S = Console.ReadLine(); if (string.Compare(S, "2019/04/30") <= 0) { Console.W...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
97
2
using System; namespace ConsoleApp17 { class Program { static void Main(string[] args) { String[] S = Console.ReadLine().Split('/'); int Y = int.Parse(S[0]); int M = int.Parse(S[1]); int D = int.Parse(S[2]); if (Y < 2019 || Y == 2019 && M < 4 || Y == 2019 && M == 4 && D <= 30) { Console.Wr...
using System; namespace ConsoleApp17 { class Program { static void Main(string[] args) { String[] S = Console.ReadLine().Split('/'); int Y = int.Parse(S[0]); int M = int.Parse(S[1]); int D = int.Parse(S[2]); if (Y < 2019 || Y == 2019 && M < 4 || Y == 2019 && M == 4 && D <= 30) { Console.Wr...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
128
2
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split('/'); int year = int.Parse(input[0]); int month = int.Parse(input[1]); int day = int.Parse(input[2]); if (year == 2019) { if (month <= 4) Console.WriteLine("heisei"); els...
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split('/'); int year = int.Parse(input[0]); int month = int.Parse(input[1]); int day = int.Parse(input[2]); if (year == 2019) { if (month <= 4) Console.WriteLine("Heisei"); els...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
140
4
using System; namespace b119A { class Program { static void Main(string[] args) { Console.WriteLine(int.Parse(Console.ReadLine().Split('/')[1]) > 4 ? "Heisei" : "TBD"); } } }
using System; namespace b119A { class Program { static void Main(string[] args) { Console.WriteLine( int.Parse(Console.ReadLine().Split('/')[1]) <= 4 ? "Heisei" : "TBD"); } } }
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19]]
8
58
2
using System; using System.Collections.Generic; namespace CompetitiveProgramming { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split('/'); int y = int.Parse(s[0]); int m = int.Parse(s[1]); int d = int.Parse(s[2]); if (y <= 2019) { if (y < 2019 || (y ==...
using System; using System.Collections.Generic; namespace CompetitiveProgramming { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split('/'); int y = int.Parse(s[0]); int m = int.Parse(s[1]); int d = int.Parse(s[2]); if (y <= 2019) { if (y < 2019 || (y ==...
[["-", 15, 16, 12, 23, 0, 16, 12, 16, 31, 22], ["+", 15, 16, 12, 23, 0, 16, 12, 16, 31, 22]]
8
145
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Main { class Program { static void Main(string[] arg) { var answer = ""; // int n = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split('/'); if (int.Parse...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Main { class Program { static void Main(string[] arg) { var answer = ""; string[] str = Console.ReadLine().Split('/'); if (int.Parse(str[0]) > 2019) { answer = "TBD"; }...
[["-", 75, 57, 64, 196, 0, 57, 15, 16, 17, 47], ["+", 75, 57, 64, 196, 0, 57, 15, 16, 17, 20]]
8
201
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp4 { class Program { static void Main(string[] args) { // for (; ; ) // { string S = Console.ReadLine(); string[] date = S.Split('/'); int month = int.Parse(date[...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp4 { class Program { static void Main(string[] args) { // for (; ; ) // { string S = Console.ReadLine(); string[] date = S.Split('/'); int month = int.Parse(date[...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
114
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; namespace AtCoder { class Program { static void Main() { var n = long.Parse(ReadLine().Replace("/", "")); WriteLine(n > 20190430 ? "TDB" : "Heisei"); } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; namespace AtCoder { class Program { static void Main() { var n = long.Parse(ReadLine().Replace("/", "")); WriteLine(n > 20190430 ? "TBD" : "Heisei"); } } }
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222]]
8
78
2
using System; using System.Linq; class Program { public static void Main(string[] args) { int[] s = Console.ReadLine().Split('/').Select(int.Parse).ToArray(); if (s[0] > 2019) Console.WriteLine("TBD"); else { if (s[1] > 5) Console.WriteLine("TBD"); else { Console.WriteLi...
using System; using System.Linq; class Program { public static void Main(string[] args) { int[] s = Console.ReadLine().Split('/').Select(int.Parse).ToArray(); if (s[0] > 2019) Console.WriteLine("TBD"); else { if (s[1] > 4) Console.WriteLine("TBD"); else { Console.WriteLi...
[["-", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203]]
8
104
2
using System; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split('/').Select(x => int.Parse(x)).ToArray(); if (input[0] > 2019) { Console.WriteLine("TDB"); return; } if (input[0] < 2019) { Console.Wri...
using System; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split('/').Select(x => int.Parse(x)).ToArray(); if (input[0] > 2019) { Console.WriteLine("TBD"); return; } if (input[0] < 2019) { Console.Wri...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
178
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC119 { class A { static void Main(string[] args) { string s = Console.ReadLine(); string ans = ""; if ((int.Parse(s.Substring(0, 4)) < 2019)) { ans = "Heisei"; } else ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC119 { class A { static void Main(string[] args) { string s = Console.ReadLine(); string ans = ""; if ((int.Parse(s.Substring(0, 4)) < 2019)) { ans = "Heisei"; } else ...
[["-", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203]]
8
165
2
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.B { static class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = ...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.B { static class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = ...
[["-", 8, 196, 0, 57, 15, 16, 12, 5, 0, 222], ["+", 8, 196, 0, 57, 15, 16, 12, 5, 0, 222]]
8
522
2
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Program { public static Scanner cin; static void Main() { cin = new Scanner(); int n = ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Program { public static Scanner cin; static void Main() { cin = new Scanner(); int n = ...
[["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22]]
8
580
2
using System; class Problem { static void Main() { int N = int.Parse(Console.ReadLine()); decimal m; string u; decimal money = 0; for (int i = 0; i < N; i++) { string[] a = Console.ReadLine().Split(' '); m = decimal.Parse(a[0]); if (a[1] == "BTC") { money += 38000 * m; ...
using System; class Problem { static void Main() { int N = int.Parse(Console.ReadLine()); decimal m; string u; decimal money = 0; for (int i = 0; i < N; i++) { string[] a = Console.ReadLine().Split(' '); m = decimal.Parse(a[0]); if (a[1] == "BTC") { money += 380000 * m; ...
[["-", 64, 196, 0, 1, 0, 11, 12, 16, 31, 203], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 31, 203]]
8
118
2
using System; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int count = 0; double JPYs = 0; double BTCs = 0; while (true) { ++count; if (count == N) break; string[] str = Console.ReadLine().Split(' '); double x = double....
using System; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int count = 0; double JPYs = 0; double BTCs = 0; while (true) { ++count; if (count > N) break; string[] str = Console.ReadLine().Split(' '); double x = double.P...
[["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 16, 12, 23, 0, 16, 31, 16, 17, 48], ["-", 0, 16, 12, 23, 0, 16, 31, 16, 12, 250]]
8
147
4
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); double su = 0.0; for (int i = 0; i < N; i++) { string[] s = Console.ReadLine().Split(' '); double x = double.P...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); double su = 0.0; for (int i = 0; i < N; i++) { string[] s = Console.ReadLine().Split(' '); double x = double.P...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
149
2
using System; namespace ABC119_B { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var sum = 0; for (int i = 0; i < n; i++) { var xu = Console.ReadLine().Split(); if (xu[1] == "BTC") { sum += (int)(decimal.Parse(xu[0]) * 380000); } else ...
using System; namespace ABC119_B { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); decimal sum = 0; for (int i = 0; i < n; i++) { var xu = Console.ReadLine().Split(); if (xu[1] == "BTC") { sum += (decimal.Parse(xu[0]) * 380000); } else {...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 64, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["-", 64, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["-", 64, 196, 0, 1, 0, 11, 12, 74, 0, 25]]
8
124
5
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { public static int n; public static int a; public static int b; public static int c; public static int[] l; static void Main(string[] args) { // 入力 // var s = Console.Read...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { public static int n; public static int a; public static int b; public static int c; public static int[] l; static void Main(string[] args) { // 入力 // var s = Console.Read...
[["+", 0, 57, 64, 196, 0, 37, 0, 16, 17, 33], ["+", 0, 57, 64, 196, 0, 37, 0, 16, 12, 203]]
8
391
2
using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using Debug = System.Diagnostics.Debug; class P { static void Main() { ...
using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using Debug = System.Diagnostics.Debug; class P { static void Main() { ...
[["-", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22]]
8
361
4
using System; public class S { public static void Main() { var input = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var A = input[0]; var B = input[1]; var Q = input[2]; var jinja = new long[A]; var tera = new long[B]; var quiz = new long[Q]; var answer = new long[Q]...
using System; public class S { public static void Main() { var input = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var A = input[0]; var B = input[1]; var Q = input[2]; var jinja = new long[A]; var tera = new long[B]; var quiz = new long[Q]; var answer = new long[Q]...
[["-", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22]]
8
821
2
using System; using System.Linq; namespace ABC119D { internal class Program { public static void Main(string[] args) { long[] ABQ = Console.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray(); long A = ABQ[0]; long B = ABQ[1]; long Q = ABQ[2]; long[] S = new long[A]; for (int ...
using System; using System.Linq; namespace ABC119D { internal class Program { public static void Main(string[] args) { long[] ABQ = Console.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray(); long A = ABQ[0]; long B = ABQ[1]; long Q = ABQ[2]; long[] S = new long[A]; for (int ...
[["-", 0, 200, 0, 212, 0, 41, 64, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 41, 64, 16, 12, 203]]
8
644
8
using System; public class a { static void Main() { int[] AB = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); Console.WriteLine(AB[1] % AB[0] == 0 ? AB[0] - AB[1] : AB[1] - AB[0]); } }
using System; public class a { static void Main() { int[] AB = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); Console.WriteLine(AB[1] % AB[0] == 0 ? AB[0] + AB[1] : AB[1] - AB[0]); } }
[["-", 3, 4, 0, 28, 0, 41, 64, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 41, 64, 16, 17, 72]]
8
76
2
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 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
469
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC118A { class Program { static void Main(string[] args) { var word = Console.ReadLine().Split(); int a = int.Parse(word[0]); int b = int.Parse(word[1]); int max = 0; i...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC118A { class Program { static void Main(string[] args) { var word = Console.ReadLine().Split(); int a = int.Parse(word[0]); int b = int.Parse(word[1]); int max = 0; i...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]]
8
126
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC118A { class Program { static void Main(string[] args) { int a; var word = Console.ReadLine().Split(' '); int b = int.Parse(word[0]); int c = int.Parse(word[1]); int m ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC118A { class Program { static void Main(string[] args) { int a; var word = Console.ReadLine().Split(' '); int b = int.Parse(word[0]); int c = int.Parse(word[1]); int m ...
[["-", 0, 57, 75, 1, 0, 11, 12, 16, 31, 22], ["-", 0, 57, 75, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 57, 75, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 57, 75, 1, 0, 11, 12, 16, 12, 22]]
8
130
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC118A { class Program { static void Main(string[] args) { string[] n = Console.ReadLine().Split(' '); int a = int.Parse(n[0]); int b = int.Parse(n[1]); if ((b % a) == 0) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC118A { class Program { static void Main(string[] args) { string[] n = Console.ReadLine().Split(' '); int a = int.Parse(n[0]); int b = int.Parse(n[1]); if ((b % a) == 0) ...
[["-", 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
119
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC118A { class Program { static void Main(string[] args) { int a, b; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); if (a % b =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC118A { class Program { static void Main(string[] args) { int a, b; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); if (b % a =...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]]
8
124
4
using System; namespace Atcoder { class ABC118_A { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int b = int.Parse(str[1]); Console.Write(b % a == 0 ? a + b : a - b); } } }
using System; namespace Atcoder { class ABC118_A { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int b = int.Parse(str[1]); Console.Write(b % a == 0 ? a + b : b - a); } } }
[["-", 3, 4, 0, 28, 0, 41, 75, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 41, 75, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 12, 22]]
8
85
4
using System; using System.Text; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Threading.Tasks; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(a => int.Parse(a)).ToArray(); int A = input[0]; int B = input[1];...
using System; using System.Text; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Threading.Tasks; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(a => int.Parse(a)).ToArray(); int A = input[0]; int B = input[1];...
[["-", 0, 41, 15, 23, 0, 16, 31, 16, 31, 22], ["-", 0, 41, 15, 23, 0, 16, 31, 16, 17, 109], ["+", 0, 41, 15, 23, 0, 16, 31, 16, 17, 109], ["+", 0, 41, 15, 23, 0, 16, 31, 16, 12, 22]]
8
113
4
using System; public class Program { public static void Main(string[] args) { var str = Console.ReadLine().Split(' '); var a = int.Parse(str[0]); var b = int.Parse(str[1]); if (a / b == 0) { Console.WriteLine(a + b); } else { Console.WriteLine(b - a); } } }
using System; public class Program { public static void Main(string[] args) { var str = Console.ReadLine().Split(' '); var a = int.Parse(str[0]); var b = int.Parse(str[1]); if (b % a == 0) { Console.WriteLine(a + b); } else { Console.WriteLine(b - a); } } }
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 85], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]]
8
93
4
using System; namespace beginnercon001 { public class Program { public static void Main(string[] args) { string[] nums = Console.ReadLine().Split(' '); int a = int.Parse(nums[0]); int b = int.Parse(nums[1]); if (b % a == 0) { Console.WriteLine(a + b); } else { Console.WriteLine(b - a)...
using System; namespace beginnercon001 { public class Program { public static void Main(string[] args) { string[] nums = Console.ReadLine().Split(' '); int a = int.Parse(nums[0]); int b = int.Parse(nums[1]); if (b % a == 0) { Console.WriteLine(a + b); } else { Console.WriteLine(b - a)...
[["-", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253]]
8
99
2
using System; namespace AtCoder_20190218 { 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 result = 0; if (A % B == 0) { result = A + B; } else { result = B - A; } ...
using System; namespace AtCoder_20190218 { 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 result = 0; if (B % A == 0) { result = A + B; } else { result = B - A; } ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]]
8
103
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main(string[] args) { string[] inputData = Console.ReadLine().Trim().Split(' '); int num1 = int.Parse(inputData[0]); int num2 = int.Parse(in...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main(string[] args) { string[] inputData = Console.ReadLine().Trim().Split(' '); int num1 = int.Parse(inputData[0]); int num2 = int.Parse(in...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]]
8
125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int a = input[0]; int b = input[1]; Console.WriteLine...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int a = input[0]; int b = input[1]; Console.WriteLine...
[["-", 0, 28, 0, 41, 15, 16, 31, 16, 31, 22], ["-", 0, 28, 0, 41, 15, 16, 31, 16, 17, 109], ["+", 0, 28, 0, 41, 15, 16, 31, 16, 17, 109], ["+", 0, 28, 0, 41, 15, 16, 31, 16, 12, 22]]
8
106
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class AtCodeeeeeeeeeeeeeeeeeeeer { static void Main(string[] args) { int[] s = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int A = s[0]; int B = s[1]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class AtCodeeeeeeeeeeeeeeeeeeeer { static void Main(string[] args) { int[] s = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int A = s[0]; int B = s[1]; ...
[["-", 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
122
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class ABC { public static void Main() { int[] ab = Console.ReadLine().Split().Select(int.Parse).ToArray(); if (ab[0] % ab[1] == 0) Console.WriteLine(ab.Sum()); else { Co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class ABC { public static void Main() { int[] ab = Console.ReadLine().Split().Select(int.Parse).ToArray(); if (ab[1] % ab[0] == 0) Console.WriteLine(ab.Sum()); else { Co...
[["-", 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]]
8
109
4
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(); List<int>[] nums = new List<int>[n]; for (int i = 0; i < n; i++) { List<int> person = new...
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(); List<int>[] nums = new List<int>[n]; for (int i = 0; i < n; i++) { List<int> person = new...
[["-", 63, 214, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 63, 214, 205, 204, 206, 207, 0, 28, 0, 22]]
8
521
2
using System; using System.Linq; namespace ABC118 { class B { static void Main(string[] args) { int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = input[0]; int M = input[1]; int[] Ans = new int[M]; for (int i = 0; i < N; i++) { input = Console.ReadLine().Split(...
using System; using System.Linq; namespace ABC118 { class B { static void Main(string[] args) { int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = input[0]; int M = input[1]; int[] Ans = new int[M]; for (int i = 0; i < N; i++) { input = Console.ReadLine().Split(...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
175
4
using System; using System.Collections.Generic; using System.Linq; namespace ziyuutyou { class Program { static void Main(string[] args) { var a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = a[0]; var M = a[1]; var sum = new int[M]; for (var i = 0; i < N; ++i) { var...
using System; using System.Collections.Generic; using System.Linq; namespace ziyuutyou { class Program { static void Main(string[] args) { var a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = a[0]; var M = a[1]; var sum = new int[M]; for (var i = 0; i < N; ++i) { var...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
202
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string[] input1 = Console.ReadLine().Split(' '); int N = int.Parse(input1[0]); int M = int.Parse(input1[1]); int[] sum = new int[M]; for (int i = 0; i < N; i++) { string[] in...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string[] input1 = Console.ReadLine().Split(' '); int N = int.Parse(input1[0]); int M = int.Parse(input1[1]); int[] sum = new int[M]; for (int i = 0; i < N; i++) { string[] in...
[["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
206
2
using System; 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, ' ')); } public void Solve(ConsoleInput cin) { var n = cin.ReadInt; ...
using System; 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, ' ')); } public void Solve(ConsoleInput cin) { var n = cin.ReadInt; ...
[["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
570
2
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Anser(new ConsoleInput(Console.In, ' ')); } public void Anser(ConsoleInput Input) { var inputD...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Anser(new ConsoleInput(Console.In, ' ')); } public void Anser(ConsoleInput Input) { var inputD...
[["+", 205, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 205, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
579
2
using System; namespace AtCoderBeginnerContest118_2 { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int M = int.Parse(s[1]); bool[] fav = new bool[M]; for (int i = 0; i < M; i++) fav[i] = true; for (int i = 0; ...
using System; namespace AtCoderBeginnerContest118_2 { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int M = int.Parse(s[1]); bool[] fav = new bool[M]; for (int i = 0; i < M; i++) fav[i] = true; for (int i = 0; ...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
264
2
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { var input = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var N = input[0]; var M = input[1]; var foods = new List<long>(); for (var i = 0; i < M; i++) { foods.Ad...
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { var input = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var N = input[0]; var M = input[1]; var foods = new List<long>(); for (var i = 0; i < M; i++) { foods.Ad...
[["-", 8, 196, 0, 7, 10, 198, 39, 216, 0, 217], ["+", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 1, 0, 223, 0, 204, 206, 207, 0, 73], ["+", 0, 7, 8, 196, 0, 1, 0, 223, 0, 29]]
8
198
7
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class AtCodeeeeeeeeeeeeeeeeeeeer { static void Main(string[] args) { int[] s = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int N = s[0]; int M = s[1]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class AtCodeeeeeeeeeeeeeeeeeeeer { static void Main(string[] args) { int[] s = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int N = s[0]; int M = s[1]; ...
[["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 68], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
316
3
using System; using System.Collections.Generic; // using System.Linq; class Program { // static List<string> list; // static List<int> primes = new // List<int>{2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53, // 59,61,67,71,73,79,83,89,97}; static void Main(string[] args) { // 入力...
using System; using System.Collections.Generic; // using System.Linq; class Program { // static List<string> list; // static List<int> primes = new // List<int>{2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53, // 59,61,67,71,73,79,83,89,97}; static void Main(string[] args) { // 入力...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
273
4
// A Dynamic Programming based // C# program to find minimum // number operations to // convert str1 to str2 using System; using System.Collections.Generic; using System.Linq; class GFG { static int k = 0; static List<int> ans = new List<int>(); public static void Main() { var input = Console.ReadLine().Split...
// A Dynamic Programming based // C# program to find minimum // number operations to // convert str1 to str2 using System; using System.Collections.Generic; using System.Linq; class GFG { static int k = 0; static List<int> ans = new List<int>(); public static void Main() { var input = Console.ReadLine().Split...
[["-", 0, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 0, 131], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 141, 22], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 22]]
8
212
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int a = sc.NextInt(); int b = sc.NextInt(); int k = sc.NextInt(); int answer = 0; int count = 0; for (int i = 100; i >= 1; i--) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int a = sc.NextInt(); int b = sc.NextInt(); int k = sc.NextInt(); int answer = 0; int count = 0; for (int i = 100; i >= 1; i--) { ...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
8
472
2
using System; using System.Collections.Generic; namespace ABC120 { class B { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int K = int.Parse(input[2]); int n = CalcGCD(A, B); List<int> l = new List<int...
using System; using System.Collections.Generic; namespace ABC120 { class B { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int K = int.Parse(input[2]); int n = CalcGCD(A, B); List<int> l = new List<int...
[["-", 0, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 0, 131], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 141, 22], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 22]]
8
191
6
using System; using System.Linq; using System.Collections.Generic; using System.Text; namespace Algorithm { class Program { static void Main(string[] args) { var line = Console.ReadLine().Split().Select(z => int.Parse(z)).ToArray(); int a = line[0], b = line[1], k = line[2]; var min = a < b ? a : b; ...
using System; using System.Linq; using System.Collections.Generic; using System.Text; namespace Algorithm { class Program { static void Main(string[] args) { var line = Console.ReadLine().Split().Select(z => int.Parse(z)).ToArray(); int a = line[0], b = line[1], k = line[2]; var min = a < b ? a : b; ...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
156
2
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderTemplate { class Program { static void Main(string[] args) { var ABK = ReadInts(); var A = ABK[0]; var B = ABK[1]; var K = ABK[2]; var min = Math.Min(A, B); var divisor = Enumerable.Range(1, min).Where(x => A ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderTemplate { class Program { static void Main(string[] args) { var ABK = ReadInts(); var A = ABK[0]; var B = ABK[1]; var K = ABK[2]; var min = Math.Min(A, B); var divisor = Enumerable.Range(1, min).Rever...
[["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131]]
8
537
4
using System; using System.Linq; using System.Collections.Generic; public class Hello { public static void Main() { var n = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var A = n[0]; var B = n[1]; var K = n[2]; var list = new List<int>(); for (var i = 1; i <= Math.Min(A, B); i++...
using System; using System.Linq; using System.Collections.Generic; public class Hello { public static void Main() { var n = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var A = n[0]; var B = n[1]; var K = n[2]; var list = new List<int>(); for (var i = 1; i <= Math.Min(A, B); i++...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
151
6
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace ABC120B_K_thCommonDivisor { class Program { static void Main(string[] args) { #if Local var sw = new Stopwatch(); sw.Start(); Console.SetIn(new StreamReader("input.in")); #endif va...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace ABC120B_K_thCommonDivisor { class Program { static void Main(string[] args) { #if Local var sw = new Stopwatch(); sw.Start(); Console.SetIn(new StreamReader("input.in")); #endif va...
[["-", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
341
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(); while (st ...
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(); while (st ...
[["-", 0, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 0, 131], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 141, 22], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 22]]
8
409
6
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { //入力の受け取り string[] input = Console.ReadLine().Split(' '); int num1 = int.Parse(input[0]); int num2 = int.Parse(input[1]); int numK = int.Parse(input[2]); // num1を割れる数 List<int> num1List = new...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { //入力の受け取り string[] input = Console.ReadLine().Split(' '); int num1 = int.Parse(input[0]); int num2 = int.Parse(input[1]); int numK = int.Parse(input[2]); // num1を割れる数 List<int> num1List = new...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
251
6
using System; using System.Linq; using System.Collections.Generic; class Program { public static void Main(string[] args) { int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray(); List<int> result = new List<int>(); for (int i = 1; i <= 100; i++) { if (s[0] % i == 0 && s[1] % i == 0) ...
using System; using System.Linq; using System.Collections.Generic; class Program { public static void Main(string[] args) { int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray(); List<int> result = new List<int>(); for (int i = 1; i <= 100; i++) { if (s[0] % i == 0 && s[1] % i == 0) ...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22]]
8
135
2
using System; using System.Collections; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int k = int.Parse(input[2]); var alist = new List<int>(); var a...
using System; using System.Collections; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int k = int.Parse(input[2]); var alist = new List<int>(); var a...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 85]]
8
194
6
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; class Program { public void Slove() { var inputs = Console.ReadLine().Split(); int a = int.Parse(inputs[0]); int b = int.Parse(inputs[1]); int k = int.Parse(inputs[2]); int max = Math.Max(a, b); int resul...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; class Program { public void Slove() { var inputs = Console.ReadLine().Split(); int a = int.Parse(inputs[0]); int b = int.Parse(inputs[1]); int k = int.Parse(inputs[2]); int max = Math.Max(a, b); int resul...
[["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131]]
8
162
4
using System; using System.Linq; class Program { static void Main(string[] args) { var abk = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); var res = 1; for (int i = 1;; i++) { if (abk[0] % i == 0 && abk[1] % i == 0) { if (abk[2] == res) { Console.WriteLine(i); ...
using System; using System.Linq; class Program { static void Main(string[] args) { var abk = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); var res = 1; for (int i = abk[0];; i--) { if (abk[0] % i == 0 && abk[1] % i == 0) { if (abk[2] == res) { Console.WriteLine...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 10, 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, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 0, 195, 8, 196, 0, 7, 26, 223...
8
118
7
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); string s = sc.Next(); Stack<char> stack = new Stack<char>(); int answer = 0; foreach (var c in s) { if (stack.Count == 0) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); string s = sc.Next(); Stack<char> stack = new Stack<char>(); int answer = 0; foreach (var c in s) { if (stack.Count == 0) { ...
[["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203]]
8
433
3
using System; using System.Text; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Threading.Tasks; class Program { static void Main(string[] args) { string S = Console.ReadLine(); int c0 = 0; int c1 = 0; for (var i = 0; i < S.Len...
using System; using System.Text; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Threading.Tasks; class Program { static void Main(string[] args) { string S = Console.ReadLine(); int c0 = 0; int c1 = 0; for (var i = 0; i < S.Len...
[["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 104]]
8
137
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static Asakatsu20200322B.Input; namespace Asakatsu20200322B { static class Input { /// <summary> /// 1行の入力をTに応じてリストに変換する関数を返す /// </summary> static Func<string, List<T>> Cast<T>() => _ => _.Split(' ').Select(Convert<T>(...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static Asakatsu20200322B.Input; namespace Asakatsu20200322B { static class Input { /// <summary> /// 1行の入力をTに応じてリストに変換する関数を返す /// </summary> static Func<string, List<T>> Cast<T>() => _ => _.Split(' ').Select(Convert<T>(...
[["+", 3, 4, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33]]
8
1,651
4
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; class Program { static void Main(string[] args) { var s = Console.ReadLine(); var l = new LinkedList<bool>(s.Select(x => x == '1')); var node = l.First; while (node == null || node.Next == null) {...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; class Program { static void Main(string[] args) { var s = Console.ReadLine(); var l = new LinkedList<bool>(s.Select(x => x == '1')); var node = l.First; while (node?.Next != null) { var nPre...
[["-", 8, 196, 0, 52, 15, 16, 31, 16, 17, 60], ["-", 8, 196, 0, 52, 15, 16, 31, 16, 12, 215], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 106], ["-", 0, 52, 15, 16, 12, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 52, 15, 16, 31, 332, 0, 101], ["-", 8, 196, 0, 52, 15, 16, 12, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 1...
8
158
7
using System; namespace _20190304_05 { class Program { static void Main(string[] args) { var str = Console.ReadLine(); var c0 = 0; var c1 = 0; foreach (var c in str) { if (c == '0') { c0++; } else { c1++; } } Console.WriteLine(Math.Min(c0, c1)); } } }
using System; namespace _20190304_05 { class Program { static void Main(string[] args) { var str = Console.ReadLine(); var c0 = 0; var c1 = 0; foreach (var c in str) { if (c == '0') { c0++; } else { c1++; } } Console.WriteLine(Math.Min(c0, c1) * 2); } } }
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
83
2
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { //入力の受け取り char[] input = Console.ReadLine().ToCharArray(); //配列→list List<char> numList = new List<char>(); for (int jj = 0; jj < input.Length; jj++) { numList.Add(input[jj]); } //答え用カ...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { //入力の受け取り char[] input = Console.ReadLine().ToCharArray(); //配列→list List<char> numList = new List<char>(); for (int jj = 0; jj < input.Length; jj++) { numList.Add(input[jj]); } //答え用カ...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 64, 196, 0, 1, 0, 11, 12, 241, 0, 33], ["+", 64, 196, 0, 1, 0, 11, 12, 241, 0, 203]]
8
176
3
using System; using System.Linq; using System.Collections.Generic; public class Hello { public static void Main() { var s = Console.ReadLine(); var cntZero = 0; var cntOne = 0; for (var i = 0; i < s.Length; i++) { if (s[i] == '0') { cntZero++; } else { cntOne++; } ...
using System; using System.Linq; using System.Collections.Generic; public class Hello { public static void Main() { var s = Console.ReadLine(); var cntZero = 0; var cntOne = 0; for (var i = 0; i < s.Length; i++) { if (s[i] == '0') { cntZero++; } else { cntOne++; } ...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
101
2
using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Numerics; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using MethodImplOptions = System.Runtime.Compile...
using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Numerics; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using MethodImplOptions = System.Runtime.Compile...
[["-", 8, 196, 0, 52, 15, 16, 31, 204, 205, 22], ["-", 0, 52, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 0, 52, 15, 16, 31, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 52, 15, 16, 12, 204, 205, 22], ["-", 0, 52, 15, 16, 12, 204, 206, 207, 0, 70], ["-", 206, 207, 0, 28, 0, 204, 206, 207, 0, 73]]
8
1,385
6
using System; using System.Linq; namespace Sample { class Sample { static void Main(string[] args) { string S = Console.ReadLine(); int s2 = int.Parse(S.Replace("/", "")); if (s2 <= 20200430) { Console.WriteLine("Heisei"); } else { Console.WriteLine("TBD"); } } } }
using System; using System.Linq; namespace Sample { class Sample { static void Main(string[] args) { string S = Console.ReadLine(); int s2 = int.Parse(S.Replace("/", "")); if (s2 <= 20190430) { Console.WriteLine("Heisei"); } else { Console.WriteLine("TBD"); } } } }
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]]
8
85
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; public class Hello { public static void Main() { string[] num = ReadLine().Split('/'); if (int.Parse(num[1]) <= 4) { WriteLine("heisei"); } else { ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; public class Hello { public static void Main() { string[] num = ReadLine().Split('/'); if (int.Parse(num[1]) <= 4) { WriteLine("Heisei"); } else { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
617
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = input[0]; int M = input[1]; stri...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = input[0]; int M = input[1]; stri...
[["-", 15, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 12, 203]]
8
126
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long n = sc.NextLong(); long k = sc.NextLong(); bool ok = n + 1 / 2 >= k; string answer = ok ? "YES" : "NO"; Console.WriteLine(answer)...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long n = sc.NextLong(); long k = sc.NextLong(); bool ok = (n + 1) / 2 >= k; string answer = ok ? "YES" : "NO"; Console.WriteLine(answe...
[["+", 0, 212, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 212, 0, 16, 31, 16, 31, 23, 0, 25]]
8
383
2
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 ProblemA { static bool SAIKI = false; st...
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 ProblemA { static bool SAIKI = false; st...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 85], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203]]
8
1,442
4
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var K = sc.ReadInt(); var count = 0; for (int i = 1; i <= N; i += 2) { count++; } if (count < K) { Console.WriteLine("NO"); } else { ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var K = sc.ReadInt(); var count = 0; for (int i = 1; i <= N; i += 2) { count++; } if (count < K) { Console.WriteLine("NO"); } else { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
1,011
2
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { int[] n = Input.ScanIntArray(); if (n[0] / 2 + 1 >= n[1]) Console.WriteLine("YES"); else Console.WriteLine("NO"); } } static class Input { static public int ScanInt...
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { int[] n = Input.ScanIntArray(); if ((n[0] + 1) / 2 >= n[1]) Console.WriteLine("YES"); else Console.WriteLine("NO"); } } static class Input { static public int ScanI...
[["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 85], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
607
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace YahooProCon { class Program { static void Main(string[] args) { int[] a = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int N = a[0], K = a[1]; string r = "N...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace YahooProCon { class A { static void Main(string[] args) { int[] a = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int N = a[0], K = a[1]; string r = "NO"; ...
[["-", 0, 208, 0, 209, 8, 201, 0, 235, 141, 22], ["+", 0, 208, 0, 209, 8, 201, 0, 235, 141, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
127
4
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace MinnaProCon.A { using static Util; public class Solver : SolverBase { public void Run() { var ary = ReadIntArray(); var N = ary[0]; var K = ary[1]; if (2 * (K - 1) < N) Write...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace MinnaProCon.A { using static Util; public class Solver : SolverBase { public void Run() { var ary = ReadIntArray(); var N = ary[0]; var K = ary[1]; if (2 * (K - 1) < N) Write...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
1,372
4
using System; using System.Linq; class Program { static void Main(string[] args) { var inputs = ReadInts(); Console.WriteLine((inputs[1] * 2) - 1 >= inputs[0] ? "YES" : "NO"); } public static string Read() { return Console.ReadLine(); } public static int ReadInt() { return int.Parse(Read()); } publ...
using System; using System.Linq; class Program { static void Main(string[] args) { var inputs = ReadInts(); Console.WriteLine((inputs[1] * 2 - 1) <= inputs[0] ? "YES" : "NO"); } public static string Read() { return Console.ReadLine(); } public static int ReadInt() { return int.Parse(Read()); } publ...
[["-", 0, 41, 15, 16, 31, 16, 31, 23, 0, 25], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20], ["+", 0, 28, 0, 41, 15, 16, 31, 23, 0, 25], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19]]
8
214
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class AtCodeeeeeeeeeeeeeeeeeeeeeeeer { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int K = int.Parse(s[1]); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class AtCodeeeeeeeeeeeeeeeeeeeeeeeer { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); double N = int.Parse(s[0]); int K = int.Parse(s[1]);...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 41, 15, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 41, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 41, 15, 16, 31, 213, 63, 214, 141, 22], ["-", 0, 28, 0, 41, 15, 16, 31, 16, 17, 72], ["-", 0, 28, 0, 41, 15, 16, 31, ...
8
113
7
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MINPRO2019A { class Program { static void Main(string[] args) { var nk = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = nk[0]; int K = nk[1]; if (N > 2 * (K ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MINPRO2019A { class Program { static void Main(string[] args) { var nk = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = nk[0]; int K = nk[1]; if (N > 2 * (K ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
123
2
using System; using System.Linq; using System.IO; using System.Collections.Generic; using System.Text; namespace AtCoder { public class Program { static int[] getKeys() { var Keys = Console.ReadLine().Split(' '); int N = Keys.Length; int[] Ns = new int[N]; for (int i = 0; i < N; i++) { Ns[i] = ...
using System; using System.Linq; using System.IO; using System.Collections.Generic; using System.Text; namespace AtCoder { public class Program { static int[] getKeys() { var Keys = Console.ReadLine().Split(' '); int N = Keys.Length; int[] Ns = new int[N]; for (int i = 0; i < N; i++) { Ns[i] = ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 15, 16, 31, 16, 12, 16, 31, 204, 205, 22], ["+", 31, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 57, 15, 16, 31, 16, ...
8
543
7
using System; using System.IO; using System.Linq; using System.Collections.Generic; using Cons = System.Console; class PriorityQueue<T> { private readonly List<T> m_list; private readonly Func<T, T, int> m_compare; private int m_count; public PriorityQueue(int capacity, Func<T, T, int> compare) { m_list =...
using System; using System.IO; using System.Linq; using System.Collections.Generic; using Cons = System.Console; class PriorityQueue<T> { private readonly List<T> m_list; private readonly Func<T, T, int> m_compare; private int m_count; public PriorityQueue(int capacity, Func<T, T, int> compare) { m_list =...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
555
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder_procpn_B { class Program { static void Main(string[] args) { int[] t_input = new int[2]; int[] a = new int[3]; int[] b = new int[3]; string result = "YES"; int[] c...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder_procpn_B { class Program { static void Main(string[] args) { int[] t_input = new int[2]; int[] a = new int[3]; int[] b = new int[3]; string result = "YES"; int[] c...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
268
8
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split().Select(long.Parse).ToArray(); long K = l[0], A = l[1], B = l[2]; if (B - A <= 2) { Console.WriteLine(K + 1); } else { ...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split().Select(long.Parse).ToArray(); long K = l[0], A = l[1], B = l[2]; if (B - A <= 2) { Console.WriteLine(K + 1); } else { ...
[["+", 75, 196, 0, 1, 0, 11, 12, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 23, 0, 16, 17, 33], ["+", 0, 1, 0, 11, 12, 23, 0, 16, 12, 203], ["+", 75, 196, 0, 1, 0, 11, 12, 23, 0, 25]]
8
134
4
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 { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); #if DEBUG ReadLi...
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 { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); #if DEBUG ReadLi...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 16, 31, 16, 12, 74, 0, 24], ["-", 0, 57, 15, 16, 31, 16, 12, 74, 39, 199], ["-", 0, 57, 15, 16, 31, 16, 12, 74, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]...
8
555
7
using System; using System.IO; using System.Collections.Generic; using System.Linq; namespace AtCoder.Contest.A { static class Program { public static void Solve(Scanner cin) { double t = cin.ReadDouble(); double x = cin.ReadDouble(); Console.WriteLine(x / t); } public static void Main...
using System; using System.IO; using System.Collections.Generic; using System.Linq; namespace AtCoder.Contest.A { static class Program { public static void Solve(Scanner cin) { double t = cin.ReadDouble(); double x = cin.ReadDouble(); Console.WriteLine(t / x); } public static void Main...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
2,442
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC117A { class Program { static void Main(string[] args) { int a, b; string[] ss = Console.ReadLine().Split(' '); a = int.Parse(ss[0]); b = int.Parse(ss[1]); Console.Writ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC117A { class Program { static void Main(string[] args) { double a, b; string[] ss = Console.ReadLine().Split(' '); a = double.Parse(ss[0]); b = double.Parse(ss[1]); Con...
[["-", 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
108
6