buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { cin = new Scanner(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { cin = new Scanner(); ...
[["-", 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, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200,...
8
551
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace C { class Program { static void Main(string[] args) { int n = RInt(); string s = RSt(); int resA = s.Count(x => x == '#'); int resB = s.Count(x => x == '.'); int allChange = Math.Min(resA, resB); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace C { class Program { static void Main(string[] args) { int n = RInt(); string s = RSt(); int resA = s.Count(x => x == '#'); int resB = s.Count(x => x == '.'); int allChange = Math.Min(resA, resB); ...
[["+", 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, 11, 12, 41, 15, 16, 31, 204, 205, 22], ["+", 12, 41, 15, 16, 31, 204, 206, 207, 0...
8
575
using System; using System.Collections.Generic; using System.Linq; namespace AtC { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var S = Console.ReadLine(); char before = '.'; int count = 0; var list = new List<int>(); for (int i = 0; i < S.Length; ...
using System; using System.Collections.Generic; using System.Linq; namespace AtC { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var S = Console.ReadLine(); char before = '.'; int count = 0; var list = new List<int>(); for (int i = 0; i < S.Length; ...
[["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 67], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 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, 63, 214, 205, 22],...
8
328
using System; namespace D { class Dmondai { static void Main() { int n = int.Parse(Console.ReadLine()); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = int.Parse(Console.ReadLine()); } int s = 0; for (int i = 0; i < n; i++) { s += a[i]; } long[,] dp = new long[...
using System; namespace D { class Dmondai { static void Main() { int n = int.Parse(Console.ReadLine()); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = int.Parse(Console.ReadLine()); } int s = 0; for (int i = 0; i < n; i++) { s += a[i]; } long[,] dp = new long[...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57,...
8
444
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC124A { class Program { static void Main(string[] args) { int A = ReadInt; int B = ReadInt; if (A > B) { Console.WriteLine(2 * A - 1); } e...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC124A { class Program { static void Main(string[] args) { int A = ReadInt; int B = ReadInt; if (A > B) { Console.WriteLine(2 * A - 1); } e...
[["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 31, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 25], ["+", 75, 57, 64, 1, 0, 213, 63, 214, 205, 22...
8
546
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Console; namespace AtCoder_1 { class Program { static void Main(string[] args) { var ab = CinTAr(); int m = ab.Max(); Cout(m + m - ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Console; namespace AtCoder_1 { class Program { static void Main(string[] args) { var ab = CinTAr(); int m = ab.Max(); if (ab[0] != ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 195, 8, 196, 0, 57, 15, 16...
8
718
using System; using System.Collections.Generic; using System.Linq; // using System.Text; // using System.Threading.Tasks; class Program { static void Main(string[] args) { int[] AB = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int A = AB[0]; int B = AB[1]; int n = Ma...
using System; using System.Collections.Generic; using System.Linq; // using System.Text; // using System.Threading.Tasks; class Program { static void Main(string[] args) { int[] AB = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int A = AB[0]; int B = AB[1]; int n = Ma...
[["+", 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, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],...
8
105
using System; class Program { static void Main(string[] args) { var inputValues = Console.ReadLine().Split(' '); var A = int.Parse(inputValues[0]); var B = int.Parse(inputValues[1]); var coins = 0; for (int i = 0; i <= 1; i++) { if (A >= B) { coins += A; } else { coins...
using System; class Program { static void Main(string[] args) { var inputValues = Console.ReadLine().Split(' '); var A = int.Parse(inputValues[0]); var B = int.Parse(inputValues[1]); var coins = 0; for (int i = 0; i <= 1; i++) { if (A >= B) { coins += A; A += -1; } els...
[["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 64, 196, 0, 1, 0, 11, 12, 241, 0, 33], ["+", 64, 196, 0, 1, 0, 11, 12, 241, 0, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 7...
8
107
using System; namespace Sample { class test { static void Main() { int ans = 0; string[] a = Console.ReadLine().Split(' '); int A = int.Parse(a[0]); int B = int.Parse(a[1]); if (A > B) { ans += A; A--; if (A > B) { ans += A; } if (A == B) { ans += A; ...
using System; namespace Sample { class test { static void Main() { int ans = 0; string[] a = Console.ReadLine().Split(' '); int A = int.Parse(a[0]); int B = int.Parse(a[1]); while (true) { if (A > B) { ans += A; A--; if (A > B) { ans += A; break; ...
[["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["+", 64, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 64, 196, 0, 57, 64, 196, 0, 93, 0, 35], ...
8
166
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Buttons { class Program { static void Main(string[] args) { int button1 = 0; int button2 = 0; string temp = Console.ReadLine(); string[] inp = temp.Split(' '); button1 = C...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Buttons { class Program { static void Main(string[] args) { int button1 = 0; int button2 = 0; string temp = Console.ReadLine(); string[] inp = temp.Split(' '); button1 = C...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 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, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ...
8
142
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { // 入力 string[] sS = System.Console.ReadLine().Trim().Split(' '); System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); sw.Start(); // 解析 Lis...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { // 入力 string[] sS = System.Console.ReadLine().Trim().Split(' '); System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); sw.Start(); // 解析 Lis...
[["+", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62...
8
217
using System; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var A = int.Parse(input[0]); var B = int.Parse(input[1]); var result = 0; for (var i = 0; i < 2; i++) { result += Math.Max(A, B); } result--; Console.WriteLine(result); ...
using System; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var A = int.Parse(input[0]); var B = int.Parse(input[1]); var result = 0; for (var i = 0; i < 2; i++) { result += Math.Max(A, B); } if (A != B) { result--; } Con...
[["+", 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, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],...
8
102
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { // 提出時にはコメントアウトする var exStdIn = new System.IO.StreamReader("stdin.txt"); System.Console.SetIn(exStdIn); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { //// 提出時にはコメントアウトする // var exStdIn = new System.IO.StreamReader("stdin.txt"); // System.Console.SetIn(exStd...
[["-", 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, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["-", 0, 212, 0, 230, 39, 232, 234, 232, 234, 22], ["-", 0, 212, 0, 230, 39, 232, 234, 232, 0, 131], ["-", 0, 212, 0, 230, 39, 232...
8
178
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); if (A < B) { Console.WriteLine(B + (B - 1)); } else if (A > B) { Console.WriteLine(A + (A - 1)); } } }
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); if (A < B) { Console.WriteLine(B + (B - 1)); } else if (A > B) { Console.WriteLine(A + (A - 1)); } else if (A =...
[["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 95], ["+", 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, 60], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 25], ...
8
105
using System; public class Program { public static void Main() { int a; int b; string[] str = Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得 a = int.Parse(str[0]); //数値で受け取りたい場合は変換する b = int.Parse(str[1]); int res; res = a < b ? b * 2 - 1 : a * 2 - 1; Console.WriteLine(re...
using System; public class Program { public static void Main() { int a; int b; string[] str = Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得 a = int.Parse(str[0]); //数値で受け取りたい場合は変換する b = int.Parse(str[1]); int res; if (a == b) { res = a * 2; } else { res = 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, 60], ["+", 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
94
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static AtCoderTemplate.MyExtensions; using static AtCoderTemplate.MyInputOutputs; using static AtCoderTemplate.MyNumericFunctions; namespace AtCoderTemplate { public class Program { public static void Main(string[] arg...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static AtCoderTemplate.MyExtensions; using static AtCoderTemplate.MyInputOutputs; using static AtCoderTemplate.MyNumericFunctions; namespace AtCoderTemplate { public class Program { public static void Main(string[] arg...
[["+", 0, 213, 3, 4, 0, 28, 0, 213, 63, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 3, 4, 0, 28,...
8
1,770
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long[] H = Console.ReadLine().S...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long[] H = Console.ReadLine().S...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 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, 7, 10, 198, 0, 200, 0, 212, ...
8
167
using System; using System.Reflection; namespace study4 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(' '); int[] A = new int[20]; for (int count = 0; count < N;) { A[count] = int.Parse(input[count]); c...
using System; using System.Reflection; namespace study4 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(' '); int[] A = new int[20]; for (int count = 0; count < N;) { A[count] = int.Parse(input[count]); c...
[["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 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, 57, 64, 196, 0, 1, 0, 35]]
8
153
using System; using System.Linq; class B { static void Main() { Console.ReadLine(); var h = Console.ReadLine().Split().Select(int.Parse).ToArray(); var t = h[0]; Console.WriteLine(h.Skip(1).Count(x => { var b = x >= t; t = Math.Max(t, x); return b; })); } }
using System; using System.Linq; class B { static void Main() { Console.ReadLine(); var h = Console.ReadLine().Split().Select(int.Parse).ToArray(); var t = 0; Console.WriteLine(h.Count(x => { var b = x >= t; t = Math.Max(t, x); return b; })); } }
[["-", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["-", 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], ["-", 63, 214, 205, 213, ...
8
98
using System; namespace ABC124_b { class Program { static void Main(string[] args) { string[] array1 = Console.ReadLine().Split(' '); int a = int.Parse(array1[0]); string[] array2 = Console.ReadLine().Split(' '); int[] intAry = Array.ConvertAll<string, int>( array2, delegate(string value) { r...
using System; namespace ABC124_b { class Program { static void Main(string[] args) { string[] array1 = Console.ReadLine().Split(' '); int a = int.Parse(array1[0]); string[] array2 = Console.ReadLine().Split(' '); int[] intAry = Array.ConvertAll<string, int>( array2, delegate(string value) { r...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32...
8
165
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AIZUproject08 { // 128B /*class Data { public int ID { get; set; } public string Name { get; set; } public int Evaluation { get; set; } } class Program { static void Main() ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AIZUproject08 { // 128B /*class Data { public int ID { get; set; } public string Name { get; set; } public int Evaluation { get; set; } } class Program { static void Main() ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["-", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["-", 8, 196, 0, 57, 75, 196, 0, 93, 0, 94], ["-", 8, 196, 0, 57, 75, 196, 0, 93, 0, 35], ["-", 0, 7, 8, 196, 0, 7, 8, 196, 0, 46], ["+", ...
8
175
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Great_Ocean_View { class Program { static void Main(string[] args) { int otpt = 1; int no = Convert.ToInt16(Console.ReadLine()); string[] inp = (Console.ReadLine()).Split(' '); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Great_Ocean_View { class Program { static void Main(string[] args) { int otpt = 1; int no = Convert.ToInt16(Console.ReadLine()); string[] inp = (Console.ReadLine()).Split(' '); ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 200, 0, 212, 0, 204, 206...
8
189
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { //[summary]B - Great Ocean View int n = int.Parse(Console.ReadLine()); var h = ReadLine(); int views = 1; for (int i = 1; i < n; i++) { if (h[i] > h[i - ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { //[summary]B - Great Ocean View int n = int.Parse(Console.ReadLine()); var h = ReadLine(); int views = 1; for (int i = 1; i < n; i++) { int max = h.Take(...
[["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["-", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 1...
8
163
using System; using System.Linq; namespace ABC124 { class Program { static void Main(string[] args) { string mountains = Console.ReadLine(); string[] height = Console.ReadLine().Split(' '); int intMountains = int.Parse(mountains); int[] intHeigt = height.Select(int.Parse).ToArray(); if (intHeig...
using System; using System.Linq; namespace ABC124 { class Program { static void Main(string[] args) { string mountains = Console.ReadLine(); string[] height = Console.ReadLine().Split(' '); int intMountains = int.Parse(mountains); int[] intHeigt = height.Select(int.Parse).ToArray(); /* if (...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 195, 8, 196, 0, 57, 15, 16...
8
150
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp3 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var imp = Console.ReadLine().Split(' '); int[] ary = new int[N]; int H =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp3 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var imp = Console.ReadLine().Split(' '); int[] ary = new int[N]; int H =...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]]
8
209
using System; public class Program { public static void Main() { int a; a = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); int[] i = new int[str.Length]; for (int x = 0; x < str.Length; x++) { i[x] = int.Parse(str[x]); } int max = i[0]; int count = ...
using System; public class Program { public static void Main() { int a; a = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); int[] i = new int[str.Length]; for (int x = 0; x < str.Length; x++) { i[x] = int.Parse(str[x]); } int max = i[0]; int count = ...
[["+", 0, 7, 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], ["+", 64, 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
146
using System; namespace CSsample { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string input = Console.ReadLine(); var H = input.Split(); int num = 1; bool flag = false; for (int i = 1; i < N; i++) { for (int j = 0; j < i; j++) { if (i...
using System; namespace CSsample { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string input = Console.ReadLine(); var H = input.Split(); int num = 1; bool flag = false; for (int i = 1; i < N; i++) { for (int j = 0; j < i; j++) { if (i...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 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
139
using System; using System.Collections.Generic; namespace cs { public class Program { public static void Main(string[] args) { var input = Console.ReadLine().ToCharArray(); var count_BlackStart = 0; var count_WhiteStart = 0; var bs_nextColor = '1'; var ws_nextColor = '0'; char t; for (...
using System; using System.Collections.Generic; namespace cs { public class Program { public static void Main(string[] args) { var input = Console.ReadLine().ToCharArray(); var count_BlackStart = (input[0] == '0' ? 0 : 1); var count_WhiteStart = (input[0] == '1' ? 0 : 1); var bs_nextColor = '1'; ...
[["+", 0, 198, 0, 200, 0, 212, 0, 23, 0, 24], ["+", 0, 23, 0, 41, 15, 16, 31, 204, 205, 22], ["+", 0, 41, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 41, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 212, 0, 23, 0, 41, 15, 16, 17, 60], ["+", 0, 23, 0, 41, 15, 16, 12, 252, 0, 104], ["+", 0, 23, 0, 41, 15, 16, 12, 252, 0, ...
8
144
using System; // using System.Collections.Generic; using System.Linq; // using System.Text; // using System.Threading; // using System.Threading.Tasks; // using System.Timers; namespace Test { class Program { static void Main(string[] args) { var res = 0; var nums = new[] { 0, 1 }; var S = Console.Read...
using System; // using System.Collections.Generic; // using System.Linq; // using System.Text; // using System.Threading; // using System.Threading.Tasks; // using System.Timers; namespace Test { class Program { static void Main(string[] args) { var res = 0; var nums = new[] { '0', '1' }; var S = Conso...
[["-", 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], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["+", 0, 212, 0, 297, 0, 229, 0, 252, 0, 104], ["-", 0, 7, 8, 196, 0, 57, 15,...
8
125
using static System.Math; using System; public class Hello { public static void Main() { var s = Console.ReadLine().Trim(); var a = s.ToCharArray(); var ans2 = getAns1(a); var ans1 = getAns0(a); var ans = Min(ans1, ans2); Console.WriteLine(ans); } static int getAns1(char[] a) { var co...
using static System.Math; using System; public class Hello { public static void Main() { var s = Console.ReadLine().Trim(); var a = s.ToCharArray(); var ans1 = getAns0(a); var ans2 = getAns1(a); var ans = Min(ans1, ans2); Console.WriteLine(ans); } static int getAns1(char[] a) { var co...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 8, 196, 0, 57, 64, 1, 0, 223, 0, 29], ["+", 0, 52, 8, 196, 0, 57, 64, 1, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22]]
8
248
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213,...
8
697
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { MainStream(); } static void MainStream() { Scan sc = new Scan(); write wr = new write(); string tmp = Console.ReadLine(); var s = new List<int>(); // var sa...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { MainStream(); } static void MainStream() { Scan sc = new Scan(); write wr = new write(); string tmp = Console.ReadLine(); var s = new List<int>(); for (var ...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]]
8
313
using System; namespace AtCoder.ABC._124 { class c { static void Main(string[] args) { var line = Console.ReadLine().Trim(); var len = line.Length; var cntOdd = 0; var cntEve = 0; for (var i = 0; i < len; ++i) { if (i % 2 == 0) { if (line[i] == '1') { +...
using System; namespace AtCoder.ABC._124 { class c { static void Main(string[] args) { var line = Console.ReadLine().Trim(); var len = line.Length; var cntOdd = 0; var cntEve = 0; for (var i = 0; i < len; ++i) { if (i % 2 == 0) { if (line[i] == '1') { +...
[["-", 0, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 2...
8
148
using System; using System.Linq; using System.Collections.Generic; using E = System.Linq.Enumerable; public class Program { public static void Main() { var s = Console.ReadLine().Trim(); var k = 0; var l = -1; for (int i = 1; i < s.Length; i++) { if (s[i] != s[i - 1]) { continue; ...
using System; using System.Linq; using System.Collections.Generic; using E = System.Linq.Enumerable; public class Program { public static void Main() { var s = Console.ReadLine().Trim(); var k = 0; var l = -1; for (int i = 1; i < s.Length; i++) { if (s[i] != s[i - 1]) { continue; ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
136
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 r = ReadSplit(); var n = r[0].Int(); var k = ...
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 r = ReadSplit(); var n = r[0].Int(); var k = ...
[["-", 0, 7, 8, 196, 0, 57, 64, 93, 0, 94], ["+", 0, 7, 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, 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
721
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
[["+", 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], ["+", 15, 16, 31, 16, 31, 213, 3, 4, 0, 24],...
8
1,820
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; using static System.Math; using static Solve.Methods; using stat...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; using static System.Math; using static Solve.Methods; using stat...
[["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["...
8
5,963
using System; using System.Collections.Generic; using System.Linq; namespace ABC124 { class D { static void Main(string[] args) { int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = input[0]; int K = input[1]; string S = Console.ReadLine(); List<int> list = new List<in...
using System; using System.Collections.Generic; using System.Linq; namespace ABC124 { class D { static void Main(string[] args) { int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = input[0]; int K = input[1]; string S = Console.ReadLine(); List<int> list = new List<in...
[["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 214, 205, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 214, 0, 131], ["+", 31, 204, 206, 207, 0, ...
8
430
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = l[0], K = l[1]; var array = Console.ReadLine().ToCharArray(); var acum = new List<int>();...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = l[0], K = l[1]; var array = Console.ReadLine().ToCharArray(); var acum = new List<int>();...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 7, 15, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 7, 15, 16, 12, 213, 3, 4, 0, 25], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ...
8
321
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { new ABC124().SolveD(new ConsoleInput(Console.In, ' ')); } } public class ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { new ABC124().SolveD(new ConsoleInput(Console.In, ' ')); } } public class ...
[["+", 0, 52, 15, 16, 12, 16, 12, 16, 31, 203], ["+", 0, 52, 15, 16, 12, 16, 12, 16, 17, 48], ["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 19...
8
737
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { var nk = Console.ReadLine().Split(); var n = int.Parse(nk[0]); var k = int.Parse(nk[1]) * 2 + 1; var s = Console.ReadLine(); var d = new List<int> { 1 }; for (int i = 1; i < s.Length; i++) { ...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { var nk = Console.ReadLine().Split(); var n = int.Parse(nk[0]); var k = int.Parse(nk[1]) * 2 + 1; var s = Console.ReadLine(); var d = new List<int> { 1 }; for (int i = 1; i < s.Length; i++) { ...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 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], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19...
8
256
using System; using System.Linq; using System.Collections.Generic; class Dmondai { static void Main() { var nk = Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray(); var N = nk[0]; var K = nk[1]; var S = Console.ReadLine(); var list = new List<int[]>(); var currentNum ...
using System; using System.Linq; using System.Collections.Generic; class Dmondai { static void Main() { var nk = Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray(); var N = nk[0]; var K = nk[1]; var S = Console.ReadLine(); var list = new List<int[]>(); var currentNum ...
[["-", 0, 227, 0, 229, 0, 41, 15, 16, 31, 22], ["-", 0, 227, 0, 229, 0, 41, 15, 16, 17, 60], ["-", 0, 227, 0, 229, 0, 41, 15, 16, 12, 203], ["-", 0, 28, 0, 227, 0, 229, 0, 41, 0, 101], ["-", 0, 227, 0, 229, 0, 41, 64, 204, 205, 22], ["-", 0, 229, 0, 41, 64, 204, 206, 207, 0, 70], ["-", 0, 41, 64, 204, 206, 207, 0, 28, ...
8
608
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner cin = new Scaner(); write cout = new write...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner cin = new Scaner(); write cout = new write...
[["-", 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
1,523
using System; using System.Linq; class C { static void Main() { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine() .Split() .Select(int.Parse) .GroupBy(x => x) .SelectMany(g => g.Take(2)) .ToArray(); var l = n...
using System; using System.Linq; class C { static void Main() { Console.ReadLine(); var a = Console.ReadLine() .Split() .Select(int.Parse) .GroupBy(x => x) .SelectMany(g => g.Take(2)) .ToArray(); var n = a.Length; var l ...
[["-", 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, 213, 63, 214, 205, 199], ["-", 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, ...
8
291
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace ziyuutyou { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var L = Enumer...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace ziyuutyou { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var L = Enumer...
[["-", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, ...
8
348
using System; using System.Collections.Generic; using System.Linq; namespace ABC125_C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var str1 = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int max = 0; List<int> Number = new List<int>(); ...
using System; using System.Collections.Generic; using System.Linq; namespace ABC125_C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var str1 = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int max = 0; List<int> Number = new List<int>(); ...
[["-", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["-", 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], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0...
8
355
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var inputs = Console.ReadLine().Split(' '); var A = new List<long>(); for (int i = 0; i < inputs.Length; i++) { A.Add(long.Parse(inputs[i]...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var inputs = Console.ReadLine().Split(' '); var A = new List<long>(); for (int i = 0; i < inputs.Length; i++) { A.Add(long.Parse(inputs[i]...
[["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 31, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 60], ["+", 75, 57, 15, 16, 12, 16, 31, 214, 205, 22], ["+", 75, 57, 15, 16, 12, 16, 31, 214, 0, 131], ["+", 75, 57, 15, 16, 12, 16, 31, 214, 141,...
8
377
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GCD_on_Blackboard { class Program { static int GCD(int a, int b) { if (a == 0) { return b; } if (b == 0) { return a; } var large = a > b ? a : b; var small...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GCD_on_Blackboard { class Program { static int GCD(int a, int b) { if (a == 0) { return b; } if (b == 0) { return a; } var large = a > b ? a : b; var small...
[["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["...
8
323
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace CSharp { class Program { static IEnumerable<long> EnumerateDivisors(long n) { for (long i = 1; i * i <= n; i++) { if (n % i == 0) { yield return i; if (n / i != i) { yield return...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace CSharp { class Program { static IEnumerable<long> EnumerateDivisors(long n) { for (long i = 1; i * i <= n; i++) { if (n % i == 0) { yield return i; if (n / i != i) { yield return...
[["-", 0, 218, 8, 16, 31, 16, 31, 214, 141, 22], ["-", 0, 28, 0, 218, 8, 16, 31, 16, 17, 79], ["-", 0, 28, 0, 218, 8, 16, 31, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 98], ["-", 0, 218, 8, 16, 12, 16, 31, 214, 205, 22], ["-", 0, 218, 8, 16, 12, 16, 31, 214, 0, 131], ["-", 205, 213, 63, 214, 205, 213, 63, 214...
8
743
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class abc125c { public static int GCD(int a, int b) { if (b > a) Swap(ref a, ref b); if (b == 0) return a; return GCD(b, a % b); } private static void Swap<T>(ref T a, ref ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class abc125c { public static int GCD(int a, int b) { if (b > a) Swap(ref a, ref b); if (b == 0) return a; return GCD(b, a % b); } private static void Swap<T>(ref T a, ref ...
[["-", 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], ["-", 8, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70]...
8
345
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class ABC { public static void Main() { int N = int.Parse(Console.ReadLine()); int[] A = Console.ReadLine().Split().Select(int.Parse).ToArray(); int divided = -1; int[] fromleft...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class ABC { public static void Main() { int N = int.Parse(Console.ReadLine()); int[] A = Console.ReadLine().Split().Select(int.Parse).ToArray(); int divided = -1; int[] fromleft...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 3...
8
419
using System; using System.Collections.Generic; using System.Linq; class ABC125C { public static void Main() { var N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split().Select(int.Parse).ToArray(); var S = new int[N - 1]; var R = new int[N - 1]; S[0] = A[0]; R[0] = A.Last(); ...
using System; using System.Collections.Generic; using System.Linq; class ABC125C { public static void Main() { var N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split().Select(int.Parse).ToArray(); var S = new int[N - 1]; var R = new int[N - 1]; S[0] = A[0]; R[0] = A.Last(); ...
[["-", 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], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
317
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProconTemplate { class Doing { public static void Main(string[] args) { // Drop Console.ReadLine(); var inputList = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); if (inputList...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProconTemplate { class Doing { public static void Main(string[] args) { // Drop Console.ReadLine(); var inputList = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); if (inputList...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12...
8
665
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace D { 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 D { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 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, 57, 64, 196, 0, 1, 0, 35]]
8
256
using System; namespace Kyopuro { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int i; int count; string[] st = Console.ReadLine().Split(' '); long ans = 0; long[] num = new long[N]; for (i = 0; i < N; i++) { num[i] = long.Parse(st[i]);...
using System; namespace Kyopuro { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int i; int count; string[] st = Console.ReadLine().Split(' '); long ans = 0; long[] num = new long[N]; for (i = 0; i < N; i++) { num[i] = long.Parse(st[i]);...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 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...
8
389
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; using System.Threading; using System.Threading.Tasks; namespace AtCoder { public class Program { public static void Main(string[] args) { new Prog...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; using System.Threading; using System.Threading.Tasks; namespace AtCoder { public class Program { public static void Main(string[] args) { new Prog...
[["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 7...
8
729
namespace AtCoder.ABC.D125 { using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.IO; using AtCoder.ABC.IO; public class Quest { public object Solve(Parser parser) { int n = parser.Integer(); long[] a = parser.Long(n); long[][] v ...
namespace AtCoder.ABC.D125 { using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.IO; using AtCoder.ABC.IO; public class Quest { public object Solve(Parser parser) { int n = parser.Integer(); long[] a = parser.Long(n); long[][] v ...
[["+", 8, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 0, 25], ["+", 12, 74, 51, 241, 0, 213, 63, 214, 205, 22], ["+", 12, 74, 51, 241, 0, 213, 63, 214, 0, 131], ["+", 12, 74, 51, 241, 0, 213, 63, 214, 141, 22], ["+", 12, 74, 51, 241, 0, 213, 3, 4, 0,...
8
1,152
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { //入力 long N = long.Parse(Console.ReadLine()); List<long> A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { //入力 long N = long.Parse(Console.ReadLine()); List<long> A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList(); ...
[["+", 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, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3...
8
188
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp2 { public class Program { public static void Main(string[] args) { int N; int[] listA; N = Read(Console.ReadLine())[0]; int[] ansCollection = new int[N]; listA = Read(Console.ReadLine()); // find negativ...
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp2 { public class Program { public static void Main(string[] args) { long N; long[] listA; N = Read(Console.ReadLine())[0]; int[] ansCollection = new int[N]; listA = Read(Console.ReadLine()); // find negat...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 57, 64, 196, 0, 210, 39, 216, 0, 217], ["+", 8, 196, 0, 57, 64, 196, 0, 210, 39, 199], ["-", 0, 235, 8, 201, 0, 195,...
8
337
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long[] A = new long[N]; string[] input = Console.ReadLine().Split(' '); long min = long.MaxValue; long ans = 0; for (long i = 0; i < N;...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long[] A = new long[N]; string[] input = Console.ReadLine().Split(' '); long min = long.MaxValue; long ans = 0; long minus = 0; for...
[["+", 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], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24...
8
177
using System; using static System.Console; using System.Text; using System.Linq; using static System.Math; using System.Collections.Generic; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Program { public static int count = 0; static void Main(string[] args) { var alg = new cp()...
using System; using static System.Console; using System.Text; using System.Linq; using static System.Math; using System.Collections.Generic; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Program { public static int count = 0; static void Main(string[] args) { var alg = new cp()...
[["+", 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, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 1...
8
1,007
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { cin = new Scanner(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { cin = new Scanner(); ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 195, 8, 196, 0, 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], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0...
8
611
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static AtCoderTemplate.MyExtensions; using static AtCoderTemplate.MyInputOutputs; using static AtCoderTemplate.MyNumericFunctions; namespace AtCoderTemplate { public class Program { public static void Main(string[] arg...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static AtCoderTemplate.MyExtensions; using static AtCoderTemplate.MyInputOutputs; using static AtCoderTemplate.MyNumericFunctions; namespace AtCoderTemplate { public class Program { public static void Main(string[] arg...
[["-", 0, 57, 75, 196, 0, 1, 0, 213, 63, 22], ["-", 75, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 75, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 8, 196, 0, 57, 75, 196, 0, 197, 0, 35], ["+", 0, 57, 75, 196, 0, 1, 0, 213, 63, 2...
8
1,843
using System; using System.Linq; namespace abc125 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var anums = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); var plusNum = 0; var zeroNum = 0; var minusNum = 0; long absTot...
using System; using System.Linq; namespace abc125 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var anums = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); var plusNum = 0; var zeroNum = 0; var minusNum = 0; long absTot...
[["-", 12, 16, 31, 16, 31, 213, 63, 214, 205, 22], ["-", 12, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["-", 12, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["-", 12, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["-", 31, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 31, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 12, 16, 31, 16, 31, 213, 3, 4, ...
8
202
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 Hello { static public int mod = 1000000007; public static void Main() { // 方針 // なし int[] num = inta(); if (num[0] < num[...
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 Hello { static public int mod = 1000000007; public static void Main() { // 方針 // なし int[] num = inta(); if (num[0] < num[...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 15, 16, 12, 16, 31, 16, 31, 204, 205, 22], ["+", 12, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 18], ["+", 15, 16, 12, 16, 31, 16, ...
8
828
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tenka1_PBC_2019 { class Program { static void Main(string[] args) { int a, b, c; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tenka1_PBC_2019 { class Program { static void Main(string[] args) { int a, b, c; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); ...
[["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 20], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 31, 22]...
8
142
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Console; namespace AtCoder_1 { class Program { static void Main(string[] args) { var nk = CinTAr(); if (nk[0] <= nk[2] && nk[1] >= nk[2...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Console; namespace AtCoder_1 { class Program { static void Main(string[] args) { var nk = CinTAr(); if (nk[0] > nk[1]) { swap(ref...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 204, 205, 22], ["+", 0, 57, 15, 16, 12, 204, 206, 207, 0, 70], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 57, 15, 16, 12, 204, 206, 207, 0, 73], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 19...
8
767
using System; namespace Project { class Mains { public static void Main(string[] args) { int a = int.Parse(args[0]); int b = int.Parse(args[1]); int c = int.Parse(args[2]); Console.WriteLine((a < c && c < b) || (b < c && c < a) ? "Yes" : "No"); } } }
using System; namespace Project { class Mains { public static void Main() { string[] args = Console.ReadLine().Split(' '); int a = int.Parse(args[0]); int b = int.Parse(args[1]); int c = int.Parse(args[2]); Console.WriteLine((a < c && c < b) || (b < c && c < a) ? "Yes" : "No"); } } }
[["+", 0, 235, 8, 201, 0, 195, 54, 55, 0, 25], ["+", 0, 235, 8, 201, 0, 195, 8, 196, 0, 45], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 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...
8
95
using System; using System.Linq; namespace OTW { class P { private string Read() { return Console.ReadLine(); } private int[] ReadArray() { return Read().Split().Select(int.Parse).ToArray(); } private void S() { var abc = Read(); var array = abc.Split().Select(int.Parse).ToArray(); var a = arr...
using System; using System.Linq; namespace OTW { class P { private string Read() { return Console.ReadLine(); } private int[] ReadArray() { return Read().Split().Select(int.Parse).ToArray(); } private void S() { var abc = Read(); var array = abc.Split().Select(int.Parse).ToArray(); var a = arr...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 98], ["+", 15, 16, 31, 23, 0, 16, 12, 16, 31, 22], ["+", 15, 16, 31, 23, 0, 16, 12, 16, 17, 18], ["+", 15, 16, 31, 23, 0, 16, 12, 16, 12, 22],...
8
170
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Main { public static class Program { public static List<int> list = new List<int>(); static void Main(string[] arg) { var input = GetIntList(Console.ReadLine()); v...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Main { public static class Program { public static List<int> list = new List<int>(); static void Main(string[] arg) { var input = GetIntList(Console.ReadLine()); v...
[["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 0, 212, 0, 16, 12, 204, 206, 207, 0, 73], ["-", 8, 201, 0, 195, 8, 196, 0, 197...
8
485
using System; using System.Linq; namespace TBCA { class Program { static void Main(string[] args) { var line = Console.ReadLine().Split(' ').ToArray(); var A = int.Parse(line[0]); var B = int.Parse(line[1]); var C = int.Parse(line[2]); if (C > A && C < B) { Console.WriteLine("Yes"); }...
using System; using System.Linq; namespace TBCA { class Program { static void Main(string[] args) { var line = Console.ReadLine().Split(' ').ToArray(); var A = int.Parse(line[0]); var B = int.Parse(line[1]); var C = int.Parse(line[2]); if (C > A && C < B) { Console.WriteLine("Yes"); }...
[["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 47], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 31, 22]...
8
119
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; class Program { static void Main(string[] args) { char[] cs = new char[] { ' ' }; // char[] cs = new char[] { ' ', ',' }; // int val = int.Parse(Console.ReadLine()); // int[] vals = pars...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; class Program { static void Main(string[] args) { char[] cs = new char[] { ' ' }; // char[] cs = new char[] { ' ', ',' }; // int val = int.Parse(Console.ReadLine()); // int[] vals = pars...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 31, ...
8
318
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder2 { class Program { static void Main(string[] args) { if (args.Length > 0 && args[0] == "debug") { var inputs = new[] { @" 3 8 5 ", @" 7 3 1 ", @" 10 2 4 ",...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder2 { class Program { static void Main(string[] args) { if (args.Length > 0 && args[0] == "debug") { var inputs = new[] { @" 3 8 5 ", @" 7 3 1 ", @" 10 2 4 ", ...
[["+", 3, 4, 0, 28, 0, 41, 15, 23, 0, 24], ["+", 0, 41, 15, 23, 0, 16, 31, 16, 31, 22], ["+", 0, 41, 15, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 41, 15, 23, 0, 16, 31, 16, 12, 22], ["+", 0, 28, 0, 41, 15, 23, 0, 16, 17, 98], ["+", 3, 4, 0, 28, 0, 41, 15, 23, 0, 25], ["+", 75, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 41, ...
8
971
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long r = sc.NextLong(); long g = sc.NextLong(); long b = sc.NextLong(); long n = sc.NextLong(); long answer = 0; for (int i = 0; i <...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long r = sc.NextLong(); long g = sc.NextLong(); long b = sc.NextLong(); long n = sc.NextLong(); long answer = 0; for (int i = 0; i *...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 48], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 5...
8
441
using System; using System.Collections.Generic; using System.Linq; using System.Diagnostics; class Program { static void Main(string[] args) { string[] cin = Console.ReadLine().Split(); int a = int.Parse(cin[0]); int b = int.Parse(cin[1]); int c = int.Parse(cin[2]); if (a < c && c < b) Cons...
using System; using System.Collections.Generic; using System.Linq; using System.Diagnostics; class Program { static void Main(string[] args) { string[] cin = Console.ReadLine().Split(); int a = int.Parse(cin[0]); int b = int.Parse(cin[1]); int c = int.Parse(cin[2]); if (a < c && c < b) Cons...
[["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 18], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 31, 22]...
8
118
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int b = int.Parse(str[1]); int c = int.Par...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int b = int.Parse(str[1]); int c = int.Par...
[["+", 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
124
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { //入力 string s = Console.ReadLine(); int A = int.Parse(s.Split(' ')[0]); int B = int.Parse(s.Split(' ')[1]); int C = int.Parse(s.Spl...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { //入力 string s = Console.ReadLine(); int A = int.Parse(s.Split(' ')[0]); int B = int.Parse(s.Split(' ')[1]); int C = int.Parse(s.Spl...
[["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 18], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 31, 22]...
8
147
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { new Program().Solve(); } void Solve() { Scanner cin = new Scanner(); int R = cin.NextInt(); int G = cin.NextInt(); int B = cin.NextI...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { new Program().Solve(); } void Solve() { Scanner cin = new Scanner(); int R = cin.NextInt(); int G = cin.NextInt(); int B = cin.NextI...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, ...
8
544
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B { class Program { static void Main(string[] args) { string[] V = Console.ReadLine().Split(' '); int R = int.Parse(V[0]); int G = int.Parse(V[1]); int B = int.Parse(V[2]); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B { class Program { static void Main(string[] args) { string[] V = Console.ReadLine().Split(' '); int R = int.Parse(V[0]); int G = int.Parse(V[1]); int B = int.Parse(V[2]); ...
[["-", 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], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121]...
8
209
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var RGBN = Console.ReadLine().Split().Select(x => int.Parse(x)).ToList(); var R = RGBN[0]; var G = RGBN[1]; var B = RGBN[2]; var N = RGBN[3]; int cnt = 0; for (int i = 0; i...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var RGBN = Console.ReadLine().Split().Select(x => int.Parse(x)).ToList(); var R = RGBN[0]; var G = RGBN[1]; var B = RGBN[2]; var N = RGBN[3]; int cnt = 0; for (int i = 0; i...
[["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 31, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 31, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 31, 23, 0, 16, 31, 16, 31, 23, 0, 25], ["+"...
8
201
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { //入力 string s = Console.ReadLine(); int R = int.Parse(s.Split(' ')[0]); int G = int.Parse(s.Split(' ')[1]); int B = int.Parse(s.Spl...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { //入力 string s = Console.ReadLine(); int R = int.Parse(s.Split(' ')[0]); int G = int.Parse(s.Split(' ')[1]); int B = int.Parse(s.Spl...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 23, 0, 24], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 17, 48], ["+...
8
225
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace Atcoder { class Pair : IComparable { public int x; public int y; public Pair(int X, int Y) { x = X; y = Y; ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace Atcoder { class Pair : IComparable { public int x; public int y; public Pair(int X, int Y) { x = X; y = Y; ...
[["+", 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], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, ...
8
8,350
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
[["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 57, 75, 1, 0, 11, 12, 213, 63, 22], ["+", 75, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 75, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 75, 1,...
8
1,213
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var S = sc.ReadStrArray(N); var ab = 0; var a = 0; var b = 0; for (int i = 0; i < N; i++) { var c1 = S[i].First(); var cx = S[i].Last(); ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var S = sc.ReadStrArray(N); var ab = 0; var a = 0; var b = 0; for (int i = 0; i < N; i++) { var c1 = S[i].First(); var cx = S[i].Last(); ...
[["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 31...
8
1,266
using System; using System.Collections.Generic; using System.Linq; using System.Diagnostics; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); long ba = 0; // B**A long onlya = 0; // (B以外)**A long onlyb = 0; // B**(A以外) long ans = 0; for (int i = 0; ...
using System; using System.Collections.Generic; using System.Linq; using System.Diagnostics; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); long ba = 0; // B**A long onlya = 0; // (B以外)**A long onlyb = 0; // B**(A以外) long ans = 0; for (int i = 0; ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95],...
8
231
using System; namespace AtCoderDiverta2019C { class Program { static void Main(string[] args) { int ans = 0; int N = int.Parse(Console.ReadLine()); int EndA = 0; int StartB = 0; int Both = 0; for (int i = 0; i < N; i++) { string s = Console.ReadLine(); ans += (s.Length - s.Repl...
using System; namespace AtCoderDiverta2019C { class Program { static void Main(string[] args) { int ans = 0; int N = int.Parse(Console.ReadLine()); int EndA = 0; int StartB = 0; int Both = 0; for (int i = 0; i < N; i++) { string s = Console.ReadLine(); ans += (s.Length - s.Repl...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 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...
8
208
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 N = int.Parse(Console.ReadLine()); var ss = new string[N]; var isStartB = new bool[N]; var isEndA = new bool[N...
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 N = int.Parse(Console.ReadLine()); var ss = new string[N]; var isStartB = new bool[N]; var isEndA = new bool[N...
[["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0,...
8
293
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using E = System.Linq.Enumerable; public class Program { public static void Main() { var n = int.Parse(Console.ReadLine()); var s = Console.In.ReadToEnd(); var k = 0; for (int i = 1; i < s.Lengt...
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using E = System.Linq.Enumerable; public class Program { public static void Main() { var n = int.Parse(Console.ReadLine()); var s = Console.In.ReadToEnd(); var k = 0; for (int i = 1; i < s.Lengt...
[["+", 0, 7, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98]]
8
269
using System; using System.Collections.Generic; public class diverta2019C { public static void Main() { int N, lastA = 0, firstB = 0, ans = 0; string str; bool preA = false, same = true, fB = false, lA = false; N = int.Parse(System.Console.ReadLine()); for (int i = 0; i < N; i++) { fB = fals...
using System; using System.Collections.Generic; public class diverta2019C { public static void Main() { int N, lastA = 0, firstB = 0, ans = 0; string str; bool preA = false, same = true, fB = false, lA = false; N = int.Parse(System.Console.ReadLine()); for (int i = 0; i < N; i++) { fB = fals...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22...
8
269
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtC { class Program { static void Main(string[] args) { var N = ReadInt(); var s = new string[N]; for (int i = 0; i < N; i++) s[i] = ReadString(); Out(Calc(s)); } private static int Calc(string[...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtC { class Program { static void Main(string[] args) { // Test(); var N = ReadInt(); var s = new string[N]; for (int i = 0; i < N; i++) s[i] = ReadString(); Out(Calc(s)); } priv...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 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, 3, 4, 0, 25], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203]]
8
708
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Math; class Program { static int a = 0; static int b = 0; static int c = 0; static void Main() { int n = int.Parse(Console.ReadLine()); string[] s = new string[n]; for (int i = 0; i < n; i++) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Math; class Program { static int a = 0; static int b = 0; static int c = 0; static void Main() { int n = int.Parse(Console.ReadLine()); string[] s = new string[n]; for (int i = 0; i < n; i++) ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22...
8
292
using System; class Diverta_2019_C { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int count = 0; int A = 0; int B = 0; int AB = 0; string[] s = new string[N]; for (int i = 0; i < N; i++) { s[i] = Console.ReadLine(); for (int j = 0; j < s[i].Lengt...
using System; class Diverta_2019_C { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int count = 0; int A = 0; int B = 0; int BA = 0; string[] s = new string[N]; for (int i = 0; i < N; i++) { s[i] = Console.ReadLine(); for (int j = 0; j < s[i].Lengt...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 57, 64, 1, 0, 223, 0, 22], ["+", 8, 196, 0, 57, 64, 1, 0, 223, 0, 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
274
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var N = Int32.Parse(Console.ReadLine()); var count = 0L; var firstB = 0; var lastA = 0; var ba = 0; for (int i = 0; i < N; ++i) { var str = Console.ReadLine(); if (str[0] == 'B'...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var N = Int32.Parse(Console.ReadLine()); var count = 0L; var firstB = 0; var lastA = 0; var ba = 0; for (int i = 0; i < N; ++i) { var str = Console.ReadLine(); if (str[0] == 'B'...
[["+", 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, 203], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 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, 3, 4, 0, 25]]
8
228
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Diverta { class C { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int countA = 0, countB = 0, countAB = 0, countBA = 0; for (int i = 0; i < N; i++) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Diverta { class C { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int countA = 0, countB = 0, countAB = 0, countBA = 0; for (int i = 0; i < N; i++) { ...
[["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 20...
8
261
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int a = 0, b = 0, ab = 0; bool allBXA = true; for (int i = 0; i < n; i++) { string s = Console.ReadLine(); if (s[0] == 'B') { b++; if (s[...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int a = 0, b = 0, ab = 0; bool allBXA = true; for (int i = 0; i < n; i++) { string s = Console.ReadLine(); if (s[0] == 'B') { b++; if (s[...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22...
8
224
using System; namespace diverta2019_C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var s = new string[N]; var a = 0; var b = 0; var ab = 0; var same = 0; var none = 0; for (int i = 0; i < N; i++) { s[i] = Console.ReadLine(); v...
using System; namespace diverta2019_C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var s = new string[N]; var a = 0; var b = 0; var ab = 0; var same = 0; var none = 0; for (int i = 0; i < N; i++) { s[i] = Console.ReadLine(); v...
[["-", 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, 241, 0, 111], ["-", 8, 196, 0, 57, 15, 16, 31, 241, 0, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 8, 196, 0, 57, 15, 16, 12, 241, 0, 111], ["-", 8, 196, 0, 57, 15, 16, 12, 241, 0, 22], ["...
8
258
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; using static System.Console; using static System.Math; class Z { static void Main() => new K(); } class K { int F => int.Parse(Str); ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; using static System.Console; using static System.Math; class Z { static void Main() => new K(); } class K { int F => int.Parse(Str); ...
[["-", 8, 196, 0, 57, 75, 57, 75, 196, 0, 45], ["-", 0, 57, 75, 57, 75, 196, 0, 57, 0, 121], ["-", 0, 57, 75, 57, 75, 196, 0, 57, 0, 24], ["-", 75, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["-", 75, 57, 75, 196, 0, 57, 15, 16, 17, 18], ["-", 75, 57, 75, 196, 0, 57, 15, 16, 12, 22], ["-", 0, 57, 75, 57, 75, 196, 0, 57, 0, 2...
8
797
using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; using System.Numerics; using System.Threading.Tasks; using System.Text.RegularExpressions; using Debug = System.Diagnostics.Debug; using System.Runtime.CompilerServices; using static System.M...
using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; using System.Numerics; using System.Threading.Tasks; using System.Text.RegularExpressions; using Debug = System.Diagnostics.Debug; using System.Runtime.CompilerServices; using static System.M...
[["+", 8, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 213, 63, 22], ["-", 0, 28, 0, 21...
8
325
using System; using System.Collections.Generic; using System.Linq; using System.IO; using SB = System.Text.StringBuilder; // using System.Threading.Tasks; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; using System.Numerics; using static...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using SB = System.Text.StringBuilder; // using System.Threading.Tasks; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; using System.Numerics; using static...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22...
8
1,029
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static void Main() { var N = RLong(); long ans = 0; long max = N; for (long i = 1; i < Sqrt(N); i++) { if (N % i == 0) ans += N / i - 1;...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static void Main() { var N = RLong(); long ans = 0; long max = N; for (long i = 1; i <= Sqrt(N) + 1; i++) { if (N % i == 0 && N / i - 1 > i) ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 31, 22], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 17, 85], ...
8
720