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.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, 124, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 0, 263, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 263, 8, 196, 0, 1, 0, 11, 12, 22]...
8
725
12
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; class Program { static void Main(string[] args) { var wrong_answer = new wrong_answer(); wrong_answer.Solve(); } } public class wrong_answer { const int INF = 1 << 3...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; class Program { static void Main(string[] args) { var wrong_answer = new wrong_answer(); wrong_answer.Solve(); } } public class wrong_answer { const int INF = 1 << 3...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 214, 205, 204, 205, 22], ["-", 0, 28, 0, 214, 205, 204, 206, 207, 0, 70], ["-", 0, 214, 205, 204, 206, 207, 0, 28, ...
8
1,455
12
using System; using System.Collections.Generic; using System.Linq; namespace ABC137_D___Summer_Vacation { class Program { static void Main(string[] args) { var NM = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = NM[0]; var M = NM[1]; var jobs = new List<int>[M + 1]; for (int...
using System; using System.Collections.Generic; using System.Linq; namespace ABC137_D___Summer_Vacation { class Program { static void Main(string[] args) { var NM = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = NM[0]; var M = NM[1]; var jobs = new List<int>[M + 1]; for (int...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, ...
8
639
9
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace ABC137_D { class Program { static void Main(string[] args) { var NM = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); var N = NM[0]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace ABC137_D { class Program { static void Main(string[] args) { var NM = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); var N = NM[0]; ...
[["+", 0, 230, 3, 4, 0, 28, 0, 211, 0, 146], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 7...
8
698
17
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { struct Edge { public int From, To, Cost; } public void Run() { var n = ni(); var m = ni(); var p = ni(); var adj =...
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { struct Edge { public int From, To, Cost; } public void Run() { var n = ni(); var m = ni(); var p = ni(); var adj =...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 214, ...
8
1,205
16
using Training20200530.Questions; using Training20200530.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Training20200530.Algorithms; namespace Training20200530.Questions { /// <summary> /// https://atcoder.jp/contests/abc137/tasks/abc137_e ...
using Training20200530.Questions; using Training20200530.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Training20200530.Algorithms; namespace Training20200530.Questions { /// <summary> /// https://atcoder.jp/contests/abc137/tasks/abc137_e ...
[["-", 0, 213, 3, 4, 0, 28, 0, 230, 0, 228], ["-", 0, 213, 3, 4, 0, 28, 0, 230, 39, 22], ["-", 3, 4, 0, 28, 0, 230, 3, 4, 0, 24], ["-", 0, 28, 0, 230, 3, 4, 0, 28, 0, 258], ["-", 3, 4, 0, 28, 0, 230, 3, 4, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["+", 0, 213, 3, ...
8
1,553
24
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; static class CodeJam { class Edge { public readonly int A; public readonly int B; public readonly int C; public Edge(int[] args) { A = args[0] - 1; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; static class CodeJam { class Edge { public readonly int A; public readonly int B; public readonly int C; public Edge(int[] args) { A = args[0] - 1; ...
[["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 25], ["-", 0, 210, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["-", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 21...
8
600
31
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC137E_2 { class Program { public static void Solve(Input input) { var n = input.NextInt(); var m = input.NextInt(); var p = input.NextInt(...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC137E_2 { class Program { public static void Solve(Input input) { var n = input.NextInt(); var m = input.NextInt(); var p = input.NextInt(...
[["+", 0, 235, 8, 201, 0, 124, 0, 251, 0, 259], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 8, 201, 0, 235, 8, 201, 0, 124, 0, 35], ["-", 0, 1, 0, 11, 31, 214, 205, 273,...
8
1,567
29
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class Contest { const long MOD1 = 1000000007L; // 10^9+7 public static void Main() { int n, m, p; VT<int, int, int>[] abcl; MyIO.ReadMulti(out n, out m, out p); MyIO.ReadLines(m, out abcl); VT<int, i...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class Contest { const long MOD1 = 1000000007L; // 10^9+7 public static void Main() { int n, m, p; VT<int, int, int>[] abcl; MyIO.ReadMulti(out n, out m, out p); MyIO.ReadLines(m, out abcl); VT<int, i...
[["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["...
8
2,223
16
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, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 48], ["-", 64, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 64, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 19...
8
1,316
8
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) { string[] ABC = Console.ReadLine().Split(' '); int A = int.Parse(ABC[0]); int B = int.Parse(ABC[1]); int C = int.Par...
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) { string[] ABC = Console.ReadLine().Split(' '); int A = int.Parse(ABC[0]); int B = int.Parse(ABC[1]); int C = int.Par...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 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
116
7
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0028 { class Program { static void Main(string[] args) { string str = Console.ReadLine(); int A = int.Parse(str.Split(' ')[0]); int B = int.Parse(str.Split(' ')[1]); in...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0028 { class Program { static void Main(string[] args) { string str = Console.ReadLine(); int A = int.Parse(str.Split(' ')[0]); int B = int.Parse(str.Split(' ')[1]); in...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 2...
8
164
17
using System; using System.IO; using System.Linq; using System.Text; namespace Contest { class Program { private Scanner sc; public void Solve() { sc = new Scanner(); int A = sc.NextInt(); int B = sc.NextInt(); int C = sc.NextInt(); C -= (A - B); Console.WriteLine(C); } static void M...
using System; using System.IO; using System.Linq; using System.Text; namespace Contest { class Program { private Scanner sc; public void Solve() { sc = new Scanner(); int A = sc.NextInt(); int B = sc.NextInt(); int C = sc.NextInt(); Console.WriteLine(Math.Max(0, C - (A - B))); } static v...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ...
8
538
19
using System; namespace newEx { class Program { static void Main(string[] args) { string[] l = Console.ReadLine().Split(' '); int p = int.Parse(l[0]); int q = int.Parse(l[1]); int r = int.Parse(l[2]); // string l = Console.ReadLine(); // int r = int.Parse(l); Console.WriteLine(Volume(p,...
using System; namespace newEx { class Program { static void Main(string[] args) { string[] l = Console.ReadLine().Split(' '); int p = int.Parse(l[0]); int q = int.Parse(l[1]); int r = int.Parse(l[2]); // string l = Console.ReadLine(); // int r = int.Parse(l); Console.WriteLine(Volume(p,...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["-", 0, 57, 75, 196, 0, 37, 0, 23, 0, 24], ["-", 75, 196, 0, 37, 0, 23, 0, 16, 31, 22], ["-", 75, 196, 0, 37, 0, 23, 0, 16, 17, 33], [...
8
148
14
using System; using System.Collections.Generic; using System.Linq; public class AtCoderA { static void Main() { int a; int b; int c; { var line = Console.ReadLine(); var words = line.Split(' '); a = int.Parse(words[0]); b = int.Parse(words[1]); c = int.Parse(words[2]); ...
using System; using System.Collections.Generic; using System.Linq; public class AtCoderA { static void Main() { int a; int b; int c; { var line = Console.ReadLine(); var words = line.Split(' '); a = int.Parse(words[0]); b = int.Parse(words[1]); c = int.Parse(words[2]); ...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 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
108
7
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 str = IO.GetIntList(); var ans = str[2] - str[0] + str[1]; Con...
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 str = IO.GetIntList(); var ans = Math.Max(str[2] - (str[0] - str[1...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 17, 33...
8
326
11
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, s; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c =...
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, s; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c =...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22]...
8
130
18
using System; using System.Linq; namespace CSharp { class Program { public static void Main() { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); Console.WriteLine(input[2] - (input[0] - input[1])); } } }
using System; using System.Linq; namespace CSharp { class Program { public static void Main() { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); Console.WriteLine(Math.Max(0, input[2] - (input[0] - input[1]))); } } }
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 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
73
7
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, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 33], ...
8
465
16
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BeginnerContest136 { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int A = int.Parse(str[0]); int B = int.Parse(str[1]); int ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BeginnerContest136 { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int A = int.Parse(str[0]); int B = int.Parse(str[1]); int ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+",...
8
124
12
using System; namespace AC3 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int C = int.Parse(input[2]); int D = (B + C) - A; Console.WriteLine(D); } } }
using System; namespace AC3 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int C = int.Parse(input[2]); int D = (B + C) - A; if (D > 0) { Console.WriteLine(D); } else { ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
97
18
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]); int c = int.Parse(input[2]); int ans = c - (a - b); Console.WriteLine(ans); } }
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]); int c = int.Parse(input[2]); int ans = c - (a - b); Console.WriteLine(Math.Max(ans, 0)); } }
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
93
7
using System; namespace Transfer { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int c = int.Parse(input[2]); int result = b - c; if (result < 0) { result = 0; } Con...
using System; namespace Transfer { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int c = int.Parse(input[2]); int result = c - (a - b); if (result < 0) { result = 0; } ...
[["-", 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, 17, 33], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 12, 22], [...
8
105
8
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 a = CinTAr(); Cout((a[1] + a[2]) - a[0]); Cin(...
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 a = CinTAr(); var i = (a[1] + a[2]) - a[0]; if...
[["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121]...
8
635
21
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int A = int.Parse(input[1]); int B = int.Parse(input[2]); if (N * A > B) { Console.WriteLine(B); } else if (N * ...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int A = int.Parse(input[1]); int B = int.Parse(input[2]); if (N * A > B) { Console.WriteLine(B); } else { ...
[["-", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["-", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 48], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 12, 22]...
8
119
8
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace atcoder { public class Program { public static void Main(string[] args) { var buffer = Console.ReadLine().Split(); var N = int.Parse(buffer[0]); var D = int.Parse(buffer[1]); int[,] list = new int[N...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace atcoder { public class Program { public static void Main(string[] args) { var buffer = Console.ReadLine().Split(); var N = int.Parse(buffer[0]); var D = int.Parse(buffer[1]); int[,] list = new int[N...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 250], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 1, 0, 11, 31, 22], ...
8
269
25
using System; using System.Linq; using System.Collections.Generic; namespace Sample { class Sample { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int N = int.Parse(str[0]); int D = int.Parse(str[1]); int[][] zahyo = new int [N][]; for (int i = 0; i < N; i++) { ...
using System; using System.Linq; using System.Collections.Generic; namespace Sample { class Sample { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int N = int.Parse(str[0]); int D = int.Parse(str[1]); int[][] zahyo = new int [N][]; for (int i = 0; i < N; i++) { ...
[["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 0, 25]]
8
270
10
// B - Good Distance // 20190912 using System; using System.Linq; namespace B { class Program { static void Main(string[] args) { int[] nd = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = nd[0]; int D = nd[1]; var X = new int [N][]; for (int i = 0; i < N; i++) { X[i] = C...
// B - Good Distance // 20190912 using System; using System.Linq; namespace B { class Program { static void Main(string[] args) { int[] nd = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = nd[0]; int D = nd[1]; var X = new int [N][]; for (int i = 0; i < N; i++) { X[i] = C...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 7, 15, 16, 12, 214, 205, 204, 205, 22], ["-", 15, 16, 12, 214, 205, 204, 206, 207, 0, 70], ["-", 12, 214, 205, 204, 206, 207, 0, 28, ...
8
235
28
using System; using System.Text; using System.Linq; class Program { static void Main(string[] args) { System.Diagnostics.Debug.WriteLine("-----TextFile1"); System.Diagnostics.Debug.WriteLine(process("../TextFile1.txt")); System.Diagnostics.Debug.WriteLine("-----TextFile2"); System.Diagnostics.Debug....
using System; using System.Text; using System.Linq; class Program { static void Main(string[] args) { #if DEBUG System.Diagnostics.Debug.WriteLine("-----TextFile1"); System.Diagnostics.Debug.WriteLine(process("../TextFile1.txt")); System.Diagnostics.Debug.WriteLine("-----TextFile2"); System.Diagnosti...
[["+", 0, 208, 0, 235, 8, 201, 0, 195, 8, 196], ["+", 0, 235, 8, 201, 0, 195, 8, 196, 0, 301], ["+", 8, 201, 0, 195, 8, 196, 0, 301, 0, 22], ["+", 0, 195, 8, 196, 0, 301, 0, 22, 0, 1], ["+", 8, 196, 0, 301, 0, 22, 0, 1, 0, 213], ["+", 0, 301, 0, 22, 0, 1, 0, 213, 63, 214], ["+", 0, 22, 0, 1, 0, 213, 63, 214, 3, 4], ["+...
8
518
32
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { List<List<int>> pointList = new List<List<int>>(); List<int> point = new List<int>(); string[] initial = Console.ReadLine().Split(); string[] line; double root = 0; int answer = 0; int N = i...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { List<List<int>> pointList = new List<List<int>>(); List<int> point = new List<int>(); string[] initial = Console.ReadLine().Split(); string[] line; double root = 0; int answer = 0; int N = i...
[["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 230, 0, 228], ["+", 0, 1, 0, 11, 12, 230, 39, 236, 141, 22], ["+", 0, 11, 12, 230, 39, 236, 237, 238, 0, 18], ["+", 0, 11, 12, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 11, 12, 230, 39, 236, 237, 238, 0,...
8
300
38
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int D = int.Parse(input[1]); List<List<int>> X = new List<List<int>>(); int count = 0; for (int i = 0; i < N; i++) {...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int D = int.Parse(input[1]); List<List<int>> X = new List<List<int>>(); int count = 0; for (int i = 0; i < N; i++) {...
[["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["-", 12, 213, 3, 4, 0, 28, 0, 74, 0, 24], ["-", 12...
8
287
20
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int D = int.Parse(input[1]); List<List<int>> X = new List<List<int>>(); int count = 0; for (int i = 0; i < N; i++) {...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int D = int.Parse(input[1]); List<List<int>> X = new List<List<int>>(); int count = 0; for (int i = 0; i < N; i++) {...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 295], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 45], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 22], ["-", 3...
8
287
20
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList(); var n = inputs[0]; var d = inputs[1]; var point = new int[n, d]; for (var i = 0; i < n; i++) /...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList(); var n = inputs[0]; var d = inputs[1]; var point = new int[n, d]; for (var i = 0; i < n; i++) /...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12,...
8
292
12
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) { string[] input1 = Console.ReadLine().Split(' '); int dotsCount = int.Parse(input1[0]); int dimension = int.P...
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) { string[] input1 = Console.ReadLine().Split(' '); int dotsCount = int.Parse(input1[0]); int dimension = int.P...
[["+", 0, 28, 0, 213, 63, 214, 205, 23, 0, 24], ["+", 0, 213, 63, 214, 205, 23, 0, 16, 17, 85], ["+", 0, 213, 63, 214, 205, 23, 0, 16, 12, 203], ["+", 0, 28, 0, 213, 63, 214, 205, 23, 0, 25], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 2...
8
304
8
using System; namespace ATCODER123 { class Program { static void Main(string[] args) { string[] S = Console.ReadLine().Split(' '); int N = int.Parse(S[0]); int D = int.Parse(S[1]); string[] Xn; int Ans = 0; var X = new int[N, D]; for (int i = 0; i < N; i++) { Xn = Console.ReadLin...
using System; namespace ATCODER123 { class Program { static void Main(string[] args) { string[] S = Console.ReadLine().Split(' '); int N = int.Parse(S[0]); int D = int.Parse(S[1]); string[] Xn; int Ans = 0; var X = new int[N, D]; for (int i = 0; i < N; i++) { Xn = Console.ReadLin...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["-", 0, 7, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 7, 8, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 223, 0, 68], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196...
8
281
10
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace codeTester.contest190707 { class ProblemB { static List<long> nd = new List<long>(); static List<List<long>> values = new List<List<long>>(); static int answer = 0; public static void Main(string[] args) ...
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace codeTester.contest190707 { class ProblemB { static List<long> nd = new List<long>(); static List<List<long>> values = new List<List<long>>(); static int answer = 0; public static void Main(string[] args) ...
[["+", 12, 213, 3, 4, 0, 28, 0, 74, 0, 24], ["+", 12, 213, 3, 4, 0, 28, 0, 74, 39, 199], ["+", 12, 213, 3, 4, 0, 28, 0, 74, 0, 25], ["+", 0, 57, 64, 196, 0, 1, 0, 213, 63, 22], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 64, 196, 0,...
8
458
17
using System; using System.IO; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using static System.Math; using Debug = System.Diagnostics.Debug; static class P { static void Main() { var nd = Console.ReadLine().Split().Select(in...
using System; using System.IO; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using static System.Math; using Debug = System.Diagnostics.Debug; static class P { static void Main() { var nd = Console.ReadLine().Split().Select(in...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 213, 63, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141...
8
245
24
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static int L, R; static void INPUT() { L = NextInt(); R = NextInt(); } static void OUT() { var min = int.MaxVa...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static long L, R; static void INPUT() { L = NextLong(); R = NextLong(); } static void OUT() { var min = long.M...
[["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 198...
8
492
16
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 rr = ReadSp...
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 rr = ReadSp...
[["-", 0, 57, 64, 196, 0, 1, 0, 213, 63, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 213, 63, 22], ["-", 75, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 75, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 75, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["...
8
1,513
11
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { ABC133.C(); } class ABC133 { public static void A() { var N = Read.Int(); var A = Read.Int(); var B = Read.Int(); Console.WriteLine(Math.Min(N * A, B...
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { ABC133.C(); } class ABC133 { public static void A() { var N = Read.Int(); var A = Read.Int(); var B = Read.Int(); Console.WriteLine(Math.Min(N * A, B...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 2...
8
2,154
27
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { static class CRemainderMinimization2019 { static void Main(string[] args) { var lr = Console.ReadLine().Split(' ').Select(y => long.Parse(y)).ToList(); long l = lr[0]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { static class CRemainderMinimization2019 { static void Main(string[] args) { var lr = Console.ReadLine().Split(' ').Select(y => long.Parse(y)).ToList(); long l = lr[0]; ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203...
8
187
27
using System; using System.Linq; namespace ABC133C { class MainClass { public static void Main(string[] args) { long[] lr = Console.ReadLine().Split().Select(long.Parse).ToArray(); int res = 2020; if (lr[1] - lr[0] >= 2018) { Console.WriteLine(0); return; } for (long i = lr[0]; i <=...
using System; using System.Linq; namespace ABC133C { class MainClass { public static void Main(string[] args) { long[] lr = Console.ReadLine().Split().Select(long.Parse).ToArray(); long res = 2020; if (lr[1] - lr[0] >= 2018) { Console.WriteLine(0); return; } for (long i = lr[0]; i <...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["-", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25], ["-", 0, 212, 0, 16, 31, 74, 51, 23, 0,...
8
179
27
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { int[] lr = ReadLineIntArray(); int l = lr[0] % 2019; int r = lr[1] % 2019; if (l == 0 || r <= l) { Console.WriteLine(0); } else { ...
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { int[] lr = ReadLineIntArray(); int l = lr[0] % 2019; int r = lr[1] % 2019; if (l == 0 || (lr[0] / 2019) < (lr[1] / 2019)) { Console.Wri...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 31, 204, 205, 22], ["+", 31, 23, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0...
8
932
20
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp2 { public class Program { static long D = (long)Math.Pow(10, 9) + 7; public static void Main(string[] args) { int mod = 2019; int[] LR = Read(Console.ReadLine()); int L = LR[0]; int R = LR[1]; if (R - L ...
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp2 { public class Program { public static void Main(string[] args) { int mod = 2019; int[] LR = Read(Console.ReadLine()); int L = LR[0]; int R = LR[1]; if (R - L >= 2019) { Console.WriteLine(0); re...
[["-", 0, 235, 8, 201, 0, 124, 0, 251, 0, 115], ["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 200, 0, 212, 0, 16, 31, 74, 0, 24], ["-", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["-", 0, 200, 0, 212, 0, 16, 31, 74, 0...
8
264
28
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
// ReSharper disable ArrangeTypeMemberModifiers // ReSharper disable ConvertIfStatementToSwitchStatement // ReSharper disable FunctionRecursiveOnAllPaths // ReSharper disable InconsistentNaming // ReSharper disable InlineOutVariableDeclaration // ReSharper disable InvertIf // ReSharper disable JoinDeclarationAndInitial...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203...
8
1,470
30
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("2020 2040"); // 2 } else if (InputPattern == ...
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("2020 2040"); // 2 } else if (InputPattern == ...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 21...
8
268
16
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder { public class Program { static void Main(string[] args) { int[] a = Console.ReadLine().Split().Select(p => int.Parse(p)).ToArray(); int L = a[0]; int R = a[1]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder { public class Program { static void Main(string[] args) { int[] a = Console.ReadLine().Split().Select(p => int.Parse(p)).ToArray(); int L = a[0]; int R = a[1]; ...
[["-", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["+", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 7, 8, 196, 0, 57, ...
8
204
31
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) { string[] s = Console.ReadLine().Split(); int L = int.Parse(s[0]); int R = int.Parse(s[1]); int min = 2019; ...
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) { string[] s = Console.ReadLine().Split(); int L = int.Parse(s[0]); int R = int.Parse(s[1]); int min = 2019; ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203...
8
181
12
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int L = int.Parse(s.Split(' ')[0]); int R = int.Parse(s.Split(' ')[1]); int ans = 2020; if (L % 20...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int L = int.Parse(s.Split(' ')[0]); int R = int.Parse(s.Split(' ')[1]); int ans = 2020; if (R - L ...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45...
8
195
20
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; class Myon { public Myon() {} public static int Main() { cin = new Scanner(); new Myon().calc(); return 0; } static Scanner cin; void calc() { int l, r; l = c...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; class Myon { public Myon() {} public static int Main() { cin = new Scanner(); new Myon().calc(); return 0; } static Scanner cin; void calc() { int l, r; l = c...
[["-", 75, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 75, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 75, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["-", 0, 28, 0, 16, 31, 16, 12, 5, 0, 62], ["-"...
8
606
13
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class Program { static void Main() { var LR = ReadLine().Split().Select(int.Parse).ToArray(); var L = LR[0]; var R = LR[1]; var l = L % 2019; var r = R % 2019; var ans = L...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class Program { static void Main() { var LR = ReadLine().Split().Select(int.Parse).ToArray(); var L = LR[0]; var R = LR[1]; var l = L % 2019; var r = R % 2019; var ans = R...
[["-", 0, 200, 0, 212, 0, 41, 15, 16, 31, 22], ["-", 0, 200, 0, 212, 0, 41, 15, 16, 17, 60], ["+", 0, 212, 0, 41, 15, 16, 31, 16, 17, 33], ["+", 0, 212, 0, 41, 15, 16, 31, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 20], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 12, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 41, 64, 2...
8
159
10
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { class Program { static void Main(string[] args) { var cin = new Scanner(); var L = cin.nextLong(); var R = cin.nextLong(); long ans = long.MaxValue; for (long i = L; i < (L + 20...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { class Program { static void Main(string[] args) { var cin = new Scanner(); var L = cin.nextLong(); var R = cin.nextLong(); long ans = long.MaxValue; for (long i = L; i < (L + 20...
[["-", 15, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 18], ["+", 0, 7, 15, 16, 31, 16, 12, 23, 0, 24], ["+", 1...
8
661
21
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class MainClass { public static void Main(string[] args) { if (args.Length > 0 && args[0] == "debug") { var inputs = new[] { @" 2020 2040 ", @" 4 5 ", ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class MainClass { public static void Main(string[] args) { if (args.Length > 0 && args[0] == "debug") { var inputs = new[] { @" 2020 2040 ", @" 4 5 ", ...
[["-", 0, 7, 15, 16, 12, 16, 12, 16, 12, 203], ["+", 0, 7, 15, 16, 12, 16, 12, 16, 12, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+",...
8
1,013
22
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; public struct Pair { public int x, y; public Pair(int x, int y) { this.x = x; this.y = y; } } public static void Solve() { int L = NextInt()...
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; public struct Pair { public int x, y; public Pair(int x, int y) { this.x = x; this.y = y; } } public static void Solve() { long L = NextInt(...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, ...
8
533
41
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { const int MOD = 2019; var vals = Console.ReadLine().Split().Select(x => int.Parse(x)).ToList(); int L = vals[0]; int R = vals[1]; long ans = 2020; if (L % MOD < R % MOD && (R - ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { const int MOD = 2019; var vals = Console.ReadLine().Split().Select(x => int.Parse(x)).ToList(); int L = vals[0]; int R = vals[1]; long ans = 2020; if (L % MOD < R % MOD && (R - ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 46]]
8
173
7
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var l = input[0]; var r = input[1]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var l = input[0]; var r = input[1]; ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 212, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 109], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 212, 0, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 212, 0, 16, 31, 16, 12, 23, 0, 24], ...
8
237
12
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) { var s = Console.ReadLine().Split(' '); var l = int.Parse(s[0]); var r = int.Parse(s[1]); if (r / 2019 * 2019...
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) { var s = Console.ReadLine().Split(' '); var l = int.Parse(s[0]); var r = int.Parse(s[1]); if (r / 2019 * 2019...
[["-", 75, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 75, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 75, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 72], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6...
8
238
21
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC133 { class Program { static void Main(string[] args) { var lr = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var l = lr[0]; var r = lr[1]; if (r - l > 2019) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC133 { class Program { static void Main(string[] args) { var lr = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var l = lr[0]; var r = lr[1]; if (r - l > 2019) ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, ...
8
178
20
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; namespace AtCoder_1 { class Program { static void Main(string[] args) { var a = CinTAr(); int L = a[0]; int R = a[1]; long nowr = 2018; for (in...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; namespace AtCoder_1 { class Program { static void Main(string[] args) { var a = CinLAr(); long L = a[0]; long R = a[1]; long nowr = 2100; for (...
[["-", 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], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 10, 198...
8
466
27
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace A { class Program { public IEnumerable<string> Solve() { // var ut = new Util(); var sc = new Scanner(); var l = sc.NumLong; var r = sc.NumLong; var lm = l %...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace A { class Program { public IEnumerable<string> Solve() { // var ut = new Util(); var sc = new Scanner(); var l = sc.NumLong; var r = sc.NumLong; var lm = l; ...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 212, 0, 41, 15, 16, 31, 23, 0, 24], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 0, 41, 15, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 41, 15, 16, 31, 23, 0, 16, 12, 22]...
8
570
34
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using static System.Math; using System.Text; namespace Program { public static class ABC133C { static public void Solve() { var L = NN; var R = NN; var adjL = L % 2019; var adjR ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using static System.Math; using System.Text; namespace Program { public static class ABC133C { static public void Solve() { var L = NN; var R = NN; var adjL = L % 2019; var adjR ...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45...
8
5,807
34
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class GFG { static public void Main() { try { var n = int.Parse(Console.ReadLine()); var aar = Console.ReadLine().Split(' ').Select(x => Int64.Parse(x)).ToArray(); Dam(aar, n); } catch (...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class GFG { static public void Main() { try { var n = int.Parse(Console.ReadLine()); var aar = Console.ReadLine().Split(' ').Select(x => Int64.Parse(x)).ToArray(); Dam(aar, n); } catch (...
[["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 31, 204...
8
274
27
using System; using System.Linq; using System.Text; namespace ABC133.D { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); var totalD = a.Sum(); var mlist = new int[n]; mlist[0] =...
using System; using System.Linq; using System.Text; namespace ABC133.D { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(long.Parse).ToArray(); var totalD = a.Sum(); var mlist = new long[n]; mlist[0]...
[["-", 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], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 0, 195, 54, 55, 0, 220,...
8
252
18
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; class Myon { public Myon() {} public static int Main() { cin = new Scanner(); new Myon().calc(); return 0; } static Scanner cin; void calc()...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; class Myon { public Myon() {} public static int Main() { cin = new Scanner(); new Myon().calc(); return 0; } static Scanner cin; void calc()...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 197, 0, 1...
8
614
19
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; public struct Pair { public int x, y; public Pair(int x, int y) { this.x = x; this.y = y; } } public static void Solve() { int N = NextInt()...
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; public struct Pair { public int x, y; public Pair(int x, int y) { this.x = x; this.y = y; } } public static void Solve() { int N = NextInt()...
[["-", 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, 196, 0, 1, 0, 213, 63,...
8
526
14
using System; using System.Collections.Generic; using System.Linq; namespace CSharp { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var rainOfDums = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); var rainSum = rainOfDums.Sum(); v...
using System; using System.Collections.Generic; using System.Linq; namespace CSharp { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var rainOfDums = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); var mountainRains = new long[n]; /...
[["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 1...
8
224
40
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace A { class Program { public IEnumerable<string> Solve() { var ut = new Util(); var sc = new Scanner(); var n = sc.Num; var a = sc.Nums(n).Cast<long>().ToArray(); ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace A { class Program { public IEnumerable<string> Solve() { var ut = new Util(); var sc = new Scanner(); var n = sc.Num; var a = sc.Nums(n).Select(x => (long)x).ToAr...
[["-", 63, 214, 205, 213, 63, 214, 141, 236, 141, 22], ["-", 205, 213, 63, 214, 141, 236, 237, 238, 0, 18], ["-", 205, 213, 63, 214, 141, 236, 237, 238, 0, 199], ["-", 205, 213, 63, 214, 141, 236, 237, 238, 0, 47], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+",...
8
796
11
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace AtCoder { partial class Program { static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); new AtCoder().Solve(); Console.Out.Flush(); Console.Read(...
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace AtCoder { partial class Program { static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); new AtCoder().Solve(); Console.Out.Flush(); Console.Read(...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
2,030
17
using AtCoderBeginnerContest133.Questions; using AtCoderBeginnerContest133.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace AtCoderBeginnerContest133.Questions { public class QuestionE : AtCoderQuestionBase { int n; int k; List<i...
using AtCoderBeginnerContest133.Questions; using AtCoderBeginnerContest133.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace AtCoderBeginnerContest133.Questions { public class QuestionE : AtCoderQuestionBase { int n; int k; List<i...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 31, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 25],...
8
1,954
16
using System; using System.IO; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using Debug = System.Diagnostics.Debug; using static System.Math; using MethodImplOptions = System.Runtime.CompilerServices.Me...
using System; using System.IO; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using Debug = System.Diagnostics.Debug; using static System.Math; using MethodImplOptions = System.Runtime.CompilerServices.Me...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, ...
8
1,215
30
using System; using System.Collections.Generic; #region ModInt /// <summary> /// [0,<see cref="Mod"/>) ใพใงใฎๅ€คใ‚’ๅ–ใ‚‹ใ‚ˆใ†ใชๆ•ฐ /// </summary> public struct ModInt { /// <summary> /// ๅ‰ฐไฝ™ใ‚’ๅ–ใ‚‹ๅ€ค๏ผŽ /// </summary> public const long Mod = (int)1e9 + 7; /// <summary> /// ๅฎŸ้š›ใฎๆ•ฐๅ€ค๏ผŽ /// </summary> public long num; /// <summ...
using System; using System.Collections.Generic; #region ModInt /// <summary> /// [0,<see cref="Mod"/>) ใพใงใฎๅ€คใ‚’ๅ–ใ‚‹ใ‚ˆใ†ใชๆ•ฐ /// </summary> public struct ModInt { /// <summary> /// ๅ‰ฐไฝ™ใ‚’ๅ–ใ‚‹ๅ€ค๏ผŽ /// </summary> public const long Mod = (int)1e9 + 7; /// <summary> /// ๅฎŸ้š›ใฎๆ•ฐๅ€ค๏ผŽ /// </summary> public long num; /// <summ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 37, 0, 203],...
8
1,147
23
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { public struct Pair { public int x, y; public Pair(int x, int y) { this.x = x; this.y = y; } } public static void Solve() { int N = NextInt(); long K = NextLong(); List<in...
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { public struct Pair { public int x, y; public Pair(int x, int y) { this.x = x; this.y = y; } } public static void Solve() { int N = NextInt(); long K = NextLong(); List<in...
[["-", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 70], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 21...
8
714
29
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { public struct Pair { public int x, y; public Pair(int x, int y) { this.x = x; this.y = y; } } public static void Solve() { int N = NextInt(); long K = NextLong(); List<in...
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { public struct Pair { public int x, y; public Pair(int x, int y) { this.x = x; this.y = y; } } public static void Solve() { int N = NextInt(); long K = NextLong(); List<in...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]]
8
738
7
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int N = int.Parse(str[0]); long K = long.Parse(str[1]); int[,] A = new int[N, 2]; long mod = 1000000007; var list = new List<int>[N]; for (var i = 0;...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int N = int.Parse(str[0]); long K = long.Parse(str[1]); int[,] A = new int[N, 2]; long mod = 1000000007; var list = new List<int>[N]; for (var i = 0;...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
691
18
using System; using System.Text; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Threading.Tasks; class Program { static void Main(string[] args) { string S = Console.ReadLine(); List<char> list = new List<char>(); for (int i = 0; i < 4; i++) { list.Add...
using System; using System.Text; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Threading.Tasks; class Program { static void Main(string[] args) { string S = Console.ReadLine(); List<char> list = new List<char>(); for (int i = 0; i < 4; i++) { list.Add...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 16, 12, 16, 12,...
8
147
10
using System; namespace ABC_132_A_Csharp_ver { class Program { static void Main(string[] args) { string S = Console.ReadLine(); char a = S[0]; char b = S[1]; char c = S[2]; char d = S[3]; if (a == b && c == d || a == c && b == d || a == d && b == c) Console.WriteLine("Yes"); else ...
using System; namespace ABC_132_A_Csharp_ver { class Program { static void Main(string[] args) { string S = Console.ReadLine(); char a = S[0]; char b = S[1]; char c = S[2]; char d = S[3]; if (a == b && c == d && a != c || a == c && b == d && a != b || a == d && b == c && a != b) ...
[["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 17, 79], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 98], ["+", 15, 16, 31, 16, 12, 16, 12, 16, 31, 22], ["+", 15, 16, 31, 16, 12, 16, 12, 16, 1...
8
108
12
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { string s = ReadLineStr(); if (CountChar(s, s.Substring(0, 1)) == CountChar(s, s.Substring(1, 1)) && CountChar(s, s.Substring(1, 1)) == CountC...
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { string s = ReadLineStr(); if (CountChar(s, s.Substring(0, 1)) == 2 && CountChar(s, s.Substring(1, 1)) == 2 && CountChar(s, s.Substrin...
[["-", 15, 16, 31, 16, 31, 16, 12, 213, 63, 22], ["-", 31, 16, 31, 16, 12, 213, 3, 4, 0, 24], ["-", 31, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["-", 31, 16, 31, 16, 12, 213, 3, 4, 0, 21], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ...
8
1,111
30
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG MyDebugger.Test(process, "../TextFile1....
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG MyDebugger.Test(process, "../TextFile1....
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 15, 16, 31, 16, 31, 16, 31, 204, 205, 22], ["+", 31, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 15, 16, 31, 16, 31,...
8
201
35
using System; namespace AtCoder_ABC_B { class Program { static void Main(string[] args) { Boolean ans = false; String inputLine = Console.ReadLine(); if (inputLine[0] == inputLine[1] && inputLine[2] == inputLine[3]) { ans = true; } else if (inputLine[0] == inputLine[2] && inputLine[1] == input...
using System; namespace AtCoder_ABC_B { class Program { static void Main(string[] args) { Boolean ans = false; String inputLine = Console.ReadLine(); if (inputLine[0] == inputLine[1] && inputLine[2] == inputLine[3] && inputLine[0] != inputLine[2]) { ans = true; } else if (inputLine[0] ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 16, 12, 16, 12,...
8
151
30
using System; class a { public static void Main() { string s = Console.ReadLine(); if (s[0] == s[1]) { if (s[2] == s[3]) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } else if (s[0] == s[2]) { if (s[1] == s[3]) { Console.WriteLine("Yes"); ...
using System; class a { public static void Main() { string s = Console.ReadLine(); if (s[0] == s[1]) { if (s[2] == s[3] && s[0] != s[2]) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } else if (s[0] == s[2]) { if (s[1] == s[3] && s[0] != s[1]) { ...
[["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 16, 12, 16, 12...
8
185
30
using System; using System.Linq; namespace ABC132 { class A { static void Main(string[] args) { string s = Console.ReadLine(); foreach (var c in s) { int count = s.Where(x => x == c).Count(); if ((count % 2) != 0) { Console.WriteLine("No"); return; } } Console.Write...
using System; using System.Linq; namespace ABC132 { class A { static void Main(string[] args) { string s = Console.ReadLine(); foreach (var c in s) { int count = s.Where(x => x == c).Count(); if ((count % 2) != 0 || (count / 2) == 2) { Console.WriteLine("No"); return; } ...
[["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 15, 16, 12, 16, 31, 23, 0, 24], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 17, 85], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 2...
8
95
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC132 { class Program { static void Main(string[] args) { string Str = Console.ReadLine().Trim(); var barray = Encoding.ASCII.GetBytes(Str); bool isOK = false; if ((barray[...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC132 { class Program { static void Main(string[] args) { string Str = Console.ReadLine().Trim(); var barray = Encoding.ASCII.GetBytes(Str); bool isOK = false; // AABB ABAB...
[["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 23, 0, 16, 31, 204, 205, 22], ["+", 31, 23, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 23, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 60], ["+", 15, 16, 31, 23, 0, 16, 12, 204,...
8
201
32
using System; namespace abc132 { class Program { static void Main(string[] args) { /* A */ var input = Console.ReadLine().Split(' '); var c = input[0].ToCharArray(); if ((c[0] == c[1] && c[2] == c[3]) || (c[0] == c[2] && c[1] == c[3]) || (c[0] == c[3] && c[1] == c[2])) Console.WriteLine...
using System; namespace abc132 { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var c = input[0].ToCharArray(); if (((c[0] == c[1] && c[2] == c[3]) || (c[0] == c[2] && c[1] == c[3]) || (c[0] == c[3] && c[1] == c[2])) && !(c[0] == c[1] && c[0]...
[["+", 31, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 16, 12, 23, 0, 16, 12, 16, 17, 60], ["+", 12, 23, 0, 16, 12, 16, 12, 204, 205, 22], ["+", 0, 16, 12, 16, 12, 204, 206, 207, 0, 70], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 16, 12, 204, 206, 2...
8
138
25
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using static System.Math; class Program { static void Main() { char[] s = Console.ReadLine().ToCharArray(); Array.Sort(s); bool f = s[0] == s[1] && s[2] == s[3]; Console.WriteLine(f ? "Yes"...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using static System.Math; class Program { static void Main() { char[] s = Console.ReadLine().ToCharArray(); Array.Sort(s); bool f = s[0] == s[1] && s[2] == s[3] && s[1] != s[2]; Console.Wri...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 98], ["+", 0, 212, 0, 16, 12, 16, 31, 204, 205, 22], ["+", 0, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 200, 0, 212, 0, 16, 12, 16, 17, 79], ["+", 0, 212, 0, 16, 12, 16, 12, 2...
8
102
10
using System; class Program { static void Main(string[] args) { char a, b, c, d; string str = Console.ReadLine(); // 2ใคไปฅไธŠใฎใ‚นใƒšใƒผใ‚นๅŒบๅˆ‡ใ‚Šๅ…ฅๅŠ›ใฎๅ–ๅพ— a = str[0]; //ๆ•ฐๅ€คใงๅ—ใ‘ๅ–ใ‚ŠใŸใ„ๅ ดๅˆใฏๅค‰ๆ›ใ™ใ‚‹ b = str[1]; c = str[2]; d = str[3]; if ((a == b && c == d) || (a == c && b == d) || (a == d && b == c)) { Console.Writ...
using System; class Program { static void Main(string[] args) { char a, b, c, d; string str = Console.ReadLine(); // 2ใคไปฅไธŠใฎใ‚นใƒšใƒผใ‚นๅŒบๅˆ‡ใ‚Šๅ…ฅๅŠ›ใฎๅ–ๅพ— a = str[0]; //ๆ•ฐๅ€คใงๅ—ใ‘ๅ–ใ‚ŠใŸใ„ๅ ดๅˆใฏๅค‰ๆ›ใ™ใ‚‹ b = str[1]; c = str[2]; d = str[3]; if ((a == b && a != c && c == d) || (a == c && a != b && b == d) || (a == d && a...
[["+", 31, 23, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 31, 23, 0, 16, 31, 16, 12, 16, 17, 79], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 17, 98], ["+", 31, 16, 31, 23, 0, 16, 12, 16, 31, 22], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 17, 98], ["+", 12, 23, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 12, 23, 0, 16, 31, 16, 12, 16, 17, 79...
8
121
21
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC132A { class Program { static void Main(string[] args) { string S = Console.ReadLine(); char[] A = new char[4]; A[0] = S[0]; A[1] = S[1]; A[2] = S[2]; A[3] = S[3]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC132A { class Program { static void Main(string[] args) { string S = Console.ReadLine(); char[] A = new char[4]; A[0] = S[0]; A[1] = S[1]; A[2] = S[2]; A[3] = S[3]; ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 16, 12, 16, 12,...
8
215
30
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCorder { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } public void S...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCorder { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } public void S...
[["+", 15, 16, 31, 16, 31, 23, 0, 16, 17, 98], ["+", 31, 23, 0, 16, 12, 16, 31, 204, 205, 22], ["+", 0, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 31, 16, 31, 23, 0, 16, 12, 16, 17, 79], ["+", 31, 23, 0, 16, 12, 16, 12, 2...
8
516
30
using System; namespace Atcoder0629 { class Program { static void Main(string[] args) { string S = Console.ReadLine(); for (int i = 1; i < 4; i++) { if (S[0] == S[i]) { S = S.Remove(i, 1); S = S.Remove(0, 1); break; } } if (S[0] == S[1]) { Console.WriteLine("...
using System; namespace Atcoder0629 { class Program { static void Main(string[] args) { string S = Console.ReadLine(); char c = S[0]; for (int i = 1; i < 4; i++) { if (S[0] == S[i]) { S = S.Remove(i, 1); S = S.Remove(0, 1); break; } } if (S[0] == S[1] && S[0] !...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 204, 206...
8
122
21
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, ' ')); } ...
[["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 12, 204, 205, 22], ["+", 15, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 16, 12, 20...
8
520
36
using System; public class Test { public static void Main() { // your code goes here string s = Console.ReadLine(); string s1 = s.Substring(0, 1); string s2 = s.Substring(1, 1); string s3 = s.Substring(2, 1); string s4 = s.Substring(3, 1); if (s1 == s2) { if (s3 == s4) { C...
using System; public class Test { public static void Main() { // your code goes here string s = Console.ReadLine(); string s1 = s.Substring(0, 1); string s2 = s.Substring(1, 1); string s3 = s.Substring(2, 1); string s4 = s.Substring(3, 1); if (s1 == s2) { if (s3 == s4) { i...
[["+", 64, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 64, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 22], ["+", 64, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 4...
8
199
20
using System; using System.IO; using System.Collections.Generic; namespace _132 { class Program { static void Main(string[] args) { solve_132A(); } public static void solve_132A() { string a = Console.ReadLine(); char[] str = a.ToCharArray(); Array.Sort(str); string ansewr = "Yes"; if (str[...
using System; using System.IO; using System.Collections.Generic; namespace _132 { class Program { static void Main(string[] args) { solve_132A(); } public static void solve_132A() { string a = Console.ReadLine(); char[] str = a.ToCharArray(); Array.Sort(str); string ansewr = "Yes"; if (str[...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 16, 12, 16, 12...
8
117
10
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) { string s = ReadLine(); if (s[0] == s[1] && s[2] == s[3]) { WriteLine("Yes"); ...
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) { string s = ReadLine(); if (s[0] == s[1] && s[2] == s[3] && s[0] != s[2]) { WriteL...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 16, 12, 16, 12,...
8
163
30
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { //ๅ…ฅๅŠ› string S = Console.ReadLine(); //ๆคœ่จผ //ๅ‡บ็พใ—ใฆใ„ใ‚‹ๆ–‡ๅญ—ใ‚’ๅ–ๅพ—ใ™ใ‚‹ char S1 = S[0]; char S2 = S[1]; char S3 = S[2]; char S4 = S[3...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { //ๅ…ฅๅŠ› string S = Console.ReadLine(); //ๆคœ่จผ //ๅ‡บ็พใ—ใฆใ„ใ‚‹ๆ–‡ๅญ—ใ‚’ๅ–ๅพ—ใ™ใ‚‹ char S1 = S[0]; char S2 = S[1]; char S3 = S[2]; char S4 = S[3...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 16, 12, 16, 12,...
8
156
10
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Solver { Scanner sc = new Scanner(); public void Solve() { var S = sc.next().ToCharArray(); if ((S[0] == S[1] && S[2] == S[3]) || (S[0] == S[2] && S[1] == S[3]) || (S[0] == S[3] && S[1] == S[2])) ...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Solver { Scanner sc = new Scanner(); public void Solve() { var S = sc.next().ToCharArray(); if ((S[0] == S[1] && S[2] == S[3] && S[0] != S[2]) || (S[0] == S[2] && S[1] == S[3] && S[0] != S[1]) || ...
[["+", 15, 16, 31, 16, 31, 23, 0, 16, 17, 98], ["+", 31, 23, 0, 16, 12, 16, 31, 204, 205, 22], ["+", 0, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 31, 16, 31, 23, 0, 16, 12, 16, 17, 79], ["+", 31, 23, 0, 16, 12, 16, 12, 2...
8
519
30
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var S = Console.ReadLine().ToCharArray().OrderBy(x => x).ToArray(); var able = S[0] == S[1] && S[2] == S[3]; var ans = able ? "Yes" : "No"; Console.WriteLine(ans); } }
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var S = Console.ReadLine().ToCharArray().OrderBy(x => x).ToArray(); var able = S[0] == S[1] && S[2] == S[3] && S[0] != S[2]; var ans = able ? "Yes" : "No"; Console.WriteLine(ans); } }
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 98], ["+", 0, 212, 0, 16, 12, 16, 31, 204, 205, 22], ["+", 0, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 200, 0, 212, 0, 16, 12, 16, 17, 79], ["+", 0, 212, 0, 16, 12, 16, 12, 2...
8
93
10
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC132 { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var r = s.OrderBy(x => x).ToArray(); if (r[0] == r[1] && r[2] == r[3]) { Console.Write...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC132 { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var r = s.OrderBy(x => x).ToArray(); if (r[0] == r[1] && r[2] == r[3] && r[1] != r[2]) { ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 16, 12, 16, 12,...
8
116
10
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { var S = Read(); if (S[0] == S[1] && S[2] == S[3]) WriteLine("Yes"); else if (S[0] == S[2...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { var S = Read(); if (S[0] == S[1] && S[2] == S[3] && S[1] == S[2]) WriteLine("No"); else ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 16, 12, 16, 12,...
8
444
40
using System; using System.Collections.Generic; using System.Linq; namespace Hayadoki20200309A { class Input { /// <summary> /// 1่กŒใฎๅ…ฅๅŠ›ใ‚’ๅ–ๅพ—ใ™ใ‚‹ /// </summary> /// <returns>ๆ–‡ๅญ—ๅˆ—</returns> public void String(out string s) { s = Console.ReadLine(); } /// <summary> /// ่ค‡ๆ•ฐ่กŒใฎๅ…ฅๅŠ›ใ‚’ๅ–ๅพ— /// </summary> /// <returns>ๆ–‡...
using System; using System.Collections.Generic; using System.Linq; namespace Hayadoki20200309A { class Input { /// <summary> /// 1่กŒใฎๅ…ฅๅŠ›ใ‚’ๅ–ๅพ—ใ™ใ‚‹ /// </summary> /// <returns>ๆ–‡ๅญ—ๅˆ—</returns> public void String(out string s) { s = Console.ReadLine(); } /// <summary> /// ่ค‡ๆ•ฐ่กŒใฎๅ…ฅๅŠ›ใ‚’ๅ–ๅพ— /// </summary> /// <returns>ๆ–‡...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95],...
8
948
22
using System; using System.Linq; namespace B___Ordinary_Number { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var pi = Console.ReadLine().Split().ToArray(); var cnt = 0; for (int i = 1; i < n - 1; i++) { if (pi[i - 1] == pi[i] || pi[i] == pi[i + 1]) ...
using System; using System.Linq; namespace B___Ordinary_Number { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var pi = Console.ReadLine().Split().Select(int.Parse).ToArray(); var cnt = 0; for (int i = 1; i < n - 1; i++) { if (pi[i - 1] == pi[i] || pi...
[["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 200, 0, 212, 0, 213, 63...
8
151
7
using System; using System.Collections.Generic; class Program { public class Node { static void Main(string[] args) { int mod = 1000000007; string[] s = Console.ReadLine().Split(' '); long n = long.Parse(s[0]); int k = int.Parse(s[1]); long rootN = (long)Math.Sqrt(n); int arrS...
using System; using System.Collections.Generic; class Program { public class Node { static void Main(string[] args) { long mod = 1000000007; string[] s = Console.ReadLine().Split(' '); long n = long.Parse(s[0]); int k = int.Parse(s[1]); long rootN = (long)Math.Sqrt(n); int arr...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 23, 0, 24], ["-", 12, 23, 0, 16, 31, 16, 31, 74, 0, 24], ["-", 12, 23, 0, 16, 31, 16, 31, 74, 39, 199], ["-"...
8
438
9