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; public class Prog { public void run() { int N = int.Parse(Console.ReadLine()); var input = Console.ReadLine().Split(); int[] A = Array.ConvertAll(input, int.Parse); input = Console.ReadLine().Split(); int[] B = Array.ConvertAll(in...
using System; using System.Collections.Generic; using System.Linq; public class Prog { public void run() { int N = int.Parse(Console.ReadLine()); var input = Console.ReadLine().Split(); int[] A = Array.ConvertAll(input, int.Parse); input = Console.ReadLine().Split(); int[] B = Array.ConvertAll(in...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203]]
8
235
3
using System; using System.Linq; using System.Text.RegularExpressions; using System.Collections.Generic; using static System.Console; using static Program.Input; using static Program.MyMath; using static Program.Const; namespace Program { static class Const { public static string alp = "abcdefghijklmnopqrstuvwxyz"; ...
using System; using System.Linq; using System.Text.RegularExpressions; using System.Collections.Generic; using static System.Console; using static Program.Input; using static Program.MyMath; using static Program.Const; namespace Program { static class Const { public static string alp = "abcdefghijklmnopqrstuvwxyz"; ...
[["+", 0, 7, 8, 57, 64, 196, 0, 37, 0, 38], ["+", 0, 7, 8, 57, 64, 196, 0, 37, 0, 35]]
8
2,008
2
using System; using System.Linq; namespace ABC141 { class Program { static void Main(string[] args) { string S = CIN.String(); for (int i = 0; i < S.Length; i++) { if (i % 2 == 0 && S[i] == 'R') { Console.WriteLine("No"); return; } if (i % 2 == 1 && S[i] == 'L') { C...
using System; using System.Linq; namespace ABC141 { class Program { static void Main(string[] args) { string S = CIN.String(); for (int i = 0; i < S.Length; i++) { if (i % 2 == 1 && S[i] == 'R') { Console.WriteLine("No"); return; } if (i % 2 == 0 && S[i] == 'L') { C...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
289
4
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var s = Console.ReadLine(); Console.WriteLine(!s.Where((c, i) => i + 1 % 2 == 1).Contains('L') && !s.Where((c, i) => i + 1 % 2 == 0).Contains('R') ...
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var s = Console.ReadLine(); Console.WriteLine(!s.Where((c, i) => (i + 1) % 2 == 1).Contains('L') && !s.Where((c, i) => (i + 1) % 2 == 0).Contains('R') ...
[["+", 0, 218, 8, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 218, 8, 16, 31, 16, 31, 23, 0, 25]]
8
103
4
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var res = "Yes"; for (int i = 0; i < s.Length; i++) { if (i + 1 % 2 == 0) { if (s[i] == 'R') { res = "No"; break; } } else ...
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var res = "Yes"; for (int i = 0; i < s.Length; i++) { if ((i + 1) % 2 == 0) { if (s[i] == 'R') { res = "No"; break; } } els...
[["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 25]]
8
125
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { static class Program { static void Main() { Solve(); Console.ReadKey(); } static void Solve() { var S = IO.GetString(); var ans = "Yes"; for (int i = 0; i ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { static class Program { static void Main() { Solve(); Console.ReadKey(); } static void Solve() { var S = IO.GetString(); var ans = "Yes"; for (int i = 0; i ...
[["-", 15, 16, 31, 23, 0, 16, 31, 16, 17, 60], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 17, 79], ["-", 15, 16, 12, 23, 0, 16, 31, 16, 17, 79], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 17, 60]]
8
380
4
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) { string S = Console.ReadLine(); char odd = 'R'; char even = 'L'; ...
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) { string S = Console.ReadLine(); char odd = 'R'; char even = 'L'; ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
178
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string input = Console.ReadLine(); bool flag = true; for (int i = 0; i < input.Length; i++) { if (i % 2 == 1 && input[i] == 'L') { flag = false; } if (i % 2 == 0 ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string input = Console.ReadLine(); bool flag = true; for (int i = 0; i < input.Length; i++) { if (i % 2 == 1 && input[i] == 'R') { flag = false; } if (i % 2 == 0 ...
[["-", 0, 57, 15, 16, 12, 16, 12, 252, 0, 253], ["+", 0, 57, 15, 16, 12, 16, 12, 252, 0, 253]]
8
137
4
namespace AtCoder { using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static Util; class AtCoder { /*------------------------------------------------------------------*/ void Solve() { var S = io.S...
namespace AtCoder { using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static Util; class AtCoder { /*------------------------------------------------------------------*/ void Solve() { var S = io.S...
[["+", 8, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 8, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
2,006
2
using System; using System.Collections.Generic; using System.Linq; namespace Contest { class Program { static void Main() { string S = Console.ReadLine(); string odd = "RUD"; string even = "LUD"; for (int i = 0; i < S.Length; i++) { if (i % 2 == 0) { // even if (!even.Contains(S...
using System; using System.Collections.Generic; using System.Linq; namespace Contest { class Program { static void Main() { string S = Console.ReadLine(); string odd = "RUD"; string even = "LUD"; for (int i = 0; i < S.Length; i++) { if (i % 2 == 0) { // odd if (!odd.Contains(S[i...
[["-", 0, 57, 15, 241, 0, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 241, 0, 213, 63, 214, 205, 22]]
8
155
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 dance = Console.ReadLine(); var ret = Check(dance) ? "Yse" : "No"; Console.WriteLine(ret); } public static bool Check(string dan...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var dance = Console.ReadLine(); var ret = Check(dance) ? "Yes" : "No"; Console.WriteLine(ret); } public static bool Check(string dan...
[["-", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222]]
8
189
2
using System; using System.Linq; using System.Collections.Generic; namespace B { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int count = 0; for (int i = 0; i < s.Length; i += 2) { if (s[i] == 'R') { count++; } } for (int i = 1; i < s.Len...
using System; using System.Linq; using System.Collections.Generic; namespace B { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int count = 0; for (int i = 0; i < s.Length; i += 2) { if (s[i] == 'L') { count++; } } for (int i = 1; i < s.Len...
[["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253]]
8
135
4
using System; using System.Collections.Generic; using System.Linq; class Program { static Scanner sc = new Scanner(); static void Main(string[] args) { var S = sc.ReadStr(); var ans = true; var odd = new char[] { 'R', 'U', 'D' }; var even = new char[] { 'L', 'U', 'D' }; for (int i = 0; i < S.Le...
using System; using System.Collections.Generic; using System.Linq; class Program { static Scanner sc = new Scanner(); static void Main(string[] args) { var S = sc.ReadStr(); var ans = true; var odd = new char[] { 'R', 'U', 'D' }; var even = new char[] { 'L', 'U', 'D' }; for (int i = 0; i < S.Le...
[["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 72], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 12, 203]]
8
1,213
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) { var str = Console.ReadLine(); for (var i = 0; i < str.Length; i++) { if (i % 2 == 0) { if (str[i] == 'R')...
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) { var str = Console.ReadLine(); for (var i = 0; i < str.Length; i++) { if (i % 2 != 0) { if (str[i] == 'R')...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79]]
8
143
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; Func cin2; void calc() { cin = new...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; Func cin2; void calc() { cin = new...
[["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
783
2
using System; using System.IO; using System.Net; using System.Net.Sockets; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Math; using MethodImplOptions = System.Runtime.CompilerServ...
using System; using System.IO; using System.Net; using System.Net.Sockets; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Math; using MethodImplOptions = System.Runtime.CompilerServ...
[["-", 8, 16, 31, 16, 31, 16, 12, 252, 0, 253], ["+", 8, 16, 31, 16, 31, 16, 12, 252, 0, 253]]
8
210
4
using System; using System.Linq; using System.Collections.Generic; namespace c { class Program { static void Main(string[] args) { var _ = Console.ReadLine().Split(); var n = long.Parse(_[0]); var k = long.Parse(_[1]); var q = long.Parse(_[2]); var d = new Dictionary<int, long>(); for (var i...
using System; using System.Linq; using System.Collections.Generic; namespace c { class Program { static void Main(string[] args) { var _ = Console.ReadLine().Split(); var n = long.Parse(_[0]); var k = long.Parse(_[1]); var q = long.Parse(_[2]); var d = new Dictionary<int, long>(); for (var i...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["-", 64, 196, 0, 1, 0, 11, 12, 23, 0, 24], ["-", 0, 1, 0, 11, 12, 23, 0, 16, 17, 48], ["-", 0, 1, 0, 11, 12, 23, 0, 16, 12, 203], ["-", 64, 196, 0, 1, 0, 11, 12, 23, 0, 25]]
8
223
6
using System; using System.Linq; class Program { static void Main(string[] args) { string[] NKQ = Console.ReadLine().Split(' '); int N = int.Parse(NKQ[0]); long K = int.Parse(NKQ[1]); long Q = int.Parse(NKQ[2]); long[] point = Enumerable.Repeat(K - Q, N).ToArray(); for (int i = 0; i < Q; ...
using System; using System.Linq; class Program { static void Main(string[] args) { string[] NKQ = Console.ReadLine().Split(' '); int N = int.Parse(NKQ[0]); long K = int.Parse(NKQ[1]); int Q = int.Parse(NKQ[2]); long[] point = Enumerable.Repeat(K - Q, N).ToArray(); for (int i = 0; i < Q; i...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
184
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var NKQ = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); var N = NKQ[0]; var K = NKQ[1]; var Q = NKQ[...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var NKQ = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); var N = NKQ[0]; var K = NKQ[1]; var Q = NKQ[...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222]]
8
179
2
using System; class Info { public int p; public string anser = "Yes"; } class Program { static void Main(string[] args) { string S = Console.ReadLine(); string[] arr = S.Split(' '); int N = int.Parse(arr[0]); int K = int.Parse(arr[1]); int Q = int.Parse(arr[2]); Info[] Point = new Info[...
using System; class Info { public int p; public string anser = "Yes"; } class Program { static void Main(string[] args) { string S = Console.ReadLine(); string[] arr = S.Split(' '); int N = int.Parse(arr[0]); int K = int.Parse(arr[1]); int Q = int.Parse(arr[2]); Info[] Point = new Info[...
[["+", 205, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
240
2
using System; using System.Collections.Generic; using System.Linq; namespace Contest { class Program { static void Main() { int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int personCount = input[0]; int point = input[1]; int quizCount = input[2]; int[] person = new int[per...
using System; using System.Collections.Generic; using System.Linq; namespace Contest { class Program { static void Main() { int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int personCount = input[0]; int point = input[1]; int quizCount = input[2]; int[] person = new int[per...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]]
8
169
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC141 { class Program { static void Main(string[] args) { // b(); c(); } public static void a() { string s = Console.ReadLine(); if (s == "Sunny") Console.WriteLin...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC141 { class Program { static void Main(string[] args) { // b(); c(); } public static void a() { string s = Console.ReadLine(); if (s == "Sunny") Console.WriteLin...
[["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
392
2
using System; using System.Linq; class Program { static void Main(string[] args) { var initial = Console.ReadLine(); var N = int.Parse(initial.Split(' ')[0]); var K = int.Parse(initial.Split(' ')[1]); var Q = int.Parse(initial.Split(' ')[2]); if (K > Q) { for (int i = 0; i < N; i++) { ...
using System; using System.Linq; class Program { static void Main(string[] args) { var initial = Console.ReadLine(); var N = int.Parse(initial.Split(' ')[0]); var K = int.Parse(initial.Split(' ')[1]); var Q = int.Parse(initial.Split(' ')[2]); if (K > Q) { for (int i = 0; i < N; i++) { ...
[["-", 0, 28, 0, 41, 15, 16, 31, 16, 31, 22], ["+", 0, 41, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 41, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 28, 0, 41, 15, 16, 31, 16, 17, 72], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203]]
8
208
6
using System; class Program { static void Main(string[] args) { // 入力値を取得 string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int k = int.Parse(input[1]); int q = int.Parse(input[2]); // 初期値 int[] points = new int[n]; for (int i = 0; i < q; i++) { points...
using System; class Program { static void Main(string[] args) { // 入力値を取得 string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int k = int.Parse(input[1]); int q = int.Parse(input[2]); // 初期値 int[] points = new int[n]; for (int i = 0; i < n; i++) { points...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
189
2
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace atcoder { class Program { static void Main(string[] args) { var nm = Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray(); var m = nm[1]; var pQueue = new PriorityQueue<int>(nm[0],...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace atcoder { class Program { static void Main(string[] args) { var nm = Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray(); var m = nm[1]; var pQueue = new PriorityQueue<long>(nm[0]...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199]]
8
730
4
using System; using System.Collections.Generic; namespace abc141_d { class Program { static void Main(string[] args) { var n = CIn.ReadInt(); var m = CIn.ReadInt(); var pq = new PriorityQueue<int>(); for (var i = 0; i < n; i++) { pq.Enqueue(CIn.ReadInt()); } for (var i = 0; i < m; i++...
using System; using System.Collections.Generic; namespace abc141_d { class Program { static void Main(string[] args) { var n = CIn.ReadInt(); var m = CIn.ReadInt(); var pq = new PriorityQueue<int>(); for (var i = 0; i < n; i++) { pq.Enqueue(CIn.ReadInt()); } for (var i = 0; i < m; i++...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
854
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace SplitLength { class Program { static void Main(string[] args) { var array = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = array[0]; var M = array[1]; var priceArray = Console.Read...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace SplitLength { class Program { static void Main(string[] args) { var array = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = array[0]; var M = array[1]; var priceArray = Console.Read...
[["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 22], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 22], ["-", 0, 218, 8, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 218, 8, 213, 3, 4, 0, 28, 0, 22]]
8
1,865
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { // static string S; static int[] N; static long[] A; // static int[] C; static List<long> list = new List<long>(); s...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { // static string S; static int[] N; static long[] A; // static int[] C; static List<long> list = new List<long>(); s...
[["+", 0, 212, 0, 230, 3, 4, 0, 28, 0, 203]]
8
1,129
1
using System; using System.Collections.Generic; using System.Linq; namespace Contest { class ABC { static void Main() { Solve(); } private static void Solve() { int N = int.Parse(Console.ReadLine()); string INPUT = Console.ReadLine(); int res = 0; for (int i = 0; i < N - 1; i++) { if (INPUT[...
using System; using System.Collections.Generic; using System.Linq; namespace Contest { class ABC { static void Main() { Solve(); } private static void Solve() { int N = int.Parse(Console.ReadLine()); string INPUT = Console.ReadLine(); int res = 1; for (int i = 0; i < N - 1; i++) { if (INPUT[...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
120
2
using System; namespace C___Slimes { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); int Slimes = 1; for (int i = 0; i < S.Length; i++) { if (S[i] != S[i + 1]) { Slimes += 1; } } Console.WriteLine(Slim...
using System; namespace C___Slimes { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); int Slimes = 1; for (int i = 0; i < S.Length - 1; i++) { if (S[i] != S[i + 1]) { Slimes += 1; } } Console.WriteLine(...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
95
2
using System; using System.Linq; namespace lineAralgebra { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var S = Console.ReadLine(); var deleteCount = 0; for (var i = 0; i < S.Length; i++) { for (var j = i + 1; j < S.Length; j++) { if (S[i] ...
using System; using System.Linq; namespace lineAralgebra { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var S = Console.ReadLine(); var deleteCount = 0; for (var i = 0; i < S.Length; i++) { for (var j = i + 1; j < S.Length; j++) { if (S[i] ...
[["+", 8, 196, 0, 57, 75, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 75, 196, 0, 93, 0, 35], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 46], ["-", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 57, 75, 196, 0, 93, 0, 94], ["-", 0, 7, 8, 196, 0, 57, 75, 196, 0, 46]]
8
131
6
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.D { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var N = ReadLong(...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.D { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var N = ReadLong(...
[["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 33], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22]]
8
390
6
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; using AtCoder.Collections; using AtCoder.Mathematics; using AtCoder.Extensions; namespace AtCoder { class Program { static void Main(string[] args) {...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; using AtCoder.Collections; using AtCoder.Mathematics; using AtCoder.Extensions; namespace AtCoder { class Program { static void Main(string[] args) {...
[["+", 31, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
3,080
2
using System; using System.Linq; public class AtCoderD { static void Main() { int n = int.Parse(Console.ReadLine()); int[] nums = new int[n]; { var line = Console.ReadLine(); var words = line.Split(' '); for (int i = 0; i < n; i++) { nums[i] = int.Parse(words[i]); } }...
using System; using System.Linq; public class AtCoderD { static void Main() { int n = int.Parse(Console.ReadLine()); int[] nums = new int[n]; { var line = Console.ReadLine(); var words = line.Split(' '); for (int i = 0; i < n; i++) { nums[i] = int.Parse(words[i]); } }...
[["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
242
2
using System; using System.Collections.Generic; using System.Linq; using static Input; using NX = System.Int64; public class Prog { public struct Pair { public int x, y; public Pair(int a, int b) { x = a; y = b; } } public static void Solve() { int N = NextInt(); int[] L = LineInt...
using System; using System.Collections.Generic; using System.Linq; using static Input; using NX = System.Int64; public class Prog { public struct Pair { public int x, y; public Pair(int a, int b) { x = a; y = b; } } public static void Solve() { int N = NextInt(); int[] L = LineInt...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22]]
8
713
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace jugyo1024 { class Program { static void Main(string[] args) { var _ = Console.ReadLine(); var arr = Console.ReadLine() .Split(' ') .Select(x => int...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace jugyo1024 { class Program { static void Main(string[] args) { var _ = Console.ReadLine(); var arr = Console.ReadLine() .Split(' ') .Select(x => int...
[["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 18]]
8
265
2
using System; using System.Linq; using System.Collections.Generic; class ProgramD { static void Main(string[] args) { string input = Console.ReadLine(); int n = int.Parse(input); string[] L = Console.ReadLine().Split(); int count = 0; int[] Li = new int[n]; for (int i = 0; i < n; i++) ...
using System; using System.Linq; using System.Collections.Generic; class ProgramD { static void Main(string[] args) { string input = Console.ReadLine(); int n = int.Parse(input); string[] L = Console.ReadLine().Split(); int count = 0; int[] Li = new int[n]; for (int i = 0; i < n; i++) ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 75, 93, 0, 94], ["+", 0, 7, 8, 196, 0, 57, 75, 116, 0, 117]]
8
215
4
using AtCoderBeginnerContest143.Questions; using AtCoderBeginnerContest143.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace AtCoderBeginnerContest143.Questions { public class QuestionE : AtCoderQuestionBase { public override IEnumerable<...
using AtCoderBeginnerContest143.Questions; using AtCoderBeginnerContest143.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace AtCoderBeginnerContest143.Questions { public class QuestionE : AtCoderQuestionBase { public override IEnumerable<...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
891
2
using System; using System.Collections.Generic; using static Assistant.Input; using System.Linq; using Assistant; using System.Text; namespace ABC143E { class Program { static public long L; static void Main(string[] args) { var N = ReadInt; var M = ReadInt; L = ReadLong; WarshallFloyd wf = new W...
using System; using System.Collections.Generic; using static Assistant.Input; using System.Linq; using Assistant; using System.Text; namespace ABC143E { class Program { static public long L; static void Main(string[] args) { var N = ReadInt; var M = ReadInt; L = ReadLong; WarshallFloyd wf = new W...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
757
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } static void Solve() { ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } static void Solve() { ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 21], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73]]
8
2,149
7
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { partial class Program { static int ReadInt() { return int.Parse(Console.ReadLine()); } static long ReadLong() { return long.Parse(Console.ReadLine()); } static int[] ReadIntArray() { return Consol...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { partial class Program { static int ReadInt() { return int.Parse(Console.ReadLine()); } static long ReadLong() { return long.Parse(Console.ReadLine()); } static int[] ReadIntArray() { return Consol...
[["-", 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
2,166
8
using System; using System.Linq; using System.Collections.Generic; class ProgramE { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int n = int.Parse(input[0]); int m = int.Parse(input[1]); long L = long.Parse(input[2]); int[,] road = new int[n, n]; int[,] gas ...
using System; using System.Linq; using System.Collections.Generic; class ProgramE { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int n = int.Parse(input[0]); int m = int.Parse(input[1]); long L = long.Parse(input[2]); int[,] road = new int[n, n]; int[,] gas ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
597
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) { Scanner cin = new Scanner(); int n = cin.Int(); int m = cin.Int(); ...
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) { Scanner cin = new Scanner(); int n = cin.Int(); int m = cin.Int(); ...
[["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22]]
8
934
2
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; using System.Numerics; using System.Text.RegularExpressions; using System.Runtime.Serialization.Formatters.Binary; namespace atcorder2 { [Serializable] static class Program { public static long Read() { r...
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; using System.Numerics; using System.Text.RegularExpressions; using System.Runtime.Serialization.Formatters.Binary; namespace atcorder2 { [Serializable] static class Program { public static long Read() { r...
[["-", 0, 28, 0, 41, 15, 16, 31, 214, 205, 22], ["+", 0, 28, 0, 41, 15, 16, 31, 214, 205, 22], ["-", 0, 28, 0, 41, 15, 16, 31, 214, 141, 22], ["+", 0, 28, 0, 41, 15, 16, 31, 214, 141, 22], ["+", 0, 41, 75, 16, 31, 16, 31, 214, 205, 22], ["+", 0, 41, 75, 16, 31, 16, 31, 214, 0, 131], ["+", 0, 41, 75, 16, 31, 16, 31, 214...
8
1,034
8
using System; using System.Text; using System.Collections.Generic; using System.Collections; using System.Linq; using E = System.Linq.Enumerable; class Program { static char[] abc = "abcdefghijklmnopqrstuvwxyz".ToCharArray(); static char[] moji = "atcoder@".ToCharArray(); static long mod = 1000000007; static vo...
using System; using System.Text; using System.Collections.Generic; using System.Collections; using System.Linq; using E = System.Linq.Enumerable; class Program { static char[] abc = "abcdefghijklmnopqrstuvwxyz".ToCharArray(); static char[] moji = "atcoder@".ToCharArray(); static long mod = 1000000007; static vo...
[["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]]
8
303
4
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics.Contracts; using System.IO; using System.Linq; using System.Numerics; using System.Xml.Schema; using System.Threading; using System.Diagnostics.CodeAnalysis; using System.Security.Cryptography; using System.IO.Pipes; ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics.Contracts; using System.IO; using System.Linq; using System.Numerics; using System.Xml.Schema; using System.Threading; using System.Diagnostics.CodeAnalysis; using System.Security.Cryptography; using System.IO.Pipes; ...
[["-", 12, 16, 12, 16, 12, 23, 0, 16, 17, 72], ["-", 12, 16, 12, 16, 12, 23, 0, 16, 12, 203]]
8
2,195
2
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Security.Cryptography; class Program { const string Yes = "Yes"; const string No = "No"; const char White = '.'; const char Black =...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Security.Cryptography; class Program { const string Yes = "Yes"; const string No = "No"; const char White = '.'; const char Black =...
[["+", 0, 37, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 37, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 37, 0, 16, 31, 16, 31, 74, 0, 25]]
8
485
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 22]]
8
1,370
4
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { AGC039.A(); } class AGC039 { public static void A() { var S = Read.Str(); var K = Read.Long(); int count0 = 0; bool lastMod0 = false; for (int ...
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { AGC039.A(); } class AGC039 { public static void A() { var S = Read.Str(); var K = Read.Long(); int count0 = 0; bool lastMod0 = false; for (int ...
[["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 0, 200, 0, 212, 0, 16, 31, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 16, 31, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 60], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
1,882
6
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() { int N = S.Length; List<int> cnt = new List<int>(); List<char> key = ne...
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() { int N = S.Length; List<int> cnt = new List<int>(); List<char> key = ne...
[["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
599
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; namespace Program { public static class AGC039A { static public int numberOfRandomCases = 0; static public void MakeTestCase(List<string> _input, List<string> _out...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; namespace Program { public static class AGC039A { static public int numberOfRandomCases = 0; static public void MakeTestCase(List<string> _input, List<string> _out...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
10,539
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Console; namespace AtCoder_1 { class Program { static void Main(string[] args) { var sb = Cin(); var S = new StringBuilder(sb); var...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Console; namespace AtCoder_1 { class Program { static void Main(string[] args) { var sb = Cin(); var S = new StringBuilder(sb); var...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 0, 57, 15, 16, 12, 16, 31, 214, 205, 22], ["-", 0, 57, 15, 16, 12, 16, 31, 214, 0, 131], ["-", 0, 57, 15, 16, 12, 16, 31, 214, 141, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
1,118
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.AGC_039 { class A { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.AGC_039 { class A { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["+", 0, 7, 8, 1, 0, 11, 12, 16, 17, 48], ["+", 0, 7, 8, 1, 0, 11, 12, 16, 12, 22]]
8
535
4
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var k = long.Parse(Console.ReadLine()); if (s.Length == 1 && k == 1) { Console.WriteLine(0); return; } var index = 0...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var k = long.Parse(Console.ReadLine()); if (s.Length == 1 && k == 1) { Console.WriteLine(0); return; } var index = 0...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 28, 0, 16, 31, 16, 31, 214, 205, 22], ["+", 0, 28, 0, 16, 31, 16, 31, 214, 0, 131], ["+", 0, 28, 0, 16, 31, 16, 31, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48]]
8
278
6
using System; class ConnectionandDisconnection { static void Main(string[] args) { string S = Console.ReadLine(); int K = int.Parse(Console.ReadLine()); Console.WriteLine(disconnect(S, K)); } static long disconnect(string conn_str, int loop) { long totalCounter = 0; if (conn_str.Length == 0) ...
using System; class ConnectionandDisconnection { static void Main(string[] args) { string S = Console.ReadLine(); long K = long.Parse(Console.ReadLine()); Console.WriteLine(disconnect(S, K)); } static long disconnect(string conn_str, long loop) { long totalCounter = 0; if (conn_str.Length == ...
[["-", 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
978
6
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string S = Console.ReadLine(); long K = long.Parse(Console.ReadLine()); long ans1 = 0; long ct = 0; for (var i = 0; i < S.Length - 1; i++) { if (S.Substring(i, 1) == S.Substring(i + 1, 1)) { ...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string S = Console.ReadLine(); long K = long.Parse(Console.ReadLine()); long ans1 = 0; long ct = 0; for (var i = 0; i < S.Length - 1; i++) { if (S.Substring(i, 1) == S.Substring(i + 1, 1)) { ...
[["-", 12, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 12, 203]]
8
368
2
using System; namespace AGC039 { class A { static void Main(string[] args) { string S = Console.ReadLine(); long K = long.Parse(Console.ReadLine()); long count = 1; long res = 0; bool eQu = false; bool sC = false; bool eC = false; for (int i = 0; i < S.Length - 1;) { if (S[i]...
using System; namespace AGC039 { class A { static void Main(string[] args) { string S = Console.ReadLine(); long K = long.Parse(Console.ReadLine()); long count = 1; long res = 0; bool eQu = false; bool sC = false; bool eC = false; for (int i = 0; i < S.Length - 1;) { if (S[i]...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 111], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 22]]
8
388
3
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; using N = System.Int64; // intつかうときとlongつかうときでかえる public class Solver { public void Solve() { string s = rs; N k = ri; N ans = 0; N a = 0, b = 0; bool p = false, q = false...
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; using N = System.Int64; // intつかうときとlongつかうときでかえる public class Solver { public void Solve() { string s = rs; N k = ri; N ans = 0; N a = 0, b = 0; bool p = false, q = false...
[["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
2,364
2
using System; using System.Collections.Generic; public class Program { public void Solve() { var sc = new Scanner(); var S = sc.Next(); int N = S.Length; int K = sc.NextInt(); long ans = 0; var l = new List<int>(); char c = '\0'; for (int i = 0; i < N; i++) { if (S[i] != c) { ...
using System; using System.Collections.Generic; public class Program { public void Solve() { var sc = new Scanner(); var S = sc.Next(); int N = S.Length; long K = sc.NextInt(); long ans = 0; var l = new List<long>(); char c = '\0'; for (int i = 0; i < N; i++) { if (S[i] != c) ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 8, 196, 0, 57, 75, 196, 0, 210, 39, 199], ["+", 8, 196, 0, 57, 75, 196, 0, 210, 39, 199]]
8
732
6
using System; using static System.Console; class Program { static long count(string s) { long ans = 0; char curr = '*'; long nseries = 0; for (int i = 0; i < s.Length; i++) { if (s[i] == curr) nseries++; else { ans += nseries / 2; curr = s[i]; nseries = 1; ...
using System; using static System.Console; class Program { static long count(string s) { long ans = 0; char curr = '*'; long nseries = 0; for (int i = 0; i < s.Length; i++) { if (s[i] == curr) nseries++; else { ans += nseries / 2; curr = s[i]; nseries = 1; ...
[["-", 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
301
4
using System; using System.IO; using System.Net; using System.Net.Sockets; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Math; using MethodImplOptions = System.Runtime.CompilerServ...
using System; using System.IO; using System.Net; using System.Net.Sockets; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Math; using MethodImplOptions = System.Runtime.CompilerServ...
[["-", 3, 4, 0, 28, 0, 218, 8, 241, 0, 111]]
8
996
1
using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Security.Cryptography.X509Certificates; namespace atcorder { class Program { static void Main(string[] args) { double N = double.Parse(Console.ReadLine()); if (N % 2 == 0) { Console.WriteLine(N / 2 / N...
using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Security.Cryptography.X509Certificates; namespace atcorder { class Program { static void Main(string[] args) { double N = double.Parse(Console.ReadLine()); if (N % 2 == 0) { Console.WriteLine((N / 2) /...
[["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 31, 23, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 31, 23, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 31, 23, 0, 16, 31, 16, 31, 74, 0, 25]]
8
120
5
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() { Scaner cin = new Scaner(); 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() { Scaner cin = new Scaner(); write wr = new write()...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]]
8
959
1
using System; using static System.Console; using static System.Math; namespace Main { class Program { static void Main(string[] args) { decimal N = decimal.Parse(ReadLine()); Write(N % 2 == 0 ? Floor(N / 2) / N : (Floor(N / 2) + 1) / 2); } } }
using System; using static System.Console; using static System.Math; namespace Main { class Program { static void Main(string[] args) { decimal N = decimal.Parse(ReadLine()); Write(N % 2 == 0 ? Floor(N / 2) / N : (Floor(N / 2) + 1) / N); } } }
[["-", 3, 4, 0, 28, 0, 41, 75, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 12, 22]]
8
77
2
using System; class P { static void Main() { double a = double.Parse(Console.ReadLine()); double odd = 0; for (int i = 1; i < a; i++) { if (i % 2 == 1) { odd++; } } Console.WriteLine(odd / a); } }
using System; class P { static void Main() { double a = double.Parse(Console.ReadLine()); double odd = 0; for (int i = 1; i <= a; i++) { if (i % 2 == 1) { odd++; } } Console.WriteLine(odd / a); } }
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
71
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Contest20191017 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int Counter = 0; for (int i = 0; i < N; i++) { if (i % 2 != 0) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Contest20191017 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int Counter = 0; for (int i = 1; i <= N; i++) { if (i % 2 != 0) {...
[["-", 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
111
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace A { class Program { static void Main(string[] args) { int input = int.Parse(Console.ReadLine()); int ret = (int)Math.Ceiling(input / 2.0); Console.WriteLine(ret); } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace A { class Program { static void Main(string[] args) { int input = int.Parse(Console.ReadLine()); int ret = (int)Math.Ceiling(input / 2.0); Console.WriteLine(ret / (double)input); ...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 3, 4, 0, 28, 0, 16, 12, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 12, 74, 51, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25]]
8
82
5
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_20190707_1 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); string OK = "No"; for (int i = 0; i < 10; i++) { if (N % i ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_20190707_1 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); string OK = "No"; for (int i = 1; i < 10; i++) { if (N % i ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
112
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; class EightyONe { static void Main(string[] args) { var input = int.Parse(Console.ReadLine()); var ans = ""; bool flag = false; if (input > 81) { ans = "No"; } else { for (var i = 2; i < 10;...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; class EightyONe { static void Main(string[] args) { var input = int.Parse(Console.ReadLine()); var ans = ""; bool flag = false; if (input > 81) { ans = "No"; } else { for (var i = 1; i < 10;...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
141
2
using System; namespace Sample { class Sample { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int flg = 0; for (int i = 1; i <= 9; i++) { if ((N / i < 10) && (N % 1 == 0)) { flg = 1; } } if (flg == 1) { Console.WriteLine("Yes"); } else { ...
using System; namespace Sample { class Sample { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int flg = 0; for (int i = 1; i <= 9; i++) { if (((N / i) < 10) && ((N % i) == 0)) { flg = 1; } } if (flg == 1) { Console.WriteLine("Yes"); } else ...
[["+", 15, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 23, 0, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["-", 15, 16, 12, 23, 0, 16, 31, 16, 12, 203], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 15, 16, 12, 23, 0, 16, 31, 23, 0, 25]]
8
110
6
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static void Main(string[] args) { try { Solve.Answer(); } catch (Exception ex) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static void Main(string[] args) { try { Solve.Answer(); } catch (Exception ex) { ...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
1,017
2
using System; using System.Text; using System.Collections.Generic; using static System.Math; using System.Linq; using static System.Array; namespace ConsoleApp2 { class Program { static long[,] A; static bool[,] map; static long count = 0; static long N; static long[] used; static long ans = 0; static vo...
using System; using System.Text; using System.Collections.Generic; using static System.Math; using System.Linq; using static System.Array; namespace ConsoleApp2 { class Program { static long[,] A; static bool[,] map; static long count = 0; static long N; static long[] used; static long ans = 0; static vo...
[["-", 0, 195, 8, 196, 0, 37, 0, 211, 0, 146], ["+", 0, 195, 8, 196, 0, 37, 0, 211, 0, 147]]
8
181
2
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()); for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { if (i * j == n) { Console.WriteLine("Yes"); ...
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()); for (int i = 1; i < 10; i++) for (int j = 1; j < 10; j++) if (i * j == n) { Console.WriteLine("Yes"); ...
[["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 45], ["-", 0, 7, 8, 196, 0, 7, 8, 196, 0, 45], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 7, 8, 196, 0, 7, 8, 196, 0, 46], ["+", 8, 7, 8, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 7, 8, 57, 64, 196, 0, 37, 0, 35]]
8
107
2
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()); for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { if (i * j == n) { Console.WriteLine("Yes"); ...
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()); for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { if (i * j == n) { Console.WriteLine("Yes"); ...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]]
8
107
2
using System; class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); //標準入力 for (int i = 1; i < 10; i++) { int b = a / i; if (a % i > 0) { continue; } if (b < 10) { Console.WriteLine("yes"); return; } } Console.Wri...
using System; class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); //標準入力 for (int i = 1; i < 10; i++) { int b = a / i; if (a % i > 0) { continue; } if (b < 10) { Console.WriteLine("Yes"); return; } } Console.Wri...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
96
4
using System; namespace B_81 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string ans = "NO"; for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { if (i * j == n) { ans = "YES"; break; } } } Cons...
using System; namespace B_81 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string ans = "No"; for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { if (i * j == n) { ans = "Yes"; break; } } } Cons...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
100
4
using System; class P { static void Main() { int val = int.Parse(Console.ReadLine()); int kekka; string s = "NO"; for (int i = 1; i <= 9; i++) { if (val % i == 0) { if (val / i <= 9) { s = "YES"; break; } } } Console.WriteLine(s); } }
using System; class P { static void Main() { int val = int.Parse(Console.ReadLine()); int kekka; string s = "No"; for (int i = 1; i <= 9; i++) { if (val % i == 0) { if (val / i <= 9) { s = "Yes"; break; } } } Console.WriteLine(s); } }
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
89
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _81 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string ans = "no"; for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j+...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _81 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string ans = "No"; for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j+...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
131
4
using System; class Program { static void Main(string[] args) { // 整数の入力 int a = int.Parse(Console.ReadLine()); bool result = false; //計算 for (int i = 1; i > 10; i++) { for (int j = 1; j > 10; j++) { if (i * j == a) { result = true; } } } //判定 if ...
using System; class Program { static void Main(string[] args) { // 整数の入力 int a = int.Parse(Console.ReadLine()); bool result = false; //計算 for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { if (i * j == a) { result = true; } } } //判定 if ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18]]
8
113
4
using System; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { if (i * j == n) { Console.WriteLine("YES"); return; } } } Console.WriteLine("NO"); } }
using System; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { if (i * j == n) { Console.WriteLine("Yes"); return; } } } Console.WriteLine("No"); } }
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
94
4
using System; public class Program { private static void Main() { int N = int.Parse(Console.ReadLine()); bool result = false; for (int i = 2; i <= 9; i++) { if (N % i == 0 && N / i <= 9) { Console.WriteLine("Yes"); return; } } Console.WriteLine("No"); } }
using System; public class Program { private static void Main() { int N = int.Parse(Console.ReadLine()); bool result = false; for (int i = 1; i <= 9; i++) { if (N % i == 0 && N / i <= 9) { Console.WriteLine("Yes"); return; } } Console.WriteLine("No"); } }
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
87
2
using System; class program { static void Main(string[] args) { int num = int.Parse(Console.ReadLine()); float z; for (int k = 1; k <= 9; k++) { z = (float)num / (float)k; int y; y = (int)z * k; if (y == num && (int)z <= 9 && num != 1) { Console.WriteLine("Yes"); ...
using System; class program { static void Main(string[] args) { int num = int.Parse(Console.ReadLine()); float z; for (int k = 1; k <= 9; k++) { z = (float)num / (float)k; int y; y = (int)z * k; if (y == num && (int)z <= 9) { Console.WriteLine("Yes"); Environment....
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
119
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static int N; static void INPUT() { N = NextInt(); } static void OUT() { var b = false; for (int i = 2; i <= 9; i++) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static int N; static void INPUT() { N = NextInt(); } static void OUT() { var b = false; for (int i = 1; i <= 9; i++) ...
[["-", 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, 1, 0, 11, 12, 203], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203]]
8
476
4
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { // string[] str = Console.ReadLine().Split(' // ');//2つ以上のスペース区切り入力の取得 string str = Console.ReadLine(); int A = int.Parse(str); // int B = int.Parse(str[1]); // string[] strHeight = Console.Read...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { // string[] str = Console.ReadLine().Split(' // ');//2つ以上のスペース区切り入力の取得 string str = Console.ReadLine(); int A = int.Parse(str); // int B = int.Parse(str[1]); // string[] strHeight = Console.Read...
[["+", 64, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 64, 196, 0, 57, 64, 196, 0, 37, 0, 35]]
8
112
2
using System; namespace B { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); for (int i = 1; i <= 9; i++) { if (N % i != 0 && N / i <= 9) { Console.WriteLine("Yes"); return; } } Console.WriteLine("No"); } } }
using System; namespace B { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); for (int i = 1; i <= 9; i++) { if (N % i == 0 && N / i <= 9) { Console.WriteLine("Yes"); return; } } Console.WriteLine("No"); } } }
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60]]
8
88
2
using System; public class Program { public static int maxM; public static int[] shinamonotachi; public static void Main(string[] args) { var input = int.Parse(Console.ReadLine()); var answers = new int[81]; var index = 0; for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { ...
using System; public class Program { public static int maxM; public static int[] shinamonotachi; public static void Main(string[] args) { var input = int.Parse(Console.ReadLine()); var answers = new int[81]; var index = 0; for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { ...
[["+", 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
138
3
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Globalization; using System.Numerics; using System.Text.RegularExpressions; // byte 255 int<2147483647 ≒ 2 * 10^9 long < 9223372036854775807 ≒ 9 * 10^18 // decimal 29桁 class Myo...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Globalization; using System.Numerics; using System.Text.RegularExpressions; // byte 255 int<2147483647 ≒ 2 * 10^9 long < 9223372036854775807 ≒ 9 * 10^18 // decimal 29桁 class Myo...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]]
8
1,428
2
using System; using System.Collections.Generic; using System.Linq; public class Solution { public static void Main() { var n = int.Parse(Console.ReadLine()); var ok = false; for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { if (i * j == n) { ok = true; } ...
using System; using System.Collections.Generic; using System.Linq; public class Solution { public static void Main() { var n = int.Parse(Console.ReadLine()); var ok = false; for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { if (i * j == n) { ok = true; } ...
[["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
108
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _1 { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); for (int i = 9; i >= 1; i--) { if (a % i == 0) { if (i < 9 && a / i < 9) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _1 { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); for (int i = 9; i >= 1; i--) { if (a % i == 0) { if (i <= 9 && a / i <= 9) ...
[["-", 64, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["-", 64, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 17, 19]]
8
120
4
using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOptions; using MethodImplAttr...
using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOptions; using MethodImplAttr...
[["-", 0, 57, 15, 16, 12, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 85]]
8
152
2
using System; namespace C { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long n = (long)Math.Sqrt((double)N); if ((long)Math.Pow((double)n, 2.0) == N) { Console.WriteLine((long)n - 1); return; } for (long i = n; i > 1; i--) { if (N %...
using System; namespace C { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long n = (long)Math.Sqrt((double)N); if ((long)Math.Pow((double)n, 2.0) == N) { Console.WriteLine((long)(n * 2) - 2); return; } for (long i = n; i > 1; i--) { i...
[["+", 0, 28, 0, 16, 31, 74, 51, 23, 0, 24], ["+", 0, 16, 31, 74, 51, 23, 0, 16, 17, 48], ["+", 0, 16, 31, 74, 51, 23, 0, 16, 12, 203], ["+", 0, 28, 0, 16, 31, 74, 51, 23, 0, 25], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
142
6
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 10, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 10, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["-", 0, 1, 0, 11, 12, 16, 31, 74...
8
663
10
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static long N; static void INPUT() { N = NextLong(); } static void OUT() { var a = long.MaxValue; for (var n = 1; n ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static long N; static void INPUT() { N = NextLong(); } static void OUT() { var a = long.MaxValue; for (var n = 1L; n...
[["-", 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
472
4
using System; namespace C { class Program { static void Main(string[] args) { string input = Console.ReadLine(); int n = int.Parse(input); double rootn = Math.Sqrt(n); int max = 0; for (int i = 1; i < rootn + 1; i++) { if (n % i == 0 & i > max) { max = i; } } Console...
using System; namespace C { class Program { static void Main(string[] args) { string input = Console.ReadLine(); long n = long.Parse(input); double rootn = Math.Sqrt(n); long max = 0; for (long i = 1; i < rootn + 1; i++) { if (n % i == 0 & i > max) { max = i; } } Cons...
[["-", 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], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199]]
8
105
8
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; public static class P { public static void Ma...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; public static class P { public static void Ma...
[["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
145
2
using System; using System.Collections.Generic; using System.Linq; namespace c { class Program { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); var l = new List<long>(); var count = long.MaxValue; for (var i = 1; i < Math.Sqrt(n); i++) { if (n % i == 0) { cou...
using System; using System.Collections.Generic; using System.Linq; namespace c { class Program { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); var l = new List<long>(); var count = long.MaxValue; for (var i = 1; i < Math.Sqrt(n) + 1; i++) { if (n % i == 0) { ...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
121
2
using System; using System.Collections.Generic; using System.ComponentModel.Design; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; public static class Program { private static readonly long INF = long.MaxValue / 2; private static readonly int MOD = 1000000...
using System; using System.Collections.Generic; using System.ComponentModel.Design; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; public static class Program { private static readonly long INF = long.MaxValue / 2; private static readonly int MOD = 1000000...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
1,720
2
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using static System.Math; class Solver { Scanner sc = new Scanner(); public void Solve() { var N = sc.nextLong(); long min = long.MaxValue; for (long i = 0; i * i < N; i++) { if (i == 0) conti...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using static System.Math; class Solver { Scanner sc = new Scanner(); public void Solve() { var N = sc.nextLong(); long min = long.MaxValue; for (long i = 0; i * i <= N; i++) { if (i == 0) cont...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
583
2
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { long n = ReadLineLong(); long i = 1; long rtn_a = 0; long rtn_b = 0; while (i * i < n) { if (n % i == 0) { rtn_a = n / i; ...
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { long n = ReadLineLong(); long i = 1; long rtn_a = 0; long rtn_b = 0; while (i * i <= n) { if (n % i == 0) { rtn_a = n / i; ...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
745
2
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); long i = 1; var xys = new List<long[]>(); while (i < Math.Sqrt(n)) { if (n % i == 0) { var xy = new long[...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); long i = 1; var xys = new List<long[]>(); while (i <= Math.Sqrt(n)) { if (n % i == 0) { var xy = new long...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
159
2