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; class Program { static void Main(string[] args) { int N = GetInputInt(); int[] input = GetInputsInt(); if (input[0] != 1) input[0]--; for (int i = 1; i < N; i++) { if (in...
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 = GetInputInt(); int[] input = GetInputsInt(); if (input[0] != 1) input[0]--; for (int i = 1; i < N; i++) { if (in...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
295
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp14 { class Class23 { static void Main() { string S = Console.ReadLine(); int[] ans = new int[S.Length]; for (int i = 0; i < S.Length; i++) ans[i] = 0; for (in...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp14 { class Class23 { static void Main() { string S = Console.ReadLine(); int[] ans = new int[S.Length]; for (int i = 0; i < S.Length; i++) ans[i] = 0; for (in...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
266
4
using System; class c { static void Main() { var s = Console.ReadLine(); int n = s.Length; var ans = new int[n]; int cnt = 0; for (int i = 0; i < n; i++) { if (s[i] == 'R') cnt++; else { ans[i - 1] = cnt; cnt = 0; } } for (int i = n - 1; i > 0; i--...
using System; class c { static void Main() { var s = Console.ReadLine(); int n = s.Length; var ans = new int[n]; int cnt = 0; for (int i = 0; i < n; i++) { if (s[i] == 'R') cnt++; else { ans[i - 1] = cnt; cnt = 0; } } for (int i = n - 1; i >= 0; i-...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20]]
8
281
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long bmod = 1000000007; static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long bmod = 1000000007; static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
1,619
4
using System; class ProgramD { static void Main(string[] args) { string input = Console.ReadLine(); int frag_L = 0; int count_R = 0; int count_L = 0; for (int i = 0; i < input.Length; i++) { string s1 = input.Substring(i, 1); if (s1 == "R") { if (frag_L == 1) { in...
using System; class ProgramD { static void Main(string[] args) { string input = Console.ReadLine(); int frag_L = 0; int count_R = 0; int count_L = 0; for (int i = 0; i < input.Length; i++) { string s1 = input.Substring(i, 1); if (s1 == "R") { if (frag_L == 1) { in...
[["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
657
4
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 = CinT(); long[] f = CinLAr(); int c = 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 = CinT(); long[] f = CinLAr(); int c = 0; ...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
775
2
using System; using System.CodeDom.Compiler; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Xml; class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long ans = ((N - 1) * (N - 2)) / 2; Console.WriteLine(ans);...
using System; using System.CodeDom.Compiler; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Xml; class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long ans = ((N - 1) * N) / 2; Console.WriteLine(ans); } }...
[["-", 0, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["-", 31, 23, 0, 16, 12, 23, 0, 16, 17, 33], ["-", 31, 23, 0, 16, 12, 23, 0, 16, 12, 203], ["-", 0, 16, 31, 23, 0, 16, 12, 23, 0, 25]]
8
102
4
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var n = Read().Int(); var ans = (1 + n) * n / 2 - n; WriteRead(ans); } public static ...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var n = Read().Long(); var ans = (1 + n) * n / 2 - n; WriteRead(ans); } public static...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
400
2
using System; using System.Collections.Generic; using System.Linq; class Test { public static void Main() { var n = int.Parse(Console.ReadLine()); long sum = 0; if (n == 1) { sum = 0; } else if (n == 2) { sum = 1; } else sum = (n - 1) * (n) / 2; Console.Write(sum); } }
using System; using System.Collections.Generic; using System.Linq; class Test { public static void Main() { var n = long.Parse(Console.ReadLine()); long sum = 0; if (n == 1) { sum = 0; } else if (n == 2) { sum = 1; } else sum = (n - 1) * (n) / 2; Console.Write(sum); } }...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
93
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()); Console.WriteLine((n - 1) * n / 2); } } }
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace atcoder { class Program { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); Console.WriteLine((n - 1) * n / 2); } } }
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
68
2
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.D { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var N = ReadLong(...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.D { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var N = ReadLong(...
[["-", 8, 196, 0, 37, 0, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 37, 0, 16, 12, 16, 17, 109], ["-", 8, 196, 0, 37, 0, 16, 12, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 12, 203]]
8
220
4
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Library; using static Library.Input; namespace AtCoderTemplate { class ProgramB { static void Main() { int n = NextInt; System.Console.WriteLine(n * (n - 1) / 2); } } } namespace Library { class ...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Library; using static Library.Input; namespace AtCoderTemplate { class ProgramB { static void Main() { long n = NextInt; System.Console.WriteLine(n * (n - 1) / 2); } } } namespace Library { class...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
1,451
2
using System; class c { static void Main() { int n = int.Parse(Console.ReadLine()); Console.WriteLine(n * (n - 1) / 2); } }
using System; class c { static void Main() { var n = long.Parse(Console.ReadLine()); Console.WriteLine(n * (n - 1) / 2); } }
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
43
4
using AtCoderBeginnerContest139.Questions; using AtCoderBeginnerContest139.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace AtCoderBeginnerContest139.Questions { public class QuestionD : AtCoderQuestionBase { public override IEnumerable<...
using AtCoderBeginnerContest139.Questions; using AtCoderBeginnerContest139.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace AtCoderBeginnerContest139.Questions { public class QuestionD : AtCoderQuestionBase { public override IEnumerable<...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
475
4
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace D { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace D { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
120
2
using System; namespace _139d { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); Console.WriteLine((1 + N - 1) * (N - 1) / 2); // long M_total = 0; // // float[] N_array = new float[N]; // for(int i = 0; i < N;i++){ // // N_array[i] = i+1; // ...
using System; namespace _139d { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); Console.WriteLine((1 + N - 1) * (N - 1) / 2); // long M_total = 0; // // float[] N_array = new float[N]; // for(long i = 0; i < N;i++){ // // N_array[i] = i+1; /...
[["-", 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
71
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long bmod = 1000000007; static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long bmod = 1000000007; static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
1,477
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { static class DModSum { static void Main(string[] args) { var n = decimal.Parse(Console.ReadLine()); if (n == 1) { Console.WriteLine(0); Console.ReadLine(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { static class DModSum { static void Main(string[] args) { var n = decimal.Parse(Console.ReadLine()); if (n == 1) { Console.WriteLine(0); Console.ReadLine(); ...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]]
8
103
2
using System; namespace abc139D { class MainClass { public static void Main(string[] args) { int N = Int32.Parse(Console.ReadLine()); int M = N * (N - 1); int L = M / 2; Console.WriteLine(L.ToString()); } } }
using System; namespace abc139D { class MainClass { public static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long M = N * (N - 1); long L = M / 2; Console.WriteLine(L.ToString()); } } }
[["-", 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, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
66
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp10 { class Program { static void MainA(string[] args) { Console.WriteLine( Console.ReadLine() .ToCharArray() .Zip(Console.ReadLine().ToCharArray(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp10 { class Program { static void MainA(string[] args) { Console.WriteLine( Console.ReadLine() .ToCharArray() .Zip(Console.ReadLine().ToCharArray(...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
343
2
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 = in...
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 = in...
[["+", 0, 28, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 0, 25]]
8
59
3
using System; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); Console.WriteLine(N * (N - 1) / 2); } }
using System; class Program { static void Main() { long N = long.Parse(Console.ReadLine()); Console.WriteLine(N * (N - 1) / 2); } }
[["-", 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
43
4
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()); Console.WriteLine(n * (n - 1) / 2); } } }
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) { long n = long.Parse(Console.ReadLine()); Console.WriteLine(n * (n - 1) / 2); } } }
[["-", 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
80
4
using System; using System.Linq; class Program { static void Main(string[] argv) { var r = int.Parse(Console.ReadLine()); r = (r - 1) * r / 2; Console.WriteLine(r); return; } }
using System; using System.Linq; class Program { static void Main(string[] argv) { var r = long.Parse(Console.ReadLine()); r = (r - 1) * r / 2; Console.WriteLine(r); return; } }
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
58
2
using System; using System.Text; using System.Collections.Generic; class Program { const int MOD = (int)1e9 + 7; // const int MOD = (int) 998244353; const int INT_MAX = 2147483647; static void Main(string[] args) { int n = Scan.Int(); long ans = n * (n - 1) / 2; Out.Ln(ans); } } public class Sc...
using System; using System.Text; using System.Collections.Generic; class Program { const int MOD = (int)1e9 + 7; // const int MOD = (int) 998244353; const int INT_MAX = 2147483647; static void Main(string[] args) { long n = Scan.Long(); long ans = n * (n - 1) / 2; Out.Ln(ans); } } public class ...
[["-", 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, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
2,964
4
using System; using System.Text.RegularExpressions; namespace ConsoleApp3 { class Program { static void Main(string[] args) { double num = Convert.ToDouble(Console.ReadLine()); num -= 1; Console.WriteLine(num * (num + 1) / 2); } } }
using System; using System.Text.RegularExpressions; namespace ConsoleApp3 { class Program { static void Main(string[] args) { decimal num = Convert.ToDecimal(Console.ReadLine()); num -= 1; Console.WriteLine(num * (num + 1) / 2); } } }
[["-", 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, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
62
4
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); if (n == 1) { Console.WriteLine(0); goto exit; } long ans = (n + 1) * (n - 2) / 2 + 1; Console.WriteLine(ans); exit:; } }
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); if (n == 1) { Console.WriteLine(0); goto exit; } long ans = (n + 1L) * (n - 2L) / 2L + 1L; Console.WriteLine(ans); exit:; } }
[["-", 31, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, ...
8
81
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProblemD { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var ret = 0; if (N != 1) { // ret = 1 + (((N - 1) + 2) * (N - 2)) / 2; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProblemD { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); long ret = 0; if (N != 1) { // ret = 1 + (((N - 1) + 2) * (N - 2)) / 2; ...
[["-", 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, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
93
4
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); decimal sum = N * (N - 1) / 2; Console.WriteLine(sum); } } }
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { var N = decimal.Parse(Console.ReadLine()); decimal sum = N * (N - 1) / 2; Console.WriteLine(sum); } } }
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
68
2
using System; class Program { static void Main(string[] args) {   int n, b; n = int.Parse(Console.ReadLine()); Console.WriteLine(n * (n - 1) / 2); } }
using System; class Program { static void Main(string[] args) {   long n, b; n = long.Parse(Console.ReadLine()); Console.WriteLine(n * (n - 1) / 2); } }
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199]]
8
52
4
using System; namespace pro { class MainClass { public static void Main() { int n = int.Parse(Console.ReadLine()); int x = n * (n - 1) / 2; Console.WriteLine(x); } } }
using System; namespace pro { class MainClass { public static void Main() { long n = int.Parse(Console.ReadLine()); long x = n * (n - 1) / 2; Console.WriteLine(x); } } }
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
53
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace AtCoder { class Program { static int n; static void Main(string[] args) { n = int.Parse(Console.ReadLine()); long ans = n * (n - 1) / 2; /...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace AtCoder { class Program { static long n; static void Main(string[] args) { n = long.Parse(Console.ReadLine()); long ans = n * (n - 1) / 2; ...
[["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199]]
8
93
4
using System; using System.Linq; public class Test { public static void Main() { // your code goes here long n = long.Parse(Console.ReadLine()); long ans = (n * (n - 1) / 2) + 1; Console.WriteLine(ans); } }
using System; using System.Linq; public class Test { public static void Main() { // your code goes here long n = long.Parse(Console.ReadLine()); long ans = n * (n - 1) / 2; Console.WriteLine(ans); } }
[["-", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["-", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
60
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace A { class Program { /// <summary> /// The main entry point for the application /// </summary> [STAThread] public static void Main(string[] args) { string str = Console.ReadLine(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace A { class Program { /// <summary> /// The main entry point for the application /// </summary> [STAThread] public static void Main(string[] args) { string str = Console.ReadLine(...
[["-", 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
91
4
using System; using System.Linq; public class Test { public static void Main() { int N = int.Parse(Console.ReadLine().Trim()); int answer = (N * (N - 1)) / 2; Console.WriteLine(answer); } }
using System; using System.Linq; public class Test { public static void Main() { long N = long.Parse(Console.ReadLine().Trim()); long answer = (N * (N - 1)) / 2; Console.WriteLine(answer); } }
[["-", 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
61
6
using System; namespace ConsoleApp2 { class Program { static void Main(string[] args) { // input int N = Convert.ToInt32(Console.ReadLine()); Console.WriteLine((N - 1) * N / 2); } } }
using System; namespace ConsoleApp2 { class Program { static void Main(string[] args) { // input long N = Convert.ToInt32(Console.ReadLine()); Console.WriteLine((N - 1) * N / 2); } } }
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
52
2
using System; namespace ConsoleApp4 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int m = n - 1; int ret = (1 + m) * m / 2; Console.WriteLine(ret); } } }
using System; namespace ConsoleApp4 { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); long m = n - 1; long ret = (1 + m) * m / 2; Console.WriteLine(ret); } } }
[["-", 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
63
8
using System; namespace abc139_d { static class Program { static void Main(string[] args) { var n = Console.ReadLine().ToInteger(); // 9 % 1 = 0 // 8 % 9 = 8 // 7 % 8 = 7 // : // 2 % 3 = 2 // 1 % 2 = 1 // 8 7 6 5 4 3 2 1 // (8 + 1) * 4 // 7 6 5 4 3 2 1 // (7 + 1) * 3 + 4...
using System; namespace abc139_d { static class Program { static void Main(string[] args) { var n = Console.ReadLine().ToLong(); // 9 % 1 = 0 // 8 % 9 = 8 // 7 % 8 = 7 // : // 2 % 3 = 2 // 1 % 2 = 1 // 8 7 6 5 4 3 2 1 // (8 + 1) * 4 // 7 6 5 4 3 2 1 // (7 + 1) * 3 + 4 ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["-", 8, 196, 0, 37, 0, 213, ...
8
90
8
using System; using System.Collections.Generic; namespace abc139_d { class Program { static void Main(string[] args) { var n = CIn.ReadInt(); Console.WriteLine(n * (n - 1) / 2); } } class CIn { private static readonly Queue<string> fieldBuffer = new Queue<string>(); public static string Read() { ...
using System; using System.Collections.Generic; namespace abc139_d { class Program { static void Main(string[] args) { var n = CIn.ReadInt(); Console.WriteLine((long)n * (n - 1) / 2); } } class CIn { private static readonly Queue<string> fieldBuffer = new Queue<string>(); public static string Read()...
[["+", 0, 28, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 0, 25]]
8
367
3
using System; class D { static void Main() { var n = int.Parse(Console.ReadLine()); Console.WriteLine(n * (n - 1) / 2); } }
using System; class D { static void Main() { var n = long.Parse(Console.ReadLine()); Console.WriteLine(n * (n - 1) / 2); } }
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
43
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { void Solve() { var N = ToInts()[0]; Console.WriteLine(N * (N - 1) / 2); ; } static int[] ToInts() { var ss = Console.ReadLine().Split(); var ret = new /**/ int[ss...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { void Solve() { var N = ToInts()[0]; Console.WriteLine((long)N * (N - 1) / 2); ; } static int[] ToInts() { var ss = Console.ReadLine().Split(); var ret = new /**/ ...
[["+", 0, 28, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 0, 25]]
8
154
3
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22]]
8
453
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner sc = new Scaner(); write wr = new write();...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner sc = new Scaner(); write wr = new write();...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
932
4
using System; using System.Collections.Generic; namespace ConsoleApp1 { class Program { static void Main(string[] args) { // 各種変数の読み込み var n = int.Parse(Console.ReadLine()); Console.WriteLine(n * (n - 1) / 2); #if DEBUG Console.ReadKey(); #endif } } }
using System; using System.Collections.Generic; namespace ConsoleApp1 { class Program { static void Main(string[] args) { // 各種変数の読み込み var n = int.Parse(Console.ReadLine()); Console.WriteLine(((long)n) * (n - 1) / 2); #if DEBUG Console.ReadKey(); #endif } } }
[["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 74, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 74, 39, 199], ["+", 0, 16, 31, 16, 31, 23, 0, 74, 0, 25], ["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 25]]
8
70
5
using System; namespace D { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); Console.WriteLine(N * (N - 1) / 2); } } }
using System; namespace D { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); Console.WriteLine(N * (N - 1) / 2); } } }
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
51
2
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; using static MyIO; public class D { public static void Main() => (new Solver()).Solve(); } public class Solver { public void Solve() { int N = GetInt(); Console.WriteLine((N * (N - 1)) / 2); }...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; using static MyIO; public class D { public static void Main() => (new Solver()).Solve(); } public class Solver { public void Solve() { long N = GetInt(); Console.WriteLine((N * (N - 1)) / 2); ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
372
2
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); double[][] A = new double [N][]; var list1 = new List<int>(); var list2 = new List<int>(); var list3 = new List<int>(); var list4 = new List<int>(); for ...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); double[][] A = new double [N][]; var list1 = new List<int>(); var list2 = new List<int>(); var list3 = new List<int>(); var list4 = new List<int>(); for ...
[["-", 31, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 31, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["-", 12, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 204, 205, 204, 206, 207, 0, 28, 0, 22]]
8
636
8
using System; class a { public static void Main() { string[] str = Console.ReadLine().Split(' '); int m = int.Parse(str[0]); int d = int.Parse(str[1]); int d10 = 0; while (d >= 10) { d -= 10; d10++; } int d1 = d; int count = 0; for (int i = 2; i < d10; i++) { for...
using System; class a { public static void Main() { string[] str = Console.ReadLine().Split(' '); int m = int.Parse(str[0]); int d = int.Parse(str[1]); int d10 = 0; while (d >= 10) { d -= 10; d10++; } int d1 = d; int count = 0; for (int i = 2; i < d10; i++) { for...
[["-", 8, 196, 0, 7, 15, 16, 31, 16, 17, 18], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 19]]
8
179
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { int[] s = ReadLine().Split(' ').Select(int.Parse).ToArray(); int m =...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { int[] s = ReadLine().Split(' ').Select(int.Parse).ToArray(); int m =...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
176
2
using System; using System.Text; using System.Linq; class AtCoder { static void Main() { int seki = 0; string[] tmp = Console.ReadLine().Split(); int m = int.Parse(tmp[0]); int d = int.Parse(tmp[1]); for (int cnt1 = 1; cnt1 <= m; cnt1++) { for (int cnt2 = 1; cnt2 < d; cnt2++) { if (...
using System; using System.Text; using System.Linq; class AtCoder { static void Main() { int seki = 0; string[] tmp = Console.ReadLine().Split(); int m = int.Parse(tmp[0]); int d = int.Parse(tmp[1]); for (int cnt1 = 1; cnt1 <= m; cnt1++) { for (int cnt2 = 1; cnt2 <= d; cnt2++) { if ...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
155
2
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { static List<int> Divisor(int input) { List<int> result = new List<int>(); for (int i = 1; i * i <= input; i++) { if (0 == input % i) { result.Add(i)...
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { static List<int> Divisor(int input) { List<int> result = new List<int>(); for (int i = 1; i * i <= input; i++) { if (0 == input % i) { result.Add(i)...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 98]]
8
263
6
using System; namespace A___Takahashi_Calendar { class Program { static void Main(string[] args) { var MD = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var count = 0; for (int m = 1; m <= MD[0]; m++) { for (int d = 22; d < MD[1]; d++) { var d1 = d % 10; var d10 = d /...
using System; namespace A___Takahashi_Calendar { class Program { static void Main(string[] args) { var MD = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var count = 0; for (int m = 1; m <= MD[0]; m++) { for (int d = 22; d <= MD[1]; d++) { var d1 = d % 10; var d10 = d ...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
130
2
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; public class Solver { public void Solve() { int m = ri, d = ri; int p = 0; for (int i = 1; i <= m; i++) { for (int j = 22; j <= d; j++) { if (j % 10 >= 2 && i == (j ...
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; public class Solver { public void Solve() { int m = ri, d = ri; int p = 0; for (int i = 1; i <= m; i++) { for (int j = 22; j <= d; j++) { if (j % 10 >= 2 && i == (j ...
[["-", 12, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 12, 203]]
8
1,515
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; public class Hello { public static void Main() { int[] read = inta(); int[] list = inta(); int fir = 0; int sec = 0; for (int i = 0; i < read[0]; i++...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; public class Hello { public static void Main() { long[] read = longa(); int[] list = inta(); long fir = 0; long sec = 0; for (int i = 0; i < read[0];...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
758
8
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { var RL = Console.ReadLine().Trim().Split().Select(long.Parse).ToArray(); var N = RL[0]; var K = RL[1]; var A = Console.ReadLine().Trim().Split().Select(lo...
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { var RL = Console.ReadLine().Trim().Split().Select(long.Parse).ToArray(); var N = RL[0]; var K = RL[1]; var A = Console.ReadLine().Trim().Split().Select(lo...
[["+", 0, 16, 12, 23, 0, 16, 31, 16, 17, 85], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 12, 203], ["-", 0, 212, 0, 16, 31, 23, 0, 16, 17, 85], ["-", 0, 212, 0, 16, 31, 23, 0, 16, 12, 203]]
8
263
4
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
[["+", 31, 23, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 17, 109], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 12, 22], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25]]
8
253
4
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
[["+", 0, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25]]
8
312
2
using System; public class Hello { public static int MOD = 1000000007; static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var k = int.Parse(line[1]); var s = Console.ReadLine().Trim(); line = s.Split(' '); var a = Array.ConvertAll(line, in...
using System; public class Hello { public static int MOD = 1000000007; static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var k = int.Parse(line[1]); var s = Console.ReadLine().Trim(); line = s.Split(' '); var a = Array.ConvertAll(line, in...
[["-", 0, 200, 0, 212, 0, 16, 31, 16, 31, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22]]
8
438
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { const long MOD = 1000000007; static void Main(string[] args) { Scanner cin = new Scanner(); long n = cin.Long(); long k = cin.Long(); long[...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { const long MOD = 1000000007; static void Main(string[] args) { Scanner cin = new Scanner(); long n = cin.Long(); long k = cin.Long(); long[...
[["-", 0, 16, 31, 16, 31, 23, 0, 16, 17, 48], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 109]]
8
664
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { string[] p2 = Console.ReadLine().Split(' '); int N = int.Parse(p2[0]); int K = int.Parse(p2[1]); string[] As = Console.ReadLine().Split(' '); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { string[] p2 = Console.ReadLine().Split(' '); int N = int.Parse(p2[0]); int K = int.Parse(p2[1]); string[] As = Console.ReadLine().Split(' '); ...
[["+", 12, 16, 31, 23, 0, 16, 31, 74, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 31, 74, 39, 199], ["+", 12, 16, 31, 23, 0, 16, 31, 74, 0, 25]]
8
320
3
using System; namespace B___Kleene_Inversion { class Program { static void Main(string[] args) { var NK = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var N = NK[0]; var K = NK[1]; var A = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var MOD = 1000000007; var ...
using System; namespace B___Kleene_Inversion { class Program { static void Main(string[] args) { var NK = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var N = NK[0]; var K = NK[1]; var A = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var MOD = 1000000007; var ...
[["+", 0, 16, 12, 23, 0, 16, 31, 16, 17, 85], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 12, 203], ["-", 0, 16, 12, 16, 31, 23, 0, 16, 17, 85], ["-", 0, 16, 12, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
287
6
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using System.Runtime.CompilerServices; using static MyUtil; class MyUtil { public static int[] ReadIntArray() { return ReadLine().Split().Select(x => int.Parse(x)).ToArray(); } } class Program { public static voi...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using System.Runtime.CompilerServices; using static MyUtil; class MyUtil { public static int[] ReadIntArray() { return ReadLine().Split().Select(x => int.Parse(x)).ToArray(); } } class Program { public static voi...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 212, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 31, 16, 31, 23, 0, 16, 12, 23, 0, 25]]
8
233
6
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { private const int M = 1000000007; // 素数(int範囲) static int N; static int K; static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); N ...
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { private const long M = 1000000007; // 素数(int範囲) static int N; static int K; static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); N...
[["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 287, 0, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 287, 0, 196, 0, 197, 0, 198, 39, 199]]
8
313
8
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { partial class Program { static void Main(string[] args) { //↓ var nk = ReadIntArray(); var n = nk[0]; long k = nk[1]; var aas = ReadIntArray(); var p = 1000000000 + 7; var l = new List<int>(); l...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { partial class Program { static void Main(string[] args) { //↓ var nk = ReadIntArray(); var n = nk[0]; long k = nk[1]; var aas = ReadIntArray(); var p = 1000000000 + 7; var l = new List<int>(); l...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
988
2
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp11 { class Class35 { static void Main() { int N = int.Parse(Console.ReadLine()); Dictionary<string, int> Table = new Dictionary<string, int>(); for (int i = 0; i < N; i++) { string read = string.Join(""...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp11 { class Class35 { static void Main() { int N = int.Parse(Console.ReadLine()); Dictionary<string, long> Table = new Dictionary<string, long>(); for (int i = 0; i < N; i++) { string read = string.Join(...
[["-", 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
165
4
using System; using System.Collections.Generic; using System.Linq; using System.Diagnostics; class Program { static void Main(string[] args) { const long MOD = 1000000007; var sc = new Scanner(); int n = sc.nextInt(); var s = new Dictionary<string, int>(); for (int i = 0; i < n; i++) { char...
using System; using System.Collections.Generic; using System.Linq; using System.Diagnostics; class Program { static void Main(string[] args) { const long MOD = 1000000007; var sc = new Scanner(); int n = sc.nextInt(); var s = new Dictionary<string, long>(); for (int i = 0; i < n; i++) { cha...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
576
2
using System; using System.Collections.Generic; namespace CSharp { class Program { public static void Main() { var N = int.Parse(Console.ReadLine()); var dic = new Dictionary<string, int>(); var result = 0; for (int i = 0; i < N; i++) { var s = Console.ReadLine(); var array = s.ToCharAr...
using System; using System.Collections.Generic; namespace CSharp { class Program { public static void Main() { var N = int.Parse(Console.ReadLine()); var dic = new Dictionary<string, int>(); long result = 0; for (int i = 0; i < N; i++) { var s = Console.ReadLine(); var array = s.ToCharA...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
148
2
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"); WillReturn.Add("acornistnt"); WillRetu...
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"); WillReturn.Add("acornistnt"); WillRetu...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 287, 0, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 287, 0, 196, 0, 197, 0, 198, 39, 199]]
8
439
4
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var sArray = new string[n]; for (var i = 0; i < n; i++) { var arr = Console.ReadLine().ToArray(); Array.So...
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var sArray = new string[n]; for (var i = 0; i < n; i++) { var arr = Console.ReadLine().ToArray(); Array.So...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 210, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 1, 0, 11, 12, 16, 12, 74, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 12, 74, 39, 199], ["+", 0, 1, 0, 11, 12, 16, 12, 74, 0, 25]]
8
177
5
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 n = cin.nextInt(); var dict = new Dictiona...
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 n = cin.nextInt(); var dict = new Dictiona...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
705
4
using System; using System.Linq; using System.Collections.Generic; class Program { public static void Main() { int N = Int32.Parse(Console.ReadLine()); string[] stList = new string[N]; Dictionary<string, int> checkList = new Dictionary<string, int>(); for (int i = 0; i < N; i++) { stList[i] =...
using System; using System.Linq; using System.Collections.Generic; class Program { public static void Main() { long N = long.Parse(Console.ReadLine()); string[] stList = new string[N]; Dictionary<string, long> checkList = new Dictionary<string, long>(); for (int i = 0; i < N; i++) { stList[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, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 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...
8
196
10
using System; using System.Collections.Generic; using System.Globalization; namespace AtCoder { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); Dictionary<string, int> dic = new Dictionary<string, int>(); long cnt = 0L; for (int i = 0; i < n; i++) { c...
using System; using System.Collections.Generic; using System.Globalization; namespace AtCoder { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); Dictionary<string, int> dic = new Dictionary<string, int>(); long cnt = 0L; for (int i = 0; i < n; i++) { c...
[["-", 0, 210, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 210, 8, 196, 0, 197, 0, 198, 39, 199]]
8
185
2
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { int N = int.Parse(Console.ReadLine().Trim()); // List<string> str = new List<string>(); var str = new Dictionary<string, int>(); // string[] str = new string[N]; int count = 0; for (var i ...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { int N = int.Parse(Console.ReadLine().Trim()); var str = new Dictionary<string, long>(); long count = 0; for (var i = 0; i < N; i++) { string s = Console.ReadLine().Trim(); char[] c = n...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
176
4
using System; using System.Collections.Generic; class project { static void Main() { int num = int.Parse(Console.ReadLine()); var result = new Dictionary<string, int>(); for (int i = 1; i < num + 1; i++) { char[] input = Console.ReadLine().ToCharArray(); Array.Sort(input); string sort...
using System; using System.Collections.Generic; class project { static void Main() { int num = int.Parse(Console.ReadLine()); var result = new Dictionary<string, long>(); for (long i = 1; i < num + 1; i++) { char[] input = Console.ReadLine().ToCharArray(); Array.Sort(input); string so...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 39, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 39, 199]]
8
174
6
using System; using System.Collections.Generic; using System.Linq; namespace C { class Program { static void Main(string[] args) { int N = Convert.ToInt32(Console.ReadLine()); string[] S = new string[N]; for (var i = 0; i < N; i++) { char[] c = Console.ReadLine().ToCharArray(); Array.Sort(c);...
using System; using System.Collections.Generic; using System.Linq; namespace C { class Program { static void Main(string[] args) { int N = Convert.ToInt32(Console.ReadLine()); string[] S = new string[N]; for (var i = 0; i < N; i++) { char[] c = Console.ReadLine().ToCharArray(); Array.Sort(c);...
[["-", 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], ["-", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["-", 0, 195, 8, 196, 0, 197,...
8
225
10
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { cin = new Scanner(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { cin = new Scanner(); ...
[["-", 75, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 75, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
791
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner sc = new Scaner(); write wr = new write();...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner sc = new Scaner(); write wr = new write();...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 23, 0, 24], ["+", 8, 196, 0, 1, 0, 11, 12, 23, 0, 25]]
8
370
4
using System; using System.Collections.Generic; using System.Linq; class Procon { public Procon() {} static void Main(string[] agrs) { new Procon().Do(); } Scanner cin; public void Do() { cin = new Scanner(); int N = cin.nextInt(); Dictionary<string, int> dict = new Dictionary<string, int>(); ...
using System; using System.Collections.Generic; using System.Linq; class Procon { public Procon() {} static void Main(string[] agrs) { new Procon().Do(); } Scanner cin; public void Do() { cin = new Scanner(); int N = cin.nextInt(); Dictionary<string, long> dict = new Dictionary<string, long>();...
[["-", 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, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199]]
8
639
6
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Console; namespace ConsoleApplication1 { internal class Program { public static void Main(string[] args) { var n = int.Parse(ReadLine()); var dic = new Dictionary<string, int>(); var cnt = 0; for (...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Console; namespace ConsoleApplication1 { internal class Program { public static void Main(string[] args) { var n = int.Parse(ReadLine()); var dic = new Dictionary<string, int>(); var cnt = 0l; for ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
158
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { int ct = int.Parse(Console.ReadLine()); Dictionary<string, int> string_set = new Dictionary<string, int>(); for (var i = 0; i < ct; i++) { string s = Console.ReadLine(); var ss ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { int ct = int.Parse(Console.ReadLine()); Dictionary<string, int> string_set = new Dictionary<string, int>(); for (var i = 0; i < ct; i++) { string s = Console.ReadLine(); var ss ...
[["+", 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
183
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC137 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); List<string> s = new List<string>(); for (int i = 0; i < n; i++) { var p = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC137 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); List<string> s = new List<string>(); for (int i = 0; i < n; i++) { var p = ...
[["-", 0, 218, 8, 312, 0, 213, 63, 214, 141, 22], ["+", 0, 218, 8, 312, 0, 213, 63, 214, 141, 22]]
8
190
2
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { partial class Program { static void Main(string[] args) { //↓ var n = int.Parse(Console.ReadLine()); long total = 0; var dict = new Dictionary<string, int>(); for (int i = 0; i < n; i++) { var s = Cons...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { partial class Program { static void Main(string[] args) { //↓ var n = int.Parse(Console.ReadLine()); long total = 0; var dict = new Dictionary<string, int>(); for (int i = 0; i < n; i++) { var s = Cons...
[["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 212, 0, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 12, 23, 0, 16, 31, 74, 39, 199], ["+", 31, 16, 12, 23, 0, 16, 31, 74, 0, 25]]
8
181
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { //入力 long N = long.Parse(Console.ReadLine()); string[] s = new string[N]; string[] joinString = new string[N]; for (long i = 0; i <...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { //入力 long N = long.Parse(Console.ReadLine()); string[] s = new string[N]; string[] joinString = new string[N]; for (long i = 0; i <...
[["-", 12, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 12, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
295
4
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; namespace C_ABC137 { class MainClass { static int[] s; public static void Main(string[] args) { s = Array.ConvertAll(ReadLine().Split().ToArray(), int.Parse); var sl = new List<string...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; namespace C_ABC137 { class MainClass { static int[] s; public static void Main(string[] args) { s = Array.ConvertAll(ReadLine().Split().ToArray(), int.Parse); var sl = new List<string...
[["+", 12, 16, 31, 23, 0, 16, 31, 74, 39, 199], ["+", 12, 16, 31, 23, 0, 16, 31, 74, 0, 25], ["+", 31, 23, 0, 16, 31, 74, 51, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 74, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 74, 39, 199], ["+", 12, 16, 31, 23, 0, 16, 12, 74, 0, 25]]
8
396
6
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static Library.Comfort; using static Library.Math; using static Library.Algorithm; using static System.Math; namespace AtCoderer { public class App { public static void Solve() { Hashtable h = new Hashtable(); ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static Library.Comfort; using static Library.Math; using static Library.Algorithm; using static System.Math; namespace AtCoderer { public class App { public static void Solve() { Hashtable h = new Hashtable(); ...
[["-", 0, 195, 8, 196, 0, 37, 0, 16, 17, 109], ["-", 0, 195, 8, 196, 0, 37, 0, 16, 12, 203]]
8
2,088
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC137_C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var dic = new Dictionary<string, int>(); for (int i = 0; i < N; i++) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC137_C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var dic = new Dictionary<string, long>(); for (int i = 0; i < N; i++) { ...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
193
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; namespace Contest { class Program { static void Main(string[] args) { int n = Convert.ToInt32(Console.ReadLine()); List<string> ls = new List<string>(); int kq = 0; while (n-- > 0) { ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; namespace Contest { class Program { static void Main(string[] args) { int n = Convert.ToInt32(Console.ReadLine()); List<string> ls = new List<string>(); int kq = 0; while (n-- > 0) { ...
[["+", 0, 218, 8, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 218, 8, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 218, 8, 16, 31, 16, 31, 74, 0, 25]]
8
172
3
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace ABC137 { class Program3 { static void Main() { var N = int.Parse(Console.ReadLine()); var s = new string[N]; for (int i = 0; i < N; i++) { s[i] = Console.ReadLine(); } var dic = new Dictionary<s...
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace ABC137 { class Program3 { static void Main() { var N = int.Parse(Console.ReadLine()); var s = new string[N]; for (int i = 0; i < N; i++) { s[i] = Console.ReadLine(); } var dic = new Dictionary<s...
[["+", 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], ["+", 0, 11, 12, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 12, 23, 0, 16, 31, 74, 39, 199], ["+", 31, 16, 12, 23, 0, 16, 31, 74, 0, 25]]
8
208
6
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(...
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
2,544
2
using System; using System.Linq; namespace ABC137C { class Program { static void Main(string[] args) { int N = CIN.Int(); string[] S = new string[N]; for (int i = 0; i < N; i++) { char[] A = CIN.String().ToCharArray(); Array.Sort(A); S[i] = new string(A); } Array.Sort(S); s...
using System; using System.Linq; namespace ABC137C { class Program { static void Main(string[] args) { long N = CIN.Int(); string[] S = new string[N]; for (int i = 0; i < N; i++) { char[] A = CIN.String().ToCharArray(); Array.Sort(A); S[i] = new string(A); } Array.Sort(S); ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
364
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; // namespaceの値をコンテスト名にして運用 namespace ABC137D { class Input { /// <summary> /// 1行の入力を取得する /// </summary> /// <returns>文字列</returns> public string String() { return Console.ReadLine(); } /// <summary> /// 複数行の入力を...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; // namespaceの値をコンテスト名にして運用 namespace ABC137D { class Input { /// <summary> /// 1行の入力を取得する /// </summary> /// <returns>文字列</returns> public string String() { return Console.ReadLine(); } /// <summary> /// 複数行の入力を...
[["-", 0, 198, 39, 236, 237, 238, 0, 236, 141, 22], ["+", 0, 198, 39, 236, 237, 238, 0, 236, 141, 22], ["-", 0, 230, 39, 236, 237, 238, 0, 236, 141, 22], ["+", 0, 230, 39, 236, 237, 238, 0, 236, 141, 22], ["-", 3, 4, 0, 28, 0, 230, 39, 236, 141, 22], ["+", 3, 4, 0, 28, 0, 230, 39, 236, 141, 22]]
8
1,377
6
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { var nm = Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray(); var N = nm[0]; var M = nm[1]; var list = new List<int[]>(); var listCount = 0; for (int i = 0; i...
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { var nm = Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray(); var N = nm[0]; var M = nm[1]; var list = new List<int[]>(); var listCount = 0; for (int i = 0; i...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
403
2
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Text; class Procon { static void Main(string[] agrs) { int N = Int(); int M = Int(); var tuples = new List<Tuple<int, int>>(); for (int i = 0; i ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Text; class Procon { static void Main(string[] agrs) { int N = Int(); int M = Int(); var tuples = new List<Tuple<int, int>>(); for (int i = 0; i ...
[["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]]
8
926
2
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC137E_2 { class Program { static void Main(string[] args) { var N = RInt; var M = RInt; var P = RInt; BellmanFord bf = new BellmanFord(N); f...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC137E_2 { class Program { static void Main(string[] args) { var N = RInt; var M = RInt; var P = RInt; BellmanFord bf = new BellmanFord(N); f...
[["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]]
8
1,159
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { Scanner cin = new Scanner(); int n = cin.Int(); int m = cin.Int(); int p = cin.Int(); var bf = new Bel...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { Scanner cin = new Scanner(); int n = cin.Int(); int m = cin.Int(); int p = cin.Int(); var bf = new Bel...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]]
8
1,303
2
using System; using System.Linq; namespace Sample { class Sample { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int A = int.Parse(str[0]); int B = int.Parse(str[1]); int C = int.Parse(str[2]); if ((A - B) >= C) { Console.WriteLine(C); } else { Con...
using System; using System.Linq; namespace Sample { class Sample { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int A = int.Parse(str[0]); int B = int.Parse(str[1]); int C = int.Parse(str[2]); if ((A - B) >= C) { Console.WriteLine(0); } else { Con...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
119
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; public class Hello { public static void Main() { int[] read = inta(); WriteLine(read[2] - read[0] + read[1]); } //各種読取 static string rstr() { return ReadLi...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; public class Hello { public static void Main() { int[] read = inta(); WriteLine(Max(read[2] - read[0] + read[1], 0)); } //各種読取 static string rstr() { retur...
[["+", 0, 213, 3, 4, 0, 28, 0, 213, 63, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
595
5
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC136A { class Program { static void Main(string[] args) { int a, b, c, d; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c = i...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC136A { class Program { static void Main(string[] args) { int a, b, c, d; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c = i...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
144
4
#if true && UTAKA_LOCAL //#if false #define UTAKA_DEBUG #endif using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Net.Mime; using System.Text; namespace UtakaApp { public partial cl...
#if true && UTAKA_LOCAL //#if false #define UTAKA_DEBUG #endif using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Net.Mime; using System.Text; namespace UtakaApp { public partial cl...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
1,174
2
// ABC136 A - Transfer // 20190905 using System; using System.Linq; namespace A { class Program { static void Main(string[] args) { // Console.WriteLine("Hello World!"); var INPUT = Console.ReadLine().Split().Select(int.Parse).ToArray(); int A = INPUT[0]; int B = INPUT[1]; int C = INPUT[2]; ...
// ABC136 A - Transfer // 20190905 using System; using System.Linq; namespace A { class Program { static void Main(string[] args) { // Console.WriteLine("Hello World!"); var INPUT = Console.ReadLine().Split().Select(int.Parse).ToArray(); int A = INPUT[0]; int B = INPUT[1]; int C = INPUT[2]; ...
[["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 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, 203]]
8
96
6