buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace MyProject { class Program { static void Main(string[] args) { #if Local var sw = new Stopwatch(); sw.Start(); Console.SetIn(new StreamReader("input.in")); #endif var solver = new S...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace MyProject { class Program { static void Main(string[] args) { #if Local var sw = new Stopwatch(); sw.Start(); Console.SetIn(new StreamReader("input.in")); #endif var solver = new S...
[["-", 0, 210, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 210, 12, 213, 3, 4, 0, 28, 0, 203]]
8
245
using System; using System.Collections.Generic; using System.Linq; namespace PaizaTest { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); // var sumList = new int[n + 1]; // (x - p)^2 分体力を消費する // 累積和の計算を行う var nList = Console.ReadLine().Split(' ').Select(i...
using System; using System.Collections.Generic; using System.Linq; namespace PaizaTest { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); // var sumList = new int[n + 1]; // (x - p)^2 分体力を消費する // 累積和の計算を行う var nList = Console.ReadLine().Split(' ').Select(i...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
180
using System; using System.Linq; class Program { static void Main(string[] args) { // 入力 string[] st = Console.ReadLine().Split(' '); long[] ab = Console.ReadLine().Split().Select(long.Parse).ToArray(); var u = Console.ReadLine(); long ans = 0; if (u == st[0]) { ab[0] -= 1; } i...
using System; using System.Linq; class Program { static void Main(string[] args) { // 入力 string[] st = Console.ReadLine().Split(' '); long[] ab = Console.ReadLine().Split().Select(long.Parse).ToArray(); var u = Console.ReadLine(); long ans = 0; if (u == st[0]) { ab[0] -= 1; } i...
[["-", 0, 28, 0, 16, 31, 16, 12, 5, 0, 222], ["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 222]]
8
137
using System; class sample { static void Main() { string input = Console.ReadLine(); string output = ""; for (int i = 0; i < input.Length; i++) { output += "×"; } Console.WriteLine(output); } }
using System; class sample { static void Main() { string input = Console.ReadLine(); string output = ""; for (int i = 0; i < input.Length; i++) { output += "x"; } Console.WriteLine(output); } }
[["-", 8, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 8, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
60
using System; using System.Linq; using System.Collections.Generic; namespace abc088b { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int num = s.Length; string ans = ""; var temp = Enumerable.Repeat("×", num).ToList(); foreach (var item in temp) { ans += i...
/* int n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(s => int.Parse(s)).ToList(); */ using System; using System.Linq; using System.Collections.Generic; namespace abc088b { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int num = s.Length; ...
[["-", 205, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 205, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
94
using System; using System.Linq; namespace ConsoleApp1111 { class Program { static void Main(string[] args) { var s = int.Parse(Console.ReadLine().Trim()); Console.WriteLine(new string('x', s)); } } }
using System; using System.Linq; namespace ConsoleApp1111 { class Program { static void Main(string[] args) { var s = Console.ReadLine().Trim().Length; Console.WriteLine(new string('x', s)); } } }
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214,...
8
60
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramC { static void Main(string[] args) { var a = long.Parse(Console.ReadLine()); var list = Console.ReadLine().Split(" ").Select(x => long.Parse(x)).ToList(); var list2 = list.Distinct().ToList(); Con...
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramC { static void Main(string[] args) { var a = long.Parse(Console.ReadLine()); var list = Console.ReadLine().Split(" ").Select(x => long.Parse(x)).ToList(); var list2 = list.Distinct().ToList(); Con...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
114
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, ' ')); } ...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
1,120
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace atcoder { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); Console.WriteLine(n == Console.ReadLine() .Split(' ') ...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace atcoder { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); Console.WriteLine(n == Console.ReadLine() .Split(' ') ...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222]]
8
101
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] array = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); HashSet<int> hsTable = new HashSet<i...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] array = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); HashSet<int> hsTable = new HashSet<i...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
137
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Program { static void Main() { var num = int.Parse(ReadLine()); var input = ReadLine().Split(' ').GroupBy(a => a).ToArray().Length; if (num == input) { Write("Yes"); } else { Write("No");...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Program { static void Main() { var num = int.Parse(ReadLine()); var num2 = ReadLine().Split(' ').GroupBy(a => a).ToArray().Length; if (num == num2) { Write("YES"); } else { Write("NO"); ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
96
using System; using System.Collections.Generic; using System.Linq; class Ho { static void Main() { var N = int.Parse(Console.ReadLine()); var azen = Console.ReadLine().Split(); var aho = azen.Distinct().ToList().Count; var a = azen.Length; if (a == aho) { Console.WriteLine("Yes"); } els...
using System; using System.Collections.Generic; using System.Linq; class Ho { static void Main() { var N = int.Parse(Console.ReadLine()); var azen = Console.ReadLine().Split(); var aho = azen.Distinct().ToList().Count; var a = azen.Length; if (a == aho) { Console.WriteLine("YES"); } els...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
104
using System; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { Console.ReadLine(); var A = Console.ReadLine().Split().Select(int.Parse).ToArray(); Console.WriteLine(A.Distinct().Count() == A.Length ? "Yes" : "No"); } } }
using System; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { Console.ReadLine(); var A = Console.ReadLine().Split().Select(int.Parse).ToArray(); Console.WriteLine(A.Distinct().Count() == A.Length ? "YES" : "NO"); } } }
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
84
using System; using System.Collections.Generic; using System.Numerics; using System.Linq; using System.Text; using static System.Math; class MainClass { public static void Main(string[] args) { var N = LnInt(); var hash = new HashSet<long>(LnLngs()); print(N == hash.Count ? "Yes" : "No"); } public ...
using System; using System.Collections.Generic; using System.Numerics; using System.Linq; using System.Text; using static System.Math; class MainClass { public static void Main(string[] args) { var N = LnInt(); var hash = new HashSet<long>(LnLngs()); print(N == hash.Count ? "YES" : "NO"); } public ...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
930
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace A { class StartingPoint { static void Main(string[] args) { if (args?.Any() == true) { var assembly = Assembly.GetEntryAssembly(); var path = "../../../../In.txt";...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; namespace A { class StartingPoint { static void Main(string[] args) { if (args?.Any() == true) { var assembly = Assembly.GetEntryAssembly(); var path = "../../../../In.txt";...
[["-", 0, 195, 8, 306, 0, 41, 64, 5, 0, 222], ["+", 0, 195, 8, 306, 0, 41, 64, 5, 0, 222], ["-", 0, 195, 8, 306, 0, 41, 75, 5, 0, 222], ["+", 0, 195, 8, 306, 0, 41, 75, 5, 0, 222]]
8
707
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoders { class Program { static void Main(string[] args) { var inputArray = retreiveLongArray(); var inputCount = 1; // 不正な入力は処理しない if (inputArray.Length != inputCount) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoders { class Program { static void Main(string[] args) { var inputArray = retreiveLongArray(); var inputCount = 1; // 不正な入力は処理しない if (inputArray.Length != inputCount) { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
274
using System; using System.Collections.Generic; using System.Linq; namespace IMissYou { class Program { static void Main(string[] args) { string inputNumbers = Console.ReadLine(); long inputNum = Convert.ToInt64(inputNumbers); var input = Console.ReadLine().Split(' '); List<long> inputs = new List<l...
using System; using System.Collections.Generic; using System.Linq; namespace IMissYou { class Program { static void Main(string[] args) { string inputNumbers = Console.ReadLine(); long inputNum = Convert.ToInt64(inputNumbers); var input = Console.ReadLine().Split(' '); List<long> inputs = new List<l...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
160
using System; using System.Linq; using System.Collections.Generic; using System.IO; class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } public static int digit(long x) { ...
using System; using System.Linq; using System.Collections.Generic; using System.IO; class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } public static int digit(long x) { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
288
using System; using System.Collections.Generic; using System.Linq; using static System.Console; namespace AtCoder { class Program { static void Main() { var N = ReadLine(); var dic = new Dictionary<int, bool>(); foreach (var A in ReadLine().Split().Select(int.Parse)) { bool res; dic.TryGetVal...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; namespace AtCoder { class Program { static void Main() { var N = ReadLine(); var dic = new Dictionary<int, bool>(); foreach (var A in ReadLine().Split().Select(int.Parse)) { bool res; dic.TryGetVal...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
123
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C___Distinct_or_Not { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C___Distinct_or_Not { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); ...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
179
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C___Distinct_or_Not { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C___Distinct_or_Not { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); ...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
179
using System; using System.Linq; namespace PracticeForAtCoder { class Program { static void Main(string[] args) { //ここから int n = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = int.Parse(str[i]); } ...
using System; using System.Linq; namespace PracticeForAtCoder { class Program { static void Main(string[] args) { //ここから int n = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = int.Parse(str[i]); } ...
[["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 60], ["-", 3, 4, 0, 28, 0, 218, 8, 16, 12, 203]]
8
172
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Hello { class Hello { static void Main() { int number = int.Parse(Console.ReadLine()); var p = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var list = new List<int>(); list.AddRange(p); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Hello { class Hello { static void Main() { int number = int.Parse(Console.ReadLine()); var p = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var list = new List<int>(); list.AddRange(p); ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
172
using System; using System.Linq; namespace ABC154_C { class MainClass { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] A = Console.ReadLine() .Trim() .Split(' ') .Select(a => int.Parse(a)) .ToArray(...
using System; using System.Linq; namespace ABC154_C { class MainClass { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] A = Console.ReadLine() .Trim() .Split(' ') .Select(a => int.Parse(a)) .ToArray(...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
146
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main() { Solve(); Console.ReadKey(); } static void Solve() { var N = GetInt(); var A = GetIntArray(); var D = A.Distinct(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main() { Solve(); Console.ReadKey(); } static void Solve() { var N = GetInt(); var A = GetIntArray(); var D = A.Distinct(); ...
[["-", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["-", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222]]
8
647
using System; using System.Linq; using System.Collections.Generic; namespace AtCoderBeginnerContest152 { class Program { static void Main(string[] args) { var n = Console.ReadLine(); var input = Console.ReadLine().Split().Select(long.Parse).ToArray(); // var input = new long[]{ // 4, 1, 3, 1, 6, 26 ...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoderBeginnerContest152 { class Program { static void Main(string[] args) { var n = Console.ReadLine(); var input = Console.ReadLine().Split().Select(long.Parse).ToArray(); // var input = new long[]{ // 4, 1, 3, 1, 6, 26 ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
150
using System; using System.Linq; class AtCoder { public static void Main() { // var inputs = Console.ReadLine().Trim().Split(' '); var N = int.Parse(Console.ReadLine().Trim()); var A = Console.ReadLine() .Trim() .Split(' ') .Select(x => long.Parse(x)) ...
using System; using System.Linq; class AtCoder { public static void Main() { // var inputs = Console.ReadLine().Trim().Split(' '); var N = int.Parse(Console.ReadLine().Trim()); var A = Console.ReadLine() .Trim() .Split(' ') .Select(x => long.Parse(x)) ...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
109
using System; namespace Kyopuro { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); int[] num = new int[a]; int i; bool isNG = true; for (i = 0; i < a; i++) { num[i] = int.Parse(str[i]); } ...
using System; namespace Kyopuro { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); int[] num = new int[a]; int i; bool isNG = false; for (i = 0; i < a; i++) { num[i] = int.Parse(str[i]); } ...
[["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
172
using System; class ProgramC { static void Main(string[] args) { //入力 int n = int.Parse(Console.ReadLine()); long[] a = new long[n]; string[] input2 = Console.ReadLine().Split(' '); for (int i = 0; i < n; i++) a[i] = long.Parse(input2[i]); //小さい順にソートする Array.Sort(a); //小さい順に足...
using System; class ProgramC { static void Main(string[] args) { //入力 int n = int.Parse(Console.ReadLine()); long[] a = new long[n]; string[] input2 = Console.ReadLine().Split(' '); for (int i = 0; i < n; i++) a[i] = long.Parse(input2[i]); //小さい順にソートする Array.Sort(a); //小さい順に足...
[["-", 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, 17, 72]]
8
155
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassLibrary1 { public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } public class Class1 { static Dictionary<Tuple<long, long>, long> dic...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassLibrary1 { public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } public class Class1 { static Dictionary<Tuple<long, long>, long> dic...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
970
using System; using System.Collections.Generic; using System.Linq; public class Solution { public static void Main() { var N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var uniq = A.Distinct().Count(); if (A.Length == uniq) { Console.Writ...
using System; using System.Collections.Generic; using System.Linq; public class Solution { public static void Main() { var N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var uniq = A.Distinct().Count(); if (A.Length == uniq) { Console.Writ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
113
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProgramingStudying2 { class Program { static void Main(string[] args) { var nk = Console.ReadLine().Split().Select(int.Parse).ToArray(); var n = nk[0]; var k = nk[1]; var p = Console.ReadLine().Split().S...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProgramingStudying2 { class Program { static void Main(string[] args) { var nk = Console.ReadLine().Split().Select(int.Parse).ToArray(); var n = nk[0]; var k = nk[1]; var p = Console.ReadLine().Split().S...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 250], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22]]
8
228
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class35 { static void Main() { var NK = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = NK[0], K = NK[1]; var p = Console.ReadLine().Split().S...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class35 { static void Main() { var NK = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = NK[0], K = NK[1]; var p = Console.ReadLine().Split().S...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 0, 7, 8, 196, 0, 57, 64, 116, 0, 117], ["-", 0, 7, 8, 196, 0, 57, 64, 116, 0, 35]]
8
182
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Program { static void Main() { var order = ReadLine().Split(' ').Select(int.Parse).ToArray(); var dices = ReadLine().Split(' ').Select(int.Parse).ToArray(); var num = 0; var total = 0; decimal ev...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Program { static void Main() { var order = ReadLine().Split(' ').Select(int.Parse).ToArray(); var dices = ReadLine().Split(' ').Select(int.Parse).ToArray(); var num = 0; var total = 0; decimal ev...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
199
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Program { static void Main() { var order = ReadLine().Split(' ').Select(int.Parse).ToArray(); var dice = ReadLine().Split(' ').Select(long.Parse).ToArray(); decimal num = 0; decimal total = 0; de...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Program { static void Main() { var order = ReadLine().Split(' ').Select(int.Parse).ToArray(); var dice = ReadLine().Split(' ').Select(long.Parse).ToArray(); decimal num = 0; decimal total = 0; de...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
225
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC156 { class Program { static void Main(string[] args) { c(); } public static void c() { int n = int.Parse(Console.ReadLine()); int[] x = Console.ReadLine().Split(' ').Select(int...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC156 { class Program { static void Main(string[] args) { c(); } public static void c() { int n = int.Parse(Console.ReadLine()); int[] x = Console.ReadLine().Split(' ').Select(int...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
220
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Math; using static System.Console; using static exMath; using static exReadLine; class Program { static void Main(string[] args) { int N; intReadLine(out N); int[] X = intArrayReadLine(); ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Math; using static System.Console; using static exMath; using static exReadLine; class Program { static void Main(string[] args) { int N; intReadLine(out N); int[] X = intArrayReadLine(); ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
880
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var array = Console.ReadLine().Split().Select(int.Parse).ToArray(); var end = array...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var array = Console.ReadLine().Split().Select(int.Parse).ToArray(); var end = array...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
172
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class40 { static void Main() { int n = int.Parse(Console.ReadLine()); var x = Console.ReadLine().Split().Select(long.Parse).ToArray(); long sum = long.MaxVal...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class40 { static void Main() { int n = int.Parse(Console.ReadLine()); var x = Console.ReadLine().Split().Select(long.Parse).ToArray(); long sum = long.MaxVal...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
165
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices.ComTypes; namespace ABC156D { class Program { static void Main(string[] args) { long[] nav = ReadLong(); long n = nav[0]; long a = nav[1]; long b = nav[2]; long mod = 1000000000 + 7; // l...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices.ComTypes; namespace ABC156D { class Program { static void Main(string[] args) { long[] nav = ReadLong(); long n = nav[0]; long a = nav[1]; long b = nav[2]; long mod = 1000000000 + 7; // l...
[["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]]
8
431
using System; using System.Linq; class test { static long mod = 1000000007; public static void Main() { var nab = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList(); long n = nab[0]; long a = nab[1]; long b = nab[2]; long res = Pow(2, n); long A = Conv(n, a); long B = Conv...
using System; using System.Linq; class test { static long mod = 1000000007; public static void Main() { var nab = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList(); long n = nab[0]; long a = nab[1]; long b = nab[2]; long res = Pow(2, n); long A = Conv(n, a); long B = Conv...
[["+", 0, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22]]
8
305
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { int[] read = inta(); long max = square(2, read[0]) - 1; long a1 = ncr(...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { int[] read = inta(); long max = square(2, read[0]) - 1; long a1 = ncr(...
[["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]]
8
870
using System; using System.Linq; using System.Collections.Generic; namespace Contest { partial class Program { static void Main(string[] args) { ABC156D(); } static void ABC156A() { var nr = ReadIntN(); var N = nr[0]; var R = nr[1]; Console.WriteLine(N >= 10 ? R : R + 100 * (10 - N)); } static...
using System; using System.Linq; using System.Collections.Generic; namespace Contest { partial class Program { static void Main(string[] args) { ABC156D(); } static void ABC156A() { var nr = ReadIntN(); var N = nr[0]; var R = nr[1]; Console.WriteLine(N >= 10 ? R : R + 100 * (10 - N)); } static...
[["+", 0, 16, 12, 23, 0, 16, 31, 74, 0, 24], ["+", 0, 16, 12, 23, 0, 16, 31, 74, 39, 199], ["+", 0, 16, 12, 23, 0, 16, 31, 74, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]]
8
2,398
using static System.Math; using System; class Modulo { private const int MOD = 1000000007; private readonly int[] m_facs; public int Mul(int a, int b) => (int)(Math.BigMul(a, b) % MOD); public Modulo(int n) { m_facs = new int[n + 1]; m_facs[0] = 1; for (int i = 1; i <= n; ++i) m_facs[i] = Mul...
using static System.Math; using System; class Modulo { private const int MOD = 1000000007; private readonly int[] m_facs; public int Mul(int a, int b) => (int)(Math.BigMul(a, b) % MOD); public Modulo(int n) { m_facs = new int[n + 1]; m_facs[0] = 1; for (int i = 1; i <= n; ++i) m_facs[i] = Mul...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
521
using System; using System.Linq; namespace ABC156 { class D { static void Main(string[] args) { long[] input = Console.ReadLine().Split().Select(long.Parse).ToArray(); long n = input[0]; long a = input[1]; long b = input[2]; long mod = 1000000007; long total = modPow(2, n, mod) - 1; long ...
using System; using System.Linq; namespace ABC156 { class D { static void Main(string[] args) { long[] input = Console.ReadLine().Split().Select(long.Parse).ToArray(); long n = input[0]; long a = input[1]; long b = input[2]; long mod = 1000000007; long total = modPow(2, n, mod) - 1; long ...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 12, 22]]
8
374
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public const long DpInf = 99999999999; public static void Main(string[] args) { var p = Input(); var n = p[0].ToLong(); var a = p[1].ToInt(); var b ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public const long DpInf = 99999999999; public static void Main(string[] args) { var p = Input(); var n = p[0].ToLong(); var a = p[1].ToInt(); var b ...
[["+", 0, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 12, 22]]
8
498
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace AtCoder { public static class Ex { public static List<string> FastSort(this List<string> s) { s.Sort(StringComparer.OrdinalIgnoreCase); return s.ToList(); } public static string yesno(this bool b) { return b ? "...
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace AtCoder { public static class Ex { public static List<string> FastSort(this List<string> s) { s.Sort(StringComparer.OrdinalIgnoreCase); return s.ToList(); } public static string yesno(this bool b) { return b ? "...
[["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 16, 12, 213, 3, 4, 0, 25], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 22]]
8
2,051
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using MethodImplAttribute = System.Runtime.Compi...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using MethodImplAttribute = System.Runtime.Compi...
[["+", 0, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 16, 31, 23, 0, 16, 31, 23, 0, 25]]
8
359
using System; namespace ABC155A { class Program { static void Main(string[] args) { string[] word = Console.ReadLine().Split(' '); int a = int.Parse(word[0]); int h = int.Parse(word[1]); int n = int.Parse(word[2]); if (a == h && h != n || n != a) Console.WriteLine("Yes"); else if (a ==...
using System; namespace ABC155A { class Program { static void Main(string[] args) { string[] word = Console.ReadLine().Split(' '); int a = int.Parse(word[0]); int h = int.Parse(word[1]); int n = int.Parse(word[2]); if (a == h && (h != n || n != a)) Console.WriteLine("Yes"); else if (a...
[["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 57, 75, 57, 15, 16, 12, 23, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 12, 23, 0, 25], ["+", 75, 57, 75, 57, 15, 16, 12, 23, 0, 24], ["+", 75, 57, 75, 57, 15, 16, 12, 23, 0, 25]]
8
160
using System; namespace q1 { class q2 { static void Main() { string[] x = Console.ReadLine().Split(); if (x[0] == x[1] && x[1] == x[2] || x[0] != x[1] && x[1] != x[2] && x[1] != x[2]) { Console.WriteLine("No"); } else { Console.WriteLine("Yes"); } } } }
using System; namespace q1 { class q2 { static void Main() { string[] x = Console.ReadLine().Split(); if (x[0] == x[1] && x[1] == x[2] || x[0] != x[1] && x[1] != x[2] && x[0] != x[2]) { Console.WriteLine("No"); } else { Console.WriteLine("Yes"); } } } }
[["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203]]
8
108
using System; class Prpgram { static void Main(string[] args) { string input = Console.ReadLine(); string[] inputlist = input.Split(' '); string A = inputlist[0]; string B = inputlist[1]; string C = inputlist[2]; if (A == B && A == C) Console.Write("No"); else if (A != B && A != C) ...
using System; class Prpgram { static void Main(string[] args) { string input = Console.ReadLine(); string[] inputlist = input.Split(' '); string A = inputlist[0]; string B = inputlist[1]; string C = inputlist[2]; if (A == B && A == C) Console.Write("No"); else if (A != B && A != C &...
[["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 17, 79], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 12, 22]]
8
164
using System; using System.Collections.Generic; using System.Linq; class Ho { static void Main() { var aho = Console.ReadLine().Split(); if (aho[0] == aho[1] && aho[1] == aho[2]) { Console.WriteLine("No"); } else if (aho[0] != aho[1] && aho[0] == aho[2] && aho[1] == aho[2]) { Console.WriteLine...
using System; using System.Collections.Generic; using System.Linq; class Ho { static void Main() { var aho = Console.ReadLine().Split(); if (aho[0] == aho[1] && aho[1] == aho[2]) { Console.WriteLine("No"); } else if (aho[0] != aho[1] && aho[0] != aho[2] && aho[1] != aho[2]) { Console.WriteLine...
[["-", 75, 57, 15, 16, 31, 16, 12, 16, 17, 60], ["+", 75, 57, 15, 16, 31, 16, 12, 16, 17, 79], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 60], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 17, 79]]
8
128
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 strarr = Console.ReadLine().Split(); var a = int.Parse(strarr[0]); var b = int.Parse(strarr[1]); var c = in...
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 strarr = Console.ReadLine().Split(); var a = int.Parse(strarr[0]); var b = int.Parse(strarr[1]); var c = in...
[["+", 0, 57, 75, 196, 0, 57, 75, 57, 0, 95]]
8
176
using System; class Program { static void Main(string[] args) { string[] numbers = Console.ReadLine().Split(' '); var c = 0; if (int.Parse(numbers[0]) + int.Parse(numbers[1]) + int.Parse(numbers[2]) == int.Parse(numbers[0]) * 3) { Console.WriteLine("No"); return; } for (var i...
using System; class Program { static void Main(string[] args) { string[] numbers = Console.ReadLine().Split(' '); var c = 0; if (int.Parse(numbers[0]) + int.Parse(numbers[1]) + int.Parse(numbers[2]) == int.Parse(numbers[0]) * 3) { Console.WriteLine("No"); return; } for (var i...
[["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
174
using System; public class Program { public static void Main() { var sp = Console.ReadLine().Split(); if (sp[0] == sp[1] && sp[0] != sp[2]) Console.WriteLine("YES"); else if (sp[0] == sp[2] && sp[1] != sp[2]) Console.WriteLine("YES"); else if (sp[2] == sp[1] && sp[0] != sp[2]) Conso...
using System; public class Program { public static void Main() { var sp = Console.ReadLine().Split(); if (sp[0] == sp[1] && sp[0] != sp[2]) Console.WriteLine("Yes"); else if (sp[0] == sp[2] && sp[1] != sp[2]) Console.WriteLine("Yes"); else if (sp[2] == sp[1] && sp[0] != sp[2]) Conso...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
134
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { string[] temp = Console.ReadLine().Split(); int[] A = new int[3]; for (int i = 0; i < 3; i++) { A[i] = int.Parse(temp[i]); } Array.Sort(A); if (A[0] == A[1] && A[1] == A[2] && ...
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { string[] temp = Console.ReadLine().Split(); int[] A = new int[3]; for (int i = 0; i < 3; i++) { A[i] = int.Parse(temp[i]); } Array.Sort(A); if ((A[0] == A[1] || A[1] == A[2]) &...
[["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25]]
8
146
using System; namespace ABC155A { class Program { static void Main(string[] args) { int a, b, c; string[] ss = Console.ReadLine().Split(' '); a = int.Parse(ss[0]); b = int.Parse(ss[1]); c = int.Parse(ss[2]); if (a == b && b == c) Console.WriteLine("No"); else if (a != b && b != c) ...
using System; namespace ABC155A { class Program { static void Main(string[] args) { int a, b, c; string[] ss = Console.ReadLine().Split(' '); a = int.Parse(ss[0]); b = int.Parse(ss[1]); c = int.Parse(ss[2]); if (a == b && b == c) Console.WriteLine("No"); else if (a != b && b != c &&...
[["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 17, 79], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 12, 22]]
8
138
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderBeginnerContest155 { class Program { static void Main(string[] args) { var numbers = ReadIntArray(); if (numbers.Distinct().Count() == 2) { Console.WriteLine("No"); } else { Console.WriteLine("Yes"); } }...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderBeginnerContest155 { class Program { static void Main(string[] args) { var numbers = ReadIntArray(); if (numbers.Distinct().Count() == 2) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } }...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
216
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _3 { class Program { static void Main(string[] args) { var one = Console.ReadLine(); int intone = one.Length; string flag = "0"; string[] arrsplit = one.Split(' '); str...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _3 { class Program { static void Main(string[] args) { var one = Console.ReadLine(); int intone = one.Length; string flag = "0"; string[] arrsplit = one.Split(' '); str...
[["-", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22]]
8
222
using System; namespace abc153a { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int b = int.Parse(str[1]); int c = int.Parse(str[2]); if (a == b && b != c && a != c) Console.WriteLine("Yes"); if (a == c && a !=...
using System; namespace abc153a { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int b = int.Parse(str[1]); int c = int.Parse(str[2]); if (a == b && b != c && a != c) Console.WriteLine("Yes"); else if (a == c &&...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 95]]
8
158
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string ABC = Console.ReadLine(); string[] split = ABC.Split(); int A = int.Parse(split[0]); int B = int.Parse(split[1]); int C = int.Parse(split[2]); if (A == B || A == C || B == C) { if ...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string ABC = Console.ReadLine(); string[] split = ABC.Split(); int A = int.Parse(split[0]); int B = int.Parse(split[1]); int C = int.Parse(split[2]); if (A == B || A == C || B == C) { if ...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]]
8
141
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { public class Solver { public void Solve() { var cin = new Scanner(); var a = cin.nextInt(); var b = cin.nextInt(); va...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { public class Solver { public void Solve() { var cin = new Scanner(); var a = cin.nextInt(); var b = cin.nextInt(); va...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]]
8
649
using System; using System.Linq; namespace ABC155A { class Program { static void Main(string[] args) { var ABC = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); Console.WriteLine(ABC.Distinct().Count() == 1 ? "No" : "Yes"); } } }
using System; using System.Linq; namespace ABC155A { class Program { static void Main(string[] args) { var ABC = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); Console.WriteLine(ABC.Distinct().Count() == 2 ? "Yes" : "No"); } } }
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
81
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc155/tasks/abc155_a public class QuestionA { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc155/tasks/abc155_a public class QuestionA { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( ...
[["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 95]]
8
238
using System; namespace AtCoder { class Program { static void Main() { int N = int.Parse(Console.ReadLine()); string[] n = Console.ReadLine().Split(); int[] a = new int[N]; for (int x = 0; x < N; x++) { a[x] = int.Parse(n[x]); } for (int y = 0; y < N; y++) { if (a[y] % 2 == 0) { ...
using System; namespace AtCoder { class Program { static void Main() { int N = int.Parse(Console.ReadLine()); string[] n = Console.ReadLine().Split(); int[] a = new int[N]; for (int x = 0; x < N; x++) { a[x] = int.Parse(n[x]); } for (int y = 0; y < N; y++) { if (a[y] % 2 == 0) { ...
[["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 106]]
8
175
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] A = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); string s = "DENIED"; for (int i = 0; i < N; i++) { if (A[i] % 2 == 0) { ...
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] A = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); string s = "APPROVED"; for (int i = 0; i < N; i++) { if (A[i] % 2 == 0) ...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]]
8
157
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc155_b { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); // N個の書類 var As = Console.ReadLine().Split(' '); for (int i = 0; i < As.Length...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc155_b { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); // N個の書類 var As = Console.ReadLine().Split(' '); for (int i = 0; i < As.Length...
[["+", 0, 57, 64, 196, 0, 57, 15, 241, 0, 111], ["+", 64, 196, 0, 57, 15, 241, 0, 23, 0, 24], ["+", 64, 196, 0, 57, 15, 241, 0, 23, 0, 25]]
8
168
using System; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] ax = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int[] ax2 = ax.Where(w => w % 2 == 0).ToArray(); if (ax2.Length == 0) { Console.WriteLi...
using System; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] ax = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int[] ax2 = ax.Where(w => w % 2 == 0).ToArray(); if (ax2.Length == 0) { Console.WriteLi...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
174
//==========================================c# /* =========================================== // null // // =========================================== */ using System; // Console, IComparable using System.IO; // StreamWriter using System.Linq; // Select(), Where(), O...
//==========================================c# /* =========================================== // null // // =========================================== */ using System; // Console, IComparable using System.IO; // StreamWriter using System.Linq; // Select(), Where(), O...
[["-", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 75, 196, 0, 1, 0, 11, 12, 211, 0, 147], ["-", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 57, 75, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 75, 196, 0, 116, 0, 117]]
8
212
using System; public class Hello { public static void Main() { var times = int.Parse(Console.ReadLine()); var input = Console.ReadLine().Split(' '); var result = "DENIED"; for (var i = 0; i < times; i++) { if (int.Parse(input[i]) % 2 == 0) { if (int.Parse(input[i]) % 3 == 0 || int.Pars...
using System; public class Hello { public static void Main() { var times = int.Parse(Console.ReadLine()); var input = Console.ReadLine().Split(' '); var result = "APPROVED"; for (var i = 0; i < times; i++) { if (int.Parse(input[i]) % 2 == 0) { if (int.Parse(input[i]) % 3 == 0 || int.Pa...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]]
8
143
using System; namespace AtCoderCs { class Program { static void Main(string[] args) { var num = int.Parse(Console.ReadLine()); var str = Console.ReadLine().Split(' '); foreach (var @int in str) { int c = int.Parse(@int); if (c % 2 == 0 && c % 3 != 0 && c % 5 != 0) Console.WriteLin...
using System; namespace AtCoderCs { class Program { static void Main(string[] args) { var num = int.Parse(Console.ReadLine()); var str = Console.ReadLine().Split(' '); foreach (var @int in str) { int c = int.Parse(@int); if (c % 2 == 0 && c % 3 != 0 && c % 5 != 0) { Console.WriteL...
[["+", 0, 210, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 210, 8, 196, 0, 57, 64, 196, 0, 46]]
8
113
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; class Program { static void Main() { FastScanner sc = new FastScanner(Console.OpenStandardInput()); int N = sc.nextInt(); int[] A = sc.intArray(N); bool flg = true; f...
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; class Program { static void Main() { FastScanner sc = new FastScanner(Console.OpenStandardInput()); int N = sc.nextInt(); int[] A = sc.intArray(N); bool flg = true; f...
[["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 85], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 60], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 1...
8
630
using System; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main(string[] args) { int N = int.Parse(ReadLine()); bool b = false; int[] A = new int[N]; string[] str = ReadLine().Split(' '); for (int i = 0; i < N; i++) A[i...
using System; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main(string[] args) { int N = int.Parse(ReadLine()); bool b = true; int[] A = new int[N]; string[] str = ReadLine().Split(' '); for (int i = 0; i < N; i++) A[i]...
[["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146]]
8
190
using System; using System.Collections.Generic; using System.Linq; namespace PapersPlease { class Program { static void Main(string[] args) { var ninput = int.Parse(Console.ReadLine()); var inputs = Console.ReadLine().Split(' '); int[] inputArray = Array.ConvertAll(inputs, x => int.Parse(x)); List<i...
using System; using System.Collections.Generic; using System.Linq; namespace PapersPlease { class Program { static void Main(string[] args) { var ninput = int.Parse(Console.ReadLine()); var inputs = Console.ReadLine().Split(' '); int[] inputArray = Array.ConvertAll(inputs, x => int.Parse(x)); List<i...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95]]
8
273
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC157B { class Program { static void Main(string[] args) { int[,] A = new int[3, 3]; for (int i = 0; i < 3; i++) { string[] input = Console.ReadLine().Split(' '); A[i, 0]...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC157B { class Program { static void Main(string[] args) { int[,] A = new int[3, 3]; for (int i = 0; i < 3; i++) { string[] input = Console.ReadLine().Split(' '); A[i, 0]...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
596
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Program { static void Main() { var board = new string[3, 3]; var n = 0; for (var i = 0; i < 3; i++) { var x = ReadLine().Split(' '); for (var j = 0; j < 3; j++) { board[i, j] = x[j];...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Program { static void Main() { var board = new string[3, 3]; var n = 0; for (var i = 0; i < 3; i++) { var x = ReadLine().Split(' '); for (var j = 0; j < 3; j++) { board[i, j] = x[j];...
[["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22]]
8
467
using System; namespace AtCoderSucks { internal static class Program { private static void Main(string[] args) { int[] A1 = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int[] A2 = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int[] A3 = Array.ConvertAll(Console.ReadLine().Split(), ...
using System; namespace AtCoderSucks { internal static class Program { private static void Main(string[] args) { int[] A1 = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int[] A2 = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int[] A3 = Array.ConvertAll(Console.ReadLine().Split(), ...
[["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
453
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static void Main(string[] args) { try { Solve.Answer(); } catch (Exception ex) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static void Main(string[] args) { try { Solve.Answer(); } catch (Exception ex) { ...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
1,419
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Math; using static ABC156.Cin; using static ABC156.Util; using Pair = ABC156.VTuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<long>>; namespace ABC156 { public ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Math; using static ABC156.Cin; using static ABC156.Util; using Pair = ABC156.VTuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<long>>; namespace ABC156 { public ...
[["-", 0, 204, 206, 207, 0, 28, 0, 16, 31, 203], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33]]
8
2,653
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoders { class Program { static void Main(string[] args) { var row1 = retreiveIntArray(); var row2 = retreiveIntArray(); var row3 = retreiveIntArray(); var inputCount = 3; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoders { class Program { static void Main(string[] args) { var row1 = retreiveIntArray(); var row2 = retreiveIntArray(); var row3 = retreiveIntArray(); var inputCount = 3; ...
[["+", 0, 198, 0, 200, 0, 212, 0, 229, 0, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 229, 0, 21]]
8
544
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { var card = new int[3, 3]; for (int i = 0; i < 3; i++) { var r = Console.ReadLine().Split(' '); for (int j = 0; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { var card = new int[3, 3]; for (int i = 0; i < 3; i++) { var r = Console.ReadLine().Split(' '); for (int j = 0; ...
[["-", 8, 196, 0, 7, 8, 196, 0, 93, 0, 94], ["-", 8, 196, 0, 7, 8, 196, 0, 93, 0, 35]]
8
445
using System; using System.Linq; using System.Collections.Generic; using System.IO; class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } public static bool bingo(bool[,] abool...
using System; using System.Linq; using System.Collections.Generic; using System.IO; class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } public static bool bingo(bool[,] abool...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203]]
8
559
using System; public class Hello { public static void Main() { int[] All = new int[9]; for (int i = 1; i <= 3; i++) { string[] a = Console.ReadLine().Split(' '); for (int j = 0; j < 3; j++) { All[i + j + 1] = int.Parse(a[j]); } } int N = int.Parse(Console.ReadLine()); ...
using System; public class Hello { public static void Main() { int[] All = new int[9]; for (int i = 0; i < 3; i++) { string[] a = Console.ReadLine().Split(' '); for (int j = 0; j < 3; j++) { All[i * 3 + j] = int.Parse(a[j]); } } int N = int.Parse(Console.ReadLine()); ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 17, 48], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 12, 203], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 17,...
8
328
using System; using System.Collections.Generic; using System.Linq; namespace B { class Program { static void Main(string[] args) { var bingoMap = new List<int>(); foreach (var _ in Enumerable.Range(0, 3)) { bingoMap.AddRange( Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList());...
using System; using System.Collections.Generic; using System.Linq; namespace B { class Program { static void Main(string[] args) { var bingoMap = new List<int>(); foreach (var _ in Enumerable.Range(0, 3)) { bingoMap.AddRange( Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList());...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
450
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TOPSIC { partial class Program { static void Main(string[] args) { string[] A1 = Console.ReadLine().Split(' '); string[] A2 = Console.ReadLine().Split(' '); string[] A3 = Console....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TOPSIC { partial class Program { static void Main(string[] args) { string[] A1 = Console.ReadLine().Split(' '); string[] A2 = Console.ReadLine().Split(' '); string[] A3 = Console....
[["-", 12, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 204, 205, 22]]
8
572
using System; namespace B { class Program { static void Main(string[] args) { Console.WriteLine(solver() ? "Yes" : "No"); } static bool solver() { var A = new int[3, 3]; var isHit = new bool[3, 3]; for (int i = 0; i < 3; i++) { var read = Array.ConvertAll(Console.ReadLine().Split(' '), int....
using System; namespace B { class Program { static void Main(string[] args) { Console.WriteLine(solver() ? "Yes" : "No"); } static bool solver() { var A = new int[3, 3]; var isHit = new bool[3, 3]; for (int i = 0; i < 3; i++) { var read = Array.ConvertAll(Console.ReadLine().Split(' '), int....
[["+", 0, 7, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 7, 8, 196, 0, 7, 8, 196, 0, 46]]
8
421
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { //文字列を読み込む int[] A1 = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int[] A2 = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); i...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { //文字列を読み込む int[] A1 = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int[] A2 = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); i...
[["-", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22]]
8
421
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp18 { class Program { static void Main(string[] args) { long[] iti = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); long[] ni = Console.R...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp18 { class Program { static void Main(string[] args) { long[] iti = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); long[] ni = Console.R...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18]]
8
516
using System; using static System.Console; using System.Linq; namespace AC { public class shiokara { static void Main(string[] args) { int[] aa = new int[9]; int[] a1 = new int[3]; int[] a2 = new int[3]; aa = ReadLine().Split(' ').Select(int.Parse).ToArray(); a1 = ReadLine().Split(' ').Select(int...
using System; using static System.Console; using System.Linq; namespace AC { public class shiokara { static void Main(string[] args) { int[] aa = new int[9]; int[] a1 = new int[3]; int[] a2 = new int[3]; aa = ReadLine().Split(' ').Select(int.Parse).ToArray(); a1 = ReadLine().Split(' ').Select(int...
[["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
507
using System; using System.Collections.Generic; using System.Linq; namespace ABC157B { class Program { static void Main(string[] args) { var As = new int [3][]; for (var i = 0; i < 3; i++) As[i] = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = int.Parse(Console.ReadLine()); v...
using System; using System.Collections.Generic; using System.Linq; namespace ABC157B { class Program { static void Main(string[] args) { var As = new int [3][]; for (var i = 0; i < 3; i++) As[i] = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = int.Parse(Console.ReadLine()); v...
[["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146]]
8
391
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace MyProject { class Program { static void Main(string[] args) { #if Local var sw = new Stopwatch(); sw.Start(); Console.SetIn(new StreamReader("input.in")); #endif var solver = new S...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace MyProject { class Program { static void Main(string[] args) { #if Local var sw = new Stopwatch(); sw.Start(); Console.SetIn(new StreamReader("input.in")); #endif var solver = new S...
[["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 62], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 0, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
616
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 row1 = Console.ReadLine().Split(' ').Select(c => int.Parse(c)).ToArray(); var row2 = Console.ReadLi...
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 row1 = Console.ReadLine().Split(' ').Select(c => int.Parse(c)).ToArray(); var row2 = Console.ReadLi...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
622
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { /* double a; a = double.Parse(Console.ReadLine()); //標準入力 //string[] str = Console.ReadLine().Split(' ');//2つ以上のスペース区切り入力の取得 //b = int....
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { /* double a; a = double.Parse(Console.ReadLine()); //標準入力 //string[] str = Console.ReadLine().Split(' ');//2つ以上のスペース区切り入力の取得 //b = int....
[["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203]]
8
708
using System; namespace ConsoleApp6 { class Program { static void Main(string[] args) { int[,] card = new int[3, 3]; for (int i = 0; i <= 2; i++) { string[] number = Console.ReadLine().Split(' '); for (int j = 0; j <= 2; j++) { card[i, j] = int.Parse(number[j]); } } int N = ...
using System; namespace ConsoleApp6 { class Program { static void Main(string[] args) { int[,] card = new int[3, 3]; for (int i = 0; i <= 2; i++) { string[] number = Console.ReadLine().Split(' '); for (int j = 0; j <= 2; j++) { card[i, j] = int.Parse(number[j]); } } int N = ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
399
using System; using System.Linq; using System.Collections.Generic; using E = System.Linq.Enumerable; public class Program { public static void Main() { var card = new int [3][]; for (int i = 0; i < card.Length; ++i) { card[i] = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); } ...
using System; using System.Linq; using System.Collections.Generic; using E = System.Linq.Enumerable; public class Program { public static void Main() { var card = new int [3][]; for (int i = 0; i < card.Length; ++i) { card[i] = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); } ...
[["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203]]
8
388
using System; using System.Collections.Generic; using System.Linq; public class Hello { private const int MOD_N = 1000000000 + 7; public static void Main() { var a = new int [3][]; for (int i = 0; i < a.Length; ++i) { var t = Console.ReadLine().Split(' '); var a_ = new int[t.Length]; for...
using System; using System.Collections.Generic; using System.Linq; public class Hello { private const int MOD_N = 1000000000 + 7; public static void Main() { var a = new int [3][]; for (int i = 0; i < a.Length; ++i) { var t = Console.ReadLine().Split(' '); var a_ = new int[t.Length]; for...
[["-", 205, 204, 206, 207, 0, 28, 0, 16, 31, 203], ["-", 205, 204, 206, 207, 0, 28, 0, 16, 17, 33]]
8
883
using System; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; using System.Diagnostics.Contracts; class Program { static void Main() { var bingo = new List<int>(); bingo.AddRange(MyUtil.ReadintArray(...
using System; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; using System.Diagnostics.Contracts; class Program { static void Main() { var bingo = new List<int>(); bingo.AddRange(MyUtil.ReadintArray(...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]]
8
751
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 int[] a1 = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] a2 = Console.ReadLine().Split().Select(int.Parse).ToArray(); ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 int[] a1 = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] a2 = Console.ReadLine().Split().Select(int.Parse).ToArray(); ...
[["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203]]
8
614
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main() { var a1 = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var a2 = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var a3 = Console.ReadLine().Split(' ').Select(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main() { var a1 = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var a2 = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var a3 = Console.ReadLine().Split(' ').Select(...
[["-", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
367
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProgramingStudying2 { class Program { static void Main(string[] args) { var nm = Console.ReadLine().Split().Select(int.Parse).ToArray(); var n = nm[0]; var m = nm[1]; var number = new int[n]; var vis...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProgramingStudying2 { class Program { static void Main(string[] args) { var nm = Console.ReadLine().Split().Select(int.Parse).ToArray(); var n = nm[0]; var m = nm[1]; var number = new int[n]; var vis...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98]]
8
299