buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
change_count
int64
0
100
using System; using System.Collections.Generic; using System.Linq; 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 N = CinTAr(); var a1 = N[0] - 1; var a2 = N[0]...
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 N = CinTAr(); var a1 = N[0] - 1; var a2 = N[0]...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
766
2
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int Nmasu = int.Parse(Console.ReadLine()); int[] Htakasa = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int[] ans = new int[Nmasu]; ...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int Nmasu = int.Parse(Console.ReadLine()); int[] Htakasa = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int[] ans = new int[Nmasu]; ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
8
165
2
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.C { class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.C { class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
565
6
using System; namespace C { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] WH = Console.ReadLine().Split(' '); int[] H = new int[N]; for (int i = 0; i < N; i++) { H[i] = int.Parse(WH[i]); } bool flg = false; int cnt = 0; int m...
using System; namespace C { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] WH = Console.ReadLine().Split(' '); int[] H = new int[N]; for (int i = 0; i < N; i++) { H[i] = int.Parse(WH[i]); } bool flg = false; int cnt = 0; int m...
[["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 46], ["-", 0, 57, 75, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
190
4
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { int n = ReadLineInt(); int[] hList = ReadLineIntArray(); int rtn = 0; int wk = 0; for (int i = 0; i < n - 1; i++) { if (hList[i] > ...
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { int n = ReadLineInt(); int[] hList = ReadLineIntArray(); int rtn = 0; int wk = 0; for (int i = 0; i < n - 1; i++) { if (hList[i] >=...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
746
2
using System; class P { static void Main() { int N = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int count = 0; int i; int ans = 0; for (i = 0; i < N - 1; i++) { if (a[i] >= a[i + 1]) { count++; } if (a[i] < a[i ...
using System; class P { static void Main() { int N = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int count = 0; int i; int ans = 0; for (i = 0; i < N - 1; i++) { if (a[i] >= a[i + 1]) { count++; } if (a[i] < a[i ...
[["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 64, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 75, 22]]
8
147
6
using System; class Program { static void Main(string[] args) { // 整数の入力 int N = int.Parse(Console.ReadLine()); // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); int[] H = new int[N]; for (int i = 0; i < N; i++) { H[i] = int.Parse(input[i]); } // int A = int.Parse...
using System; class Program { static void Main(string[] args) { // 整数の入力 int N = int.Parse(Console.ReadLine()); // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); int[] H = new int[N]; for (int i = 0; i < N; i++) { H[i] = int.Parse(input[i]); } // int A = int.Parse...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
180
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_20190707_1 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] s = Console.ReadLine().Split(' '); List<int> upStairs = new...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_20190707_1 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] s = Console.ReadLine().Split(' '); List<int> upStairs = new...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 241, 0, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 241, 0, 203]]
8
227
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] h = Array.ConvertAll(Console.ReadLine().Split(),...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] h = Array.ConvertAll(Console.ReadLine().Split(),...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
188
2
using System; using System.Linq; class Program { static void Main(string[] argv) { var n = int.Parse(Console.ReadLine()); var v = Console.ReadLine().Split(' '); var r = 0; var t = 0; for (int i = 0; i < n - 1; i++) { if (int.Parse(v[i + 0]) > int.Parse(v[i + 1])) { t++; r = t...
using System; using System.Linq; class Program { static void Main(string[] argv) { var n = int.Parse(Console.ReadLine()); var v = Console.ReadLine().Split(' '); var r = 0; var t = 0; for (int i = 0; i < n - 1; i++) { if (int.Parse(v[i + 0]) >= int.Parse(v[i + 1])) { t++; r = ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
136
2
using System; namespace ABC139_C { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var line = Console.ReadLine().Split(); int now = 0, count = 0, max = 0; int pre = int.Parse(line[0]); for (int i = 1; i < n - 1; i++) { now = int.Parse(line[i]); ...
using System; namespace ABC139_C { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var line = Console.ReadLine().Split(); int now = 0, count = 0, max = 0; int pre = int.Parse(line[0]); for (int i = 1; i < n; i++) { now = int.Parse(line[i]); ...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
140
2
using System; using System.Linq; namespace ABC139_C { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var h = Console.ReadLine().Split().Select(int.Parse).ToArray(); int count = 0, max = 0; for (int i = 0; i < n - 1; i++) { if (h[i] <= h[i + 1]) ...
using System; using System.Linq; namespace ABC139_C { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var h = Console.ReadLine().Split().Select(int.Parse).ToArray(); int count = 0, max = 0; for (int i = 0; i < n - 1; i++) { if (h[i] >= h[i + 1]) ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
131
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var H = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); int[] ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var H = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); int[] ...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
177
6
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); int max = 0, now = 0, pre = int.Parse(str[0]), count = 0; for (int i = 1; i < str.Length; ++i) { now = int.Parse(str[i]);...
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); int max = 0, now = 0, pre = int.Parse(str[0]), count = 0; for (int i = 1; i < str.Length; ++i) { now = int.Parse(str[i]);...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
8
162
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC_Training { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var h = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); if (n ==...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC_Training { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var h = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); if (n ==...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]]
8
229
2
using System; using System.Collections.Generic; namespace ABC139_C { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(); List<long> list = new List<long>(); for (long index = 0; index < n; index++) { list.Add(l...
using System; using System.Collections.Generic; namespace ABC139_C { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(); List<long> list = new List<long>(); for (long index = 0; index < n; index++) { list.Add(l...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["-", 12, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 22]]
8
211
6
using System; using System.Linq; using CompLib.Util; public class Program { private int N, K; private string S; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); K = sc.NextInt(); S = sc.Next(); // 最初1回 // 最小の文字が最後になるように切る // 次から // 最小の文字が2倍になる // N = 5000でも14...
using System; using System.Linq; using CompLib.Util; public class Program { private int N, K; private string S; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); K = sc.NextInt(); S = sc.Next(); // 最初1回 // 最小の文字が最後になるように切る // 次から // 最小の文字が2倍になる // N = 5000でも14...
[["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 22]]
8
1,011
8
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; using static util; using P = pair<int, int>; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Ex...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; using static util; using P = pair<int, int>; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Ex...
[["-", 206, 207, 0, 28, 0, 16, 31, 16, 12, 203], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 17, 33], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 12, 203]]
8
2,835
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC137A { class Program { static void Main(string[] args) { var word = Console.ReadLine().Split(); double a = double.Parse(word[0]); double b = double.Parse(word[1]); double m...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC137A { class Program { static void Main(string[] args) { var word = Console.ReadLine().Split(); double a = double.Parse(word[0]); double b = double.Parse(word[1]); double m...
[["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46]]
8
139
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC137A { class Program { static void Main(string[] args) { int A, B; var word = Console.ReadLine().Split(' '); A = int.Parse(word[0]); B = int.Parse(word[1]); if (A + B ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC137A { class Program { static void Main(string[] args) { int A, B; var word = Console.ReadLine().Split(' '); A = int.Parse(word[0]); B = int.Parse(word[1]); if (A + B ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["-", 0, 57, 75, 57, 75, 57, 15, 16, 17, 106], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 17, 98]]
8
180
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace kyopro { class Program { static void Main(string[] args) { string[] ab = Console.ReadLine().Split(' '); int a = int.Parse(ab[0]); int b = int.Parse(ab[1]); var kotae = new Lis...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace kyopro { class Program { static void Main(string[] args) { string[] ab = Console.ReadLine().Split(' '); int a = int.Parse(ab[0]); int b = int.Parse(ab[1]); var kotae = new Lis...
[["-", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 12, 22]]
8
153
4
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Numerics; using System.Threading.Tasks; using static System.Console; using static System.Math; using static Func; class Z { static void Main() => new K(); } class K { int F =...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Numerics; using System.Threading.Tasks; using static System.Console; using static System.Math; using static Func; class Z { static void Main() => new K(); } class K { int F =...
[["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
1,462
2
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 (-100 <= A && B <= 100) { int max = 0; int[] number = { A + B, A - B, A * B }; for (int i = 0; i < 3; i++) { ...
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 (-100 <= A && B <= 100) { int max = -99999999; int[] number = { A + B, A - B, A * B }; for (int i = 0; i < 3; i...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203]]
8
146
3
using System; using System.IO; namespace Sandbox { internal class Program { private static void Main(string[] args) { var scanner = new Scanner(); var a = scanner.GetNextAsInt(); var b = scanner.GetNextAsInt(); var output = Math.Max(a + b, a - b); output = Math.Max(a + b, a * b); Console.Wr...
using System; using System.IO; namespace Sandbox { internal class Program { private static void Main(string[] args) { var scanner = new Scanner(); var a = scanner.GetNextAsInt(); var b = scanner.GetNextAsInt(); var output = Math.Max(a + b, a - b); output = Math.Max(output, a * b); Console.W...
[["-", 12, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22]]
8
568
4
using System; namespace ACpra5 { class Program { static void Main(string[] args) { String[] input = Console.ReadLine().Split(' '); int K = int.Parse(input[0]); int X = int.Parse(input[1]); for (int i = X - K + 1; i < X + K - 1; i++) { Console.Write("{0}", i); } Console.WriteLine(X + K -...
using System; namespace ACpra5 { class Program { static void Main(string[] args) { String[] input = Console.ReadLine().Split(' '); int K = int.Parse(input[0]); int X = int.Parse(input[1]); for (int i = X - K + 1; i < X + K - 1; i++) { Console.Write("{0} ", i); } Console.WriteLine(X + K ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
112
2
using System; class oneclue { public static void Main() { String[] str = Console.ReadLine().Split(' '); int k = int.Parse(str[0]); int x = int.Parse(str[1]); for (int i = x - k; i < x + k; i++) { Console.Write("{0} ", i); } Console.WriteLine(x + k); } }
using System; class oneclue { public static void Main() { String[] str = Console.ReadLine().Split(' '); int k = int.Parse(str[0]); int x = int.Parse(str[1]); for (int i = x - k + 1; i < x + k - 1; i++) { Console.Write("{0} ", i); } Console.WriteLine(x + k - 1); } }
[["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
99
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp10 { class Program { static void Main(string[] args) { string str = Console.ReadLine(); string[] strArray = str.Split(' '); int k = int.Parse(strArray[0]); int x = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp10 { class Program { static void Main(string[] args) { string str = Console.ReadLine(); string[] strArray = str.Split(' '); int k = int.Parse(strArray[0]); int x = ...
[["-", 3, 4, 0, 28, 0, 16, 12, 252, 0, 104], ["+", 3, 4, 0, 28, 0, 16, 12, 5, 0, 62]]
8
144
4
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { class Program { static void Main(string[] args) { var cin = new Scanner(); var K = cin.nextInt(); var X = cin.nextInt(); ...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { class Program { static void Main(string[] args) { var cin = new Scanner(); var K = cin.nextInt(); var X = cin.nextInt(); ...
[["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 85], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 12, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33]]
8
597
4
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using Library; using static Library.Comfort; using static Library.Math; using static Library.Algorithm; using static System.Math; using static System.Console; using System.Threading.Tasks; namespace AtCoderer { public class Ap...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using Library; using static Library.Comfort; using static Library.Math; using static Library.Algorithm; using static System.Math; using static System.Console; using System.Threading.Tasks; namespace AtCoderer { public class Ap...
[["+", 12, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
2,060
1
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC137C { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] s = new string[N + 1]; s[N] = "zzzzzzzzzzz"; for (int i = 0; i < N;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC137C { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] s = new string[N + 1]; s[N] = "zzzzzzzzzzz"; for (int i = 0; i < N;...
[["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 25]]
8
305
3
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; private static long max = 999999999999; static void Main(string[] args) { var n = Read()....
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; private static long max = 999999999999; static void Main(string[] args) { var n = Read()....
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
1,558
2
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace atcoder { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var strs = new Dictionary<string, int>(); for (var i = 0; i < n; i++) { var str = new string(Consol...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace atcoder { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var strs = new Dictionary<string, long>(); for (var i = 0; i < n; i++) { var str = new string(Conso...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
171
4
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var D = new Dictionary<string, int>(); for (int i = 0; i < n; i++) { string s = Console.ReadLine(); char[] c = ne...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var D = new Dictionary<string, int>(); for (int i = 0; i < n; i++) { string s = Console.ReadLine(); char[] c = ne...
[["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 25]]
8
315
3
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } ...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
1,241
4
using Yorukatsu019.Questions; using Yorukatsu019.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu019.Questions { /// <summary> /// ABC137 C /// </summary> public class QuestionC : AtCoderQuestionBase { public override IEn...
using Yorukatsu019.Questions; using Yorukatsu019.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu019.Questions { /// <summary> /// ABC137 C /// </summary> public class QuestionC : AtCoderQuestionBase { public override IEn...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
578
2
using System; using System.Collections.Generic; using System.Linq; class Ho { static void Main() { int n = int.Parse(Console.ReadLine()); var dic = new Dictionary<string, int>(); for (var i = 0; i < n; i++) { var aho = Console.ReadLine(); var c = new char[10]; for (var j = 0; j < 10; j++...
using System; using System.Collections.Generic; using System.Linq; class Ho { static void Main() { int n = int.Parse(Console.ReadLine()); var dic = new Dictionary<string, long>(); for (var i = 0; i < n; i++) { var aho = Console.ReadLine(); var c = new char[10]; for (var j = 0; j < 10; j+...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
209
2
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static long[] a; static long N; static long K; static void Main(string[] args) { //入力を受け取る int N = int.Parse(Console.ReadLine()); string[] A = new string[N]; ...
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static long[] a; static long N; static long K; static void Main(string[] args) { //入力を受け取る int N = int.Parse(Console.ReadLine()); string[] A = new string[N]; va...
[["-", 8, 201, 0, 195, 8, 196, 0, 210, 39, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 39, 199]]
8
228
2
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Library; using static Library.Input; namespace AtCoderTemplate { class ProgramC { static void Main() { int n = NextInt; var s = Enumerable.Range(0, n) .Select(_ => string.Join("", Li...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Library; using static Library.Input; namespace AtCoderTemplate { class ProgramC { static void Main() { int n = NextInt; var s = Enumerable.Range(0, n) .Select(_ => string.Join("", Li...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
391
2
using System; using System.Linq; using System.Collections.Generic; using System.Text; public class AtCoderC { static void Main() { int n = int.Parse(Console.ReadLine()); string[] strs = new string[n]; for (int i = 0; i < n; i++) { string s = Console.ReadLine(); strs[i] = string.Join("", s.Ord...
using System; using System.Linq; using System.Collections.Generic; using System.Text; public class AtCoderC { static void Main() { int n = int.Parse(Console.ReadLine()); string[] strs = new string[n]; for (int i = 0; i < n; i++) { string s = Console.ReadLine(); strs[i] = string.Join("", s.Ord...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
339
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; using Pair = System.Tuple<long, long>; using Ha...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; using Pair = System.Tuple<long, long>; using Ha...
[["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
3,457
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp9 { class Program { static void MainA(string[] args) { Console.WriteLine( int.Parse(Console.ReadLine()) < 3200 ? "red" : Console.ReadLine()); } static void MainB(st...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp9 { class Program { static void MainA(string[] args) { Console.WriteLine( int.Parse(Console.ReadLine()) < 3200 ? "red" : Console.ReadLine()); } static void MainB(st...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
232
6
using System; using System.Collections.Generic; using System.Linq; namespace atcoder_csharp { class Program { static void Main() { var n = Util.ReadInt(); var values = Util.ReadInts().OrderBy(v => v).ToList(); if (n == 1) { Console.WriteLine(values[0]); return; } var avg = (double)va...
using System; using System.Collections.Generic; using System.Linq; namespace atcoder_csharp { class Program { static void Main() { var n = Util.ReadInt(); var values = Util.ReadInts().OrderBy(v => v).ToList(); if (n == 1) { Console.WriteLine(values[0]); return; } var avg = (double)va...
[["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147]]
8
295
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderPre { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var v = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); Array.So...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderPre { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var v = Array.ConvertAll(Console.ReadLine().Split(' '), double.Parse); Array...
[["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199]]
8
141
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { double N = int.Parse(Console.ReadLine()); string[] vals = Console.ReadLine().Split(); List<int> nums = new List<int>(); for (int i = 0; i < N; i++) { nums.Add(int.Parse(vals[i]...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { double N = int.Parse(Console.ReadLine()); string[] vals = Console.ReadLine().Split(); List<int> nums = new List<int>(); for (int i = 0; i < N; i++) { nums.Add(int.Parse(vals[i]...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 250]]
8
187
2
using System; class bable { public static void Main() { int kosuu = int.Parse(Console.ReadLine()); double[] value = new double[kosuu]; string[] s = Console.ReadLine().Split(' '); for (int i = 0; i < kosuu; i++) { value[i] = double.Parse(s[i]); } double stb = 0; for (int i = 0; i < ko...
using System; class bable { public static void Main() { int kosuu = int.Parse(Console.ReadLine()); double[] value = new double[kosuu]; string[] s = Console.ReadLine().Split(' '); for (int i = 0; i < kosuu; i++) { value[i] = double.Parse(s[i]); } double stb = 0; for (int i = 0; i < ko...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 22]]
8
231
4
using System; using System.Linq; using System.Collections.Generic; namespace C { class Program { static void Main(string[] args) { int c = int.Parse(Console.ReadLine()); string[] array = Console.ReadLine().Split(' '); var input = new List<string>(); input.AddRange(array); var values = input.Selec...
using System; using System.Linq; using System.Collections.Generic; namespace C { class Program { static void Main(string[] args) { int c = int.Parse(Console.ReadLine()); string[] array = Console.ReadLine().Split(' '); var input = new List<string>(); input.AddRange(array); var values = input.Selec...
[["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73]]
8
169
3
using System; using System.Linq; using System.Text; using System.Collections.Generic; public class Alchemist { public static void Main() { int N = int.Parse(Console.ReadLine()); var foods = Console.ReadLine().Split(' ').Select(int.Parse).ToList(); var min = new int[2]; for (int i = 1; i < N; i++) { ...
using System; using System.Linq; using System.Text; using System.Collections.Generic; public class Alchemist { public static void Main() { int N = int.Parse(Console.ReadLine()); var foods = Console.ReadLine().Split(' ').Select(double.Parse).ToList(); var min = new double[2]; for (int i = 1; i < N; i+...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 0, 25...
8
172
7
using System; using System.Linq; public class Test { public static void Main() { // your code goes here int n = int.Parse(Console.ReadLine()); var v = Console.ReadLine().Split().Select(x => double.Parse(x)).ToArray(); Array.Sort(v); double ans = (v[0] + v[1]) / 2; for (int i = 2; i > n; i++...
using System; using System.Linq; public class Test { public static void Main() { // your code goes here int n = int.Parse(Console.ReadLine()); var v = Console.ReadLine().Split().Select(x => double.Parse(x)).ToArray(); Array.Sort(v); double ans = (v[0] + v[1]) / 2; for (int i = 2; i != n; i+...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 79]]
8
125
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { //入力 int N = int.Parse(Console.ReadLine()); var V = Console.ReadLine() .Split(' ') .Select(x => double.Pars...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { //入力 int N = int.Parse(Console.ReadLine()); var V = Console.ReadLine() .Split(' ') .Select(x => double.Pars...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["-", 0, 213, 3, 4, 0, 28, 0, 218, 8, 22]]
8
173
5
using System; class ProgramC { static void Main(string[] args) { string input = Console.ReadLine(); int n = int.Parse(input); string[] input_b = Console.ReadLine().Split(' '); long[] b = new long[n]; for (int i = 0; i < n; i++) b[i] = long.Parse(input_b[i]); Array.Sort(b); for (i...
using System; class ProgramC { static void Main(string[] args) { string input = Console.ReadLine(); int n = int.Parse(input); string[] input_b = Console.ReadLine().Split(' '); double[] b = new double[n]; for (int i = 0; i < n; i++) b[i] = double.Parse(input_b[i]); Array.Sort(b); ...
[["-", 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, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 8, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 0, 7, 8, 196, 0, 197,...
8
161
12
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Numerics; namespace PAST0 { using static Ex; public class Solve { public static void Main(string[] args) { new PAST_K(); } } public class PAST_K { char[] s, t; public PAST_K() { s = Read.ToCharArray(); ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Numerics; namespace PAST0 { using static Ex; public class Solve { public static void Main(string[] args) { new PAST_K(); } } public class PAST_K { char[] s, t; public PAST_K() { s = Read.ToCharArray(); ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 0, 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
2,232
7
using Yorukatsu049.Questions; using Yorukatsu049.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu049.Questions { public class QuestionE : AtCoderQuestionBase { public override IEnumerable<object> Solve(TextReader inputStream) {...
using Yorukatsu049.Questions; using Yorukatsu049.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu049.Questions { public class QuestionE : AtCoderQuestionBase { public override IEnumerable<object> Solve(TextReader inputStream) {...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 285, 0, 16, 17, 72], ["-", 0, 195, 8, 196, 0, 285, 0, 16, 12, 203]]
8
1,022
4
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
1,590
6
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } static void Solve() { ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } static void Solve() { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
1,417
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using static System.Math; using static System.Array; using static AtCoder.IO_ShortCut; using static AtCoder.Tool; using static AtCoder.ModInt; namespace AtCoder { class AC { const int MOD = 10...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using static System.Math; using static System.Array; using static AtCoder.IO_ShortCut; using static AtCoder.Tool; using static AtCoder.ModInt; namespace AtCoder { class AC { const int MOD = 10...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203]]
8
1,937
3
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { ABC138.E(); } class ABC138 { public static void A() { var A = Read.Int(); var S = Read.Str(); Console.WriteLine(A >= 3200 ? S : "red"); } public sta...
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { ABC138.E(); } class ABC138 { public static void A() { var A = Read.Int(); var S = Read.Str(); Console.WriteLine(A >= 3200 ? S : "red"); } public sta...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 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], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203]]
8
2,257
7
using System.Collections; using System.Text; using System.Threading.Tasks; using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System; using System.Numerics; class Program { static void Main() { #region 入力 string s = ReadStr; string t = ReadStr;...
using System.Collections; using System.Text; using System.Threading.Tasks; using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System; using System.Numerics; class Program { static void Main() { #region 入力 string s = ReadStr; string t = ReadStr;...
[["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 19]]
8
2,098
2
using System; using System.Collections.Generic; using System.Linq; namespace ABC138E { class Program { static void Main(string[] args) { // Console.WriteLine(search(new List<long> {1, 3, 5, 7, 9}, 15)); string s = CIN.String(); string t = CIN.String(); HashSet<char> ssub = new HashSet<char>(); ...
using System; using System.Collections.Generic; using System.Linq; namespace ABC138E { class Program { static void Main(string[] args) { // Console.WriteLine(search(new List<long> {1, 3, 5, 7, 9}, 15)); string s = CIN.String(); string t = CIN.String(); HashSet<char> ssub = new HashSet<char>(); ...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
561
2
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var s = ns(); var t = ns(); var next = new int[s.Length, 26]; for (int i = 0; i < 26; i++) { cha...
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var s = ns(); var t = ns(); var next = new int[s.Length, 26]; for (int i = 0; i < 26; i++) { cha...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 16, 31, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16,...
8
1,059
8
using System; using System.Collections.Generic; using System.Linq; namespace ABC138 { class E { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); Dictionary<char, List<long>> dict = new Dictionary<char, List<long>>(); for (int i = 0; i < s.Length; i++) ...
using System; using System.Collections.Generic; using System.Linq; namespace ABC138 { class E { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); Dictionary<char, List<long>> dict = new Dictionary<char, List<long>>(); for (int i = 0; i < s.Length; i++) ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
317
5
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; static class CodeJam { static long Solve(string S, string T) { var lists = new List<int>[26]; for (int i = 0; i < 26; ++i) { lists[i] = new List<int>(); } ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; static class CodeJam { static long Solve(string S, string T) { var lists = new List<int>[26]; for (int i = 0; i < 26; ++i) { lists[i] = new List<int>(); } ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["-", 0, 218, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 218, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 0, 218, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 218, 8, 196, 0, 57, 15, 16, 17, ...
8
378
9
using System; using System.Linq; using System.Collections.Generic; namespace E { class Program { static void Main(string[] args) { Console.WriteLine(Run(args)); } private static long Run(string[] args) { var s = ConsoleReader.String(); var t = ConsoleReader.String(); var td = t.Distinct(); var sd...
using System; using System.Linq; using System.Collections.Generic; namespace E { class Program { static void Main(string[] args) { Console.WriteLine(Run(args)); } private static long Run(string[] args) { var s = ConsoleReader.String(); var t = ConsoleReader.String(); var td = t.Distinct(); var sd...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203]]
8
533
3
using System; using System.Collections.Generic; namespace E___Strings_of_Impurity { class Program { static void Main(string[] args) { Console.WriteLine(solver()); } static long solver() { var s = Console.ReadLine(); var t = Console.ReadLine(); var alphabets = new List<int>[26]; for (int i = 0; i <...
using System; using System.Collections.Generic; namespace E___Strings_of_Impurity { class Program { static void Main(string[] args) { Console.WriteLine(solver()); } static long solver() { var s = Console.ReadLine(); var t = Console.ReadLine(); var alphabets = new List<int>[26]; for (int i = 0; i <...
[["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 47]]
8
324
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static Input; using static Util; class Program { static string S; static string T; static void INPUT() { S = NextString(); T = NextString(); } static void OUTPUT() { var SS = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static Input; using static Util; class Program { static string S; static string T; static void INPUT() { S = NextString(); T = NextString(); } static void OUTPUT() { var SS = ...
[["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22]]
8
832
2
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; static void Main() { ...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; static void Main() { ...
[["-", 0, 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]]
8
1,234
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using static System.Math; using System.Text; using System.Threading; namespace Program { public static class ABC138E { static public void Solve() { var s = NS; var t = NS; var chChec...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using static System.Math; using System.Text; using System.Threading; namespace Program { public static class ABC138E { static public void Solve() { var s = NS; var t = NS; var chChec...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203]]
8
12,197
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_138 { class E { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_138 { class E { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
626
5
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var count = 0; var cur = ""; for (var i = 0; i < s.Length; i++) { if (cur != s[i].ToString()) { cur = s[i].ToString(); ...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var count = 0; var cur = ""; for (var i = 0; i < s.Length; i++) { if (cur != s[i].ToString()) { cur = s[i].ToString(); ...
[["-", 75, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 75, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
153
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.AGC_037 { class A { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.AGC_037 { class A { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["-", 75, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 64, 196, 0, 57, 64, 1, 0, 223, 0, 29], ["+", 0, 57, 64, 196, 0, 57, 64, 1, 0, 35], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22]]
8
380
6
using System; class Program { static void Main(string[] args) { string s; s = Console.ReadLine(); int index = 0; int k = 0; string sub = string.Empty; while (index < s.Length) { if (sub.Equals(s.Substring(index, 1))) { if (index + 2 < s.Length) { sub = s.Substring(ind...
using System; class Program { static void Main(string[] args) { string s; s = Console.ReadLine(); int index = 0; int k = 0; string sub = string.Empty; while (index < s.Length) { if (sub.Equals(s.Substring(index, 1))) { if (index + 2 <= s.Length) { sub = s.Substring(in...
[["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 19]]
8
139
2
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var n = ni(); var s = ns(); int r ...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var n = ni(); var s = ns(); int r ...
[["-", 75, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 75, 57, 64, 196, 0, 1, 0, 223, 0, 22]]
8
1,374
2
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { const int M = 998244353; static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); long onlyR = 0; long o...
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { const int M = 998244353; static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); long onlyR = 0; long o...
[["-", 75, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 75, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22]]
8
422
4
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(); string[] str2 = Console.ReadLine().Split(); int[] A = new int[N]; int[] B = new int[N]; var pq = new PriorityQueue...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(); string[] str2 = Console.ReadLine().Split(); int[] A = new int[N]; int[] B = new int[N]; var pq = new PriorityQueue...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
920
2
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...
[["+", 0, 213, 3, 4, 0, 28, 0, 213, 63, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]]
8
865
5
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()); int cnt = 0; for (int i = 1; i <= N...
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()); int cnt = 0; for (int i = 1; i <= N...
[["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 108], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
130
6
using System; class Prog { static void Main() { int x = int.Parse(Console.ReadLine()); string y = x.ToString(); double a = 0; if (y.Length % 2 != 0) { a += x - Math.Pow(10, (y.Length / 2) + 1) + 1; } for (int i = 0; i < y.Length - 1; i = i + 2) { a += 9 * Math.Pow(10, i); } ...
using System; class Prog { static void Main() { int x = int.Parse(Console.ReadLine()); string y = x.ToString(); double a = 0; if (y.Length % 2 != 0) { a += x - Math.Pow(10, y.Length - 1) + 1; } for (int i = 0; i < y.Length - 1; i = i + 2) { a += 9 * Math.Pow(10, i); } Cons...
[["-", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 85], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33]]
8
120
6
using System; using System.Collections.Generic; using System.Linq; public class AtCoderB { static void Main() { int n = int.Parse(Console.ReadLine()); int count = 0; for (int i = 1; i <= n; i++) { if ((1 <= i && i < 10) || (100 <= i && i < 1000) || (10000 <= i && i < 1000000)) { ...
using System; using System.Collections.Generic; using System.Linq; public class AtCoderB { static void Main() { int n = int.Parse(Console.ReadLine()); int count = 0; for (int i = 1; i <= n; i++) { if ((1 <= i && i < 10) || (100 <= i && i < 1000) || (10000 <= i && i < 100000)) { c...
[["-", 15, 16, 12, 23, 0, 16, 12, 16, 12, 203], ["+", 15, 16, 12, 23, 0, 16, 12, 16, 12, 203]]
8
106
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main() { Solve(); Console.ReadKey(); } static void Solve() { var N = IO.GetInt(); var ans = 0; if (N < 10) { ans = N; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main() { Solve(); Console.ReadKey(); } static void Solve() { var N = IO.GetInt(); var ans = 0; if (N < 10) { ans = N; ...
[["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 203], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72]]
8
418
2
// ABC136 B - Uneven Numbers // 20190905 using System; using System.Linq; namespace B { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); double OUTPUT = 0; for (int i = 0; i < N; i++) { if (i.ToString().Length % 2 == 1) { OUTPUT++; } } ...
// ABC136 B - Uneven Numbers // 20190905 using System; using System.Linq; namespace B { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); double OUTPUT = 0; for (int i = 1; i <= N; i++) { if (i.ToString().Length % 2 == 1) { OUTPUT++; } } ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
117
4
// ABC136 B - Uneven Numbers // 20190905 using System; using System.Linq; namespace B { class Program { static void Main(string[] args) { // Console.WriteLine("Hello World!"); int N = int.Parse(Console.ReadLine()); double OUTPUT = 0; if (N < 10) { // OUTPUT = (int)(N / 2.0 + 0.5); OUTPU...
// ABC136 B - Uneven Numbers // 20190905 using System; using System.Linq; namespace B { class Program { static void Main(string[] args) { // Console.WriteLine("Hello World!"); int N = int.Parse(Console.ReadLine()); double OUTPUT = 0; if (N < 10) { OUTPUT = N; } else if (N < 100) { O...
[["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 203], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
152
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _136B { class Program { static void Main(string[] args) { string strN = Console.ReadLine(); int n = int.Parse(strN); double ans = 0; int keta = strN.Length; int a = 1; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _136B { class Program { static void Main(string[] args) { string strN = Console.ReadLine(); int n = int.Parse(strN); double ans = 0; int keta = strN.Length; int a = 1; ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
8
176
2
using System; class Task3 { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int len = N.ToString().Length; int ans = 0; for (int i = 0; i < len; i++) { if ((i + 1) % 2 != 0) { ans = 9 * Convert.ToInt32(Math.Pow(10, i)); } else { ans += 0; ...
using System; class Task3 { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int len = N.ToString().Length; int ans = 0; for (int i = 0; i < len; i++) { if ((i + 1) % 2 != 0) { ans += 9 * (Convert.ToInt32(Math.Pow(10, i))); } else { ans += ...
[["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
143
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Solution { public long Proc(string Source) { long n = Source.Length; long src = long.Parse(Source); long number = 0; if (n % 2 == 0) { for (long i = 1; i < n; i += 2) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Solution { public long Proc(string Source) { long n = Source.Length; long src = long.Parse(Source); long number = 0; if (n % 2 == 0) { for (long i = 1; i < n; i += 2) { ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
366
2
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(); long n = sc.intarr[0]; if (n <= 9) { wr.wri(n); } else if (n ...
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(); long n = sc.intarr[0]; if (n <= 9) { wr.wri(n); } else if (n ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
340
6
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { int n = int.Parse(ReadLine()); int ans = 0; for (int i = 0; i < n; i++) { if ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { int n = int.Parse(ReadLine()); int ans = 0; for (int i = 1; i <= n; i++) { if...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
137
4
using System; using System.Linq; using System.Collections.Generic; using static System.Math; using static System.Console; using System.Text; class Program { static void Main(string[] args) { solve(); } static Scanner cin; static int N; static void input() { cin = new Scanner(); N = cin.nextInt(); } ...
using System; using System.Linq; using System.Collections.Generic; using static System.Math; using static System.Console; using System.Text; class Program { static void Main(string[] args) { solve(); } static Scanner cin; static int N; static void input() { cin = new Scanner(); N = cin.nextInt(); } ...
[["-", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
540
2
using System; namespace AtCoderPractice { class Program { static void Main(string[] args) { string[] line = Console.ReadLine().Split(' '); int n = int.Parse(line[0]); // n以下の // 5桁の数 … 10000~99999 90000個 // 3桁の数 … 100~999 900個 // 1桁の数 … 1~9 9個 int result = 0; if (n <= 100) { ...
using System; namespace AtCoderPractice { class Program { static void Main(string[] args) { string[] line = Console.ReadLine().Split(' '); int n = int.Parse(line[0]); // n以下の // 5桁の数 … 10000~99999 90000個 // 3桁の数 … 100~999 900個 // 1桁の数 … 1~9 9個 int result = 0; if (n < 100) { r...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18]]
8
137
4
using System; class ProgramB { static void Main(string[] args) { string input = Console.ReadLine(); int n = int.Parse(input); if (n <= 9) Console.WriteLine(n); else if (n <= 99) Console.WriteLine("9"); else if (n <= 999) Console.WriteLine(n - 90); else if (n <= 9999) C...
using System; class ProgramB { static void Main(string[] args) { string input = Console.ReadLine(); int n = int.Parse(input); if (n <= 9) Console.WriteLine(n); else if (n <= 99) Console.WriteLine("9"); else if (n <= 999) Console.WriteLine(n - 90); else if (n <= 9999) C...
[["-", 75, 57, 75, 57, 75, 57, 15, 16, 12, 203], ["+", 75, 57, 75, 57, 75, 57, 15, 16, 12, 203]]
8
124
2
using System; class B_Uneven { static void Main(string[] args) { double N = double.Parse(Console.ReadLine()); int Score = 0; if (Math.Floor(N / 10) > 0) { Score += 9; if (Math.Floor(N / 1000) > 0) { Score += 900; if (N > 10000) Score += ((int)Math.Floor(N) - 9999); ...
using System; class B_Uneven { static void Main(string[] args) { double N = double.Parse(Console.ReadLine()); int Score = 0; if (Math.Floor(N / 10) > 0) { Score += 9; if (Math.Floor(N / 1000) > 0) { Score += 900; if (N >= 10000) Score += ((int)Math.Floor(N) - 9999); ...
[["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 20]]
8
149
2
using System; using System.Collections.Generic; class ABC { public static void Main() { string str = Console.ReadLine(); List<char> list = new List<char> {}; foreach (char c in str) { list.Add(c); } switch (list.Count) { case 1: Console.WriteLine(Convert.ToString(list[0])); ...
using System; using System.Collections.Generic; class ABC { public static void Main() { string str = Console.ReadLine(); List<char> list = new List<char> {}; foreach (char c in str) { list.Add(c); } switch (list.Count) { case 1: Console.WriteLine(Convert.ToString(list[0])); ...
[["-", 31, 16, 31, 16, 31, 16, 31, 16, 31, 203], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 31, 203]]
8
289
2
using System; namespace AC_5 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); if (A < 10) { Console.WriteLine(A); } else if (10 <= A && A < 100) { Console.WriteLine(9); } else if (100 <= A && A < 1000) { ...
using System; namespace AC_5 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); if (A < 10) { Console.WriteLine(A); } else if (10 <= A && A < 100) { Console.WriteLine(9); } else if (100 <= A && A < 1000) { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
176
2
using System; namespace question2 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int digit = 0; int amari = 0; int[] numbers = new int[7]; int[] all = new int[7]; numbers[0] = 1; numbers[1] = 10; numbers[2] = 100; numbers[3] = 1000; ...
using System; namespace question2 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int digit = 0; int amari = 0; int[] numbers = new int[7]; int[] all = new int[7]; numbers[0] = 1; numbers[1] = 10; numbers[2] = 100; numbers[3] = 1000; ...
[["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33]]
8
259
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace task { class Program { static void Main(string[] args) { bool ifOk = true; int n = Convert.ToInt32(Console.ReadLine()); int[] m = Array.ConvertAll(Console.ReadLine().Split(' '), ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace task { class Program { static void Main(string[] args) { bool ifOk = true; int n = Convert.ToInt32(Console.ReadLine()); int[] m = Array.ConvertAll(Console.ReadLine().Split(' '), ...
[["-", 8, 196, 0, 7, 15, 16, 12, 241, 0, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 241, 0, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]]
8
191
3
using System; using System.IO; class Program { static void Main(string[] args) { var scan = new Scanner(); var writer = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(writer); Console.WriteLine(Solve(scan)); Console.Out.Flush(); } static object So...
using System; using System.IO; class Program { static void Main(string[] args) { var scan = new Scanner(); var writer = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(writer); Console.WriteLine(Solve(scan)); Console.Out.Flush(); } static object So...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203]]
8
385
2
using Atcoder; using System; using System.Collections.Generic; using System.ComponentModel.Design; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); ...
using Atcoder; using System; using System.Collections.Generic; using System.ComponentModel.Design; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); ...
[["+", 0, 57, 75, 57, 64, 196, 0, 37, 0, 38], ["+", 0, 57, 75, 57, 64, 196, 0, 37, 0, 35]]
8
195
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AtCoder { static class Program { static void Main() { //ここから int N = IO.ReadLineToInt(); var H = IO.ReadLineToIntList(); int max = 0; var ans = "Y...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AtCoder { static class Program { static void Main() { //ここから int N = IO.ReadLineToInt(); var H = IO.ReadLineToIntList(); int max = 0; var ans = "Y...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203]]
8
680
2
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { //入力を受け取る int N = int.Parse(Console.ReadLine()); var H = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var re...
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { //入力を受け取る int N = int.Parse(Console.ReadLine()); var H = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var re...
[["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29],...
8
178
8
using System; using System.Text.RegularExpressions; class Program { static void Main(string[] arg) { Console.ReadLine(); string[] tmp = Regex.Split(Console.ReadLine(), @"\s+"); int tmpnum = Convert.ToInt32(tmp[tmp.Length - 1]); int tmpvalue; bool flag = true; for (int i = tmp.Length - 2; i >...
using System; using System.Text.RegularExpressions; class Program { static void Main(string[] arg) { Console.ReadLine(); string[] tmp = Regex.Split(Console.ReadLine(), @"\s+"); int tmpnum = Convert.ToInt32(tmp[tmp.Length - 1]); int tmpvalue; bool flag = true; for (int i = tmp.Length - 2; i >...
[["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]]
8
165
2
using System; using System.Collections.Generic; namespace AtCoder190804_C { class Program { static void Main() { String input1 = Console.ReadLine(); int n = int.Parse(input1); String[] input2 = Console.ReadLine().Split(); var hList = new List<int>(n); for (int i = 0; i < n; i++) { hList.Add...
using System; using System.Collections.Generic; namespace AtCoder190804_C { class Program { static void Main() { String input1 = Console.ReadLine(); int n = int.Parse(input1); String[] input2 = Console.ReadLine().Split(); var hList = new List<int>(n); for (int i = 0; i < n; i++) { hList.Add...
[["-", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["-", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222]]
8
208
4
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { // 整数の入力 int n = int.Parse(Console.ReadLine()); // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); var arr = new List<int>(); foreach (var i in input) { arr.Add(int.Parse(i)); ...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { // 整数の入力 int n = int.Parse(Console.ReadLine()); // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); var arr = new List<int>(); foreach (var i in input) { arr.Add(int.Parse(i)); ...
[["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]]
8
186
4