buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
change_count
int64
0
100
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int n = sc.NextInt(); List<string> list = new List<string>(); string before = sc.Next(); list.Add(before); bool ok = true; for (in...
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(); List<string> list = new List<string>(); string before = sc.Next(); list.Add(before); bool ok = true; for (in...
[["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]]
8
471
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionB { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionB { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
[["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 95], ["+", 8, 196, 0, 210, 8, 196, 0, 1, 0, 35], ["+", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 210, 8, 196, 0, 1, 0, 11, 12, 22]]
8
259
5
using Atcoder; using System; using System.Collections.Generic; using System.ComponentModel.Design; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); List<string> spokeList = new Lis...
using Atcoder; using System; using System.Collections.Generic; using System.ComponentModel.Design; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); List<string> spokeList = new Lis...
[["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["-", 31, 16, 12, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 23, 0, 16, 17, 106], ["+", 12, 23, 0, 16, 12, 213, 3, 4, 0, 25]]
8
174
6
using System; using System.Linq; public class c { public static void Main() { int n = int.Parse(Console.ReadLine()); string[] siritori = new string[n]; string ans = "Yes"; for (int i = 0; i < n; i++) { siritori[i] = Console.ReadLine(); } for (int i = 0; i < n - 1; i++) { for (int j...
using System; using System.Linq; public class c { public static void Main() { int n = int.Parse(Console.ReadLine()); string[] siritori = new string[n]; string ans = "Yes"; for (int i = 0; i < n; i++) { siritori[i] = Console.ReadLine(); } for (int i = 0; i < n - 1; i++) { for (int j...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79]]
8
186
2
using System; using System.Linq; using System.Collections.Generic; class Plogram { static void Main() { int num = int.Parse(Console.ReadLine()); var W = new List<string>(); string str; string ans = "Yes"; for (int i = 0; i < num; i++) { str = Console.ReadLine(); if (W.Contains(str)) ...
using System; using System.Linq; using System.Collections.Generic; class Plogram { static void Main() { int num = int.Parse(Console.ReadLine()); var W = new List<string>(); string str; string ans = "Yes"; for (int i = 0; i < num; i++) { str = Console.ReadLine(); if (W.Contains(str)) ...
[["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
8
168
2
using System; class Program { static void Main(string[] args) { var n = Read(); string[] w = new string[n]; bool b = true; for (int i = 0; i < n; i++) { w[i] = ReadStr(); for (int j = 0; j < i; j++) { if (w[j] == w[i]) { b = false; break; } } ...
using System; class Program { static void Main(string[] args) { var n = Read(); string[] w = new string[n]; bool b = true; for (int i = 0; i < n; i++) { w[i] = ReadStr(); for (int j = 0; j < i; j++) { if (w[j] == w[i]) { b = false; break; } } ...
[["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
828
2
using System; namespace ABC109_B_Shiritori { internal class Program { public static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] words = new string[n]; string ans = "Yes"; for (int i = 0; i < n; i++) { words[i] = Console.ReadLine(); if (i > 1) { str...
using System; namespace ABC109_B_Shiritori { internal class Program { public static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] words = new string[n]; string ans = "Yes"; for (int i = 0; i < n; i++) { words[i] = Console.ReadLine(); if (i >= 1) { st...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
209
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderbeginner109 { class Program { static void Main(string[] args) { int n; Int32.TryParse(Console.ReadLine(), out n); var ret = new B(n).Do(); Console.WriteLine(ret ? "Yes"...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderbeginner109 { class Program { static void Main(string[] args) { int n; Int32.TryParse(Console.ReadLine(), out n); var ret = new B(n).Do(); Console.WriteLine(ret ? "Yes"...
[["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
214
2
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() { var h = new HashSet<String>(); for (int i = 0; i < N; i++) { if (h....
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() { var h = new HashSet<String>(); for (int i = 0; i < N; i++) { if (h....
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203]]
8
464
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; // using System.Text; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; // using System.Numerics; // using static System.Math; // using pair = Pair<int, int...
using System; using System.Collections.Generic; using System.Linq; using System.IO; // using System.Text; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; // using System.Numerics; // using static System.Math; // using pair = Pair<int, int...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
530
4
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 long[] nx = Console.ReadLine().Split().Select(long.Parse).ToArray(); long n = nx[0]; long x = nx[1]; long[] xcity = Console.Read...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 long[] nx = Console.ReadLine().Split().Select(long.Parse).ToArray(); long n = nx[0]; long x = nx[1]; long[] xcity = Console.Read...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 75, 196, 0, 7, 15, 16, 12, 214, 205, 22], ["-", 75, 196, 0, 7, 15, 16, 12, 214, 0, 131], ["-", 75, 196, 0, 7, 15, 16, 12, 214, 141, 22], ["+", 0, 57, 75, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0...
8
342
8
using System; using System.Collections.Generic; namespace MyProgram { class AtCoder { static void Main(string[] args) { long[] input = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); long N = input[0]; long X = input[1]; long[] x = Array.ConvertAll(Console.ReadLine().Split(' '), long.Par...
using System; using System.Collections.Generic; namespace MyProgram { class AtCoder { static void Main(string[] args) { long[] input = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); long N = input[0]; long X = input[1]; long[] x = Array.ConvertAll(Console.ReadLine().Split(' '), long.Par...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25]]
8
218
5
// optional using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; public static class Program { private const int MAX = 10000000; public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var...
// optional using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; public static class Program { private const int MAX = 10000000; public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var...
[["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
3,908
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static int[] hs; static long ans; static void Main(string[] args) { long[] nx = ReadLine().Split(' ')....
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static int[] hs; static long ans; static void Main(string[] args) { long[] nx = ReadLine().Split(' ')....
[["+", 0, 213, 3, 4, 0, 28, 0, 213, 63, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
346
3
using System; using System.Linq; public class Hello { public static void Main() { // Your code here! int[] a = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int[] x = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int N = a[0]; int X = a[1]; int ans =...
using System; using System.Linq; public class Hello { public static void Main() { // Your code here! int[] a = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int[] x = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int N = a[0]; int X = a[1]; int ans =...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25]]
8
234
5
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using static System.Math; public class Hello { public static void Main() { string[] input = ReadLine().Split(' '); int n = int.Parse(input[0]); int m = int.Parse(input[1]); // int a = int.Parse(inpu...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using static System.Math; public class Hello { public static void Main() { string[] input = ReadLine().Split(' '); int n = int.Parse(input[0]); int m = int.Parse(input[1]); // int a = int.Parse(inpu...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]]
8
101
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; using Pair = System.Tuple<long, long>; /// <su...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; using Pair = System.Tuple<long, long>; /// <su...
[["-", 8, 196, 0, 97, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 97, 0, 1, 0, 213, 63, 22]]
8
3,686
2
using System; using System.Linq; class Program { static void Main() { int[] input = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray(); // int a=int.Parse(Console.ReadLine()); // string a = Console.ReadLine(); Console.WriteLine(input[0] - input[1]); Console.ReadLine(); } }
using System; using System.Linq; class Program { static void Main() { int[] input = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray(); // int a=int.Parse(Console.ReadLine()); // string a = Console.ReadLine(); Console.WriteLine(input[0] - input[1] + 1); Console.ReadLine(); }...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
73
2
using System; using System.Linq; class P { static void Main() { int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = n[0]; int K = n[1]; Console.WriteLine(N + K - 1); } }
using System; using System.Linq; class P { static void Main() { int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = n[0]; int K = n[1]; Console.WriteLine(N - K + 1); } }
[["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]]
8
72
4
using System; using System.Linq; class P { static void Main() { int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = n[0]; int i = n[1]; Console.WriteLine(N - i); } }
using System; using System.Linq; class P { static void Main() { int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = n[0]; int i = n[1]; Console.WriteLine(N - i + 1); } }
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
70
2
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var arr = Console.ReadLine().Split().Select(int.Parse).ToArray(); int h = arr[0]; int w = arr[1]; var a = new List<string>(); while (h-- > 0) { var s = Console.ReadLine(); if (s.All...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var arr = Console.ReadLine().Split().Select(int.Parse).ToArray(); int h = arr[0]; int w = arr[1]; var a = new List<string>(); while (h-- > 0) { var s = Console.ReadLine(); if (s.All...
[["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22]]
8
231
2
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.IO; using System.Linq; using System.Diagnostics; using System.Globalization; using static System.Console; using static System.Math; namespace abc107_b { class Program { static void Main(string[] args) { int[...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.IO; using System.Linq; using System.Diagnostics; using System.Globalization; using static System.Console; using static System.Math; namespace abc107_b { class Program { static void Main(string[] args) { int[...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 15, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["+", 15, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["-", 15, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 15, 16, 12, 213, 3, 4, 0, 28, 0, 22]]
8
400
8
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace FertiLib.Contest.C { static class Program { public static void Solve(Scanner cin) { var (n, k) = cin.ReadValue<int, int>(); var a = cin.ReadIntArray(n); var neg = a.Where(x => x ...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace FertiLib.Contest.C { static class Program { public static void Solve(Scanner cin) { var (n, k) = cin.ReadValue<int, int>(); var a = cin.ReadIntArray(n); var neg = a.Where(x => x ...
[["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 23, 0, 241, 0, 33], ["+", 0, 28, 0, 16, 31, 23, 0, 241, 0, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48]]
8
2,839
5
using System; using System.Collections.Generic; using System.Linq; namespace Astar { /*class Node { Node((int x, int y) _pos, int _status, int _cost, int _h, int _score, Node node) { pos = _pos; status = _status; cost = _cost; h = _h; score = _score; parent = node; } public (int x, int y) pos; ...
using System; using System.Collections.Generic; using System.Linq; namespace Astar { /*class Node { Node((int x, int y) _pos, int _status, int _cost, int _h, int _score, Node node) { pos = _pos; status = _status; cost = _cost; h = _h; score = _score; parent = node; } public (int x, int y) pos; ...
[["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 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
405
8
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main() { //入力 // int n = 100; /* long n = long.Parse(Console.ReadLine()); long[] input = new long[5]; for(int a = 0; a < 5; a++) { i...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main() { //入力 // int n = 100; /* long n = long.Parse(Console.ReadLine()); long[] input = new long[5]; for(int a = 0; a < 5; a++) { i...
[["-", 0, 28, 0, 16, 31, 16, 31, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 17, 33], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]]
8
105
6
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication9 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int count = 0; for (int i = 1; i < N; i++...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication9 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int count = 0; for (int i = 1; i <= N; i+...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
160
4
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var count = 0; for (int i = 1; i < N; i = i + 2) { if (CountDivisor(i) == 8) count++; } Console.WriteLine(count); } priva...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var count = 0; for (int i = 1; i <= N; i = i + 2) { if (CountDivisor(i) == 8) count++; } Console.WriteLine(count); } priv...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
132
2
using System; using System.Linq; namespace atcoder { class Program { static void Main(string[] args) { B105(int.Parse(args[0])); } static void B105(int N) { var count = 0; for (var i = 1; i <= N; i += 2) { if (Counting(i) == 8) count++; } Console.WriteLine(count); } static int C...
using System; using System.Linq; namespace atcoder { class Program { static void Main(string[] args) { B105(int.Parse(Console.ReadLine())); } static void B105(int N) { var count = 0; for (var i = 1; i <= N; i += 2) { if (Counting(i) == 8) count++; } Console.WriteLine(count); } s...
[["-", 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, 203], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ...
8
134
9
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scan sc = new Scan(); write wr = new write(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scan sc = new Scan(); write wr = new write(); ...
[["-", 0, 57, 75, 57, 75, 57, 15, 16, 12, 203], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 12, 203], ["-", 75, 57, 75, 57, 75, 57, 15, 16, 12, 203], ["+", 75, 57, 75, 57, 75, 57, 15, 16, 12, 203]]
8
272
4
using System; using System.Collections.Generic; using System.Linq; public static class Program { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var result = 0; for (int i = 1; i <= n; i += 2) { var cnt = 0; for (int j = 1; j <= i; j++) { if (j % 2 == 0...
using System; using System.Collections.Generic; using System.Linq; public static class Program { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var result = 0; for (int i = 1; i <= n; i += 2) { var cnt = 0; for (int j = 1; j <= i; j++) { if (i % j == 0...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]]
8
128
7
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using static kyoupuro.Input; using static kyoupuro.MyMath; using static kyoupuro.Modular; namespace kyoupuro { class MainClass { public static void Main() { var N = NextInt; int count = 0; if (N >=...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using static kyoupuro.Input; using static kyoupuro.MyMath; using static kyoupuro.Modular; namespace kyoupuro { class MainClass { public static void Main() { var N = NextInt; int count = 0; if (N >=...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]]
8
1,380
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; using Pair = System.Tuple<long, long>; /// <su...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; using Pair = System.Tuple<long, long>; /// <su...
[["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22]]
8
3,461
2
using System; using System.Collections.Generic; using System.Linq; namespace Atcoder { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); if (N == 105) { Console.WriteLine(1); return; } else if (N < 105) { Console.WriteLine(0); return; } ...
using System; using System.Collections.Generic; using System.Linq; namespace Atcoder { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); if (N == 105) { Console.WriteLine(1); return; } else if (N < 105) { Console.WriteLine(0); return; } ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
168
4
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() { int N = int.Parse(Console.ReadLine()); // 3,5,7,11,13 // 3,3,3,5->135 // 3,5,7->1...
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() { int N = int.Parse(Console.ReadLine()); // 3,5,7,11,13 // 3,3,3,5->135 // 3,3,3,7-...
[["+", 0, 200, 0, 212, 0, 227, 0, 229, 0, 203], ["+", 0, 200, 0, 212, 0, 227, 0, 229, 0, 21]]
8
343
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace MyProgram { public class Program { public static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int cnt = 0; int a = 0; for (int i = 1; i <= n; i += 2) { for (int j = 1; j...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace MyProgram { public class Program { public static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int cnt = 0; int a = 0; for (int i = 1; i <= n; i += 2) { a = 0; for ...
[["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22]]
8
126
6
using System; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); int ans = 1; for (int i = 107; i <= n; i += 2) { int cnt = 0; for (int j = 1; j <= i; j += 2) { if (i % j == 0) cnt++; } if (cnt == 8) ans++; } Console.Write...
using System; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); int ans = 0; for (int i = 105; i <= n; i += 2) { int cnt = 0; for (int j = 1; j <= i; j += 2) { if (i % j == 0) cnt++; } if (cnt == 8) ans++; } Console.Write...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
99
4
using System; public class B { public static void Main() { string[] args = Console.ReadLine().Split(' '); int n = Int32.Parse(args[0]); int result = 0; if (n >= 115) { result = 1; // 115 for (int i = 117; i <= n; i += 2) { int counter = 1; // 1 for (int j = 2; j <= i; ...
using System; public class B { public static void Main() { string[] args = Console.ReadLine().Split(' '); int n = Int32.Parse(args[0]); int result = 0; if (n >= 105) { result = 1; // 105 for (int i = 117; i <= n; i += 2) { int counter = 1; // 1 for (int j = 2; j <= i; ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]]
8
139
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder105 { class Program { static void Main(string[] args) { string input = Console.ReadLine(); int n = Convert.ToInt32(input); var divisor = new Divisor(); int ans = diviso...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder105 { class Program { static void Main(string[] args) { string input = Console.ReadLine(); int n = Convert.ToInt32(input); var divisor = new Divisor(); int ans = diviso...
[["+", 0, 209, 8, 201, 0, 235, 0, 251, 0, 259], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]]
8
207
5
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); if (n < 104) { Console.WriteLine(0); goto end; } if (n == 105) { Console.WriteLine(1); goto end; } var res = 1; for (int i = 106; i <= n; i++) { if (i...
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); if (n <= 104) { Console.WriteLine(0); goto end; } if (n == 105) { Console.WriteLine(1); goto end; } var res = 0; for (int i = 10; i <= n; i++) { if (i...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
150
6
using Yorukatsu035.Questions; using Yorukatsu035.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu035.Questions { /// <summary> /// ABC106 C /// </summary> public class QuestionB : AtCoderQuestionBase { public override IEn...
using Yorukatsu035.Questions; using Yorukatsu035.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu035.Questions { /// <summary> /// ABC106 C /// </summary> public class QuestionB : AtCoderQuestionBase { public override IEn...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 17, 33], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 12, 203]]
8
520
4
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace C { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace C { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["-", 0, 198, 0, 200, 0, 212, 0, 252, 0, 253], ["+", 0, 198, 0, 200, 0, 212, 0, 252, 0, 253]]
8
186
2
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC106C { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var K = ReadInt; int ans = 1; for (int i = 0; i < S.Length...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC106C { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var K = ReadLong; int ans = 1; for (int i = 0; i < S.Lengt...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22]]
8
632
2
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 var s = Console.ReadLine(); var k = long.Parse(Console.ReadLine()); var ans = '1'; for (int i = 0; i < s.Length; i++) { i...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 var s = Console.ReadLine(); var k = long.Parse(Console.ReadLine()); var ans = '1'; for (int i = 0; i < k; i++) { if (s[i]...
[["-", 8, 196, 0, 7, 15, 16, 12, 214, 205, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 214, 0, 131], ["-", 8, 196, 0, 7, 15, 16, 12, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
118
4
using System; using System.Linq; using System.Collections.Generic; using System.IO; class MainClass { 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(string[] args)...
using System; using System.Linq; using System.Collections.Generic; using System.IO; class MainClass { 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(string[] args)...
[["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
210
3
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; class Program { static void Main(string[] args) { var s = ReadLine(); var k = ToInt64(ReadLine()); for (var i = 0; i < s.Length; i++) if (s[i] != '1...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; class Program { static void Main(string[] args) { var s = ReadLine(); var k = ToInt64(ReadLine()); for (var i = 0; i < s.Length; i++) if (s[i] != '1...
[["+", 8, 57, 75, 57, 15, 16, 31, 16, 17, 72], ["+", 8, 57, 75, 57, 15, 16, 31, 16, 12, 203]]
8
142
2
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var index = 0; for (var i = 0; i < S.Length; i++) { if (S[i] != '1') { index = i; break; } } var K =...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var index = 0; for (var i = 0; i < S.Length; i++) { if (S[i] != '1') { index = i; break; } } var K =...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
126
2
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace ConsoleApp1 { class Program { static void Main(string[] args) { A(); } static void A() { var S = Read().ToList(); var K = ReadLong(); for (int i = 0; i < S.Count; i++) { if (S[i] != '1' && i +...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace ConsoleApp1 { class Program { static void Main(string[] args) { A(); } static void A() { var S = Read().ToList(); var K = ReadLong(); for (int i = 0; i < S.Count; i++) { if (S[i] != '1' && i +...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19]]
8
628
2
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var S = Console.ReadLine(); var K = long.Parse(Console.ReadLine()); long count = 0; for (int i = 0; i < S.Length; i++) { var num = S[i] - '0'; if (num == 1) { coun...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var S = Console.ReadLine(); var K = long.Parse(Console.ReadLine()); long count = 0; for (int i = 0; i < S.Length; i++) { var num = S[i] - '0'; if (num == 1) { coun...
[["+", 8, 196, 0, 57, 75, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 75, 196, 0, 37, 0, 35]]
8
126
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(); int K = int.Parse(Console.ReadLine()); // 2は、5000兆日後には...
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(); long K = long.Parse(Console.ReadLine()); // 2は、5000兆日後...
[["-", 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
383
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var sc = new Scanner(); string s = sc.NextString(); long k = sc.NextLong(); // < 10 ^ 18 long c = 5000000000000000; // = 5 * 10^15 ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var sc = new Scanner(); string s = sc.NextString(); long k = sc.NextLong(); // < 10 ^ 18 long c = 5000000000000000; // = 5 * 10^15 ...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20]]
8
270
2
using System; namespace To_Infinity { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var k = long.Parse(Console.ReadLine()); var count = 0; for (int i = 0; i < s.Length; i++) { if (1 == int.Parse(s[i].ToString())) { count++; } else { break; ...
using System; namespace To_Infinity { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var k = long.Parse(Console.ReadLine()); var count = 0; for (int i = 0; i < s.Length; i++) { if (1 == int.Parse(s[i].ToString())) { count++; } else { break; ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
183
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scan sc = new Scan(); write wr = new write(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scan sc = new Scan(); write wr = new write(); ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]]
8
259
2
using System; namespace AtCoder { class Program { static void Main(string[] args) { MainStream(); } static void MainStream() { char[] s = Console.ReadLine().ToCharArray(); long k = int.Parse(Console.ReadLine()); if (s[0] != '1') { Console.WriteLine(s[0]); return; } for (long i = 0;...
using System; namespace AtCoder { class Program { static void Main(string[] args) { MainStream(); } static void MainStream() { char[] s = Console.ReadLine().ToCharArray(); long k = long.Parse(Console.ReadLine()); if (s[0] != '1') { Console.WriteLine(s[0]); return; } for (long i = 0...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
145
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...
[["-", 0, 41, 15, 16, 12, 213, 63, 214, 205, 199], ["+", 0, 41, 15, 16, 12, 213, 63, 214, 205, 199]]
8
153
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C044 { class C106 { static void Main(string[] args) { string S = Console.ReadLine(); long K = long.Parse(Console.ReadLine()); char ot = '1'; int counter = 0; foreach (char...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C044 { class C106 { static void Main(string[] args) { string S = Console.ReadLine(); long K = long.Parse(Console.ReadLine()); char ot = '1'; int counter = 1; foreach (char...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
124
2
using System; namespace ABC106C { class MainClass { public static void Main(string[] args) { // N M みたいな入力 string Sinput = Console.ReadLine(); char[] S = Sinput.ToCharArray(); // N M みたいな入力 string input2 = Console.ReadLine(); long K = long.Parse(input2); // 5000兆 long n = 500000000...
using System; namespace ABC106C { class MainClass { public static void Main(string[] args) { // N M みたいな入力 string Sinput = Console.ReadLine(); char[] S = Sinput.ToCharArray(); // N M みたいな入力 string input2 = Console.ReadLine(); long K = long.Parse(input2); // 5000兆 long n = 500000000...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
169
2
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static void Main(string[] args) { string S = Console.ReadLine(); string N = Console.ReadLine(); if (N.Length <= 3 && int.Parse(N) <= 100 && int.Parse(S[0].ToString()) == 1) { fo...
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static void Main(string[] args) { string S = Console.ReadLine(); string N = Console.ReadLine(); if (N.Length <= 3 && int.Parse(N) <= 100 && int.Parse(S[0].ToString()) == 1) { fo...
[["-", 0, 7, 15, 16, 12, 213, 63, 214, 205, 199], ["+", 75, 196, 0, 7, 15, 16, 12, 214, 205, 22], ["-", 0, 7, 15, 16, 12, 213, 63, 214, 141, 22], ["-", 0, 7, 15, 16, 12, 213, 3, 4, 0, 24], ["-", 15, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 7, 15, 16, 12, 213, 3, 4, 0, 25], ["+", 75, 196, 0, 7, 15, 16, 12, 214, 141, 2...
8
222
7
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static Scanner cin = new Scanner(); static void Main() { string S = Console.ReadLine(); long K = cin.Long(); if (K > 100) { string not_one = ""; foreach (var ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static Scanner cin = new Scanner(); static void Main() { string S = Console.ReadLine(); long K = cin.Long(); if (K > S.Length) { string not_one = ""; foreach ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 141, 22]]
8
582
4
using System; using System.Linq; class P { static void Main() { string S = Console.ReadLine(); long K = long.Parse(Console.ReadLine()); int count1 = 0; for (int i = 1; i <= S.Length; i++) { if (S[i - 1] == '1') count1++; else break; } string ans = ""; if (cou...
using System; using System.Linq; class P { static void Main() { string S = Console.ReadLine(); long K = long.Parse(Console.ReadLine()); int count1 = 0; for (int i = 1; i <= S.Length; i++) { if (S[i - 1] == '1') count1++; else break; } string ans = ""; if (cou...
[["-", 63, 214, 205, 204, 206, 207, 0, 28, 0, 203], ["+", 63, 214, 205, 204, 206, 207, 0, 28, 0, 22]]
8
143
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { //******Q4 To Infinity class 使用************** // Sは数値の文字列 1>= <=100 // Kは何文字目を表す数値 string s = Console.R...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { //******Q4 To Infinity class 使用************** // Sは数値の文字列 1>= <=100 // Kは何文字目を表す数値 string s = Console.R...
[["-", 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, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199]]
8
400
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc106_c { class Program { static void Main(string[] args) { string s = Console.ReadLine(); long k = long.Parse(Console.ReadLine()); int p = 0; for (int i = 0; i < s.Length; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc106_c { class Program { static void Main(string[] args) { string s = Console.ReadLine(); long k = long.Parse(Console.ReadLine()); int p = 0; for (int i = 0; i < s.Length; ...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
139
2
using System; public class Hello { public static void Main() { var s = Console.ReadLine(); var k = long.Parse(Console.ReadLine()); for (var i = 0; i < s.Length; i++) { if (s[i] != '1') { Console.WriteLine(s[i]); return; } } Console.WriteLine('1'); } }
using System; public class Hello { public static void Main() { var s = Console.ReadLine(); var k = long.Parse(Console.ReadLine()); for (var i = 0; i < k; i++) { if (s[i] != '1') { Console.WriteLine(s[i]); return; } } Console.WriteLine('1'); } }
[["-", 8, 196, 0, 7, 15, 16, 12, 214, 205, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 214, 0, 131], ["-", 8, 196, 0, 7, 15, 16, 12, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
91
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; class Program { static void Main(string[] args) { var S = Console.ReadLine(); long K = long.Parse(Console.ReadLine()); int x; for (x = 0; S[x] == '1'; x++) ; if (K <= ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; class Program { static void Main(string[] args) { var S = Console.ReadLine(); long K = long.Parse(Console.ReadLine()); int x; for (x = 0; x < S.Length && S[x] == '1'; x++) ...
[["+", 8, 196, 0, 7, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 18], ["+", 0, 7, 15, 16, 31, 16, 12, 214, 205, 22], ["+", 0, 7, 15, 16, 31, 16, 12, 214, 0, 131], ["+", 0, 7, 15, 16, 31, 16, 12, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 98]]
8
118
6
using System; using System.Collections.Generic; using System.Linq; class Program { public static int Main(string[] args) { string str = Console.ReadLine(); string s = str; List<int> s_list = new List<int>(); for (int i = 0; i < s.Length; i++) { s_list.Add(int.Parse(s[i].ToString())); } ...
using System; using System.Collections.Generic; using System.Linq; class Program { public static int Main(string[] args) { string str = Console.ReadLine(); string s = str; List<int> s_list = new List<int>(); for (int i = 0; i < s.Length; i++) { s_list.Add(int.Parse(s[i].ToString())); } ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
185
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var K = long.Parse(Console.ReadLine()); var num = 0; var idx = 0; for (var i = 0; i < ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var K = long.Parse(Console.ReadLine()); var num = 1; var idx = 0; for (var i = 0; i < ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
147
2
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; /*Please dont change namespace, Dcoder and class must not be public*/ // Compiler version 4.0, .NET Framework 4.5 namespace Dcoder { public class Program { public static void Main(string[] args) { Method(args);...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; /*Please dont change namespace, Dcoder and class must not be public*/ // Compiler version 4.0, .NET Framework 4.5 namespace Dcoder { public class Program { public static void Main(string[] args) { Method(args);...
[["+", 0, 57, 15, 16, 12, 16, 12, 16, 17, 33], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 12, 203]]
8
144
2
using System; using System.Collections.Generic; class Program { public static int min(int x, int y) { if (x >= y) { return y; } else { return x; } } public static void Main() { int N, K; var NKL = Console.ReadLine().Split(' '); N = int.Parse(NKL[0]); K = int.Parse(NKL[1]); ...
using System; using System.Collections.Generic; class Program { public static int min(int x, int y) { if (x >= y) { return y; } else { return x; } } public static void Main() { int N, K; var NKL = Console.ReadLine().Split(' '); N = int.Parse(NKL[0]); K = int.Parse(NKL[1]); ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47]]
8
327
6
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 X = sc.ReadIntArray(N); var ans = int.MaxValue; for (int i = K - 1; i < N; i++) { var v1 = X[i - K + 1]; var v2 = X[i]; ...
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 X = sc.ReadLongArray(N); var ans = long.MaxValue; for (int i = K - 1; i < N; i++) { var v1 = X[i - K + 1]; var v2 = X[i]...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199]]
8
720
4
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { var cin = new Scanner(); int n = cin.Int(); int k = cin.Int(); v...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { var cin = new Scanner(); int n = cin.Int(); int k = cin.Int(); v...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
560
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Convert; using static System.Math; //using static System.Globalization.CultureInfo; using System.Text; class Program { private static void chmin<T>(ref T num, T val) where T : ICompar...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Convert; using static System.Math; //using static System.Globalization.CultureInfo; using System.Text; class Program { private static void chmin<T>(ref T num, T val) where T : ICompar...
[["+", 0, 213, 3, 4, 0, 28, 0, 213, 63, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
1,187
6
using System; using System.Collections.Generic; using System.Linq; namespace algorithm { class Program { static void Main(string[] args) { //全体/必要本数 var q = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); //座標 var d = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int k = q[1]...
using System; using System.Collections.Generic; using System.Linq; namespace algorithm { class Program { static void Main(string[] args) { //全体/必要本数 var q = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); //座標 var d = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int k = q[1]...
[["+", 0, 7, 15, 16, 31, 16, 31, 16, 17, 72], ["+", 0, 7, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 33], ["+", 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, 22]]
8
191
6
using System; using System.Linq; namespace Candles { class Program { static void Main(string[] args) { var nk = GetArrayIntInput(); var inputs = GetArrayIntInput(); int result = int.MaxValue; for (int i = 0; i < nk[0] - nk[1]; i++) { var range = inputs[i + nk[1] - 1] - inputs[i]; var tmp...
using System; using System.Linq; namespace Candles { class Program { static void Main(string[] args) { var nk = GetArrayIntInput(); var inputs = GetArrayIntInput(); int result = int.MaxValue; for (int i = 0; i <= nk[0] - nk[1]; i++) { var range = inputs[i + nk[1] - 1] - inputs[i]; var tm...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
268
2
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { //[summary]C - Candles var line = ReadLine().ToList(); int n = line[0]; int k = line[1]; var x = ReadLine().ToList(); int min = int.MaxValue; for (int...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { //[summary]C - Candles var line = ReadLine().ToList(); int n = line[0]; int k = line[1]; var x = ReadLine().ToList(); int min = int.MaxValue; for (int...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 20], ["-", 75, 57, 75, 196, 0, 57, 15, 16, 17, 47], ["+", 75, 57, 75, 196, 0, 57, 15, 16, 17, 18]]
8
290
6
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { string[] s = Console.ReadLine().Split().ToArray(); int n = int.Parse(s[0]); int k = int.Parse(s[1]); int[] x = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray(); int ans = int.Ma...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { string[] s = Console.ReadLine().Split().ToArray(); int n = int.Parse(s[0]); int k = int.Parse(s[1]); int[] x = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray(); int ans = int.Ma...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
236
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; public class MyProgram { public static void Main() { int[] n = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int N = n[0]; int K = n[1] - 1; n = Console.ReadLine().Split(' ').Select(s =>...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; public class MyProgram { public static void Main() { int[] n = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int N = n[0]; int K = n[1] - 1; n = Console.ReadLine().Split(' ').Select(s =>...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
241
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int N = int.Parse(s.Split(' ')[0]); int K = int.Parse(s.Split(' ')[1]); string[] arr =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int N = int.Parse(s.Split(' ')[0]); int K = int.Parse(s.Split(' ')[1]); string[] arr =...
[["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
275
2
using System; using System.Collections.Generic; using System.Linq; namespace ABC107C { class Program { static void Main(string[] args) { var dg = Console.ReadLine().Split(' ').Select(v => int.Parse(v)).ToArray(); var n = dg[0]; var k = dg[1] - 1; var x = Console.ReadLine().Split(' ').Select(...
using System; using System.Collections.Generic; using System.Linq; namespace ABC107C { class Program { static void Main(string[] args) { var dg = Console.ReadLine().Split(' ').Select(v => int.Parse(v)).ToArray(); var n = dg[0]; var k = dg[1] - 1; var x = Console.ReadLine().Split(' ').Select(...
[["-", 0, 37, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 37, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 25], ["-", 0, 28, 0, 16, 12, 213, 3, 4, 0, 25]]
8
308
4
// デバッグ実行:Ctrl+F5 using System; class Program { static void Main(string[] args) { String line; line = Console.ReadLine(); String[] words = line.Split(' '); int N, K; int[] rousoku; N = int.Parse(words[0]); K = int.Parse(words[1]); rousoku = new int[N]; line = Console.ReadLine();...
// デバッグ実行:Ctrl+F5 using System; class Program { static void Main(string[] args) { String line; line = Console.ReadLine(); String[] words = line.Split(' '); int N, K; int[] rousoku; N = int.Parse(words[0]); K = int.Parse(words[1]); rousoku = new int[N]; line = Console.ReadLine();...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 75, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 75, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
350
4
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template; using Pi = Pair<int, i...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template; using Pi = Pair<int, i...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 12, 203]]
8
1,829
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC { class Program { static void Main(string[] args) { var split = Console.ReadLine().Split(' '); int N = int.Parse(split[0]); int K = int.Parse(split[1]); split = Console.Re...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC { class Program { static void Main(string[] args) { var split = Console.ReadLine().Split(' '); int N = int.Parse(split[0]); int K = int.Parse(split[1]); split = Console.Re...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
334
2
using System; using System.Text; using System.Collections.Generic; using static System.Math; using System.Linq; using static System.Array; namespace AtcoderExpress { class Program { static void Main(string[] args) { var NMQ = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var N = NMQ[0]; ...
using System; using System.Text; using System.Collections.Generic; using static System.Math; using System.Linq; using static System.Array; namespace AtcoderExpress { class Program { static void Main(string[] args) { var NMQ = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var N = NMQ[0]; ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22]]
8
352
4
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static int[,] train; static int[,] c; static int N; static int Solve(int p, int q) { int rec = 0; for (int i = p; i <= q; i++) { rec += c[i, q] - c[i, p - 1]; } return rec; ...
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static int[,] train; static int[,] c; static int N; static int Solve(int p, int q) { int rec = 0; for (int i = p; i <= q; i++) { rec += c[i, q] - c[i, p - 1]; } return rec; ...
[["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 62], ["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]]
8
412
4
using System; using System.Collections.Generic; using System.Linq; namespace easy_Atcoder { class Program { static void Main(string[] args) { int[] NK = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); Console.WriteLine(NK[0] % NK[1]); } // float[] ABN = Array.ConvertAll(Console.ReadLine().Split(...
using System; using System.Collections.Generic; using System.Linq; namespace easy_Atcoder { class Program { static void Main(string[] args) { int[] NK = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); Console.WriteLine(NK[0] % NK[1] == 0 ? 0 : 1); } // float[] ABN = Array.ConvertAll(Console.Read...
[["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 64, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 75, 203]]
8
109
6
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 n = cin.nextInt(); var k = cin.nextInt(); Con...
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 n = cin.nextInt(); var k = cin.nextInt(); Con...
[["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 64, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 75, 203]]
8
566
6
using System; namespace ABC105A { 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]); if (a == b) Console.WriteLine("0"); else Console.WriteLine("1"); Console.ReadKey(); } } }
using System; namespace ABC105A { 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]); if (a % b == 0) Console.WriteLine("0"); else Console.WriteLine("1"); Console.ReadKey(); } } ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]]
8
100
4
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...
[["-", 0, 212, 0, 41, 15, 16, 31, 16, 31, 22], ["-", 0, 212, 0, 41, 15, 16, 31, 16, 17, 109], ["+", 0, 212, 0, 41, 15, 16, 31, 16, 17, 109], ["+", 0, 212, 0, 41, 15, 16, 31, 16, 12, 22]]
8
154
4
using System; namespace atcoderA { class MainClass { public static void Main(string[] args) { int[] line = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int N = line[0]; int K = line[1]; Console.WriteLine(N % K == 0 ? 0 : N % K); } } }
using System; namespace atcoderA { class MainClass { public static void Main(string[] args) { int[] line = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int N = line[0]; int K = line[1]; Console.WriteLine(N % K == 0 ? 0 : 1); } } }
[["-", 3, 4, 0, 28, 0, 41, 75, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 41, 75, 16, 17, 109], ["-", 3, 4, 0, 28, 0, 41, 75, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 75, 203]]
8
83
4
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int K = int.Parse(s[1]); Console.WriteLine(N % K); } }
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int K = int.Parse(s[1]); Console.WriteLine(N % K == 0 ? 0 : 1); } }
[["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 64, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 75, 203]]
8
83
6
using System; using System.Collections.Generic; using System.Linq; namespace ziyuutyou { class Program { static void Main(string[] args) { var sen = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var mai = sen[0] / sen[1]; var aaa = sen[0] % sen[1]; if (aaa == 0) { Console.Write...
using System; using System.Collections.Generic; using System.Linq; namespace ziyuutyou { class Program { static void Main(string[] args) { var sen = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var mai = sen[0] / sen[1]; var aaa = sen[0] % sen[1]; if (aaa == 0) { Console.Write...
[["-", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203]]
8
115
2
using System; using System.Collections.Generic; using System.Linq; using static System.Console; namespace AtCoder { class Program { static void Main() { var raw = ReadLine().Split().Select(int.Parse).ToArray(); var N = raw[0]; var K = raw[1]; WriteLine(N % K == 0 ? 1 : 0); } } }
using System; using System.Collections.Generic; using System.Linq; using static System.Console; namespace AtCoder { class Program { static void Main() { var raw = ReadLine().Split().Select(int.Parse).ToArray(); var N = raw[0]; var K = raw[1]; WriteLine(N % K == 0 ? 0 : 1); } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 41, 64, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 75, 203]]
8
87
4
using System; using System.Collections.Generic; using System.Linq; namespace ABC109C { static class MainClass { public static void Main(string[] args) { string[] input1 = Console.ReadLine().Split(' '); int N = int.Parse(input1[0]); int X = int.Parse(input1[1]); string[] input2 = Console.ReadLine()....
using System; using System.Collections.Generic; using System.Linq; namespace ABC109C { static class MainClass { public static void Main(string[] args) { string[] input1 = Console.ReadLine().Split(' '); int N = int.Parse(input1[0]); int X = int.Parse(input1[1]); string[] input2 = Console.ReadLine()....
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 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
286
5
using System; namespace ConsoleApp2 { class Program { static void Main(string[] args) { string[] inputs1 = Console.ReadLine().Split(' '); int n = int.Parse(inputs1[0]); int x = int.Parse(inputs1[1]); string[] inputs2 = Console.ReadLine().Split(' '); int[] x_Rpos = new int[n]; for (int i = 0; ...
using System; namespace ConsoleApp2 { class Program { static void Main(string[] args) { string[] inputs1 = Console.ReadLine().Split(' '); int n = int.Parse(inputs1[0]); int x = int.Parse(inputs1[1]); string[] inputs2 = Console.ReadLine().Split(' '); int[] x_Rpos = new int[n]; for (int i = 0; ...
[["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25]]
8
359
5
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm {     class Program     {         static void Main(string[] args)         {             var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int H = l[0], W = l[1]; var a = new int [H][]; for (var i = 0;...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm {     class Program     {         static void Main(string[] args)         {             var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int H = l[0], W = l[1]; var a = new int [H][]; for (var i = 0;...
[["+", 0, 28, 0, 283, 0, 284, 0, 16, 17, 72], ["+", 0, 28, 0, 283, 0, 284, 0, 16, 12, 203], ["-", 0, 28, 0, 283, 0, 284, 0, 16, 12, 203]]
8
328
16
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using System.Runtime.CompilerServices; using static MyUtil; class MyUtil { public static int[] ReadIntArray() { return ReadLine().Split().Select(x => int.Parse(x)).ToArray(); } } class Program { static int h; s...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using System.Runtime.CompilerServices; using static MyUtil; class MyUtil { public static int[] ReadIntArray() { return ReadLine().Split().Select(x => int.Parse(x)).ToArray(); } } class Program { static int h; s...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 98]]
8
456
4
using System; class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 int h = int.Parse(input[0]); int w = int.Parse(input[1]); int[,] matrix = new int[h, w]; //行列 for (int i = 0; i < h; i++) { int[] nums = Array.ConvertAll(C...
using System; class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 int h = int.Parse(input[0]); int w = int.Parse(input[1]); int[,] matrix = new int[h, w]; //行列 for (int i = 0; i < h; i++) { int[] nums = Array.ConvertAll(C...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
748
4
using System; using System.Linq; namespace Sample { class Sample { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); if (N % 2 == 0) { Console.WriteLine(Math.Pow(N / 2, 2)); } else { Console.WriteLine((N / 2) * (N / 2 - 1)); } } } }
using System; using System.Linq; namespace Sample { class Sample { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); if (N % 2 == 0) { Console.WriteLine(Math.Pow(N / 2, 2)); } else { Console.WriteLine((N / 2) * (N / 2 + 1)); } } } }
[["-", 0, 28, 0, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 17, 72]]
8
89
2
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG MyDebugger.Test(process, "../TextFile1....
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG MyDebugger.Test(process, "../TextFile1....
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 196, 0, 57, 64, 1, 0, 223, 0, 68], ["+", 8, 196, 0, 57, 64, 1, 0, 223, 0, 29]]
8
163
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var waaaa = new waaaa(); waaaa.Solve(); } } public class waaaa { const int MOD = 1000000007; const long INF = 1 << 61; const int MOD2...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var waaaa = new waaaa(); waaaa.Solve(); } } public class waaaa { const int MOD = 1000000007; const long INF = 1 << 61; const int MOD2...
[["-", 0, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 31, 16, 12, 23, 0, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 16, 12, 23, 0, 16, 31, 22], ["+", 12, 23, 0, 16, 12, 23, 0, 16, 17, 109], ["+", 12, 23, 0, 16, 12, 23, 0, 16, 12, 203], ["+", 31, 16, 12, 23, 0, 16, 12, 23, 0, 25]]
8
1,660
6
using System; using System.Collections.Generic; using System.Linq; namespace test { class Program { static void Main(string[] args) { string b = Console.ReadLine(); int A = int.Parse(b); int an; an = A / 2 * (A - A / 2) / 2; Console.Write(an); } } }
using System; using System.Collections.Generic; using System.Linq; namespace test { class Program { static void Main(string[] args) { string b = Console.ReadLine(); int A = int.Parse(b); int an; an = A / 2 * (A - A / 2); Console.Write(an); } } }
[["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 85], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
79
2
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<...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
579
2