buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; namespace AtCoder.ABC { class QuestionB { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var d = Console.ReadLine().Split...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; namespace AtCoder.ABC { class QuestionB { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var d = Console.ReadLine().Split...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 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, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 195, 8, 196, 0, 57, 15, 16...
8
320
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass { static void Main() { int N = int.Parse(ReadLine()); var D = ReadLine().Split().Select(int.Parse).ToArray(); var A = new int[N]; int max = 0; for (int i = 0; ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass { static void Main() { int N = int.Parse(ReadLine()); var D = ReadLine().Split().Select(int.Parse).ToArray(); var A = new int[N]; int max = 0; for (int i = 0; ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 31, ...
8
534
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { const long mod = 998244353; // 入力 long n = long.Parse(Console.ReadLine()); long[] d = Console.ReadLine().Split().Select(long.Parse).ToArra...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { const long mod = 998244353; // 入力 long n = long.Parse(Console.ReadLine()); long[] d = Console.ReadLine().Split().Select(long.Parse).ToArra...
[["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15...
8
225
using System; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(); int[] D = new int[N]; var r = 1L; for (int i = 0; i < N; i++) { D[i] = int.Parse(input[i]); if (D[0] > 0) { r ...
using System; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(); int[] D = new int[N]; var r = 1L; for (int i = 0; i < N; i++) { D[i] = int.Parse(input[i]); if (D[0] > 0) { r ...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 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], ...
8
341
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 { const long MOD = 998244353; static void Main(string[] args) { var cin = new Scanner2(); int n = cin.Int(...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { const long MOD = 998244353; static void Main(string[] args) { var cin = new Scanner2(); int n = cin.Int(...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+...
8
708
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { class modMCalc { private const int M = 998244353; // 素数(int範囲) // 乗算結果 % Mを求める static public int Mul(int a, int b) { return (int)(Math.BigMul(a, b) % M); } ...
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { class modMCalc { private const int M = 998244353; // 素数(int範囲) // 乗算結果 % Mを求める static public int Mul(int a, int b) { return (int)(Math.BigMul(a, b) % M); } ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 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, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 195, 8, 196, 0, 57, 15, 16...
8
388
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { static class Extensions { public static int LowerBound<T>(this IList<T> list, T value, IComparer<T> comp = null) { if (comp == null) comp = Comparer<T>.Default;...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { static class Extensions { public static int LowerBound<T>(this IList<T> list, T value, IComparer<T> comp = null) { if (comp == null) comp = Comparer<T>.Default;...
[["-", 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], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ...
8
2,768
using System; using System.Linq; using System.Collections.Generic; using System.Collections; namespace Algorithm { class Program { const int Mod = 998244353; static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var d = Console.ReadLine().Split().Select(int.Parse).ToArray(); var dic...
using System; using System.Linq; using System.Collections.Generic; using System.Collections; namespace Algorithm { class Program { const int Mod = 998244353; static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var d = Console.ReadLine().Split().Select(int.Parse).ToArray(); var dic...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 31, ...
8
285
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 NIKKEI2019_2_QUALB { static public int numberOfRandomCases = 0; static public void MakeTestCase(List<string> _input, List<s...
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 NIKKEI2019_2_QUALB { static public int numberOfRandomCases = 0; static public void MakeTestCase(List<string> _input, List<s...
[["+", 15, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 15, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 15, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["+", 15, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 57, 15...
8
9,783
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...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 17, 79], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 98], ["+...
8
1,559
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { Console.WriteLine(Solve()); // Solve(); return; } public static string Solve() { long N = ReadLong(); long[] D = ReadLongs(); long mod = 998244353; long ans = 1; long target = ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { Console.WriteLine(Solve()); // Solve(); return; } public static string Solve() { long N = ReadLong(); long[] D = ReadLongs(); long mod = 998244353; long ans = 1; long target = ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, ...
8
431
using System; using System.Collections.Generic; using System.Linq; using static Input; using NX = System.Int64; public class Prog { public static void Solve() { int N = NextInt(); NX mod = 998244353; NX[] D = LineLong(); var d = D.OrderBy(x => x).ToList(); if (N > 1 && d[1] == 0) { Console....
using System; using System.Collections.Generic; using System.Linq; using static Input; using NX = System.Int64; public class Prog { public static void Solve() { int N = NextInt(); NX mod = 998244353; NX[] D = LineLong(); if (D[0] != 0) { Console.WriteLine(0); return; } var d = D.O...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 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, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 195, 8, 196, 0, 57, 15, 16...
8
759
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush...
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 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, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 195, 8, 196, 0, 57, 15, 16...
8
2,621
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long mod = 998244353; long[] B = new long[N + 1]; long[] A = new long[N + 1]; string[] str = Console.ReadLine().Split(); for (var i = 0; i < N; i++) { ...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long mod = 998244353; long[] B = new long[N + 1]; long[] A = new long[N + 1]; string[] str = Console.ReadLine().Split(); for (var i = 0; i < N; i++) { ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12,...
8
306
using System; using System.Linq; namespace B { class Program { static void Main(string[] args) { Console.WriteLine(solver()); } static long solver() { var N = int.Parse(Console.ReadLine()); var D = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); long MOD = 998244353; var distance = new...
using System; using System.Linq; namespace B { class Program { static void Main(string[] args) { Console.WriteLine(solver()); } static long solver() { var N = int.Parse(Console.ReadLine()); var D = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); long MOD = 998244353; if (D[0] != 0) ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 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, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 195, 8, 196, 0, 57, 15, 16...
8
186
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { int n = int.Parse(Console.ReadLine()); long mod = 998244353; long answer = 1; long[] nums = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); ...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { int n = int.Parse(Console.ReadLine()); long mod = 998244353; long answer = 1; long[] nums = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); ...
[["+", 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, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0,...
8
309
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; using static AtCoder.Tool; namespace AtCoder { class AC { const int MOD = 1000000007; const int INF = int.MaxValue / 2; const long SINF = long.MaxValue / 2; ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; using static AtCoder.Tool; namespace AtCoder { class AC { const int MOD = 1000000007; const int INF = int.MaxValue / 2; const long SINF = long.MaxValue / 2; ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 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, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 195, 8, 196, 0, 57, 15, 16...
8
856
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using static Template; using static System.Console; using static System.Convert; using static System.Math; using Pi = Pair<int, int>; using Number = System.Int64; class Solver {...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using static Template; using static System.Console; using static System.Convert; using static System.Math; using Pi = Pair<int, int>; using Number = System.Int64; class Solver {...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 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, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 195, 8, 196, 0, 57, 15, 16...
8
2,271
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 NIKKEI2019_2_QUALD { static public int numberOfRandomCases = 0; static public void MakeTestCase(List<string> _input, List<s...
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 NIKKEI2019_2_QUALD { static public int numberOfRandomCases = 0; static public void MakeTestCase(List<string> _input, List<s...
[["+", 0, 213, 3, 4, 0, 28, 0, 213, 63, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 204, 206, 207, 0, 28, 0, 214, 205, 22], ["+", 0, 204, 206, 207, 0, 28, 0, 214, 0, 131], ["+", 0, 204, 206, 207, 0, 28, 0, 214, 141, 22]...
8
9,683
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace A { 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 A { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 64, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 64, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 64, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 12, 213, 3, 4, 0, 28, 0, 204, 205, ...
8
228
using System; class ProgramA { static void Main(string[] args) { string input = Console.ReadLine(); ulong[] line = new ulong[1000000]; ulong count = 1; ulong count_line = 0; ulong sum = 0; ulong start = 1; for (int i = 1; i < input.Length; i++) { if (input[i] == input[i - 1]) { ...
using System; class ProgramA { static void Main(string[] args) { string input = Console.ReadLine(); ulong[] line = new ulong[10000000]; ulong count = 1; ulong count_line = 0; ulong sum = 0; ulong start = 1; if (input.Length == 1) { Console.WriteLine("1"); return; } f...
[["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, ...
8
253
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 s = cin.next(); var cc = s.ToCharArray(); v...
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 s = cin.next(); var cc = s.ToCharArray(); v...
[["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 1...
8
837
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { ////整数の入力 // int a = int.Parse(Console.ReadLine()); ////スペース区切りの整数の入力 // string[] input = Console.ReadLine().Split(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int ans...
[["-", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["-", 0, 57, 15, 16, 31, 23, 0, 23, 0, 24], ["-", 31, 23, 0, 23, 0, 16, 31, 16, 12, 203], ["-", 15, 16, 31, 23, 0, 23, 0, 16, 17, 98], ["-", 31, 23, 0, 23, 0, 16, 12, 16, 31, 22], ["-", 31, 23, 0, 23, 0, 16, 12, 16, 17, 19], ["-", 31, 23, 0, 23, 0, 16, 12, 16, 12, 203], ["-...
8
153
using System; namespace AtCoder { class Program { static void Main(string[] args) { // 整数の入力 // int a = int.Parse(Console.ReadLine()); // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); int b = int.Parse(input[0]); int c = int.Parse(input[1]); // 文字列の入力 // string s = Con...
using System; namespace AtCoder { class Program { static void Main(string[] args) { // 整数の入力 // int a = int.Parse(Console.ReadLine()); // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); int b = int.Parse(input[0]); int c = int.Parse(input[1]); // 文字列の入力 // string s = Con...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0...
8
102
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 cout = 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 cout = new write...
[["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 57, 15, 16, 31...
8
1,391
using System; using System.Collections.Generic; using System.Linq; public static class Program { public static void Main(string[] args) { var inputs = Console.ReadLine().Split(' '); var a = int.Parse(inputs[0]); var b = int.Parse(inputs[1]); if (a < 10 && b < 10) { Console.WriteLine("-1"); ...
using System; using System.Collections.Generic; using System.Linq; public static class Program { public static void Main(string[] args) { var inputs = Console.ReadLine().Split(' '); var a = int.Parse(inputs[0]); var b = int.Parse(inputs[1]); if (a < 10 && b < 10) { Console.WriteLine(a * b); ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4,...
8
107
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC143D { class Program { static int ans = 0; static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] Linput = Console.ReadLine().Split(' '); int[] L =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC143D { class Program { static int ans = 0; static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] Linput = Console.ReadLine().Split(' '); int[] L =...
[["+", 64, 196, 0, 57, 64, 196, 0, 52, 0, 89], ["+", 64, 196, 0, 57, 64, 196, 0, 52, 0, 24], ["+", 0, 52, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 52, 15, 16, 31,...
8
354
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var A = sc.ReadIntArray(N); Array.Sort(A); long ans = 0; for (int i = 0; i < N; i++) { for (int j = i + 1; j < N; j++) { var l = A.LowerBound(A[...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var A = sc.ReadIntArray(N); Array.Sort(A); long ans = 0; for (int i = 0; i < N; i++) { for (int j = i + 1; j < N; j++) { if (j + 1 == N) ...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+",...
8
939
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 a = cin.ArrayLong(n); ...
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 l = cin.ArrayLong(n); ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-...
8
801
using System; using System.Linq; using System.Collections.Generic; using System.Diagnostics; using Debug = System.Diagnostics.Trace; using SB = System.Text.StringBuilder; using System.Numerics; using static System.Math; using Number = System.Int32; namespace Program { public class Solver { Random rnd = new Random();...
using System; using System.Linq; using System.Collections.Generic; using System.Diagnostics; using Debug = System.Diagnostics.Trace; using SB = System.Text.StringBuilder; using System.Numerics; using static System.Math; using Number = System.Int32; namespace Program { public class Solver { Random rnd = new Random();...
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 31, 203], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 48], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 212, 0, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205,...
8
1,879
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 void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); ...
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 void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); ...
[["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 57, 64, 196, 0, 52, 0, 89], ["+", 64, 196, 0, 57, 64, 196, 0, 52, 0, 24], ["+", 64, 196, 0, 52, 15, 16, 31, 204, 205, ...
8
260
using System; using System.Linq; using System.Collections.Generic; namespace ABC143 { class D { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var L = Console.ReadLine().Split().Select(long.Parse).OrderBy(x => x).ToArray(); var indexMax = 0; var count = 0; for...
using System; using System.Linq; using System.Collections.Generic; namespace ABC143 { class D { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var L = Console.ReadLine().Split().Select(int.Parse).OrderBy(x => x).ToArray(); var indexMax = 0; var count = 0; for (...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 57, 64, 1, 0, 11, 12, 241, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 64, 1, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0,...
8
174
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Text; class Procon { static void Main(string[] agrs) { int N = Int(); int[] L = Ints(); Array.Sort(L); long ret = 0; for (int i = 0; i < N; i...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Text; class Procon { static void Main(string[] agrs) { int N = Int(); int[] L = Ints(); Array.Sort(L); long ret = 0; for (int i = 0; i < N; i...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, ...
8
797
using System; using System.Linq; class Assignment { static void Main() { var N = int.Parse(Console.ReadLine().Trim()); var L = Console.ReadLine() .Trim() .Split(' ') .Select(x => int.Parse(x.Trim())) .Distinct() .ToArray(); N...
using System; using System.Linq; class Assignment { static void Main() { var N = int.Parse(Console.ReadLine().Trim()); var L = Console.ReadLine() .Trim() .Split(' ') .Select(x => int.Parse(x.Trim())) .ToArray(); // N = L.Length; var answ...
[["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, ...
8
193
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); // var s = Console.ReadLine(); var l = Console.ReadLine() .Split(' ') .Select(int.Parse) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); // var s = Console.ReadLine(); var l = Console.ReadLine() .Split(' ') .Select(int.Parse) ...
[["-", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 35], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["...
8
218
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Text; using System.Diagnostics; using static util; using P = pair<int, int>; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) {...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Text; using System.Diagnostics; using static util; using P = pair<int, int>; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) {...
[["-", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["-", 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, 11, 12, 211, 0, 146], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+"...
8
2,486
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
[["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 3, 4, 0, 28, 0, 218, 8, 214, 205, 199], ["+", 3, 4, 0, 28, 0, 218, 8,...
8
859
using System; using System.Linq; class E { static void Main() { Func<int[]> read = () => Console.ReadLine().Split().Select(int.Parse).ToArray(); var h = read(); int n = h[0]; var rs = new int[h[1]].Select(_ => read()).ToArray(); var qs = new int [int.Parse(Console.ReadLine())].Sel...
using System; using System.Linq; class E { static void Main() { Func<int[]> read = () => Console.ReadLine().Split().Select(int.Parse).ToArray(); var h = read(); int n = h[0]; var rs = new int[h[1]].Select(_ => read()).ToArray(); var qs = new int [int.Parse(Console.ReadLine())].Sel...
[["-", 8, 196, 0, 7, 8, 7, 8, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 7, 8, 57, 0, 24], ["-", 8, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 7, 8, 7, 8, 57, 15, 16, 17, 19], ["-", 8, 7, 8, 57, 15, 16, 12, 204, 205, 22], ["-", 8, 57, 15, 16, 12, 204, 206, 207, 0, 70], ["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-...
8
522
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; static void Main() { ...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; static void Main() { ...
[["+", 0, 16, 31, 23, 0, 41, 15, 16, 17, 60], ["+", 0, 16, 31, 23, 0, 41, 15, 16, 12, 22], ["+", 0, 28, 0, 16, 31, 23, 0, 41, 0, 101], ["+", 0, 16, 31, 23, 0, 41, 64, 241, 0, 203], ["+", 0, 28, 0, 16, 31, 23, 0, 41, 0, 102], ["+", 0, 41, 75, 16, 31, 204, 205, 204, 205, 22], ["+", 75, 16, 31, 204, 205, 204, 206, 207, 0,...
8
1,395
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int N = int.Parse(str[0]); int M = int.Parse(str[1]); long L = long.Parse(str[2]); int[,] A = new int[M, 3]; long[,] B = new long[N, N]; var list = n...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int N = int.Parse(str[0]); int M = int.Parse(str[1]); long L = long.Parse(str[2]); int[,] A = new int[M, 3]; long[,] B = new long[N, N]; var list = n...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 64, 196, 0, 1, 0, 11, 12, 241, 0, 33], ["-", 64, 196, 0, 1, 0, 11, 12, 241, 0, 203], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-",...
8
1,368
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; namespace atcorder2 { class Program { public static long Read() { return long.Parse(ReadLine()); } public static long[] Reads() { return ReadLine().Split().Select(long.Parse).ToArray(); } publ...
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; namespace atcorder2 { class Program { public static long Read() { return long.Parse(ReadLine()); } public static long[] Reads() { return ReadLine().Split().Select(long.Parse).ToArray(); } publ...
[["-", 31, 16, 31, 16, 31, 16, 31, 214, 205, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 214, 205, 22], ["-", 31, 16, 31, 16, 31, 16, 31, 214, 141, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 214, 141, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["-", 8, 196, 0, 57, 15, 16...
8
446
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); string s = sc.Next(); long k = sc.NextInt(); List<int> counts = new List<int>(); int current = 0; char before = ' '; for (int i = 0;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); string s = sc.Next(); long k = sc.NextInt(); List<int> counts = new List<int>(); int current = 0; char before = ' '; for (int i = 0;...
[["-", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 31, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 31, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 31, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, ...
8
570
using System; using System.Linq; class c { static void Main() { var s = Console.ReadLine(); var n = s.Length; var k = long.Parse(Console.ReadLine()); if (s.Distinct().Count() == 1) Console.WriteLine(s.Count() * k / 2); else { long front = 1; for (int i = 1; i < n; i++) { ...
using System; using System.Linq; class c { static void Main() { var s = Console.ReadLine(); var n = s.Length; var k = long.Parse(Console.ReadLine()); if (s.Distinct().Count() == 1) Console.WriteLine(s.Count() * k / 2); else { long front = 1; for (int i = 1; i < n; i++) { ...
[["-", 0, 28, 0, 16, 12, 23, 0, 41, 75, 203], ["+", 12, 23, 0, 41, 75, 16, 31, 23, 0, 24], ["+", 75, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["+", 75, 16, 31, 23, 0, 16, 31, 16, 17, 85], ["+", 75, 16, 31, 23, 0, 16, 31, 16, 12, 203], ["+", 0, 41, 75, 16, 31, 23, 0, 16, 17, 72], ["+", 75, 16, 31, 23, 0, 16, 12, 16, 31, 22],...
8
328
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { var S = Console.ReadLine(); var K = long.Parse(Console.ReadLine()); long s1 = 0; long s2 = 0; for (var i = 0; i < S.Length; i++) { if (i == S....
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { var S = Console.ReadLine(); var K = long.Parse(Console.ReadLine()); long s1 = 0; long s2 = 0; for (var i = 0; i < S.Length; i++) { if (i == S....
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 31, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 31, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 31, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 31, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 31, 213, 63, 214...
8
197
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace A { 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 A { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 57, 64, 1, 0, 213, 3, 4, 0, 25], ["...
8
346
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { string a = rstr(); string aa = a + a; long b = rlong(); int acount...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { string a = rstr(); string aa = a + a; long b = rlong(); long acoun...
[["-", 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, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 31, ...
8
984
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.CompilerServices; using ll = System.Int64; public class Contest { static void Swap1<T>(ref T a, ref T b) { T t = a; a = b; b = t; } static void Swap2<T>(ref T a, ref T b) where T : ICompa...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.CompilerServices; using ll = System.Int64; public class Contest { static void Swap1<T>(ref T a, ref T b) { T t = a; a = b; b = t; } static void Swap2<T>(ref T a, ref T b) where T : ICompa...
[["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 60], ["+", 75, 196, 0, 57, 15, 16, 12, 214, 205, 22], ["+", 75, 196, 0, 57, 15, 16, 12, 214, 0, 131], ["+", 75, 196, 0, 57, 15, 16, 12, 214, ...
8
2,550
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; internal partial class Solver { int Calc(string s) { var inf = 1000000000; var n = s.Length; var dp = new int[n, 2]; dp[0, 0] = 0; dp[0, 1] = 1; for (int i = 1; i < n; i++) { ...
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; internal partial class Solver { int Calc(string s) { var inf = 1000000000; var n = s.Length; var dp = new int[n, 2]; dp[0, 0] = 0; dp[0, 1] = 1; for (int i = 1; i < n; i++) { ...
[["+", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 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, 12, 203], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 60], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 1...
8
1,200
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { var S = Console.ReadLine(); var K = long.Parse(Console.ReadLine()); var firstchr = S[0]; int firstcount = 0; int lastcount = 0; int chgcount = 0; double ans; for (int i = 0; i < S.Length...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { var S = Console.ReadLine(); var K = long.Parse(Console.ReadLine()); var firstchr = S[0]; int firstcount = 0; int lastcount = 0; int chgcount = 0; double ans; for (int i = 0; i < S.Length...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 0,...
8
271
using System; class ProgramA { static void Main(string[] args) { string s = Console.ReadLine(); ulong k = ulong.Parse(Console.ReadLine()); ulong count = 0; ulong count2 = 0; int frag = 0; int len = s.Length; for (int i = 1; i < len; i++) { if (s[i] == s[i - 1]) { count++; ...
using System; class ProgramA { static void Main(string[] args) { string s = Console.ReadLine(); ulong k = ulong.Parse(Console.ReadLine()); ulong count = 0; ulong count2 = 0; int frag = 0; int len = s.Length; for (int i = 1; i < len; i++) { if (s[i] == s[i - 1]) { count++; ...
[["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], [...
8
257
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; class Program { static long mod = 1000000007; // static long mod =998244353; static int[] ans; static void Main(string[] args) { char[] cs = new char[] { ' ' }; // char[] cs = new char[] { ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; class Program { static long mod = 1000000007; // static long mod =998244353; static int[] ans; static void Main(string[] args) { char[] cs = new char[] { ' ' }; // char[] cs = new char[] { ...
[["-", 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, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25], ["+", 0, 212, 0, 16, 31, 74, 51, 23, 0, 24], ["+", 31, 74, 51, 23, 0, 16, 31, 74, 0, 24], ["+", 31, 74, 51, 23, 0, 16, 31, 74, 39, ...
8
698
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp5 { class Program { static void Main(string[] args) { String S = Console.ReadLine(); long K = long.Parse(Console.ReadLine()); char[] T = new char[S.Length]; long re...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp5 { class Program { static void Main(string[] args) { String S = Console.ReadLine(); long K = long.Parse(Console.ReadLine()); char[] T = new char[S.Length]; long re...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 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...
8
272
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 void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); ...
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 void Main(string[] args) { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); ...
[["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 75, 196, 0, 57, 15, 16, 31, 1...
8
365
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassLibrary1 { public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } public class Class1 { static void Main(string[] args) { // ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassLibrary1 { public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } public class Class1 { static void Main(string[] args) { // ...
[["-", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 0, 11, 12, 23, 0, 16, 31, 16, 17, 109], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48],...
8
459
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 Pi = Pair<int, int>; using PL = Pair<long, int>; // using static System.Globalization.CultureInfo; using System.Text; class Program { public sta...
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 Pi = Pair<int, int>; using PL = Pair<long, int>; // using static System.Globalization.CultureInfo; using System.Text; class Program { public sta...
[["-", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 47], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["-", 12, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["-", 12, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["-", 0, 57, 64, 1, 0, 11, 12, 16, 12, 20...
8
1,956
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string s = Console.ReadLine(); int n = s.Length; long k = long.Parse(Console.ReadLine()); long answer = 0; long answerNo = 0; // 1文字目を変更しない場合 long ...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string s = Console.ReadLine(); int n = s.Length; long k = long.Parse(Console.ReadLine()); long answer = 0; long answerNo = 0; // 1文字目を変更しない場合 long ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
302
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.InteropServices; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using stat...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.InteropServices; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using stat...
[["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 205, 22], ...
8
2,978
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; using static AtCoder.Tool; namespace AtCoder { class AC { const int mod = 1000000007; const int INF = int.MaxValue / 2; const long SINF = long.MaxValue / 2; ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; using static AtCoder.Tool; namespace AtCoder { class AC { const int mod = 1000000007; const int INF = int.MaxValue / 2; const long SINF = long.MaxValue / 2; ...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 295], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 45], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 22], ["-", 3...
8
721
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, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 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], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", ...
8
369
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { var n = Input.ScanDouble(); Out(1 / n); } static public void Out(object s) { Console.Write($"{s} "); } } static class Input { static public int ScanInt() { return int.Parse(Conso...
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { var n = Input.ScanInt(); int k = (n + 1) / 2; Out((double)k / n); } static public void Out(object s) { Console.Write($"{s} "); } } static class Input { static public int Scan...
[["-", 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, 1, 0, 213, 63, 22], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 212, 0, 16, 31, 23, 0, 16...
8
650
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { var n = ReadInt(); if (n == 1) WriteLine(1); else if (n % 2 != 0) { ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { var n = ReadInt(); var old = 0.0; for (int i = 1; i <= n; i++) { if (i ...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 8, 196, 0, 57, 64, 1, 0, 213, 63, 22],...
8
274
using System; namespace ABC142 { class Program { static void Main(string[] args) { var N = decimal.Parse(Console.ReadLine()); decimal count = 0; for (int i = 1; i <= N; i++) { var flg = i % 2 == 1; if (flg) { count++; } } var result = count / N; Console.WriteLin...
using System; namespace ABC142 { class Program { static void Main(string[] args) { var N = decimal.Parse(Console.ReadLine()); decimal count = 0; for (int i = 1; i <= N; i++) { var flg = i % 2 == 1; if (flg) { count++; } } var result = count / N; Console.WriteLin...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201...
8
104
using System; class Program { static void Main(string[] args) { //// 整数の入力 // int a = int.Parse(Console.ReadLine()); //// スペース区切りの整数の入力 // string[] input = Console.ReadLine().Split(' '); // int b = int.Parse(input[0]); // int c = int.Parse(input[1]); //// 文字列の入力 // string s = Console.R...
using System; class Program { static void Main(string[] args) { //// 整数の入力 // int a = int.Parse(Console.ReadLine()); //// スペース区切りの整数の入力 // string[] input = Console.ReadLine().Split(' '); // int b = int.Parse(input[0]); // int c = int.Parse(input[1]); //// 文字列の入力 // string s = Console.R...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
79
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC141 { class B { static void Main(string[] args) { string S = Console.ReadLine(); bool flag = true; for (int i = 0; i < S.Length; i++) { if (i / 2 == 0 && S[i] == 'L') { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC141 { class B { static void Main(string[] args) { string S = Console.ReadLine(); bool flag = true; for (int i = 0; i < S.Length; i++) { if (i % 2 == 0 && S[i].Equals('L'...
[["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 109], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 57, 15, 16, 12, 213, 3, 4, 0, ...
8
155
using System; class Program { static void Main(string[] args) { string anser = "Yes"; // 整数の入力 string S = Console.ReadLine(); char[] a = { 'R', 'U', 'D' }; char[] b = { 'L', 'U', 'D' }; for (int i = 0; i < S.Length; i++) { if (i % 2 == 0) { Console.WriteLine(S[i]); Consol...
using System; class Program { static void Main(string[] args) { string anser = "Yes"; // 整数の入力 string S = Console.ReadLine(); char[] a = { 'R', 'U', 'D' }; char[] b = { 'L', 'U', 'D' }; for (int i = 0; i < S.Length; i++) { if (i % 2 == 0) { if (Array.IndexOf(a, S[i]) < 0) { ...
[["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22...
8
190
using System; namespace pro { class MainClass { public static void Main() { string s = Console.ReadLine(); bool b = true; for (int i = 0; i < s.Length - 1; i += 2) { if (s[i] == 'R' || s[i] == 'U' || s[i] == 'D') { } else { b = false; } } for (int i = 1; i < s.Length ...
using System; namespace pro { class MainClass { public static void Main() { string s = Console.ReadLine(); bool b = true; for (int i = 0; i < s.Length - 1; i += 2) { if (s[i] == 'R' || s[i] == 'U' || s[i] == 'D') { } else { b = false; } } for (int i = 1; i < s.Length ...
[["+", 0, 57, 15, 16, 31, 16, 31, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204,...
8
178
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { #if DEBUG // MyDebugger.MakeTestCase("../TextFile2.txt"); MyDebugger.Test(process, "../TextFile1.txt"); #else object ret = pro...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { #if DEBUG // MyDebugger.MakeTestCase("../TextFile2.txt"); MyDebugger.Test(process, "../TextFile1.txt"); #else object ret = pro...
[["-", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["-", 12, 23, 0, 16, 31, 16, 31, 214, 205, 22], ["-", 12, 23, 0, 16, 31, 16, 31, 214, 0, 131], ["-", 12, 23, 0, 16, 31, 16, 31, 214, 141, 22], ["-", 15, 16, 12, 23, 0, 16, 31, 16, 17, 20], ["-", 15, 16, 12, 23, 0, 16, 31, 16, 12, 203], ["-", 0, 57, 15, 16, 12, 23, 0, 16, 17...
8
227
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 allsum = (n - 1) * q; int[] array = new int[n]; int i = 0; f...
using System; using System.Collections.Generic; 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 allsum = (n - 1) * q; int[] array ...
[["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, ...
8
194
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, 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], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 25], [...
8
169
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, 263, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 230, 0, 228], ["+", 0, 1, 0, 11, 12, 230, 39, 236, 141, 22], ["+", 0, 11, 12, 230, 39, 236, 237, 238, 0, 18], ["+", 12, 230, 39, 236, 237, 238, 0, 236, 141, 22], ["+", 39, 236, 237, 238, 0, 236, 237, 2...
8
1,041
using System; using System.Collections; using System.Collections.Generic; using static Exter; using System.Linq; #if DEBUG #else using console = System.Console; #endif public class App { public static void Main(string[] args) { int n, m; { var r = console.ReadLine().Split().Select(v => int.Parse(v)).To...
using System; using System.Collections; using System.Collections.Generic; using static Exter; using System.Linq; #if DEBUG #else using console = System.Console; #endif public class App { public static void Main(string[] args) { int n, m; { var r = console.ReadLine().Split().Select(v => int.Parse(v)).To...
[["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 2...
8
1,310
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var input1 = Console.ReadLine(); var N = int.Parse(input1.Split(' ')[0]); var M = int.Parse(input1.Split(' ')[1]); var input2 = Console.ReadLine().Split(' '); var prices = new List...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var input1 = Console.ReadLine(); var N = int.Parse(input1.Split(' ')[0]); var M = int.Parse(input1.Split(' ')[1]); var input2 = Console.ReadLine().Split(' '); var prices = new List...
[["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["-",...
8
242
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; using System.Collections; namespace debug { class main { static void Main(string[] args) { //問題クラスを展開 ProgramD a = new ProgramD(); a.main(); //実行する } } class ProgramA { public void main() { ...
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; using System.Collections; namespace debug { class main { static void Main(string[] args) { //問題クラスを展開 ProgramD a = new ProgramD(); a.main(); //実行する } } class ProgramA { public void main() { ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 6...
8
687
using System; class ProgramD { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); ulong a = ulong.Parse(input[0]); ulong b = ulong.Parse(input[1]); if (a < b) { ulong tmp = a; a = b; b = tmp; } ulong r = a % b; while (r != 0) { a = ...
using System; class ProgramD { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); ulong a = ulong.Parse(input[0]); ulong b = ulong.Parse(input[1]); if (a < b) { ulong tmp = a; a = b; b = tmp; } ulong r = a % b; while (r != 0) { a = ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 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, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22]...
8
203
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var A = sc.ReadLong(); var B = sc.ReadLong(); var gcd = Gcd(A, B); var pf = PrimeFactors(gcd).Distinct(); var ans = pf.Count() + 1; Console.WriteLine(ans); } static int IN...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var A = sc.ReadLong(); var B = sc.ReadLong(); var gcd = Gcd(A, B); var pf = PrimeFactors(gcd).Distinct(); var ans = pf.Count() + 1; Console.WriteLine(ans); } static int IN...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 205, 22], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["-", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["-", 0, 57, 15, 16, 31, 213, 3, 4, 0,...
8
2,115
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { checked { var A = sc.ReadLong(); var B = sc.ReadLong(); var gcd = Gcd(A, B); var ans = PrimeFactors(gcd).Count() + 1; Console.WriteLine(ans); } } static int ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var A = sc.ReadLong(); var B = sc.ReadLong(); var gcd = Gcd(A, B); var pf = PrimeFactors(gcd).Distinct(); var ans = pf.Count() + 1; Console.WriteLine(ans); } static int IN...
[["-", 8, 201, 0, 195, 8, 196, 0, 287, 0, 292], ["-", 0, 195, 8, 196, 0, 287, 0, 196, 0, 45], ["-", 0, 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, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0...
8
1,894
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace Atcoder { class Pair : IComparable { public int x; public int y; public Pair(int X, int Y) { x = X; y = Y; ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace Atcoder { class Pair : IComparable { public int x; public int y; public Pair(int X, int Y) { x = X; y = Y; ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
6,065
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 8, 196, 0, 52, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 52, 15, 16, 31, 16, 17, 48], ["-", 8, 196, 0, 52, 15, 16, 31, 16, 12, 22], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 12...
8
583
using System; using System.Linq; using System.Collections.Generic; using System.IO; class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } public static long Gcd(long a, long b) ...
using System; using System.Linq; using System.Collections.Generic; using System.IO; class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } public static long Gcd(long a, long b) ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 1, 0, 213, 3, 4, 0, 25], ["...
8
287
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(); long a = cin.Long(); long b = cin.Long(...
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(); long a = cin.Long(); long b = cin.Long(...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, ...
8
627
using System; using System.Collections.Generic; // list用 using System.Text; // StringBuilder用 using System.Collections; //ハッシュテーブル用 using System.Linq; class Program { // Hashtable ht = new Hashtable(); static List<int> s = new List<int>(); static List<int>[] sl; static decimal result; ...
using System; using System.Collections.Generic; // list用 using System.Text; // StringBuilder用 using System.Collections; //ハッシュテーブル用 using System.Linq; class Program { // Hashtable ht = new Hashtable(); static List<int> s = new List<int>(); static List<int>[] sl; static decimal result; ...
[["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["...
8
541
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[] M; static void INPUT() { M = LineLong(); } static void OUT() { var list = new List<long>(); var a = TES...
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[] M; static void INPUT() { M = LineLong(); } static void OUT() { var list = new List<long>(); var a = TES...
[["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 24], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 25], ["+", 0, 210, 8, 196, 0, 57, 64, 116, 0, 117...
8
633
using System; 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 Console.ReadLine().Split(' ').Se...
using System; 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 Console.ReadLine().Split(' ').Se...
[["-", 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, 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, ...
8
870
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using Extensions; using static System.Math; using static Extensions.MathExtension; using static Extensions.ConsoleInputExtension; using static Extensions.ConsoleOutputExtension; class Solver {...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using Extensions; using static System.Math; using static Extensions.MathExtension; using static Extensions.ConsoleInputExtension; using static Extensions.ConsoleOutputExtension; class Solver {...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, ...
8
2,340
using System; using System.Collections.Generic; using System.Linq; class Program { // static int[] dp; // static decimal[,,] dp; // static decimal N; static void Main(string[] args) { // 入力 long[] input = Console.ReadLine().Split().Select(p => long.Parse(p)).ToArray(); long A = input[0]; ...
using System; using System.Collections.Generic; using System.Linq; class Program { // static int[] dp; // static decimal[,,] dp; // static decimal N; static void Main(string[] args) { // 入力 long[] input = Console.ReadLine().Split().Select(p => long.Parse(p)).ToArray(); long A = input[0]; ...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 31, 22...
8
279
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; public class Solver { public void Solve() { long a = rl, b = rl; long g = Gcd(a, b); long p = 1; long s = (long)Math.Sqrt(g); if (g % 2 == 0) { p++; while (g %...
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; public class Solver { public void Solve() { long a = rl, b = rl; long g = Gcd(a, b); long p = 1; long s = (long)Math.Sqrt(g); if (g % 2 == 0) { p++; while (g %...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
2,310
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var wrong_answer = new wrong_answer(); wrong_answer.Solve(); } } public class wrong_answer { const int INF = 1 << 30; const long INFL = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var wrong_answer = new wrong_answer(); wrong_answer.Solve(); } } public class wrong_answer { const int INF = 1 << 30; const long INFL = ...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], [...
8
1,052
using System; using System.Linq; using System.Collections.Generic; using System.Diagnostics; using Debug = System.Diagnostics.Trace; using SB = System.Text.StringBuilder; using System.Numerics; using static System.Math; using Number = System.Int32; namespace Program { public class Solver { Random rnd = new Random();...
using System; using System.Linq; using System.Collections.Generic; using System.Diagnostics; using Debug = System.Diagnostics.Trace; using SB = System.Text.StringBuilder; using System.Numerics; using static System.Math; using Number = System.Int32; namespace Program { public class Solver { Random rnd = new Random();...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0,...
8
988
using System; using System.Collections.Generic; // list用 using System.Text; // StringBuilder用 using System.Collections; //ハッシュテーブル用 using System.Linq; class Program { // Hashtable ht = new Hashtable(); static List<int> s = new List<int>(); static List<int> a = new List<int>(); static Lis...
using System; using System.Collections.Generic; // list用 using System.Text; // StringBuilder用 using System.Collections; //ハッシュテーブル用 using System.Linq; class Program { // Hashtable ht = new Hashtable(); static List<int> s = new List<int>(); static List<int> a = new List<int>(); static Lis...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 16, 31, 204, 205, 22], ["+", 0, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 1...
8
700
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { Scanner cin = new Scanner(); int n = cin.Int(); int k = cin.Int(); int[] p = cin.ArrayInt(n); var ss =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { Scanner cin = new Scanner(); int n = cin.Int(); int k = cin.Int(); int[] p = cin.ArrayInt(n); var ss =...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 211, 0, 147], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+...
8
989
using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main(string[] args) { var tenkis = new string[] { "Sunny", "Cloudy", "Rainy" }.ToList(); var input = Console.ReadLine(); Console.WriteLine(tenkis[tenkis.IndexOf(input) % (tenkis.Count - 1)]); } ...
using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main(string[] args) { var tenkis = new string[] { "Sunny", "Cloudy", "Rainy" }.ToList(); var input = Console.ReadLine().Trim(); Console.WriteLine(tenkis[(tenkis.IndexOf(input) + 1) % (tenkis.Count...
[["+", 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], ["+", 206, 207, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72], ...
8
89
using CompLib.String; using CompLib.Util; using System; using System.Collections.Generic; using System.Diagnostics; public class Program { public void Solve() { var sc = new Scanner(); int n = sc.NextInt(); string s = sc.Next(); int ans = 0; for (int b = 0; b < s.Length; b++) { var z = Str...
using CompLib.String; using CompLib.Util; using System; using System.Collections.Generic; using System.Diagnostics; public class Program { public void Solve() { var sc = new Scanner(); int n = sc.NextInt(); string s = sc.Next(); int ans = 0; for (int b = 0; b < s.Length; b++) { var span = ...
[["-", 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, 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], ["+", 8, 196, 0, 7, 8, 196, 0, 19...
8
2,924
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace AtCoder { public static class Ex { public static List<string> FastSort(this List<string> s) { s.Sort(StringComparer.OrdinalIgnoreCase); return s.ToList(); } public static string yesno(this bool b) { return b ? "...
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace AtCoder { public static class Ex { public static List<string> FastSort(this List<string> s) { s.Sort(StringComparer.OrdinalIgnoreCase); return s.ToList(); } public static string yesno(this bool b) { return b ? "...
[["-", 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, 230, 39, 236, 141, 22], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 21], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 8, 196, 0, 57, 15, 2...
8
1,863
using System; using System.Collections.Generic; using System.Linq; namespace ABC141E { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); int ans = 0; for (int k = 1; k <= N / 2; k++) { string n = s.Substring(N - k) + s.Subst...
using System; using System.Collections.Generic; using System.Linq; namespace ABC141E { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); int ans = 0; for (int k = 1; k <= N / 2; k++) { string n = s.Substring(N - k) + s.Subst...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["...
8
274
#if true //#if false #define UTAKA_DEBUG #endif using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Net.Mime; using System.Text; namespace UtakaApp { public partial class Program { public const string Conte...
#if true //#if false #define UTAKA_DEBUG #endif using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Net.Mime; using System.Text; namespace UtakaApp { public partial class Program { public const string Conte...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["-", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["-", 0, 198, 0, 200, 0, 212, 0, ...
8
1,871
using System; using System.Collections.Generic; public class RollingHash { const long base1 = 1009; const long base2 = 1007; const long mod1 = 1000000007; const long mod2 = 1000000009; long[] hash1, hash2, pow1, pow2; public RollingHash(string s) { int n = s.Length; hash1 = new long[n + 1]; hash...
using System; using System.Collections.Generic; public class RollingHash { const long base1 = 1009; const long base2 = 1007; const long mod1 = 1000000007; const long mod2 = 1000000009; long[] hash1, hash2, pow1, pow2; public RollingHash(string s) { int n = s.Length; hash1 = new long[n + 1]; hash...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 1...
8
537
using System; using System.Collections.Generic; // list用 using System.Text; // StringBuilder用 using System.Collections; //ハッシュテーブル用 using System.Linq; class Program { // Hashtable ht = new Hashtable(); static List<int> s = new List<int>(); static List<int>[] sl; static decimal result; ...
using System; using System.Collections.Generic; // list用 using System.Text; // StringBuilder用 using System.Collections; //ハッシュテーブル用 using System.Linq; class Program { // Hashtable ht = new Hashtable(); static List<int> s = new List<int>(); static List<int>[] sl; static decimal result; ...
[["+", 64, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 64, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 20], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 12...
8
596
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(); if (n == 1) { Console.Wr...
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(); Console.WriteLine(n * n * n);...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
1,767
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long[] A = Console.ReadLine().S...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long[] A = Console.ReadLine().S...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 10...
8
264
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { public const ulong mod = 1000000007; static void Main(string[] args) { var n = Input(); var a = Input3(); var b = Input3(); var c = Input...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { public const ulong mod = 1000000007; static void Main(string[] args) { var n = Input(); var a = Input3(); var b = Input3(); var c = Input...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]]
8
337