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 static System.Console; using System.Linq; namespace AtCoder { public class sora { static void Main(string[] args) { int N = int.Parse(ReadLine()); long[] A = ReadLine().Split(' ').Select(long.Parse).ToArray(); long check = 1; long ans = 1; for (int i = 0; i < N; i++) { i...
using System; using static System.Console; using System.Linq; namespace AtCoder { public class sora { static void Main(string[] args) { int N = int.Parse(ReadLine()); long[] A = ReadLine().Split(' ').Select(long.Parse).ToArray(); long check = 1; long ans = 1; for (int i = 0; i < N; i++) { 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, 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
175
//解けなかった using System; using static System.Console; using System.Linq; namespace AC { public class shiokara { static void Main(string[] args) { int N = int.Parse(ReadLine()); long[] A = ReadLine().Split(' ').Select(long.Parse).ToArray(); long ans = 1; if (Array.IndexOf(A, 0) != -1) { WriteLine(...
//解けなかった using System; using static System.Console; using System.Linq; namespace AC { public class shiokara { static void Main(string[] args) { int N = int.Parse(ReadLine()); long[] A = ReadLine().Split(' ').Select(long.Parse).ToArray(); long ans = 1; if (Array.IndexOf(A, 0) != -1) { WriteLine(...
[["+", 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, 20], ["+", 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, 24], ["...
8
151
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { long limit = 1000000000000000000; long sum = 1; long n = long.Parse(Console.ReadLine()); long[] arr = Console.ReadLine().Split(' ').Select(a => long.Parse(a)...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { long limit = 1000000000000000000; long sum = 1; long n = long.Parse(Console.ReadLine()); long[] arr = Console.ReadLine().Split(' ').Select(a => long.Parse(a)...
[["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 108], ["-", 8, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", ...
8
158
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static System.Array; class Program { public static void Main() { ReadLine(); var n = ReadLine().Split().Select(long.Parse).ToArray(); if (n.Where(x => x == 0)...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static System.Array; class Program { public static void Main() { ReadLine(); var n = ReadLine().Split().Select(long.Parse).ToArray(); Sort(n); if (n[0] ==...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 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], ["-", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["-", 205, 213, 3, 4, 0, 28...
8
181
using System; class Class2 { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(' '); long calc = 1; long max = (long)Math.Pow(10, 18); for (int i = 1; i <= N; i++) { long a = long.Parse(input[i - 1]); if (a == 0) { ...
using System; class Class2 { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(' '); long calc = 1; long max = (long)Math.Pow(10, 18); for (int i = 0; i < N; i++) { long a = long.Parse(input[i]); if (a == 0) { ca...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 246, 0, 247...
8
158
using System; using System.Collections.Generic; using System.Linq; namespace easy_Atcoder { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long[] A = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); long sum = A[0]; bool flag = true; for (int i =...
using System; using System.Collections.Generic; using System.Linq; namespace easy_Atcoder { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long[] A = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); long sum = A[0]; bool flag = true; if (A.Count(...
[["+", 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, 28, 0, 218, 54, 219, 0, 220, ...
8
187
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Math; using static System.Console; using static exMath; using static exReadLine; class Program { static void Main(string[] args) { int N; intReadLine(out N); long[] A; l...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Math; using static System.Console; using static exMath; using static exReadLine; class Program { static void Main(string[] args) { int N; intReadLine(out N); long[] A; l...
[["+", 75, 196, 0, 7, 8, 196, 0, 246, 0, 247], ["+", 0, 7, 8, 196, 0, 246, 8, 196, 0, 45], ["+", 8, 196, 0, 246, 8, 196, 0, 287, 0, 292], ["+", 0, 246, 8, 196, 0, 287, 0, 196, 0, 45], ["+", 0, 287, 0, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["...
8
899
using System; using System.Linq; namespace ProblemB { class Program { static void Main() { long N = long.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long ans = 1; if (A.Contains(0)) { Console.WriteLine(0); return; } for (int i =...
using System; using System.Linq; namespace ProblemB { class Program { static void Main() { long N = long.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long ans = 1; if (A.Contains(0)) { Console.WriteLine(0); return; } for (int i =...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 15, 16, 31, 16, 31, 213, 63, 214, 205, 22], ["-", 15, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["-", 15, 16, 31, 16, 31, 213, 63, 214,...
8
214
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Threading; namespace ForATCODER { public class Program { /// template /// /// String[] s = Console.ReadLine().Split(' '); /// long[] nk = s2larray(Console.ReadLine().Split(' ')); /// public static ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Threading; namespace ForATCODER { public class Program { /// template /// /// String[] s = Console.ReadLine().Split(' '); /// long[] nk = s2larray(Console.ReadLine().Split(' ')); /// public static ...
[["+", 0, 7, 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, 33], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85...
8
1,195
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ABC169B { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine().Trim()); List<ulong> x = new List<ulong>(); var t = Console.ReadLine().Trim().Split(' '); for (int i = 0; i ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ABC169B { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine().Trim()); List<ulong> x = new List<ulong>(); var t = Console.ReadLine().Trim().Split(' '); for (int i = 0; i ...
[["-", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 108], ["-", 0, 210, 8, 196, 0, 1, 0, 11, 12, 22], ["-", 8, 196, 0, 210, 8, 196, 0, 1, 0, 35], ["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["-"...
8
221
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; namespace AtCoder_1 { class Program { static void Main(string[] args) { var N = CinL(); var A = CinLAr(); long q = 1; try {...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; namespace AtCoder_1 { class Program { static void Main(string[] args) { var N = CinL(); var A = CinLAr(); long q = 1; Array...
[["+", 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
1,318
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProblemB { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var As = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); lo...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProblemB { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var As = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); lo...
[["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 108], ["+", 75, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 75, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 75, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 75, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 75, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, ...
8
190
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { var inputArray = retreiveLongArray(); var inputCount = 1; // 不正な入力は処理しない if (inputArray.Length != inputCount) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { var inputArray = retreiveLongArray(); var inputCount = 1; // 不正な入力は処理しない if (inputArray.Length != inputCount) { ...
[["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, ...
8
302
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["+", 8, 196, 0, 7, 8, 196, 0, 246, 0, 247], ["+", 0, 7, 8, 196, 0, 246, 8, 196, 0, 45], ["+", 8, 196, 0, 246, 8, 196, 0, 287, 0, 292], ["+", 0, 246, 8, 196, 0, 287, 0, 196, 0, 45], ["+", 8, 196, 0, 287, 0, 196, 0, 57, 0, 25], ["+", 0, 287, 0, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 213, 63, 22], [...
8
545
using System; class Program { static void Main(string[] args) { int i; int n = int.Parse(Console.ReadLine()); Int64[] a = new Int64[n]; string[] strInput = Console.ReadLine().Split(' '); for (i = 0; i < n; i++) { a[i] = Int64.Parse(strInput[i]); if (a[i] == 0) { Console.Wri...
using System; class Program { static void Main(string[] args) { int i; int n = int.Parse(Console.ReadLine()); Int64[] a = new Int64[n]; string[] strInput = Console.ReadLine().Split(' '); for (i = 0; i < n; i++) { a[i] = Int64.Parse(strInput[i]); if (a[i] == 0) { Console.Wri...
[["+", 8, 201, 0, 195, 8, 196, 0, 246, 0, 247], ["+", 0, 195, 8, 196, 0, 246, 8, 196, 0, 45], ["+", 8, 196, 0, 7, 8, 196, 0, 287, 0, 292], ["+", 0, 7, 8, 196, 0, 287, 0, 196, 0, 45], ["+", 0, 7, 8, 196, 0, 287, 0, 196, 0, 46], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["...
8
165
using System; using System.Collections.Generic; using System.Numerics; using System.Linq; using System.Text; using static System.Math; class MainClass { public static void Main(string[] args) { var N = LnInt(); var _ = LnLngs(); var resu = 1L; _ = _.OrderBy(x => x).ToArray(); foreach (var i in _...
using System; using System.Collections.Generic; using System.Numerics; using System.Linq; using System.Text; using static System.Math; class MainClass { public static void Main(string[] args) { var N = LnInt(); var _ = LnLngs(); var resu = 1L; _ = _.OrderBy(x => x).ToArray(); foreach (var i in _...
[["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 213, 63, 22], ["+", 15, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 31, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["+", 15, 16, 31, 16, 31, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], [...
8
959
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Numerics; using System.IO; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut...
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Numerics; using System.IO; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 57, 75, 196, 0, 210, 0, 25], ["+", 0, 57, 75, 196, 0, 210, 8, 196, 0, 45], ["+", 0, 210, 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, 21...
8
2,486
using System; using System.Collections.Generic; using System.Linq; namespace abc169_b { class Program { static void Main(string[] args) { var N = CIn.ReadInt(); var A = CIn.ReadLongArray(N); var m = 1L; for (int i = 0; i < N; i++) { try { m = checked(m * A[i]); } catch { ...
using System; using System.Collections.Generic; using System.Linq; namespace abc169_b { class Program { static void Main(string[] args) { var N = CIn.ReadInt(); var A = CIn.ReadLongArray(N); if (A.Contains(0)) { Console.WriteLine(0); return; } var m = 1L; for (int i = 0; i < N;...
[["+", 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, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 213, 3, 4, 0, 24], ["+", 0, 57, 15, 213, 3, 4, 0, 28, 0, ...
8
532
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using System.IO; class readint { public readint(out int i) { i = int.Parse(Console.ReadLine()); } public readint(out int a, out int b) { int[] sp = Console....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using System.IO; class readint { public readint(out int i) { i = int.Parse(Console.ReadLine()); } public readint(out int a, out int b) { int[] sp = Console....
[["+", 75, 196, 0, 7, 8, 196, 0, 246, 0, 247], ["+", 0, 7, 8, 196, 0, 246, 8, 196, 0, 45], ["+", 8, 196, 0, 246, 8, 196, 0, 287, 0, 292], ["+", 0, 246, 8, 196, 0, 287, 0, 196, 0, 45], ["+", 8, 196, 0, 287, 0, 196, 0, 57, 0, 25], ["+", 0, 287, 0, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22...
8
4,553
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; static public string al = "abcdefghijklmnopqrstuvwxyz"; public static void Main() { // ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; static public string al = "abcdefghijklmnopqrstuvwxyz"; public static void Main() { // ...
[["-", 0, 57, 64, 196, 0, 1, 0, 213, 63, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
1,244
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 a = cin.ArrayLong(n); ...
[["+", 8, 196, 0, 7, 8, 196, 0, 287, 0, 292], ["+", 0, 7, 8, 196, 0, 287, 0, 196, 0, 45], ["+", 8, 196, 0, 287, 0, 196, 0, 246, 0, 247], ["+", 0, 287, 0, 196, 0, 246, 8, 196, 0, 45], ["+", 0, 246, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 287, 0, 196, 0, 246, 8, 196, 0, 46], ["+", 0, 287, 0, 196, 0, 246, 0, 248, 0, 249]...
8
635
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; static void Main(string[] args) { var n = Read().Int(); var r = ReadSplit(); var l ...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; static void Main(string[] args) { var n = Read().Int(); var r = ReadSplit(); var l ...
[["+", 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
751
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.B { static class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = ...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.B { static class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = ...
[["-", 8, 196, 0, 7, 8, 196, 0, 246, 0, 247], ["-", 0, 7, 8, 196, 0, 246, 8, 196, 0, 45], ["+", 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, 250], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 85], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 108], ["+", ...
8
555
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; namespace V { partial class Solver { public void Solve() { // var n = Read; Write(SolveLong()); // YesNo(SolveBool()); } public long SolveLong() { var n = Read; var a = ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; namespace V { partial class Solver { public void Solve() { // var n = Read; Write(SolveLong()); // YesNo(SolveBool()); } public long SolveLong() { var n = Read; var a = ...
[["-", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 108], ["-", 0, 210, 8, 196, 0, 1, 0, 11, 12, 22], ["-", 8, 196, 0, 210, 8, 196, 0, 1, 0, 35], ["-", 0, 210, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 85], ["+",...
8
10,117
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var n = ReadLine(); var line = ReadLine().Split(' ').Select(value => long.Parse(value)).ToArray(); l...
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var n = ReadLine(); var line = ReadLine().Split(' ').Select(value => long.Parse(value)).ToArray(); l...
[["-", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 108], ["-", 0, 210, 8, 196, 0, 1, 0, 11, 12, 22], ["-", 8, 196, 0, 210, 8, 196, 0, 1, 0, 35], ["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["-"...
8
150
using System; using System.Linq; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int n = sc.NextInt(); int[] a = sc.IntArray(); long target = 1000000000000000000L; long ans = 1; for (int i = 0; i < n; i++) { if (a[i] > target / ans) { C...
using System; using System.Linq; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int n = sc.NextInt(); long[] a = sc.LongArray(); if (a.Contains(0)) { Console.WriteLine("0"); return; } long target = 1000000000000000000L; long ans = 1; ...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 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, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 19...
8
445
using System; using System.Linq; class IDONTKNOWCSHARP { public static void Main() { string[] values = GetLines(); long A = long.Parse(values[0]); double B = double.Parse(values[1]); Console.WriteLine((long)(A * B)); // Console.ReadKey(); } static string[] GetLines() { return Console.Re...
using System; using System.Linq; class IDONTKNOWCSHARP { public static void Main() { string[] values = GetLines(); long A = long.Parse(values[0]); int B = (int)(decimal.Parse(values[1]) * 100); // Console.WriteLine(B); // string a = ; Console.WriteLine((A * B) / 100); /// Console.Re...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["+", 0, 200, 0, 212, 0, 74, 51, 23,...
8
103
using System; using System.Linq; namespace _169_c { internal class Multiplication3 { private static void Main(string[] args) { var ab = Console.ReadLine()?.Split(" ").ToArray(); if (ab == null) return; var a = long.Parse(ab[0]); var b = double.Parse(ab[1]); var b100 = (int)(b * 100); ...
using System; using System.Linq; namespace _169_c { internal class Multiplication3 { private static void Main(string[] args) { var ab = Console.ReadLine()?.Split(" "); if (ab == null) return; var a = long.Parse(ab[0]); var b = double.Parse(ab[1]); var b100 = (long)Math.Round(b * 100); ...
[["-", 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, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 212, 0, 74, 51, 213, 63, 214, 2...
8
112
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class362 { static void Main() { var AB = Console.ReadLine().Split(); var A = long.Parse(AB[0]); var B = (long)(double.Parse(AB[1]) * 100); Console.WriteLi...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class362 { static void Main() { var AB = Console.ReadLine().Split(); var A = long.Parse(AB[0]); var B = (long.Parse(AB[1].Remove(AB[1].Length - 3, 1))); C...
[["-", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["-", 0, 200, 0, 212, 0, 74, 51, 23, 0, 24], ["-", 51, 23, 0, 16, 31, 213, 63, 214, 205, 199], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 16, 31, 214, 205, 204, 205, 22]...
8
101
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template; using Pi = Pair<int, i...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template; using Pi = Pair<int, i...
[["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22],...
8
1,918
using System; class Program { static void Main() { String[] inline = Console.ReadLine().Split(' '); ulong a = ulong.Parse(inline[0]); double b = double.Parse(inline[1]); ulong ans = (ulong)(a * (ulong)(b * 100) / 100); Console.WriteLine(ans); } }
using System; class Program { static void Main() { String[] inline = Console.ReadLine().Split(' '); ulong a = ulong.Parse(inline[0]); decimal b = decimal.Parse(inline[1]); ulong ans = (ulong)(a * b); Console.WriteLine(ans); } }
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 51, 23, 0, 16, 31, 16, 12, 74, 0, 24], ["-", 51, 23, 0, 16, 31, 16, 12, 74, 39, 199], ["-", 51, 23, 0, 16, 31, 16, 12...
8
86
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; namespace MultiplicationC { class Program { static void Main() { ulong A = 0; double B = 0; ulong answer = 0; string[] input = Console.ReadLine().Split(' '); try { checked...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; namespace MultiplicationC { class Program { static void Main() { decimal A = 0m; decimal B = 0m; decimal answer = 0; string[] input = Console.ReadLine().Split(' '); try { ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 250], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 0, 196, 0, 1, 0, 11, 12, 74...
8
183
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C { class Program { static void Main(string[] args) { string line = Console.ReadLine(); string[] strs = line.Split(' '); long A = long.Parse(strs[0]); double B = double.Parse(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C { class Program { static void Main(string[] args) { string line = Console.ReadLine(); string[] strs = line.Split(' '); long A = long.Parse(strs[0]); long B = long.Parse(strs...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 0, ...
8
120
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; static public string al = "abcdefghijklmnopqrstuvwxyz"; public static void Main() { // ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; static public string al = "abcdefghijklmnopqrstuvwxyz"; public static void Main() { // ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 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, 203], ["+", 0, 1, 0, 11, 31, 204, 206...
8
1,150
using System; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace Atcoder_Answer { class Program { const Int32 mod = 1000000007; static void Main(string[] args) { string[] Reader = ReadLine().Split...
using System; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace Atcoder_Answer { class Program { const Int32 mod = 1000000007; static void Main(string[] args) { string[] Reader = ReadLine().Split...
[["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 47], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["+", 0, 200, 0, 212, 0, 230,...
8
522
using System; namespace ABC166C { class Program { static void Main(string[] args) { var mo = Console.ReadLine().Split(" "); ulong n = ulong.Parse(mo[0]); ulong m = ulong.Parse(mo[1]); ulong[] h = new ulong[n + 1]; ulong[] z = new ulong[n + 1]; ulong[] a = new ulong[m + 1]; ulong[] b = new...
using System; namespace ABC166C { class Program { static void Main(string[] args) { var mo = Console.ReadLine().Split(" "); ulong n = ulong.Parse(mo[0]); ulong m = ulong.Parse(mo[1]); ulong[] h = new ulong[n + 1]; ulong[] z = new ulong[n + 1]; ulong[] a = new ulong[m + 1]; ulong[] b = new...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 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
423
using System.Collections.Generic; using System.Collections; using System.IO; using System.Linq; using System.Text; using System; namespace cysharp_test { class Program { static void Main(string[] args) { new Program().solve(); } void solve() { int[] nm = Console.ReadLine().Split(' ').Select(int.Parse).ToArray...
using System.Collections.Generic; using System.Collections; using System.IO; using System.Linq; using System.Text; using System; namespace cysharp_test { class Program { static void Main(string[] args) { new Program().solve(); } void solve() { int[] nm = Console.ReadLine().Split(' ').Select(int.Parse).ToArray...
[["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 95], ["+", 8, 196, 0, 57, 75, 57, 75, 196, 0, 45], ["+", 75, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 206, 207, 0, 28, 0, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0,...
8
593
using System.Collections.Generic; using System.Collections; using System.IO; using System.Linq; using System.Text; using System; namespace cysharp_test { class Program { static void Main(string[] args) { new Program().solve(); } void solve() { int[] nm = Console.ReadLine().Split(' ').Select(int.Parse).ToArray...
using System.Collections.Generic; using System.Collections; using System.IO; using System.Linq; using System.Text; using System; namespace cysharp_test { class Program { static void Main(string[] args) { new Program().solve(); } void solve() { int[] nm = Console.ReadLine().Split(' ').Select(int.Parse).ToArray...
[["+", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["+", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 212, 0, 213, 63, 214, 205, 204, 205, 22], ["+", 0, 213, 63, 214, 205, 204, 206, 207, 0, 70], ["+", 63, 214, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 213, 63, 214, 2...
8
684
using System; namespace C { class Program { static int[] ToIntAry(string[] str) { int len = str.Length; int[] intary = new int[len]; for (int i = 0; i < len; i++) { intary[i] = int.Parse(str[i]); } return intary; } static void Main(string[] args) { int[] NM = ToIntAry(Console.ReadLi...
using System; namespace C { class Program { static int[] ToIntAry(string[] str) { int len = str.Length; int[] intary = new int[len]; for (int i = 0; i < len; i++) { intary[i] = int.Parse(str[i]); } return intary; } static void Main(string[] args) { int[] NM = ToIntAry(Console.ReadLi...
[["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 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, 107], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22],...
8
323
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProblemC { class Program { static void Main(string[] args) { var read = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var N = read[0]; var M = read[1]...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProblemC { class Program { static void Main(string[] args) { var read = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var N = read[0]; var M = read[1]...
[["+", 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, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 0, 213, 3, 4, 0, 28, 0, 218, 8, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25]]
8
326
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { var num = Console.ReadLine() .Trim() .Split(' ') .Select(x => long.Parse(x)) .ToArray(); v...
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { var num = Console.ReadLine() .Trim() .Split(' ') .Select(x => long.Parse(x)) .ToArray(); l...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200...
8
291
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var input1 = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = input1[0]; var M = input1[1]; var observatories = Console.ReadLine() ...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var input1 = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = input1[0]; var M = input1[1]; var observatories = Console.ReadLine() ...
[["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 75, 57, 15, 16, 31, 214, 205, 204, 205, 22], ["+", 15, 16, 31, 214, 205, 204, 206, 207, 0, 70], ["+", 31, 214, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 214, 205, 204, 206, 207, 0, 73], ["+", 0, 57, 75, 57, 15, 16, ...
8
252
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design; using System.IO.Compression; using System.Linq; using System.Numerics; using System.Text; namespace Atcoder { class Program { private const long COMDIV = 1000000007; static voi...
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design; using System.IO.Compression; using System.Linq; using System.Numerics; using System.Text; namespace Atcoder { class Program { private const long COMDIV = 1000000007; static voi...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 57, 75, 57, 15, 23, 0, 16,...
8
266
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 206, 207, 0, 28, 0, 16, 31, 204, 205, 22...
8
356
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Abc166C { public static void Main() { var nm = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); var n = nm[0]; var m = nm[1]; var h = Console.ReadLine().Split(' ').Select(i => int.Parse(i))....
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Abc166C { public static void Main() { var nm = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); var n = nm[0]; var m = nm[1]; var h = Console.ReadLine().Split(' ').Select(i => int.Parse(i))....
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 206, 207, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 64, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 1, 0, 11, 12, 211, 0, 146], ["+", 0, 7, 8, 196, 0, 57, 64, 1, 0, 35], ["+",...
8
213
using System; class Program { static void Main(string[] args) { var observatory = Console.ReadLine().Split(' '); var elevation = Console.ReadLine().Split(' '); bool[] goodObservatory = new bool[int.Parse(observatory[0])]; for (int idx = 0; idx < goodObservatory.Length; idx++) { goodObservatory...
using System; class Program { static void Main(string[] args) { var observatory = Console.ReadLine().Split(' '); var elevation = Console.ReadLine().Split(' '); bool[] goodObservatory = new bool[int.Parse(observatory[0])]; for (int idx = 0; idx < goodObservatory.Length; idx++) { goodObservatory...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["-", 0, 28, 0, 16, 31, 213, 3, 4, 0, 25], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32...
8
373
using System; using System.Collections.Generic; using System.Linq; class abc166_c { public static void Main() { String[] str = Console.ReadLine().Split(' '); int n = int.Parse(str[0]); int m = int.Parse(str[1]); int[] h = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); List<int>...
using System; using System.Collections.Generic; using System.Linq; class abc166_c { public static void Main() { String[] str = Console.ReadLine().Split(' '); int n = int.Parse(str[0]); int m = int.Parse(str[1]); int[] h = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); List<int>...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 0, 57, 15, 16, 12, 16, 31, 214, 205, 22], ["-", 0, 57, 15, 16, 12, 16, 31, 214, 0, 131], ["-", 0, 57, 15, 16, 12, 16, 31, 214, 141, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79]...
8
350
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var inp = Console.ReadLine().Split(' '); var inp2 = Console.ReadLine().Split(' '); bool[] isHillGood = new bool[int.Parse(inp[0])]; for (int i = 0; i < isHillGood.Length; i++) { ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var inp = Console.ReadLine().Split(' '); var inp2 = Console.ReadLine().Split(' '); bool[] isHillGood = new bool[int.Parse(inp[0])]; for (int i = 0; i < isHillGood.Length; i++) { ...
[["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 95], ["+", 8, 196, 0, 57, 75, 57, 75, 196, 0, 45], ["+", 75, 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], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ...
8
279
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[] NM = Console.ReadLine().Split(" ").Select(int.Parse).ToArray(); int[] H = Console.ReadLine().Split(" ").Select(int.Parse).ToArray(); ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[] NM = Console.ReadLine().Split(" ").Select(int.Parse).ToArray(); int[] H = Console.ReadLine().Split(" ").Select(int.Parse).ToArray(); ...
[["+", 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
436
using System; using System.Collections.Generic; class Program { struct tenbodaiSt { public int h; public List<int> route; } static void Main(string[] args) { int i, j; string[] strInput = Console.ReadLine().Split(' '); int n = int.Parse(strInput[0]); int m = int.Parse(strInput[1]); ...
using System; using System.Collections.Generic; class Program { struct tenbodaiSt { public int h; public List<int> route; } static void Main(string[] args) { int i, j; string[] strInput = Console.ReadLine().Split(' '); int n = int.Parse(strInput[0]); int m = int.Parse(strInput[1]); ...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 15, 16, 31, 214, 205, 214, 205, 204, 205, 22], ["+", 31, 214, 205, 214, 205, 204, 206, 207, 0, 70], ["+", 205, 214, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 31, 214, 205, 214, 205, 204, 206, 207, 0, 73], ["+", 0, 57, 15, 16, 3...
8
351
using System; using System.Linq; using System.Collections; namespace C { class Program { static void Main(string[] args) { var foo = Console.ReadLine().Trim().Split(' '); var N = int.Parse(foo[0]); var M = int.Parse(foo[1]); var bar = Console.ReadLine().Trim().Split(' '); var H = bar.Select(x => ...
using System; using System.Linq; using System.Collections; namespace C { class Program { static void Main(string[] args) { var foo = Console.ReadLine().Trim().Split(' '); var N = int.Parse(foo[0]); var M = int.Parse(foo[1]); var bar = Console.ReadLine().Trim().Split(' '); var H = bar.Select(x => ...
[["+", 0, 1, 0, 11, 12, 16, 31, 204, 205, 22], ["+", 0, 11, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 11, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 98]]
8
300
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; class Program { public static void Main() { String[] input = Console.ReadLine().Split(); long N = long.Parse(input[0]); long M = long.Parse(input[1]); long[] H = new long[N]; input = Console.ReadLine().Split(...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; class Program { public static void Main() { String[] input = Console.ReadLine().Split(); long N = long.Parse(input[0]); long M = long.Parse(input[1]); long[] H = new long[N]; input = Console.ReadLine().Split(...
[["+", 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, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["...
8
293
using System; using System.Collections; using System.Collections.Generic; class Program { static Graph G; public struct Graph { public HashSet<int>[] points; public Graph(int n) { points = new HashSet<int>[n]; for (int i = 0; i < n; i++) { points[i] = new HashSet<int>(); } }...
using System; using System.Collections; using System.Collections.Generic; class Program { static Graph G; public struct Graph { public HashSet<int>[] points; public Graph(int n) { points = new HashSet<int>[n]; for (int i = 0; i < n; i++) { points[i] = new HashSet<int>(); } }...
[["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 204, 205, 22], ["+", 75, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 75, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 1...
8
398
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { double a = 0; double b = 0; double x = double.Parse(Console.ReadLine()); for (double i = -118; i <= 119; i++) { for (double j = -118; j <= 119; j++) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { double a = 0; double b = 0; double x = double.Parse(Console.ReadLine()); for (double i = -118; i <= 119; i++) { for (double j = -118; j <= 119; j++) { ...
[["-", 0, 57, 15, 16, 12, 213, 63, 214, 205, 22], ["-", 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, 21], ["-", 15, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["-", 0, 57, 15, 16, 12, 213, 3, 4, 0, 2...
8
147
using System; namespace abc166 { class Program { static void Main() { var n = long.Parse(Console.ReadLine()); var a = new long[2000]; for (var i = 0; i < a.Length; ++i) { a[i] = (long)Math.Pow(i, 5); } for (var i = 0; i < a.Length; ++i) { for (var j = 0; j < a.Length; ++j) { i...
using System; namespace abc166 { class Program { static void Main() { var n = long.Parse(Console.ReadLine()); var a = new long[6207]; for (var i = 0; i < a.Length; ++i) { a[i] = (long)Math.Pow(i, 5); } for (var i = 0; i < a.Length; ++i) { for (var j = 0; j < a.Length; ++j) { i...
[["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["-", 0, 28, 0, 16, 31, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["-", 0, 28, 0, 16, 31, 16, 31, 23, 0, 25], ["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24]...
8
192
using System; using System.Collections.Generic; using System.Linq; namespace contest_Csharp { class Program { static long power(long a, long b, long modulo) { long result = 1; long buff = a; for (long i = 1; i <= b; i *= 2) { result = result * ((b / i % (2) == 1) ? buff : 1) % modulo; buff = ...
using System; using System.Collections.Generic; using System.Linq; namespace contest_Csharp { class Program { static long power(long a, long b, long modulo) { long result = 1; long buff = a; for (long i = 1; i <= b; i *= 2) { result = result * ((b / i % (2) == 1) ? buff : 1) % modulo; buff = ...
[["-", 0, 11, 12, 288, 0, 28, 0, 204, 205, 22], ["-", 12, 288, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 12, 288, 0, 28, 0, 204, 206, 207, 0, 73], ["-", 12, 288, 0, 28, 0, 241, 0, 204, 205, 22], ["-", 0, 28, 0, 241, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 241, 0, 204, 206, 207, 0, 73]]
8
755
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
[["+", 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, 212, 0, 16, 31, 241, 0, 23, 0, 24], ["-", 0, 16, 31, 241, 0, 23, 0, 16, 31,...
8
268
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var n = Read().Long(); var r = ReadSplit(); var hl = new long[n]; var l1 = new long[n]...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var n = Read().Long(); var r = ReadSplit(); var hl = new long[n]; var l1 = new long[n]...
[["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 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, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0,...
8
539
using System; using System.Collections.Generic; using System.Linq; class Ho { static void Main() { long N = long.Parse(Console.ReadLine()); var A = new long[N]; var zen = Console.ReadLine().Split(); for (long i = 0; i < N; i++) { A[i] = long.Parse(zen[i]); } var Bi = new long[N]; for...
using System; using System.Collections.Generic; using System.Linq; class Ho { static void Main() { long N = long.Parse(Console.ReadLine()); var A = new long[N]; var zen = Console.ReadLine().Split(); for (long i = 0; i < N; i++) { A[i] = long.Parse(zen[i]); } var Bi = new long[N]; for...
[["-", 64, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 64, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 8, 196, 0, 1, 0, 223, 0, 204, 205, 22], ["+", 0, 1, 0, 223, 0, 204, 206, 207, 0, 70], ["+", 0, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["+", 206, 207, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22...
8
267
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; class Program { public static void Main() { String S = Console.ReadLine(); long L = S.Length; int[] a = new int[L + 1]; long ans = 0; int mul = 1; for (int i = a.Length - 2; i >= 0; i--) { a[i] = (a...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; class Program { public static void Main() { var S = Console.ReadLine().Select(e => e - '0').ToArray(); long L = S.Length; long[] a = new long[L + 1]; long ans = 0; long mul = 1; for (long i = L - 1; i >= ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 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, 2...
8
192
using System; using System.Collections.Generic; using System.Numerics; using System.Linq; using static System.Math; class MainClass { public static void Main(string[] args) { var s = LnStr(); var S = s.Length; var dp = new int[S]; var remains = new int[2019]; s = new string(s.Reverse().ToArray()...
using System; using System.Collections.Generic; using System.Numerics; using System.Linq; using static System.Math; class MainClass { public static void Main(string[] args) { var s = LnStr(); var S = s.Length; var dp = new int[S]; var remains = new int[2019]; s = new string(s.Reverse().ToArray()...
[["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
713
using System; using System.Collections.Generic; using System.Linq; namespace ClassLibrary1 { public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } class StringComparator2 : IComparer<string> { int IComparer<string>.Compare(string a, string b) { int length = Ma...
using System; using System.Collections.Generic; using System.Linq; namespace ClassLibrary1 { public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } class StringComparator2 : IComparer<string> { int IComparer<string>.Compare(string a, string b) { int length = Ma...
[["+", 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, 203], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], [...
8
2,143
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 input = int.Parse(Console.ReadLine()); double PI = 3.1415926535897931; double result = (input * input * PI) / 4.0;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { int input = int.Parse(Console.ReadLine()); double PI = 3.1415926535897931; double result = (input * 2 * PI); Console.WriteLine(result); } } }
[["-", 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
85
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text.RegularExpressions; using System.Threading; namespace ConsoleApp1 { class Program { static void Main(string[] args) { long[] inputLongAr...
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text.RegularExpressions; using System.Threading; namespace ConsoleApp1 { class Program { static void Main(string[] args) { long[] inputLongAr...
[["-", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 31, 203], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 17, 72], ["-", 0, 16, 12, 23, 0, 16, 12, 23, 0, 24], ["-", 0, 16, 12, 23, 0, 16, 31, 241, 0, 33], ["-", 0, 16, 12, 23, 0, 16, 12, 23, 0, 25]]
8
202
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[] inputArray = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int A = inputArray[0]; int B = inputArray[1]; int C = inputArray[2]; int K = inputArray[3]; ...
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[] inputArray = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int A = inputArray[0]; int B = inputArray[1]; int C = inputArray[2]; int K = inputArray[3]; ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+",...
8
153
using System; using System.Collections.Generic; class main { static void Main(string[] args) { string[] read = Console.ReadLine().Split(' '); long A = int.Parse(read[0]); long B = int.Parse(read[1]); long C = int.Parse(read[2]); long K = int.Parse(read[3]); if (K <= A + B) { Console.W...
using System; using System.Collections.Generic; class main { static void Main(string[] args) { string[] read = Console.ReadLine().Split(' '); long A = int.Parse(read[0]); long B = int.Parse(read[1]); long C = int.Parse(read[2]); long K = int.Parse(read[3]); if (K <= A) { Console.Write...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 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, 1, 0, 213, 3, 4, 0, 28, 0, 22], [...
8
132
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionB { /// <summary> /// B - Easy Linear Programming /// https://atcoder.jp/contests/abc167/tasks/abc167_b /// </summary> /// <param name="args"><...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionB { /// <summary> /// B - Easy Linear Programming /// https://atcoder.jp/contests/abc167/tasks/abc167_b /// </summary> /// <param name="args"><...
[["-", 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, 16, 31, 204, 205, 22], ["-", 0, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 200, 0, 212, 0, 16, 31,...
8
236
using System; using System.Linq; using System.Collections.Generic; using System.IO; using System.Text; class Program { static void Main() { var inputList = Console.ReadLine().Split(' ').ToList(); var a = inputList[0].ToInt32(); var b = inputList[1].ToInt32(); var c = inputList[2].ToInt32(); var ...
using System; using System.Linq; using System.Collections.Generic; using System.IO; using System.Text; class Program { static void Main() { var inputList = Console.ReadLine().Split(' ').ToList(); var a = inputList[0].ToInt32(); var b = inputList[1].ToInt32(); var c = inputList[2].ToInt32(); var ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["...
8
493
using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Security.Cryptography.X509Certificates; namespace hello_world { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(" "); int A =...
using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Security.Cryptography.X509Certificates; namespace hello_world { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(" "); int A =...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 64, 1, 0, 35], ["+", ...
8
184
using System; class Program { static void Main() { string[] In = Console.ReadLine().Split(' '); int a = int.Parse(In[0]); int b = int.Parse(In[1]); int c = int.Parse(In[2]); int k = int.Parse(In[3]); int sum = 0; sum += a; k -= a; if (k > 0) { k -= b; } if (k > 0) { ...
using System; class Program { static void Main() { string[] In = Console.ReadLine().Split(' '); int a = int.Parse(In[0]); int b = int.Parse(In[1]); int c = int.Parse(In[2]); int k = int.Parse(In[3]); int sum = 0; if (k >= a) { sum += a; } else { sum += k; } k -= a;...
[["+", 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, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],...
8
128
using System; using System.Collections.Generic; using System.Linq; namespace AtCorder { class Program { static void Main(string[] args) { // 標準入力:A,B,C,K string[] sline = Console.ReadLine().Split(" "); int a = int.Parse(sline[0]); int b = int.Parse(sline[1]); int c = int.Parse(sline[2]); int ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCorder { class Program { static void Main(string[] args) { // 標準入力:A,B,C,K string[] sline = Console.ReadLine().Split(" "); int a = int.Parse(sline[0]); int b = int.Parse(sline[1]); int c = int.Parse(sline[2]); int ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, ...
8
196
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int sum = 0; int x = 0; int ans = 0; int a = int.Parse(input[0]); int b = int.Parse(input[1]); int c = int.Parse(input[2]); int d = int.Parse(input[3]); if (d <= a + b) {...
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int sum = 0; int x = 0; int ans = 0; int a = int.Parse(input[0]); int b = int.Parse(input[1]); int c = int.Parse(input[2]); int d = int.Parse(input[3]);  if (d <= a) { an...
[["+", 0, 208, 0, 235, 8, 201, 0, 195, 8, 196], ["+", 0, 235, 8, 201, 0, 195, 8, 196, 0, 197], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 198], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 224], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 0, 200], ["+", 0, 197, 0, 198, 39, 224, 0, 200, 0, 197], ["+", 0, 198, 39, 224, 0, 200, 0, ...
8
141
using System; namespace B { class Program { static void Main(string[] args) { var arr = Console.ReadLine().Split(' '); var a = int.Parse(arr[0]); var b = int.Parse(arr[1]); var c = int.Parse(arr[2]); var k = int.Parse(arr[3]); var result = 0; if (k < a) { result += k; } else if ...
using System; namespace B { class Program { static void Main(string[] args) { var arr = Console.ReadLine().Split(' '); var a = int.Parse(arr[0]); var b = int.Parse(arr[1]); var c = int.Parse(arr[2]); var k = int.Parse(arr[3]); var result = 0; if (k < a) { result += k; } else if ...
[["-", 8, 196, 0, 57, 75, 57, 75, 57, 0, 121], ["-", 8, 196, 0, 57, 75, 57, 75, 57, 0, 24], ["-", 0, 57, 75, 57, 75, 57, 15, 16, 31, 22], ["-", 0, 57, 75, 57, 75, 57, 15, 16, 17, 18], ["-", 75, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["-", 75, 57, 15, 16, 12, 16, 31, 16, 17, 72], ["-", 75, 57, 15, 16, 12, 16, 31, 16, 12, ...
8
154
using System; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); var A = input[0]; var B = input[1]; var C = input[2]; var K = input[3]; Console.WriteLine(A + B >= K ? A : 2 * A + B -...
using System; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); var A = input[0]; var B = input[1]; var C = input[2]; var K = input[3]; Console.WriteLine(A + B >= K ? Math.Min(A, K) ...
[["+", 0, 28, 0, 41, 64, 213, 63, 214, 205, 22], ["+", 0, 28, 0, 41, 64, 213, 63, 214, 0, 131], ["+", 0, 28, 0, 41, 64, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 41, 64, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 41, 64, 213, 3, 4, 0, 21], ["+", 0, 41, 64, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 28, 0, 41, 64, 213, 3, 4, 0, 25]]
8
104
using System; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public static void Main(string[] args) { new B().test(); } } public class B { public void test() { var cards = CommonRead.ReadLongL(); var A = cards[0]; var B = cards[1]; var C = cards[2]; ...
using System; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public static void Main(string[] args) { new B().test(); } } public class B { public void test() { var cards = CommonRead.ReadLongL(); var A = cards[0]; var B = cards[1]; var C = cards[2]; ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 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...
8
524
namespace Test { using System; using System.Collections.Generic; using System.Linq; using System.Text; public class Test { public static void Main(string[] args) { var t = new Test(); var n = t.ParseLongList(t.ReadInput()); var a = n[0]; var b = n[1]; var c = n[2]; var k = n[3]; long ans ...
namespace Test { using System; using System.Collections.Generic; using System.Linq; using System.Text; public class Test { public static void Main(string[] args) { var t = new Test(); var n = t.ParseLongList(t.ReadInput()); var a = n[0]; var b = n[1]; var c = n[2]; var k = n[3]; long ans ...
[["+", 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, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],...
8
444
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; using System.Text; namespace AtCoder { static class Program_B { class Solver { public void Solve() { var abck = Int64s(0); Int64 a = abck[0]; Int64 b = abck[1]; ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; using System.Text; namespace AtCoder { static class Program_B { class Solver { public void Solve() { var abck = Int64s(0); Int64 a = abck[0]; Int64 b = abck[1]; ...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
763
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC167 { class Program { static void Main(string[] args) { b(); } public static void b() { long[] abck = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long a = abck[0...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC167 { class Program { static void Main(string[] args) { b(); } public static void b() { long[] abck = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long a = abck[0...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 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, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, ...
8
183
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class CF { public static int[] ReadArray() { return Array.ConvertAll(Console.ReadLine().Split(' '), m => Convert.ToInt32(m)); } public static int ReadInt() { return Convert.ToInt32(Cons...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class CF { public static int[] ReadArray() { return Array.ConvertAll(Console.ReadLine().Split(' '), m => Convert.ToInt32(m)); } public static int ReadInt() { return Convert.ToInt32(Cons...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22...
8
254
using System; using System.Collections.Generic; using System.Linq; namespace Atcoder { class Program { static void Main(string[] args) { string[] S = Console.ReadLine().Split(' '); long A, B, C, K; A = long.Parse(S[0]); B = long.Parse(S[1]); C = long.Parse(S[2]); K = long.Parse(S[3]); lon...
using System; using System.Collections.Generic; using System.Linq; namespace Atcoder { class Program { static void Main(string[] args) { string[] S = Console.ReadLine().Split(' '); long A, B, C, K; A = long.Parse(S[0]); B = long.Parse(S[1]); C = long.Parse(S[2]); K = long.Parse(S[3]); lon...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 64, 1, 0, 35], ["+", 8...
8
146
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input1 = Console.ReadLine().Split(' '); var a = long.Parse(input1[0]); var b = long.Parse(input1[1]); var c = long.Parse(input1[2]); var k = long.Parse(input1[3]); long a...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input1 = Console.ReadLine().Split(' '); var a = long.Parse(input1[0]); var b = long.Parse(input1[1]); var c = long.Parse(input1[2]); var k = long.Parse(input1[3]); long a...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["+", ...
8
148
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { string[] ABCK = Console.ReadLine().Split(' '); int A = int.Parse(ABCK[0]); int B = int.Parse(ABCK[1]); int C = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { string[] ABCK = Console.ReadLine().Split(' '); int A = int.Parse(ABCK[0]); int B = int.Parse(ABCK[1]); int C = ...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201,...
8
167
using System; using System.Collections.Generic; using System.Linq; using IVN = System.Int64; class abc167_b { public static void Main() { String[] s = Console.ReadLine().Split(' '); IVN a = IVN.Parse(s[0]); IVN b = IVN.Parse(s[1]); IVN c = IVN.Parse(s[2]); IVN k = IVN.Parse(s[3]); IVN ans = 0;...
using System; using System.Collections.Generic; using System.Linq; using IVN = System.Int64; class abc167_b { public static void Main() { String[] s = Console.ReadLine().Split(' '); IVN a = IVN.Parse(s[0]); IVN b = IVN.Parse(s[1]); IVN c = IVN.Parse(s[2]); IVN k = IVN.Parse(s[3]); IVN ans = 0;...
[["+", 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, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],...
8
148
using System; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace Atcoder_Answer { class Program { const Int32 mod = 1000000007; static void Main(string[] args) { string[] Reader = ReadLine().Split...
using System; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace Atcoder_Answer { class Program { const Int32 mod = 1000000007; static void Main(string[] args) { string[] Reader = ReadLine().Split...
[["+", 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, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],...
8
520
using System; namespace B { class Program { static void Main(string[] args) { var foo = Console.ReadLine().Trim().Split(); var A = int.Parse(foo[0]); var B = int.Parse(foo[1]); var C = int.Parse(foo[2]); var K = int.Parse(foo[3]); if (K <= A + B) { Console.WriteLine(A); } else { ...
using System; namespace B { class Program { static void Main(string[] args) { var foo = Console.ReadLine().Trim().Split(); var A = int.Parse(foo[0]); var B = int.Parse(foo[1]); var C = int.Parse(foo[2]); var K = int.Parse(foo[3]); if (K < A) { Console.WriteLine(K); } else if (K <= A...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 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...
8
137
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace C { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace C { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 200, 0, 212, 0, 16, 31, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 16, 31, 214, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 1...
8
388
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; using System.Numerics; using System.Text.RegularExpressions; namespace atcorder2 { class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { ...
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; using System.Numerics; using System.Text.RegularExpressions; namespace atcorder2 { class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { ...
[["-", 0, 7, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
609
using System; using System.Linq; using System.Collections.Generic; namespace c { class Program { static void Main(string[] args) { var _ = Console.ReadLine().Split(); var n = long.Parse(_[0]); var m = long.Parse(_[1]); var x = long.Parse(_[2]); var l = new long[n, m]; for (var i = 0; i < n; ...
using System; using System.Linq; using System.Collections.Generic; namespace c { class Program { static void Main(string[] args) { var _ = Console.ReadLine().Split(); var n = long.Parse(_[0]); var m = long.Parse(_[1]); var x = long.Parse(_[2]); var c = new long[n]; var l = new long[n, m]; ...
[["+", 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, 227, 0, 228], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 70], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 212, 0, 227, 39, 224, ...
8
354
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { var input = Console.ReadLine().Split().Select(int.Parse).ToList(); int N = input[0]; int M = input[1]; int X = input[2]; var algorisms = new int[M]; List<List<int>> CArows = new Lis...
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { var input = Console.ReadLine().Split().Select(int.Parse).ToList(); int N = input[0]; int M = input[1]; int X = input[2]; var algorisms = new int[M]; List<List<int>> CArows = new Lis...
[["+", 3, 4, 0, 28, 0, 41, 15, 23, 0, 24], ["+", 0, 28, 0, 41, 15, 23, 0, 16, 17, 60], ["+", 0, 41, 15, 23, 0, 16, 12, 214, 205, 199], ["+", 0, 41, 15, 23, 0, 16, 12, 214, 0, 131], ["+", 0, 41, 15, 23, 0, 16, 12, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 41, 15, 23, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 3...
8
407
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.IO; using System.Text; using System.Globalization; public class AtCoder { public static void Main() { const int INF = int.MaxValue; var a = new int[12, 12]; var nmx = Console.ReadLine().Tri...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; public class AtCoder { public static void Main() { const int INF = int.MaxValue; var a = new int[12, 12]; var nmx = Console.ReadLine().Trim().Split().Select(e => int.Parse(e)).ToArray(); var n = nmx[...
[["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 0, 7, 8, 196, 0, 7, 8...
8
403
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
[["-", 0, 212, 0, 230, 3, 4, 0, 28, 0, 22], ["+", 0, 212, 0, 230, 3, 4, 0, 28, 0, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 82, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 82, 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], ["+", ...
8
541
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; namespace C_ABC167 { class MainClass { static int[] s; static int x; public static void Main(string[] args) { s = Array.ConvertAll(ReadLine().Split().ToArray(), int.Parse); int n = ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; namespace C_ABC167 { class MainClass { static int[] s; static int x; public static void Main(string[] args) { s = Array.ConvertAll(ReadLine().Split().ToArray(), int.Parse); int 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
539
using static System.Math; using System; public class Hello { public static int n, m, x; public static int[] c; public static int[,] a; public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); n = int.Parse(line[0]); m = int.Parse(line[1]); x = int.Parse(line[2]); c ...
using System.Linq; using static System.Math; using System; public class Hello { public static int n, m, x; public static int[] c; public static int[,] a; public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); n = int.Parse(line[0]); m = int.Parse(line[1]); x = int.Par...
[["+", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 0, 11, 12, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 11, 12, 227, 39, 2...
8
407
using System.Collections; using System.Text; using System.Threading.Tasks; using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System; using System.Numerics; class Program { #region Reader // static Vector2Int ReadVec2Int //{ // get // { // ...
using System.Collections; using System.Text; using System.Threading.Tasks; using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System; using System.Numerics; class Program { #region Reader // static Vector2Int ReadVec2Int //{ // get // { // ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 227, 39, 224, 39, 224, 225, 226, 0, 22], ["+", 0, 227, 39, 224, 39, 224, 225, 226, 0, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 15, 16, 12, 16, 12, 23, 0, ...
8
1,507
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Console; namespace AtCoder_1 { class Program { static int M = 0; static int X = 0; static void Main(string[] args) { var NMX = CinTAr(); M = NMX[1]; X = NMX[...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Console; namespace AtCoder_1 { class Program { static int M = 0; static int X = 0; static void Main(string[] args) { var NMX = CinTAr(); M = NMX[1]; X = NMX[...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["-", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 57, 75, 196, 0, 57, 64, 196, ...
8
1,445
// // ABC167C // URL : https://atcoder.jp/contests/abc167/tasks/abc167_c // using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; namespace AtCoder { class ABC167C { public static readonly long MOD_CONST = 1000000007; //(long)Math.Pow(10, 9) + 7; static void ...
// // ABC167C // URL : https://atcoder.jp/contests/abc167/tasks/abc167_c // using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; namespace AtCoder { class ABC167C { public static readonly long MOD_CONST = 1000000007; //(long)Math.Pow(10, 9) + 7; static void ...
[["+", 8, 196, 0, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 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, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 196, 0, ...
8
905
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; class Program { public static void Main() { String[] input = Console.ReadLine().Split(); long N = long.Parse(input[0]); long M = long.Parse(input[1]); long X = long.Parse(input[2]); long[] C = new long[N]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; class Program { public static void Main() { String[] input = Console.ReadLine().Split(); long N = long.Parse(input[0]); long M = long.Parse(input[1]); long X = long.Parse(input[2]); long[] C = new long[N]; ...
[["+", 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, 203], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], [...
8
548
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace Tasks { public class D { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Consol...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace Tasks { public class D { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Consol...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 0, 5...
8
636
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; class Program { static void Main(string[] args) { var sr = new StreamReader("sub1_21.txt"); var input = sr.ReadLine().Split(" "); var N = int.Parse(input[0]); var K = long....
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(" "); var N = int.Parse(input[0]); var K = long.Parse(input[1]); var line = Console....
[["-", 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, 230, 0, 228], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 39, 22], ["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["-", 0, 230, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 230, 3, 4, 0, 28, 0, 5, 0, 222], ["-"...
8
347
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { var NK = Console.ReadLine().Split().Select(e => long.Parse(e)).ToArray(); var next = Console.ReadLine().Split().Select(e => int.Parse(e)).ToArray(); //町の数 var N = NK[0]; //移動回数 v...
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { var NK = Console.ReadLine().Split().Select(e => long.Parse(e)).ToArray(); var next = Console.ReadLine().Split().Select(e => int.Parse(e)).ToArray(); //町の数 var N = NK[0]; //移動回数 v...
[["-", 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], ["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 62], ["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 0...
8
351