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.Linq; namespace AOJ.ITP { public class CardGame { public static void Main() { int turn = int.Parse(Console.ReadLine()); int taro = 0; int hanako = 0; for (int i = 0; i < turn; i++) { var input = Console.ReadLine().Split(' '); string s_taro = inp...
using System; using System.Linq; namespace AOJ.ITP { public class CardGame { public static void Main() { int turn = int.Parse(Console.ReadLine()); int taro = 0; int hanako = 0; for (int i = 0; i < turn; i++) { var input = Console.ReadLine().Split(' '); string s_taro = inp...
[["-", 8, 196, 0, 57, 75, 196, 0, 210, 0, 266], ["-", 8, 196, 0, 57, 75, 196, 0, 210, 0, 24], ["-", 0, 57, 75, 196, 0, 210, 39, 216, 0, 217], ["+", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 57, 75, 196, 0, 210, 0, 267], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214...
8
164
using System; namespace ConsoleApplication10 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int tarou = 0; int hanako = 0; for (int i = 0; i < n; i++) { string[] input = Console.ReadLine().Split(' '); int ani = string.Compare(input[0], input[1])...
using System; namespace ConsoleApplication10 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int tarou = 0; int hanako = 0; for (int i = 0; i < n; i++) { string[] input = Console.ReadLine().Split(' '); int ani = string.Compare(input[0], input[1])...
[["-", 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], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["-", 0, 28, 0, 16, 31, 16, 12, 5, 0, 62], ["-", 0,...
8
160
using System; using System.Collections.Generic; namespace ConsoleApplication5 { class Program { static void Main(string[] args) { List<string[]> cardList = new List<string[]>(); int tarou = 0; int hanako = 0; int n = int.Parse(Console.ReadLine()); for (int i = 0; i < n; i++) { cardList.Add(...
using System; using System.Collections.Generic; namespace ConsoleApplication5 { class Program { static void Main(string[] args) { List<string[]> cardList = new List<string[]>(); int tarou = 0; int hanako = 0; int n = int.Parse(Console.ReadLine()); for (int i = 0; i < n; i++) { cardList.Add(...
[["+", 0, 210, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 210, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 75, 57, 15, 16, 31, 213, 63, 214, 205, 199], ["+", 75, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 75, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 75, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 31, 213, 3, 4, 0, 28, 0, 20...
8
187
using System; namespace ITP1_9 { class Program { static void Main(string[] args) { int[] s = new int[2] { 0, 0 }; int l = int.Parse(Console.ReadLine()); for (int i = 0; i < l; i++) { string[] cards = Console.ReadLine().Trim('\n').Split(' '); if (cards[0] == cards[1]) { s[0]++; ...
using System; namespace ITP1_9 { class Program { static void Main(string[] args) { int[] s = new int[2] { 0, 0 }; int l = int.Parse(Console.ReadLine()); for (int i = 0; i < l; i++) { string[] cards = Console.ReadLine().Trim('\n').Split(' '); if (cards[0] == cards[1]) { s[0]++; ...
[["+", 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, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 73], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63,...
8
173
using System; // using System.Collections.Generic; // using System.Linq; namespace solution { class Class1 { static void Main() { int turn = int.Parse(Console.ReadLine()); int taroPoint = 0; int hanakoPoint = 0; for (int i = 0; i < turn; i++) { var word = Console.ReadLine().Split(); if ...
using System; // using System.Collections.Generic; // using System.Linq; namespace solution { class Class1 { static void Main() { int turn = int.Parse(Console.ReadLine()); int taroPoint = 0; int hanakoPoint = 0; for (int i = 0; i < turn; i++) { int f = 0; var word = Console.ReadLine().S...
[["+", 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, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ...
8
251
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var n2 = int.Parse(line[1]); var q = new int[n, n2]; var p = new int[n]; var p2 = new int[n]; for (int i = 0; i < n2; i++) { line = Consol...
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var n2 = int.Parse(line[1]); var q = new int[n, n2]; var p = new int[n]; var p2 = new int[n]; for (int i = 0; i < n2; i++) { line = Consol...
[["+", 75, 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], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 18], ["+", 75, 57, 15, 16, 31, 16, 12, 204, 205, 22], ["+", 15, 16, 31, 16, 12, 204...
8
210
using System; using System.Linq; using System.Collections.Generic; public class Prime { public static void Main() { int n = int.Parse(Console.ReadLine()); var primeFactors = PrimeFactors(n); // primeFactors.Dump(); string output = primeFactors.Count() == 0 ? n.ToString() ...
using System; using System.Linq; using System.Collections.Generic; public class Prime { public static void Main() { int n = int.Parse(Console.ReadLine()); var primeFactors = PrimeFactors(n); string output = primeFactors.Count() == 0 ? n.ToString() : string.Join( ...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 31, 22], [...
8
189
using System; using System.Linq; using System.Collections.Generic; public class Prime { public static void Main() { int n = int.Parse(Console.ReadLine()); var primeFactors = PrimeFactors(n); // primeFactors.Dump(); string output = primeFactors.Count() == 0 ? n.ToString() ...
using System; using System.Linq; using System.Collections.Generic; public class Prime { public static void Main() { int n = int.Parse(Console.ReadLine()); var primeFactors = PrimeFactors(n); string output = primeFactors.Count() == 0 ? n.ToString() : string.Join( ...
[["+", 8, 196, 0, 52, 15, 16, 31, 16, 17, 48], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 12, 22], ["-", 0, 52, 15, 16, 12, 213, 63, 214, 205, 22], ["-", 0, 52, 15, 16, 12, 213, 63, 214, 0, 131], ["-", 0, 52, 15, 16, 12, 213, 63, 214, 141, 22], ["-", 0, 52, 15, 16, 12, 213, 3, 4, 0, 24], ["-", 8, 201, 0, 195, 8, 196, 0, 52, ...
8
168
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int len = (int)Math.Sqrt(n); StringBuilder sb = new StringBuilder(); sb.Append(n + ":"); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int len = (int)Math.Sqrt(n); StringBuilder sb = new StringBuilder(); sb.Append(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, 47], ["+", 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
176
using System; namespace AOJ { class ElementaryNumberTheory { private static decimal Pow(decimal m, decimal n) { if (n == 0) { return 1; } decimal res = Pow(m * m, Math.Floor(n / 2)); if (n % 2 == 1) { res = res * m; } return res; } public static void Main() { var input =...
using System; namespace AOJ { class ElementaryNumberTheory { private static decimal PowMod(decimal m, decimal n) { if (n == 0) { return 1; } decimal res = PowMod(m * m % 1000000007, Math.Floor(n / 2)); if (n % 2 == 1) { res = res * m % 1000000007; } return res; } public stat...
[["-", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 1...
8
137
using System; public class Hello { public const long E7 = 1000000007; public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var m = long.Parse(line[0]); var n = long.Parse(line[1]); var ret = power(m, n) % E7; Console.WriteLine(ret); } public static long power(lo...
using System; public class Hello { public const long E7 = 1000000007; public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var m = long.Parse(line[0]); var n = long.Parse(line[1]); Console.WriteLine(power(m, n) % E7); } public static long power(long x, long n) { ...
[["-", 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, 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, ...
8
151
using System; namespace Sample { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int result = n; if (n % 2 == 0) { n /= 2; result /= 2; while (n % 2 == 0) { n /= 2; } } for (int i = 3; i * i <= n; i += 2) { if (n % i =...
using System; namespace Sample { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int result = n; if (n % 2 == 0) { n /= 2; result /= 2; while (n % 2 == 0) { n /= 2; } } for (int i = 3; i * i <= n; i += 2) { if (n % i =...
[["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["-", 0, 11, 12, 16, 31, 16, 12, 23, 0, 24], ["-", 12, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["-", 12, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["-", 12, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["...
8
157
using System; namespace AOJ { public class Program { public static void Main(string[] cmdargs) { string arg = Console.ReadLine(); int r = int.Parse(arg); Console.WriteLine( String.Format("{0} {1}", Math.PI * r * r, 2 * Math.PI * r)); Console.Read(); } } }
using System; namespace AOJ { public class Program { public static void Main(string[] cmdargs) { string arg = Console.ReadLine(); double r = double.Parse(arg); Console.WriteLine( String.Format("{0} {1}", Math.PI * r * r, 2 * Math.PI * r)); } } }
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 2...
8
79
using System; using System.Collections.Generic; using System.Linq; class Program { static string InputPattern = "InputX"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("3"); // 3 } else if (InputPattern == "Input2"...
using System; using System.Collections.Generic; class Program { static string InputPattern = "InputX"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("3"); // 3 } else if (InputPattern == "Input2") { WillRetur...
[["-", 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, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 201, 0, 195, 54, 55, 0, 220...
8
343
using System; class Program { static void Main(string[] args) { string input = Console.ReadLine(); int N = int.Parse(input); int count = 0; int limit = N - 1; for (int i = 1; i < N; i++) { for (int j = 1; j < i; j++) { if (i * j < N) { count += 2; } else { ...
using System; class Program { static void Main(string[] args) { string input = Console.ReadLine(); int N = int.Parse(input); int count = 0; for (int i = 1; i < N; i++) { for (int j = 1; j < i; j++) { if (i * j < N) { count += 2; } else { break; } ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, ...
8
140
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Numerics; using System.Threading; public class MainClass { public static void Main(string[] args) { #if DEBUG var inputs = new[] { @" 3 ", @" 100 ", ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Numerics; using System.Threading; public class MainClass { public static void Main(string[] args) { #if DEBUG var inputs = new[] { @" 3 ", @" 100 ", ...
[["-", 8, 196, 0, 287, 0, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 287, 0, 196, 0, 57, 0, 24], ["-", 0, 287, 0, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 287, 0, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 287, 0, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 196, 0, 287, 0, 196, 0, 57, 0, 25], ["-", 0, 287, 0, 196, 0, 57, 64, 196, 0, 45]...
8
2,601
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; using System.Threading; static class Program { const int mod = (int)1e9 + 7; ...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; using System.Threading; static class Program { const int mod = (int)1e9 + 7; ...
[["-", 75, 57, 64, 196, 0, 7, 15, 16, 17, 47], ["+", 75, 57, 64, 196, 0, 7, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 64, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 64, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 0, 7, 8...
8
1,127
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; using System.Diagnostics; using static System.Math; using static System.Array; using static AtCoder.Cout; using static AtCoder.Tool...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; using System.Diagnostics; using static System.Math; using static System.Array; using static AtCoder.Cout; using static AtCoder.Tool...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["+", 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, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0...
8
5,495
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace contest_Csharp { class Program { public static (long m, long s)[,] dp; public static long mod; static void Main(string[] args) { checked { var sw = new System.IO.StreamWriter( ...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace contest_Csharp { class Program { public static (long m, long s)[,] dp; public static long mod; static void Main(string[] args) { checked { var sw = new System.IO.StreamWriter( ...
[["+", 8, 196, 0, 287, 0, 196, 0, 57, 0, 95], ["+", 0, 287, 0, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 0, 287, 0, 196, 0, 57, 75, 196, 0, 46]]
8
388
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); long N = long.Parse(str[0]); int X = int.Parse(str[1]); int M = int.Parse(str[2]); long[] D = new long[M]; int[] T = new int[M]; long[] A = new long[...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); long N = long.Parse(str[0]); int X = int.Parse(str[1]); int M = int.Parse(str[2]); long[] D = new long[M]; int[] T = new int[M]; long[] A = 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, 60], ["+", 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], ["+", 8, 196...
8
442
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; namespace FertiLib.Contest.E { static class Program { public static void Solve(Scanner cin) { var (n, x, m) = cin.ReadValue<long, long, long>(); if (x == 0...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; namespace FertiLib.Contest.E { static class Program { public static void Solve(Scanner cin) { var (n, x, m) = cin.ReadValue<long, long, long>(); if (x == 0...
[["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 31, 22], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 17, 60], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 12, 203], ["+", 0, 212, 0, 16, 12, 23, 0, 41, 0, 101], ["+", 0, 212, 0, 16, 12, 23, 0, 41, 64, 203], ["+", 0, 212, 0, 16, 12, 23, 0, 41, 0, 102], ["...
8
3,078
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramA { static void Main(string[] args) { var a = long.Parse(Console.ReadLine()); Console.WriteLine(a); } } }
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramA { static void Main(string[] args) { var a = long.Parse(Console.ReadLine()); a = a == 0 ? 1 : 0; Console.WriteLine(a); } } }
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 41, 15, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 41, 15, 16, 17, 60], ["+", 0, 1, 0, 11, 12, 41, 15, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 41, 0, 101], ["+", 8, 196, 0, 1, 0, 11, 12, 41, 64, 203], ["+", 8, 1...
8
55
using System; using System.Collections.Generic; class main { static void Main(string[] args) { string[] read = Console.ReadLine().Split(' '); int a = int.Parse(read[0]); int b = int.Parse(read[1]); int c = int.Parse(read[2]); int d = int.Parse(read[3]); long max; max = a * c; if (max...
using System; using System.Collections.Generic; class main { static void Main(string[] args) { string[] read = Console.ReadLine().Split(' '); long a = long.Parse(read[0]); long b = long.Parse(read[1]); long c = long.Parse(read[2]); long d = long.Parse(read[3]); long max; max = a * c; ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
159
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B___Product_Max { class Program { static void Main(string[] args) { const bool debug = false; while (debug) { var input = Console.ReadLine().Split(' '); long a = long.Par...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B___Product_Max { class Program { static void Main(string[] args) { while (true) { var input = Console.ReadLine().Split(' '); long a = long.Parse(input[0]); long b = lon...
[["-", 0, 195, 8, 196, 0, 197, 0, 251, 0, 154], ["-", 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, 211, 0, 147], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 52, ...
8
167
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace Sample { static class Sample { static void Main() { long[] num = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long ans = -10000000000; for (int i = 0; i < 2; i++) { for (int j = 2; j <...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace Sample { static class Sample { static void Main() { long[] num = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long ans = num[0] * num[2]; for (int i = 0; i < 2; i++) { for (int j = 2; ...
[["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 204, 205, 22], ["+", 0, 212, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 212, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 198, 0, 200, 0, 212, 0, 1...
8
140
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder178 { class Program { const long Mod = 1000000007; static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); var ans = powMod(10, n) % Mod; ans -= powM...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder178 { class Program { const long Mod = 1000000007; static void Main(string[] args) { // n: 整数の長さ var n = long.Parse(Console.ReadLine()); // a. 0-9のn桁の整数の組み合わせ(全体): 10^n...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22], ["+",...
8
160
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder178 { class Program { const long Mod = 1000000007; static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); var ans = powMod(10, n); ans -= powMod(9, ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder178 { class Program { const long Mod = 1000000007; static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); var ans = powMod(10, n) % Mod; ans -= powM...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 11, 12, 16, 31, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+"...
8
156
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; using System.Collections; namespace debug { class main { static void Main(string[] args) { //問題クラスを展開 ProgramC a = new ProgramC(); a.main(); //実行する } } // ABC178 class ProgramA { public void m...
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; using System.Collections; namespace debug { class main { static void Main(string[] args) { //問題クラスを展開 ProgramC a = new ProgramC(); a.main(); //実行する } } // ABC178 class ProgramA { public void m...
[["-", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["-", 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, 18], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]...
8
420
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc178_c { class Program { static void Main(string[] args) { var N = CIn.ReadLong(); var x = ModPow(10, N) - ModPow(9, N) - ModPow(9, N) + ModPow(8, N) + (int)Math.Pow(10,...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc178_c { class Program { static void Main(string[] args) { var N = CIn.ReadLong(); var x = ModPow(10, N) - ModPow(9, N) - ModPow(9, N) + ModPow(8, N) + (int)Math.Pow(10,...
[["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 72], ["+", 0, 212, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 212, 0, 16, 31, 16, 12, 74, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 12, 74, 0, 25], ["+", 31, 16, 12, 74, 51, 213, 63, 214, 205, 22], ["+", 31, 16, 12, 74, 51, 213, 63, 214, 0, 131], ["+", 31, 16, 12, 74, 51, 213, 63, 21...
8
500
using System; using System.Linq; using System.Text; using System.Collections; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { var n = ReadLineInt(); // double cnt = nC2(n)*2; var sur = 1000000007L; var ans = longPow(10, n, sur) - longPow(9, n, s...
using System; using System.Linq; using System.Text; using System.Collections; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { var n = ReadLineInt(); // double cnt = nC2(n)*2; var sur = 1000000007L; var ans = longPow(10, n, sur) - longPow...
[["-", 0, 212, 0, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 212, 0, 16, 31, 16, 12, 16, 12, 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, 107], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+...
8
362
using System; namespace AtCoder { class Program { static void Main(string[] args) { Int64 n = Int64.Parse(Console.ReadLine()); Int64 ans = sum(10, n) - sum(9, n) - sum(9, n) + sum(8, n); ans %= 1000000007; Console.WriteLine(ans); } static Int64 sum(Int64 a, Int64 b) { Int64 c = 1; for (In...
using System; namespace AtCoder { class Program { static void Main(string[] args) { Int64 n = Int64.Parse(Console.ReadLine()); Int64 ans = sum(10, n) - sum(9, n) - sum(9, n) + sum(8, n); ans %= 1000000007; ans += 1000000007; ans %= 1000000007; Console.WriteLine(ans); } static Int64 sum(In...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132]]
8
128
using System; using System.Collections.Generic; using System.Linq; class Program { static string InputPattern = "InputX"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("2"); // 2 } else if (InputPattern == "Input2"...
using System; using System.Collections.Generic; using System.Linq; class Program { static string InputPattern = "InputX"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("2"); // 2 } else if (InputPattern == "Input2"...
[["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+...
8
318
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramC2 { static long pow(long n, long p, int mod = (int)1e9 + 7) { if (p == 0) return 1; // nの0乗は1 else if (p % 2 == 0) { var x = pow(n, p / 2, mod); return (x * x) % mod; } else { return p...
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramC2 { static long pow(long n, long p, int mod = (int)1e9 + 7) { if (p == 0) return 1; // nの0乗は1 else if (p % 2 == 0) { var x = pow(n, p / 2, mod); return (x * x) % mod; } else { return p...
[["-", 8, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 203], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0...
8
193
using System; namespace C { class Program { static void Main(string[] args) { long n = int.Parse(Console.ReadLine()); int Mod = (int)Math.Pow(10, 9) + 7; long sum10 = 1; for (int i = 0; i < n; i++) { sum10 *= 10; sum10 %= Mod; } long sum9 = 1; for (int i = 0; i < n; i++) { ...
using System; using System.Numerics; namespace C { class Program { static void Main(string[] args) { long n = int.Parse(Console.ReadLine()); int Mod = (int)Math.Pow(10, 9) + 7; long sum10 = 1; for (int i = 0; i < n; i++) { sum10 *= 10; sum10 %= Mod; } long sum9 = 1; for (int i...
[["+", 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, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 212, 0, 16, 12, 16, 31,...
8
186
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.InteropServices.ComTypes; class Program { static long big = 1000000007; static void Main(string[] args) { long n = crI(); if (n == 1) { Console.WriteLine(0); return; } lo...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.InteropServices.ComTypes; class Program { static long big = 1000000007; static void Main(string[] args) { long n = crI(); if (n == 1) { Console.WriteLine(0); return; } lo...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 8, 19...
8
745
using System; namespace C { class Program { static void Main(string[] args) { long n = int.Parse(Console.ReadLine()); long div = (long)1e9 + 7; long all = 1; long non0 = 1; long non9 = 1; long non0non9 = 1; for (int i = 0; i < n; i++) { all = all * 10 % div; non0 = non0 * 9 %...
using System; namespace C { class Program { static void Main(string[] args) { long n = int.Parse(Console.ReadLine()); long div = (long)1e9 + 7; long all = 1; long non0 = 1; long non9 = 1; long non0non9 = 1; for (int i = 0; i < n; i++) { all = all * 10 % div; non0 = non0 * 9 %...
[["-", 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, 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, ...
8
131
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using static System.Console; using static System.Math; namespace Y.T { public class MainClass { public static void Main(string[] args) { long[] input = Console.ReadLine().Split(' ').Select(x => long.Parse(x)...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using static System.Console; using static System.Math; namespace Y.T { public class MainClass { public static void Main(string[] args) { long[] input = Console.ReadLine().Split(' ').Select(x => long.Parse(x)...
[["+", 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, 5, 0, 62], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], [...
8
117
using System; using System.Collections.Generic; using System.Linq; namespace ACLBeginnerContest { class Program { static void Main(string[] args) { // 課題C - Connect Cities(2020/9/26) string[] str = Console.ReadLine().Split(' '); int N = int.Parse(str[0]); int M = int.Parse(str[1]); UnionFind uf...
using System; using System.Collections.Generic; using System.Linq; namespace ACLBeginnerContest { class Program { static void Main(string[] args) { // 課題C - Connect Cities(2020/9/26) string[] str = Console.ReadLine().Split(' '); int N = int.Parse(str[0]); int M = int.Parse(str[1]); UnionFind uf...
[["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["-", 206, 207, 0, 28, 0, 213, 63, 214, 141,...
8
476
#region インクルード using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.IO; using System.Threading; using System.Text; using System.Text.RegularExpressions; using System.Diagnostics; using static util; using P = pair<int, int>; using static System.Math; #endregion class...
#region インクルード using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.IO; using System.Threading; using System.Text; using System.Text.RegularExpressions; using System.Diagnostics; using static util; using P = pair<int, int>; using static System.Math; #endregion class...
[["+", 0, 7, 8, 196, 0, 57, 15, 241, 0, 111], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 241, 0, 213, 63, 214, 141, 22], ["+", 15, 241, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 57, 15, 241, 0, 213, 3, 4, 0, 21], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203]...
8
2,600
using System; using System.Collections.Generic; using System.Linq; class D { static int[] Read() => Console.ReadLine().Split().Select(int.Parse).ToArray(); static void Main() { var h = Read(); int n = h[0], k = h[1]; var a = new int [n].Select(_ => int.Parse(Console.ReadLine())).ToArray(); var kM ...
using System; using System.Collections.Generic; using System.Linq; class D { static int[] Read() => Console.ReadLine().Split().Select(int.Parse).ToArray(); static void Main() { var h = Read(); int n = h[0], k = h[1]; var a = new int [n].Select(_ => int.Parse(Console.ReadLine())).ToArray(); var kM ...
[["-", 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, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 28, 0, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 28, 0, 16, 31, 16, 31, 16, 17,...
8
765
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static void Main(string[] args) { var N = NextInt(); var K = NextInt(); var A = new int[N]; for (int n = 0; n < N...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static void Main(string[] args) { var N = NextInt(); var K = NextInt(); var A = new int[N]; for (int n = 0; n < N...
[["+", 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, 213, 63, 214, 205, 22], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 16, 31, 213, 3, 4,...
8
875
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, 195, 8, 196, 0, 197, 0, 251, 0, 154], ["+", 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, 16, 31, 16, 31, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 48], ["+", 0, 212, 0, 16, 31, 16, 12, 74, ...
8
1,432
#region インクルード using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.IO; using System.Threading; using System.Text; using System.Text.RegularExpressions; using System.Diagnostics; using static util; using P = pair<int, int>; using static System.Math; #endregion class...
#region インクルード using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.IO; using System.Threading; using System.Text; using System.Text.RegularExpressions; using System.Diagnostics; using static util; using P = pair<int, int>; using static System.Math; #endregion class...
[["-", 0, 28, 0, 16, 12, 204, 205, 214, 141, 22], ["-", 0, 28, 0, 16, 12, 204, 206, 207, 0, 70], ["-", 12, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["-", 206, 207, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 24], ["-", 206, 207, 0, 28, 0, 204, 20...
8
2,829
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; static class Pro...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; static class Pro...
[["-", 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, 230, 3, 4, 0, 28, 0, 211, 0, 146], ["+", 0, 230, 3, 4, 0, 28, 0, 211, 0, 14...
8
1,501
using System; using System.Collections.Generic; using System.IO; using System.Linq; public static class Ex { public static bool IsNullOrEmpty(this string s) { return string.IsNullOrEmpty(s); } public static List<string> FastSort(this List<string> s) { s.Sort(StringComparer.OrdinalIgnoreCase); return ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; public static class Ex { public static bool IsNullOrEmpty(this string s) { return string.IsNullOrEmpty(s); } public static List<string> FastSort(this List<string> s) { s.Sort(StringComparer.OrdinalIgnoreCase); return ...
[["+", 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, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], [...
8
2,994
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using CS = System.Runtime.CompilerServices; using PL = System.Threading.Tasks.Parallel; // using System.Diagnostics; using static System.Math; using ll = System.Int64; using static Contest_B.Lib_IO; using st...
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using CS = System.Runtime.CompilerServices; using PL = System.Threading.Tasks.Parallel; // using System.Diagnostics; using static System.Math; using ll = System.Int64; using static Contest_B.Lib_IO; using st...
[["-", 0, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["-", 0, 196, 0, 210, 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, 210, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 2...
8
5,420
using System; using System.Linq; namespace AtcoderProblem { class Program { static void Main(string[] args) { string S = Console.ReadLine(); int len = S.Length - 1; string last = S.Substring(len); if (last == "s") { string answer = S + "es"; } else { string answer = S + "s"; } }...
using System; using System.Linq; namespace AtcoderProblem { class Program { static void Main(string[] args) { string S = Console.ReadLine(); int len = S.Length - 1; string last = S.Substring(len); string answer; if (last == "s") answer = S + "es"; else answer = S + "s"; Conso...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 57, 75, 196,...
8
86
using System; using System.Linq; class A { private static char[] c; static void Main() { var s = Console.ReadLine(); c = s.ToCharArray(); if (c[c.Length - 1] != 's') { s = new String(c) + "es"; } else { s = new String(c); } Console.WriteLine(s); } }
using System; using System.Linq; class A { private static char[] c; static void Main() { var s = Console.ReadLine(); c = s.ToCharArray(); if (c[c.Length - 1] != 's') { s = new String(c) + "s"; } else { s = new String(c) + "es"; } Console.WriteLine(s); } }
[["-", 0, 1, 0, 11, 12, 16, 12, 5, 0, 222], ["+", 0, 1, 0, 11, 12, 16, 12, 5, 0, 222], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 12, 5, 0, 62]]
8
90
using System; namespace ABC179 { class Program { static void Main(string[] args) { char[] S = Console.ReadLine().ToCharArray(); if (S[S.Length - 1] == 's') { Console.WriteLine(S + "es"); } else Console.WriteLine(S + "s"); } } }
using System; namespace ABC179 { class Program { static void Main(string[] args) { string S = Console.ReadLine(); if (S[S.Length - 1] == 's') { Console.WriteLine(S + "es"); } else Console.WriteLine(S + "s"); } } }
[["-", 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], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 0, 200, 0, 212, 0, 213, ...
8
77
using System; using System.Collections.Generic; using System.Linq; namespace AtCorder { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); if (s.EndsWith("s")) { Console.WriteLine(s + "es"); } else { Console.WriteLine(s ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCorder { class Program { static void Main(string[] args) { string s = Console.ReadLine(); if (s.EndsWith("s")) { Console.WriteLine(s + "es"); } else { Console.WriteLine(s + "s"); } } } }
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 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
95
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.Runtime.CompilerServices; using System.Security.Cryptography.X509Certificates; using System.Text;...
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.Runtime.CompilerServices; using System.Security.Cryptography.X509Certificates; using System.Text;...
[["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 241, 0, 22], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["-", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8...
8
221
using System; using System.Linq; class Program { static void Main() { var N = int.Parse(Console.ReadLine()); var D = new int [N][]; for (int i = 0; i < N; i++) { D[i] = new int[2]; D[i] = Console.ReadLine().Split().Select(int.Parse).ToArray(); } var count = 0; var result = "No"; ...
using System; using System.Linq; class Program { static void Main() { var N = int.Parse(Console.ReadLine()); var D = new int [N][]; for (int i = 0; i < N; i++) { D[i] = new int[2]; D[i] = Console.ReadLine().Split().Select(int.Parse).ToArray(); } var count = 0; var result = "No"; ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 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, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 64, 1...
8
178
using System; using System.Linq; using System.Text.RegularExpressions; namespace GoToJail { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int zoromeCounter = 0; for (int i = 0; i < N; i++) { int[] dice = Console.ReadLine().Split(' ').Select(int.Parse).ToAr...
using System; using System.Linq; using System.Text.RegularExpressions; namespace GoToJail { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int zoromeCounter = 0; for (int i = 0; i < N; i++) { int[] dice = Console.ReadLine().Split(' ').Select(int.Parse).ToAr...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201...
8
141
using System; using System.Linq; using System.Security.Cryptography.X509Certificates; namespace AtcoderProblem { class Program { static void Main(string[] args) { int i = 0; int zorori = 0; int N = int.Parse(Console.ReadLine()); while (i < N) { string L = Console.ReadLine(); var stArrayDa...
using System; using System.Linq; using System.Security.Cryptography.X509Certificates; namespace AtcoderProblem { class Program { static void Main(string[] args) { int i = 0; int N = int.Parse(Console.ReadLine()); int zorori = 0; while (i < N) { string L = Console.ReadLine(); var stArrayDa...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200...
8
158
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; using System.Threading; static class Program { const int mod = (int)1e9 + 7; ...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; using System.Threading; static class Program { const int mod = (int)1e9 + 7; ...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 57, 15, 16, 12, 16, 31, 23, 0, 24], ["+"...
8
989
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.Runtime.CompilerServices; using System.Security.Cryptography.X509Certificates; using System.Text;...
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.Runtime.CompilerServices; using System.Security.Cryptography.X509Certificates; using System.Text;...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 7, 10, 198...
8
183
using System; using System.Collections.Generic; class Program { public static void Main() { List<int> numbers = new List<int>(); int x = 0; while (0 != (x = int.Parse(Console.ReadLine()))) { numbers.Add(x); } numbers.Add(x); for (int i = 0; i < numbers.Count; i++) { Console.Wri...
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { List<int> numbers = new List<int>(); int x = 0; while (0 != (x = int.Parse(Console.ReadLine()))) { numbers.Add(x); } for (int i = 0; i < numbers.Count; i++) { Console.Write...
[["+", 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], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63...
8
112
using System; using static System.Console; using static System.Math; using System.Numerics; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class Program { public static void Main(string[] args) { var s = myRead.readIntArray(); int ans = s[0] / s[1] + (s[0] % s[1] != 0 ? 1 : 0...
using System; using static System.Console; using static System.Math; using System.Numerics; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class Program { public static void Main(string[] args) { var s = myRead.readIntArray(); int ans = s[0] / s[1] + (s[0] % s[1] != 0 ? 1 : 0...
[["+", 0, 195, 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, 203], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
462
using System; public class Program { public static void Main(string[] args) { var input = args[0].Split(' '); var n = int.Parse(input[0]); var x = int.Parse(input[1]); var t = int.Parse(input[2]); var a = Math.Ceiling((n / (double)x)); var ans = a * t; Console.WriteLine(ans); } }
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); var n = int.Parse(input[0]); var x = int.Parse(input[1]); var t = int.Parse(input[2]); var a = Math.Ceiling((n / (double)x)); var ans = a * t; Console.WriteLine(ans); } }
[["-", 36, 36, 0, 208, 0, 235, 0, 251, 0, 259], ["-", 0, 235, 8, 201, 0, 195, 0, 251, 0, 259], ["-", 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, 212, 0, 213, 63, 214, 205, 204, 205, 22], ["+", 8, 196, 0, 197, 0, 198, 39...
8
105
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], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 20...
8
133
using System; using System.Linq; namespace ConsoleApp3 { internal class Program { private static void Main(string[] args) { var lines = Console.ReadLine().Split(" ").Select(int.Parse).ToArray(); var n = lines[0]; var x = lines[1]; var t = lines[2]; var count = n / x; Console.WriteLine(count ...
using System; using System.Linq; namespace ConsoleApp3 { internal class Program { private static void Main(string[] args) { var lines = Console.ReadLine().Split(" ").Select(int.Parse).ToArray(); var n = lines[0]; var x = lines[1]; var t = lines[2]; var count = n / x; if (n % x != 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, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 20...
8
96
using System; class TEST { public static void Main() { string valuestirng = Console.ReadLine(); int value = 0; foreach (char value1 in valuestirng) { value += value1; } if (value % 9 == 0) Console.WriteLine("YES"); else Console.WriteLine("NO"); } }
using System; class TEST { public static void Main() { string valuestirng = Console.ReadLine(); int value = 0; foreach (char value1 in valuestirng) { value += int.Parse(value1.ToString()); } if (value % 9 == 0) Console.WriteLine("Yes"); else Console.WriteLine("No"); } }
[["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 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], ["+", 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], ["+"...
8
69
using System; using System.Collections.Generic; using System.Linq; namespace KCLC { class Program { static void Main() { string Input = Console.ReadLine(); int Length = Input.Length; int Wa = 0; for (int i = 0; i < Length; i++) Wa += Input[i] - '0'; Console.WriteLine(Wa); if (Wa % 9 =...
using System; using System.Collections.Generic; using System.Linq; namespace KCLC { class Program { static void Main() { string Input = Console.ReadLine(); int Wa = 0; for (int i = 0; i < Input.Length; i++) Wa += Input[i] - '0'; if (Wa % 9 == 0) Console.WriteLine("Yes"); else ...
[["-", 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, 214, 205, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198...
8
110
using System; using System.Collections.Generic; using System.Linq; namespace KCLC { class Program { static void Main() { string Input = Console.ReadLine(); int Length = Input.Length; int Wa = 0; for (int i = 0; i < Length; i++) Wa += Input[i] - '0'; Console.WriteLine(Wa); if (Wa % 9 =...
using System; using System.Collections.Generic; using System.Linq; namespace KCLC { class Program { static void Main() { string Input = Console.ReadLine(); int Length = Input.Length; int Wa = 0; for (int i = 0; i < Length; i++) Wa += Input[i] - '0'; if (Wa % 9 == 0) Console.WriteLin...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 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
110
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { string input = Console.ReadLine(); int sum = 0; for (int i = 0; i < input.Length; i++) { sum += int.Parse(input[i].ToString()); } Console.WriteLine(sum); if (sum % 9 =...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { string input = Console.ReadLine(); int sum = 0; for (int i = 0; i < input.Length; i++) { sum += int.Parse(input[i].ToString()); } if (sum % 9 == 0) { Console.WriteLin...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 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
116
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace atcoder151 { public class MainClass { public static void Main(string[] args) { new MainClass().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 atcoder151 { public class MainClass { public static void Main(string[] args) { new MainClass().Solve(new ConsoleInput(Console.In, ' ')); ...
[["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 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, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 2...
8
549
using System; using System.Collections.Generic; class Program { static void Main() { string N = Console.ReadLine(); long p = 0; for (int i = 0; i < N.Length; i++) { char c = N[i]; if (c == 1) { p += 1; } else if (c == 2) { p += 2; } else if (c == 3) { p +=...
using System; using System.Collections.Generic; class Program { static void Main() { string N = Console.ReadLine(); long p = 0; for (int i = 0; i < N.Length; i++) { char c = N[i]; if (c == '1') { p += 1; } else if (c == '2') { p += 2; } else if (c == '3') { ...
[["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 104], ["+", 0, 57, 75, 57, 15, 16, 12, 252, 0, 104], ["+", 75, 57, 75, 57, 15, 16, 12, 252, 0, 104]]
8
208
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder0822 { class MainClass { public static void Main(string[] args) { string N = Console.ReadLine(); // long[] NXT = Console.ReadLine().Split(' ').Select(x => // long.Parse(x)).ToArray(); int[] nc = new int[N.Length]; ...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder0822 { class MainClass { public static void Main(string[] args) { string N = Console.ReadLine(); // long[] NXT = Console.ReadLine().Split(' ').Select(x => // long.Parse(x)).ToArray(); int[] nc = new int[N.Length]; ...
[["-", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 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, 212, 0, 213, 63, 214, 205, 204, 205, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, ...
8
135
using System; class Program { static void Main(string[] args) { // 整数の入力 int N = int.Parse(Console.ReadLine()); string n = N.ToString(); int sum = 0; for (int i = 0; i < n.Length; i++) sum += int.Parse(n[i].ToString()); //出力 Console.WriteLine(sum % 9 == 0 ? "Yes" : "No"); } }
using System; class Program { static void Main(string[] args) { string n = Console.ReadLine(); int sum = 0; for (int i = 0; i < n.Length; i++) sum += int.Parse(n[i].ToString()); //出力 Console.WriteLine(sum % 9 == 0 ? "Yes" : "No"); } }
[["-", 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, 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
99
namespace AtCoder { using System; using System.Linq; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.RegularExpressions; class Program { static void Main() { var N = int.Parse(System.Console.ReadLine()); var A = System.Console.ReadLine() .Split(' ') ...
namespace AtCoder { using System; using System.Linq; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.RegularExpressions; class Program { static void Main() { var N = int.Parse(System.Console.ReadLine()); var A = System.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
566
using System; class TEST { public static void Main() { int num = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split( new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); int[] people = new int[num]; int[] sabun = new int[num]; for (int i = 0; i < num; i++) { ...
using System; class TEST { public static void Main() { long num = long.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split( new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); long[] people = new long[num]; long[] sabun = new long[num]; for (int i = 0; i < num; i...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, ...
8
212
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] A = Console.ReadLine().Split(" ").Select(x => int.Parse(x)).ToArray(); int ans = 0; int tmp = 0; for (int i = 1...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long[] A = Console.ReadLine().Split(" ").Select(x => long.Parse(x)).ToArray(); long ans = 0; ...
[["+", 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], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198...
8
157
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Runtime.ExceptionServices; using System.Security.Cryptography.X509Certificates; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Runtime.ExceptionServices; using System.Security.Cryptography.X509Certificates; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[...
[["-", 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], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 2...
8
322
using System; using System.Linq; class C { static void Main() { Console.ReadLine(); var a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int max = a[0], ans = 0; for (int i = 0; i < a.Length; i++) { max = Math.Max(max, a[i]); if (a[i] < max) ans += max - a[i]; } ...
using System; class C { static void Main() { Console.ReadLine(); var a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int max = a[0]; long ans = 0; for (int i = 0; i < a.Length; i++) { max = Math.Max(max, a[i]); if (a[i] < max) ans += max - a[i]; } Console....
[["-", 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, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 8, 201, 0, 195, 8, 196, 0...
8
116
using System; using System.Linq; class Program { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var aArray = Console.ReadLine().Split(' '); var ans = 0; var prev = 0; for (int i = 0; i < aArray.Count(); i++) { var current = int.Parse(aArray[i]); var...
using System; using System.Linq; class Program { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var aArray = Console.ReadLine().Split(); long ans = 0; long prev = 0; for (int i = 0; i < n; i++) { var current = long.Parse(aArray[i]); var f = current ...
[["-", 0, 213, 3, 4, 0, 28, 0, 252, 0, 104], ["-", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 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, 14...
8
136
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp5 { class Program { static void Main() { var b = Console.ReadLine(); var a = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); long ans = 0; for (...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp5 { class Program { static void Main() { var b = Console.ReadLine(); var a = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); long ans = 0; for (...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 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], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 3...
8
163
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Security.Cryptography; namespace ABC176 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(" "); int[] A = ...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Security.Cryptography; namespace ABC176 { class Program { static void Main(string[] args) { long N = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(" "); long[] A ...
[["-", 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, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 8, 196, 0, 7, 15, 16,...
8
196
using System; using System.Linq; class Program { static void Main(string[] args) { //回答 // Console.WriteLine(Math.Ceiling((double)N / X) * T); //整数の入力 // int N = int.Parse(Console.ReadLine()); // 複数の入力 // string[] line = Console.ReadLine().Split(' '); // int N = int.Parse(line[0]); ...
using System; using System.Linq; class Program { static void Main(string[] args) { //回答 // Console.WriteLine(Math.Ceiling((double)N / X) * T); //整数の入力 // int N = int.Parse(Console.ReadLine()); // 複数の入力 // string[] line = Console.ReadLine().Split(' '); // int N = int.Parse(line[0]); ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 7, 8, 196, 0, 197, 0...
8
202
using System; using System.Collections.Generic; using System.Linq; using System.IO; class c { public static void Main() { int n = int.Parse(Console.ReadLine()); int[] num = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int step = 0; int cur = num[0]; for (int i = 0; i ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; class c { public static void Main() { long n = long.Parse(Console.ReadLine()); long[] num = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); long step = 0; long cur = num[0]; for (long i ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 28, 0, 218, 8, 2...
8
146
using System; using System.Collections.Generic; using System.Linq; class D { struct P { public int i, j; public P(int _i, int _j) { i = _i; j = _j; } public bool IsInRange => 0 <= i && i < h && 0 <= j && j < w; public P[] Nexts() => new[] { new P(i, j - 1), new P(i, j + 1), ...
using System; using System.Collections.Generic; using System.Linq; class D { struct P { public int i, j; public P(int _i, int _j) { i = _i; j = _j; } public bool IsInRange => 0 <= i && i < h && 0 <= j && j < w; public P[] Nexts() => new[] { new P(i, j - 1), new P(i, j + 1), ...
[["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 52, 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, 22...
8
1,098
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; static readonly int[][...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; static readonly int[][...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["-", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 52, 8, 196, 0, 57, 15, 214, 141, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["-", ...
8
1,748
using System; using System.Collections.Generic; namespace ABC176.Problems { class D2 { static void Main() { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); const int INF = 1000000000; string[] ss1 = Console.ReadLine...
using System; using System.Collections.Generic; namespace ABC176.Problems { class D2 { static void Main() { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); const int INF = 1000000000; string[] ss1 = Console.ReadLine...
[["-", 8, 196, 0, 197, 0, 198, 39, 232, 234, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 232, 0, 131], ["-", 8, 196, 0, 197, 0, 198, 39, 232, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 289, 0, 24], ["-", 0, 198, 0, 200, 0, 289, 0, 289, 0, 24], ["-", 0, 198, 0, 200, 0, 289, 0, 289, 141, 22], ["-", 0, 198, 0, 200, 0, 289, 0, ...
8
762
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { //出力の都度更新をやめる var sw = new StreamWriter(Console.OpenStandardOutput()) ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { //出力の都度更新をやめる var sw = new StreamWriter(Console.OpenStandardOutput()) ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60...
8
1,036
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static int[] dy = new int[4] { 0, 1, 0, -1 }; static int[] dx = new int[4] { 1, 0, -1, 0 }; static void Main() { var (H, W) = ReadStream<int, int>(); var s...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static int[] dy = new int[4] { 0, 1, 0, -1 }; static int[] dx = new int[4] { 1, 0, -1, 0 }; static void Main() { var (H, W) = ReadStream<int, int>(); var s...
[["+", 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, 52, 8, 196, 0, 1, 0, 35], ["-", 64, 1...
8
1,254
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; using static Atcoder.IO; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandar...
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; using static Atcoder.IO; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandar...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 18], ["+", 0, 230, 39, 236, 237, 238, 0, 290, 0, 24], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 70], ["-", 0, 227, 39, 224, 225,...
8
797
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC176E { class Program { static void Main(string[] args) { var H = RInt; var W = RInt; var M = RInt; Bomb[] bombs = new Bomb[M]; int[] hcount...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC176E { class Program { static void Main(string[] args) { var H = RInt; var W = RInt; var M = RInt; Bomb[] bombs = new Bomb[M]; int[] hcount...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 2...
8
1,494
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Linq; namespace AtCoder.E { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.E { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var (H, W, M) = R...
[["-", 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], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 212, 0, 227, 39, 22...
8
601
using System; using System.Collections.Generic; using System.Linq; using CompLib.Util; public class Program { int N; int[] A; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); A = sc.IntArray(); for (int i = 0; i < 3 * N; i++) { A[i]--; } // i,jが残ってる最大 var dp = ne...
using System; using System.Collections.Generic; using System.Linq; using CompLib.Util; public class Program { int N; int[] A; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); A = sc.IntArray(); for (int i = 0; i < 3 * N; i++) { A[i]--; } // i,jが残ってる最大 var dp = ne...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 210, 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], [...
8
1,253
using System; using System.CodeDom; class TEST { public static void Main() { string str = Console.ReadLine(); int best = 0; for (int i = 0; i < str.Length; i++) { int count = 0; if (str[i] == 'R') { count++; if (best < count) best = count; } else { co...
using System; using System.CodeDom; class TEST { public static void Main() { string str = Console.ReadLine(); int best = 0; int count = 0; for (int i = 0; i < str.Length; i++) { if (str[i] == 'R') { count++; if (best < count) best = count; } else { coun...
[["+", 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, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, ...
8
97
using System; using System.Collections.Generic; using System.Linq; namespace easy_Atcoder { class Program { static void Main(string[] args) { string S = Console.ReadLine(); int count = 0; for (int i = 0; i < S.Length; i++) { if (S[i] == 'R') { if (i != 0) { if (S[i - 1] == 'R') { ...
using System; using System.Collections.Generic; using System.Linq; namespace easy_Atcoder { class Program { static void Main(string[] args) { string S = Console.ReadLine(); int count = 0; for (int i = 0; i < S.Length; i++) { if (S[i] == 'R') { if (i != 0) { if (S[i - 1] == 'R') { ...
[["+", 64, 196, 0, 57, 64, 196, 0, 57, 0, 95], ["+", 0, 57, 64, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 64, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46]]
8
154
using System; public class Program { public static void Main() { string str = Console.ReadLine(); string beforeWheather = ""; int currentChain = 0; int result = 0; for (int i = 0; i < str.Length - 1; i++) { if (str[i].Equals('R')) { if (currentChain == 0) currentChain = 1...
using System; public class Program { public static void Main() { string str = Console.ReadLine(); string beforeWheather = ""; int currentChain = 0; int result = 0; for (int i = 0; i < str.Length - 1; i++) { if (str[i].Equals('R') || str[i + 1].Equals('R')) { if (currentChain == 0) ...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 15, 16, 12, 213, 63, 214, 205, 204, 205, 22], ["+", 12, 213, 63, 214, 205, 204, 206, 207, 0, 70], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 205, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 12, 213, 63, 214...
8
133
using System; using System.IO; class Solve { static void Main(string[] args) { var S = Console.ReadLine(); var answer = 0; var temp = 0; for (int i = 0; i < 3; i++) { if (S[i] == 'R') temp++; else { answer = Math.Max(answer, temp); temp = 0; } } var w...
using System; using System.IO; class Solve { static void Main(string[] args) { var S = Console.ReadLine(); var answer = 0; var temp = 0; for (int i = 0; i < 3; i++) { if (S[i] == 'R') temp++; else { answer = Math.Max(answer, temp); temp = 0; } } answe...
[["+", 0, 195, 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
130
using System; using System.Linq; namespace A { class Program { static void Main(string[] args) { var S = Console.ReadLine().Trim().ToCharArray(); var countR = S.Where(x => x.Equals("R")).Count(); if (countR == 2) { Console.Write(S[1].Equals("S") ? 1 : 2); } else { Console.Write(countR); ...
using System; using System.Linq; namespace A { class Program { static void Main(string[] args) { var S = Console.ReadLine().Trim().ToCharArray(); var countR = S.Where(x => x == 'R').Count(); if (countR == 2) { Console.Write(S[1] == 'S' ? 1 : 2); } else { Console.Write(countR); } } } ...
[["-", 0, 28, 0, 218, 8, 213, 63, 214, 0, 131], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 141, 22], ["-", 0, 28, 0, 218, 8, 213, 3, 4, 0, 24], ["-", 8, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 60], ["+", 0, 28, 0, 218, 8, 16, 12, 252, 0, 104], ["-", 0, 28, 0, 218, 8, 213, 3, 4, 0, 25], ["-", 0,...
8
106
using System; namespace atcoder { class Program { static void Main(string[] args) { string input = Console.ReadLine(); char[] chars = input.ToCharArray(); int total; if (chars[1] == 'R') { total = 1; if (chars[0] == 'R') total++; if (chars[2] == 'R') total++; } e...
using System; namespace atcoder { class Program { static void Main(string[] args) { string input = Console.ReadLine(); char[] chars = input.ToCharArray(); int total = 0; if (chars[1] == 'R') { total = 1; if (chars[0] == 'R') total++; if (chars[2] == 'R') total++; ...
[["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 75, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 75, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["-", 0, 57, 75, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ...
8
137
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { var s = Read(); var ans = 0; var tmp = 0; for (int i = 0; i < 3; i...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { var s = Read(); var ans = 0; var tmp = 0; for (int i = 0; i < 3; i...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 1...
8
298
using System; namespace sample { class sample { static void Main(string[] args) { string s = Console.ReadLine(); int result = 0; int n = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { n++; } else { result = result < n ? n : result; n = 0; } } Con...
using System; namespace sample { class sample { static void Main(string[] args) { string s = Console.ReadLine(); int result = 0; int n = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { n++; } else { result = result < n ? n : result; n = 0; } } res...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 41, 15, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 41, 15, 16, 17, 18], ["+", 0, 1, 0, 11, 12, 41, 15, 16, 12, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 41, 0, 101], ["+", 8, 196, 0, 1, 0, 11, 12, 41, 64, 22], ["+", 8, 196...
8
97
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace atcoder151 { public class MainClass { public static void Main(string[] args) { new MainClass().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 atcoder151 { public class MainClass { public static void Main(string[] args) { new MainClass().Solve(new ConsoleInput(Console.In, ' ')); ...
[["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 95], ["+", 0, 57, 75, 57, 75, 57, 75, 57, 0, 121], ["+", 0, 57, 75, 57, 75, 57, 75, 57, 0, 24], ["+", 75, 57, 75, 57, 75, 57, 15, 16, 31, 22], ["+", 75, 57, 75, 57, 75, 57, 15, 16, 17, 60], ["+", 75, 57, 75, 57, 75, 57, 15, 16, 12, 203], ["+", 0, 57, 75, 57, 75, 57, 75, 57, 0, 2...
8
580
using System; namespace Rainy { class Program { static void Main(string[] args) { string inD0 = Console.ReadLine(); int NumR = 0; for (int i = 0; i < 3; i++) { if (inD0.Substring(i, 1) == "R") { NumR += 1; } else { NumR = 0; } } Console.WriteLine(NumR); } } }...
using System; namespace Rainy { class Program { static void Main(string[] args) { string inD0 = Console.ReadLine(); int NumR = 0; int MaxNumR = 0; for (int i = 0; i < 3; i++) { if (inD0.Substring(i, 1) == "R") { NumR += 1; if (MaxNumR <= NumR) MaxNumR = NumR; }...
[["+", 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, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0...
8
87
using System; namespace ABC175 { class Program { static void Main(string[] args) { string inp = Console.ReadLine(); int j = 0; if (inp[1] == 'R') { if (inp[0] == 'R') { if (inp[2] == 'R') { j = 3; } else { j = 2; } } else if (inp[2] == 'R') { ...
using System; namespace ABC175 { class Program { static void Main(string[] args) { string inp = Console.ReadLine(); int j = 0; if (inp[1] == 'R') { if (inp[0] == 'R') { if (inp[2] == 'R') { j = 3; } else { j = 2; } } else if (inp[2] == 'R') { ...
[["+", 0, 57, 64, 196, 0, 57, 75, 57, 0, 95], ["+", 64, 196, 0, 57, 75, 57, 75, 196, 0, 45], ["+", 75, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 75, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 75, 57, 75, 196, 0, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46]]
8
147
using System; class Program { static void Main(string[] args) { //整数の入力 // int a = int.Parse(Console.ReadLine()); //スペース区切りの整数の入力 // string[] input = Console.ReadLine().Split(' '); string input = Console.ReadLine(); // int b = int.Parse(input[0]); // int c = int.Parse(input[1]); //文字列の...
using System; class Program { static void Main(string[] args) { //整数の入力 // int a = int.Parse(Console.ReadLine()); //スペース区切りの整数の入力 // string[] input = Console.ReadLine().Split(' '); string input = Console.ReadLine(); // int b = int.Parse(input[0]); // int c = int.Parse(input[1]); //文字列の...
[["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 22], ["+...
8
96