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.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 resourceName = "AtCoderCShar...
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 resourceName = "AtCoderCShar...
[["+", 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, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 2...
8
693
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public const long DpInf = 99999999999999; public static void Main(string[] args) { var p = Input(); var h = p[0].ToLong(); var w = p[1].ToLong(); va...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public const long DpInf = 99999999999999; public static void Main(string[] args) { var p = Input(); var h = p[0].ToLong(); var w = p[1].ToLong(); va...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, ...
8
318
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template; using Pi = Pair<int, i...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template; using Pi = Pair<int, i...
[["+", 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, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 2...
8
1,529
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; using System.Numerics; using System.Text.RegularExpressions; using System.Runtime.Serialization.Formatters.Binary; namespace atcorder2 { [Serializable] static class Program { public static long Read() { r...
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; using System.Numerics; using System.Text.RegularExpressions; using System.Runtime.Serialization.Formatters.Binary; namespace atcorder2 { [Serializable] static class Program { public static long Read() { r...
[["+", 15, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 33], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12,...
8
751
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass { static void Main() { var r = ReadLine().Split().Select(decimal.Parse).ToArray(); var a = r[0]; var b = r[1]; var c = r[2]; if (4 * a * b < (a * a + b...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass { static void Main() { var r = ReadLine().Split().Select(decimal.Parse).ToArray(); var a = r[0]; var b = r[1]; var c = r[2]; if (c - a - b < 0) { WriteLi...
[["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 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, 20...
8
143
using System; class c { static void Main() { var abc = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); long a = abc[0], b = abc[1], c = abc[2]; Console.WriteLine(4 * a * b < c * c + a * a + b * b - 2 * a * c - 2 * b * c + 2 * a * b ...
using System; class c { static void Main() { var abc = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); long a = abc[0], b = abc[1], c = abc[2]; Console.WriteLine(4 * a * b < c * c + a * a + b * b - 2 * a * c - 2 * b * c + 2 * a * b && ...
[["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 98], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 31, 22], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 17, 33], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 41, 15, 16, 12, 16, 31, 16, 17, 33], ["+", 0, 41, 15, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 28, 0, 41, 15, 16, 12, 16, 17, 47]...
8
107
using System; using System.Collections.Generic; using System.IO.Pipes; namespace cswork { class Program { class Scanner { string[] s; int i; char[] cs = new char[] { ' ' }; public Scanner() { s = new string[0]; i = 0; } public string next() { if (i < s.Length) ret...
using System; using System.Collections.Generic; using System.IO.Pipes; namespace cswork { class Program { class Scanner { string[] s; int i; char[] cs = new char[] { ' ' }; public Scanner() { s = new string[0]; i = 0; } public string next() { if (i < s.Length) ret...
[["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 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, 20...
8
467
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 17, 33], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 12, 22]...
8
1,132
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { checked { var A = sc.ReadLong(); var B = sc.ReadLong(); var C = sc.ReadLong(); var x = C - A - B; if (4 * A * B < x * x) { Console.WriteLine("Yes"); } e...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { checked { var A = sc.ReadLong(); var B = sc.ReadLong(); var C = sc.ReadLong(); var x = C - A - B; if (x <= 0) { Console.WriteLine("No"); return; ...
[["+", 0, 287, 0, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 287, 0, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 287, 0, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 287, 0, 196, 0, 57, 0, 25], ["+", 0, 287, 0, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, ...
8
1,075
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var r = Console.ReadLine().Split(' '); var a = r[0].ToDouble(); var b = r[1].ToDouble(); ...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var r = Console.ReadLine().Split(' '); var a = r[0].ToDecimal(); var b = r[1].ToDecimal();...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["-", 0, 212, 0, 213, 3, 4, 0, 28, 0...
8
238
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Solve { public Solve() {} public static int Main() { new Solve().calc(); return 0; } Scanner cin; void calc() ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Solve { public Solve() {} public static int Main() { new Solve().calc(); return 0; } Scanner cin; void calc() ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33], ["-", 0, 200, 0, 212, 0, 16, 31, ...
8
828
using AtCoderBeginnerContest157.Questions; using AtCoderBeginnerContest157.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace AtCoderBeginnerContest157.Questions { public class QuestionB : AtCoderQuestionBase { public override IEnumerable<...
using AtCoderBeginnerContest157.Questions; using AtCoderBeginnerContest157.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace AtCoderBeginnerContest157.Questions { public class QuestionB : AtCoderQuestionBase { public override IEnumerable<...
[["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 106], ["+", 0, 28, 0, 218, 8, 16, 12, 204, 205, 22], ["+", 0, 218, 8, 16, 12, 204, 206, 207, 0, 70], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 31, 203], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 22], ["+", 0, 218, 8, 16, 12, 204, 206, ...
8
721
using System; using System.Linq; class Program { static void Main(string[] args) { long[] inp = null; long[] brd = new long[9]; bool[] bng = new bool[9]; for (int i = 0; i < 3; i++) { inp = Console.ReadLine().Split(' ').Select(k => long.Parse(k)).ToArray(); brd[i * 3 + 0] = inp[0]; ...
using System; using System.Linq; class Program { static void Main(string[] args) { long[] inp = null; long[] brd = new long[9]; bool[] bng = new bool[9]; for (int i = 0; i < 3; i++) { inp = Console.ReadLine().Split(' ').Select(k => long.Parse(k)).ToArray(); brd[i * 3 + 0] = inp[0]; ...
[["-", 31, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 60], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 98], ["+", 31, 204, 206, 207, 0, 28, 0, ...
8
388
namespace AtCoderCS { using System; using System.Collections.Generic; using System.IO; using System.Text; using static System.Console; using static System.Math; class Program { void Solve() { var A = new int[3, 3]; for (var i = 0; i < 3; i++) { for (var j = 0; j < 3; j++) { A[i, j] = cin.Int; ...
namespace AtCoderCS { using System; using System.Collections.Generic; using System.IO; using System.Text; using static System.Console; using static System.Math; class Program { void Solve() { var A = new int[3, 3]; for (var i = 0; i < 3; i++) { for (var j = 0; j < 3; j++) { A[i, j] = cin.Int; ...
[["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 8, 196, 0, 1, 0, 11, 12, 211, 0, 146], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 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, 211, 0, 146], ["+", 8, 196,...
8
664
using System; namespace B___Bingo { class Program { static void Main(string[] args) { var a = new string[3, 3]; for (var i = 0; i < 3; i++) { var input = Console.ReadLine().Split(); for (var j = 0; j < 3; j++) { a[i, j] = input[j]; } } var n = int.Parse(Console.ReadLine()); ...
using System; namespace B___Bingo { class Program { static void Main(string[] args) { var a = new string[3, 3]; for (var i = 0; i < 3; i++) { var input = Console.ReadLine().Split(); for (var j = 0; j < 3; j++) { a[i, j] = input[j]; } } var n = int.Parse(Console.ReadLine()); ...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 12, 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, 21], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 31, 16, 31, 16, 31, 204,...
8
350
using System; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Contracts; using System.Linq; using System.Text; namespace at_coder { #if TEST [TestClass] #endif public class Test_157_b { #if TEST public static void Test_Main() #else public static void Main() #endif { var...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Contracts; using System.Linq; using System.Text; namespace at_coder { #if TEST [TestClass] #endif public class Test_157_b { #if TEST public static void Test_Main() #else public static void Main() #endif { var...
[["+", 0, 195, 8, 196, 0, 196, 0, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 196, 0, 57, 15, 16, 31, 22], ["+", 8, 196, 0, 196, 0, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 196, 0, 57, 64, 196, 0, 45]...
8
623
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) { List<string> row1 = Console.ReadLine().Split(' ').ToList(); List<string> row2 = Console.ReadLine().Split(' ').ToList()...
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) { List<string> row1 = Console.ReadLine().Split(' ').ToList(); List<string> row2 = Console.ReadLine().Split(' ').ToList()...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+",...
8
605
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 seat = new int[3, 3]; for (int i = 0; i < 3; i++...
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 seat = new int[3, 3]; for (int i = 0; i < 3; i++...
[["+", 0, 7, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 7, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 31, 16, 31, 204, 206, 207, 0, 21], ["+", 31, 16, 31, 16, 31, 204, 206, 207, 0, 21], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 2...
8
892
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush ...
[["+", 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, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22...
8
1,312
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) { ...
[["+", 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, 37, 0, 38],...
8
379
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 void Main(string[] args)...
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 void Main(string[] args)...
[["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 205, 22], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 0, 131], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 57, 64, 1, 0, 213, 3, 4, 0, 24], ["+", 64, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+...
8
401
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { var nm = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }), number => int.Parse(number)); var n = nm[0]; var m = nm[1]; if (m == 0) { if (n == 1) { ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { var nm = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }), number => int.Parse(number)); var n = nm[0]; var m = nm[1]; if (m == 0) { if (n == 1) { ...
[["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45]...
8
436
using System; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var input1 = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = input1[0]; var M = input1[1]; var a = Enumerable.Repeat(-1, N + 1).ToArray(); for (int _ = 0; _ < M; _++) { ...
using System; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var input1 = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = input1[0]; var M = input1[1]; var a = Enumerable.Repeat(-1, N + 1).ToArray(); for (int _ = 0; _ < M; _++) { ...
[["+", 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], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, ...
8
278
using System; using System.Collections.Generic; using System.Linq; namespace ABC157C { class Program { static void Main(string[] args) { var NM = ReadInt(); int N = NM[0]; int M = NM[1]; int[] s = new int[M]; string[] c = new string[M]; for (int i = 0; i < M; i++) { var input = ReadInt...
using System; using System.Collections.Generic; using System.Linq; namespace ABC157C { class Program { static void Main(string[] args) { var NM = ReadInt(); int N = NM[0]; int M = NM[1]; int[] s = new int[M]; string[] c = new string[M]; for (int i = 0; i < M; i++) { var input = ReadInt...
[["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["...
8
373
using System; using System.Collections; using System.Collections.Generic; using System.IO.Pipes; using System.Linq; using System.Numerics; using System.Security.Cryptography; using System.Text; using System.Threading; namespace ForATCODER { public class Program { public static void Main(string[] args) { int ccc ...
using System; using System.Collections; using System.Collections.Generic; using System.IO.Pipes; using System.Linq; using System.Numerics; using System.Security.Cryptography; using System.Text; using System.Threading; namespace ForATCODER { public class Program { public static void Main(string[] args) { int ccc ...
[["+", 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, 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, 195, 8, 196, 0, 57, 15, 16...
8
831
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, 7, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 15, 16, 31, 16, 12, 16, 31, 204, 205, 22], ["-", 31, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 12, 16, 31, 204, 206, 20...
8
1,431
using System; namespace ABC157C { class Program { static void Main(string[] args) { string[] nms = Console.ReadLine().Split(); int n = int.Parse(nms[0]); int m = int.Parse(nms[1]); string scs; int[] s = new int[m]; int[] c = new int[m]; int[] a = new int[n]; for (int i = 0; i < n; i++...
using System; namespace ABC157C { class Program { static void Main(string[] args) { string[] nms = Console.ReadLine().Split(); int n = int.Parse(nms[0]); int m = int.Parse(nms[1]); string scs; int[] s = new int[m]; int[] c = new int[m]; int[] a = new int[n]; for (int i = 0; i < n; i++...
[["+", 8, 196, 0, 57, 64, 196, 0, 99, 0, 155], ["+", 8, 196, 0, 57, 64, 196, 0, 99, 0, 24], ["+", 8, 196, 0, 57, 64, 196, 0, 99, 51, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 99, 0, 25], ["+", 0, 57, 64, 196, 0, 99, 8, 254, 0, 45], ["+", 0, 99, 8, 254, 0, 239, 0, 264, 0, 173], ["+", 0, 99, 8, 254, 0, 239, 0, 264, 0, 203], ...
8
434
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, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+...
8
2,883
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace test { class Program { static void Main(string[] args) { var r = Console.ReadLine().Split(' '); var N = r[0].ToInt(); var M = r[1].ToInt(); var max = Math.Pow(10, N).ToInt(); var min = Math.Pow(10, N -...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace test { class Program { static void Main(string[] args) { var r = Console.ReadLine().Split(' '); var N = r[0].ToInt(); var M = r[1].ToInt(); var max = Math.Pow(10, N).ToInt(); var min = Math.Pow(10, N -...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ...
8
369
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var l = Console.ReadLine(); var digit = int.Parse(l.Split(' ')[0]); var num = int.Parse(l.Split(' ')[1]); // line.Split(' '); var flag = true; if (num == 0) { if (digit ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var l = Console.ReadLine(); var digit = int.Parse(l.Split(' ')[0]); var num = int.Parse(l.Split(' ')[1]); // line.Split(' '); var flag = true; if (num == 0) { if (digit ...
[["+", 31, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 31, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["+", 31, 16, 31, 16, 12, 213, 3, 4, 0, 24], ["+", 31, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 31, 16, 31, 16, 12, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 15, 16, 31, 16, 12, 16, 31, 204, ...
8
392
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { //[summary]C - Guess The Number Console.WriteLine(CreateNumber()); } static int CreateNumber() { var line = ReadLine(); int N = line[0]; int M = line[1]; ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { //[summary]C - Guess The Number Console.WriteLine(CreateNumber()); } static int CreateNumber() { var line = ReadLine(); int N = line[0]; int M = line[1]; ...
[["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 20...
8
319
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using System.Diagnostics; using ll=System.Int64; using static Contest_A.Lib_IO; using static Contest_A.Lib_Minifunc; public static class Contest_A { public static ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using System.Diagnostics; using ll=System.Int64; using static Contest_A.Lib_IO; using static Contest_A.Lib_Minifunc; public static class Contest_A { public static ...
[["+", 0, 213, 3, 4, 0, 28, 0, 41, 75, 22], ["+", 0, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 3, 4, 0, 28, ...
8
2,932
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static void Main(string[] args) { // スペース区切りの整数の入力 var S = Console.ReadLine(); var answer = ""; for (int i = 0; i < S.Length; i++) { answer += "x"; } } } }
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static void Main(string[] args) { // スペース区切りの整数の入力 var S = Console.ReadLine(); var answer = ""; for (int i = 0; i < S.Length; i++) { answer += "x"; } Console.WriteLine(answer...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
74
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] array = Console.ReadLine().Split(' ').Select(x => x).ToArray(); HashSet<string> hsTable = new HashSet<string>(); ...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] array = Console.ReadLine().Split(' ').Select(x => x).ToArray(); HashSet<string> hsTable = new HashSet<string>(); ...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 62], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 222], ["-", 0, 57, 64, 1, 0, 11, 12, 5, 0, 222], ["+", 0, 195, 8, 196, 0, 57, 64, 1, 0, 35], ["+", 8, 2...
8
151
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace AtCoder { class Program { public static void Main() { #if TextInput using (var reader = new StreamReader(Debug.SampleTextPath)) { Console.SetIn(reader); #endif var num = IO.ReadInt(); IO.Write(IO.ReadI...
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace AtCoder { class Program { public static void Main() { #if TextInput using (var reader = new StreamReader(Debug.SampleTextPath)) { Console.SetIn(reader); #endif var num = IO.ReadInt(); IO.Write(IO.ReadI...
[["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
869
using System; using System.Linq; using System.Collections.Generic; namespace C { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(double.Parse).ToArray(); Console.WriteLine(check(a)); } private static string check(dou...
using System; using System.Linq; using System.Collections.Generic; namespace C { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); // var a = // Console.ReadLine().Split().Select(double.Parse).OrderBy(x=>x).ToArray(); var a = Console.ReadLine() ....
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 8, 22], ["+", 0, 213, 63, 214, 205, 213,...
8
140
using System; using System.Linq; using System.Collections.Generic; namespace C { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(double.Parse).ToArray(); Console.WriteLine(check(a)); } private static string check(dou...
using System; using System.Linq; using System.Collections.Generic; namespace C { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine() .Split() .Select(double.Parse) .OrderBy(x => x) ...
[["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 8, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 200, 0, 212, 0, 213, 63, ...
8
140
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
[["+", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 213, 3, 4, ...
8
195
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; public class Hello { public static void Main() { int[] num = inta(); int nummax = 1; for (int i = 0; i < num[0]; i++) { nummax *= 10; } int num...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; public class Hello { public static void Main() { int[] num = inta(); int nummax = 1; for (int i = 0; i < num[0]; i++) { nummax *= 10; } int num...
[["+", 0, 200, 0, 212, 0, 16, 12, 213, 63, 22], ["+", 0, 212, 0, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 16, 12, 213, 3, 4, 0, 21], ["+", 0, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 212, 0, 16, 12, 213, 3, 4, 0, 25], ["-", 0, 212, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 12, 22], ["+",...
8
938
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { ABC157C(); } static void ABC157A() { var N = ReadInt(); Console.WriteLine((N + 1) / 2); } static void ABC157B() { var A1 = ReadIntN(); var A2 = ReadIntN(); ...
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { ABC157C(); } static void ABC157A() { var N = ReadInt(); Console.WriteLine((N + 1) / 2); } static void ABC157B() { var A1 = ReadIntN(); var A2 = ReadIntN(); ...
[["+", 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, 241, 0, 111], ["+", 8, 196, 0, 57, 15, 241, 0, 204, 205, 22], ["+", 0, 57, 15, 241, 0, 204, 206, 207, 0, 70], ["+", 15, 241, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 57, 15, 241, 0, 204, 206, 2...
8
2,093
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { string[] buf = Console.ReadLine().Split(' '); int digit = int.Parse(buf[0]); int max = int.Parse(buf[1]); List<int> testcaseS = new List<int>(); List<int> test...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { string[] buf = Console.ReadLine().Split(' '); int digit = int.Parse(buf[0]); int max = int.Parse(buf[1]); List<int> testcaseS = new List<int>(); List<int> test...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 19...
8
353
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var line1 = Console.ReadLine().Split(' ').Select(n => int.Parse(n)).ToList(); var N = line1[0]; var M = line1[1]; // key=桁数、val:数値 Dictionary<int, int> ranks = new Diction...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var line1 = Console.ReadLine().Split(' ').Select(n => int.Parse(n)).ToList(); var N = line1[0]; var M = line1[1]; // key=桁数、val:数値 Dictionary<int, int> ranks = new Diction...
[["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 2...
8
315
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using System.IO; class readint { public readint(out int i) { i = int.Parse(Console.ReadLine()); } public readint(out int a, out int b) { int[] sp = Console....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using System.IO; class readint { public readint(out int i) { i = int.Parse(Console.ReadLine()); } public readint(out int a, out int b) { int[] sp = Console....
[["+", 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, 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
4,700
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static void Main(string[] args) { var inputNum = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var N = inputNum[0]; var M = inputNum[1]; var dicInput ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static void Main(string[] args) { var inputNum = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var N = inputNum[0]; var M = inputNum[1]; var dicInput ...
[["+", 64, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 64, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 98], ["+", 75, 196, 0, 57, 15, 16, 12, 16, ...
8
511
using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { hoge(); } public static void hoge() { var line = System.Console.ReadLine().Split(' '); var n = int.Parse(line[0]); var m = int.Parse(line[1]); int[] num = { 0, 0, 0 }; Dictionary<int, int> d...
using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { hoge(); } public static void hoge() { var line = System.Console.ReadLine().Split(' '); var n = int.Parse(line[0]); var m = int.Parse(line[1]); int[] num = { 0, 0, 0 }; Dictionary<int, int> d...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["-", 64, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 0, 57, 64, 196, 0, 7, 8, 196, 0, 46], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["-", 64, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["...
8
803
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 int[] nm = Console.ReadLine().Split().Select(int.Parse).ToArray(); int n = nm[0]; int m = nm[1]; int[] s = new int[m]; int[]...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 int[] nm = Console.ReadLine().Split().Select(int.Parse).ToArray(); int n = nm[0]; int m = nm[1]; int[] s = new int[m]; int[]...
[["-", 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, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 2...
8
461
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...
[["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 17, 60], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["-", 15, 16, 12, 23, 0, 16, 12, 16, 17, 47],...
8
2,091
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, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 12...
8
673
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { // 整数の入力 // int a = int.Parse(Console.ReadLine()); // スペース区切りの整数の入力 string[] NM = Console.ReadLine().Split(' '); int N = int.Parse(NM[0]); int M = int.Parse(NM[1]); List<int> bingo = new List...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { // 整数の入力 // int a = int.Parse(Console.ReadLine()); // スペース区切りの整数の入力 string[] NM = Console.ReadLine().Split(' '); int N = int.Parse(NM[0]); int M = int.Parse(NM[1]); List<int> bingo = new List...
[["+", 64, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 64, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 75, 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, 57, 75, 196, 0, 57, 15,...
8
485
using System; using System.Linq; namespace CSharp { class Program { static void Main() { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = input[0]; var M = input[1]; var s = new int [M][]; for (int i = 0; i < M; i++) { s[i] = Console.ReadLine().Split().Select(int...
using System; using System.Linq; namespace CSharp { class Program { static void Main() { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = input[0]; var M = input[1]; var s = new int [M][]; for (int i = 0; i < M; i++) { s[i] = Console.ReadLine().Split().Select(int...
[["+", 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, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, ...
8
335
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var sol = new Solve(); sol.Exec(); } } class Solve { public void Exec() { var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = l[0], M = l[1]; var dict = n...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var sol = new Solve(); sol.Exec(); } } class Solve { public void Exec() { var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = l[0], M = l[1]; var dict = n...
[["+", 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, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22...
8
338
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { var NM = ReadInts(); var list = new List<string>(); int ii = 0; swi...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { var NM = ReadInts(); var list = new List<string>(); int ii = 0; swi...
[["-", 8, 254, 0, 239, 0, 1, 0, 11, 12, 203], ["+", 8, 254, 0, 239, 0, 1, 0, 11, 12, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["-",...
8
481
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; internal static class CR { public static string GetText() { return Console.ReadLine(); } public static List<string> GetTexts() { return Console.ReadLine().Split(' ').ToList(); } public static long GetLong() { retur...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; internal static class CR { public static string GetText() { return Console.ReadLine(); } public static List<string> GetTexts() { return Console.ReadLine().Split(' ').ToList(); } public static long GetLong() { retur...
[["+", 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
448
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { int[] tmpArr = Console.ReadLine() .Trim() .Split(' ') .Select(hogehoge => int.Parse(hogehoge)) ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { int[] tmpArr = Console.ReadLine() .Trim() .Split(' ') .Select(hogehoge => int.Parse(hogehoge)) ...
[["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 241, 0, 33], ["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70...
8
332
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) { int[] nm = CinTAr(); int[] p = new int[nm[0]]; for...
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) { int[] nm = CinTAr(); int[] p = new int[nm[0]]; for...
[["+", 64, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 64, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 75, 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, 57, 75, 196, 0, 57, 15,...
8
1,385
using System; using System.Collections.Generic; using System.Linq; namespace C { internal static class Program { private static void Main(string[] args) { var n = Cint(); var m = Cint(); var s = new int[m]; var c = new int[m]; Loop(m, i => { s[i] = Cint(); c[i] = Cint(); }); ...
using System; using System.Collections.Generic; using System.Linq; namespace C { internal static class Program { private static void Main(string[] args) { var n = Cint(); var m = Cint(); var s = new int[m]; var c = new int[m]; Loop(m, i => { s[i] = Cint(); c[i] = Cint(); }); ...
[["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 4...
8
551
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Library; using static Library.Input; namespace AtCoderTemplate { class ProgramC { static void Main() { int N = NextInt, M = NextInt; var array = Enumerable.Repeat(-1, N).ToArray(); for (int i = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Library; using static Library.Input; namespace AtCoderTemplate { class ProgramC { static void Main() { int N = NextInt, M = NextInt; var array = Enumerable.Repeat(-1, N).ToArray(); for (int i = ...
[["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 12, 2...
8
1,611
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderBeginnerContest157 { class Program { static void Main(string[] args) { var nm = ReadIntArray(); var pairs = new List<int[]>(nm[1]); for (var i = 0; i < nm[1]; i++) { var tmp = ReadIntArray(); if ((nm[0] != 1 &...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderBeginnerContest157 { class Program { static void Main(string[] args) { var nm = ReadIntArray(); var pairs = new List<int[]>(nm[1]); for (var i = 0; i < nm[1]; i++) { var tmp = ReadIntArray(); if ((nm[0] != 1 &...
[["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 31, 23, 0, 16, 31, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 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]]
8
695
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; using System.Numerics; namespace AtCoder { public class Program { // 最小公倍数 public static long Lcm(long a, long b) { return a * b / Gcd(a, b); } /...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; using System.Numerics; namespace AtCoder { public class Program { // 最小公倍数 public static long Lcm(long a, long b) { return a * b / Gcd(a, b); } /...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 0, 11, 12, 41, 75, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["...
8
1,302
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var M = sc.ReadInt(); var a = Enumerable.Repeat(int.MaxValue, N).ToArray(); for (int i = 0; i < M; i++) { var s = sc.ReadInt() - 1; var c = sc.ReadInt...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var M = sc.ReadInt(); var a = Enumerable.Repeat(int.MaxValue, N).ToArray(); for (int i = 0; i < M; i++) { var s = sc.ReadInt() - 1; var c = sc.ReadInt...
[["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 2...
8
1,205
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; using static MyIO; using static MyUtil; public class C { public static void Main() => (new Solver()).Solve(); } public class Solver { p...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; using static MyIO; using static MyUtil; public class C { public static void Main() => (new Solver()).Solve(); } public class Solver { p...
[["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
800
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flus...
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flus...
[["+", 8, 196, 0, 57, 15, 213, 3, 4, 0, 21], ["+", 0, 57, 15, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 235, 8, 201, 0, 195, 54, 55, 0, 21], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["...
8
2,772
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static Template; using static System.Console; using static System.Convert; using static System.Math; using Pi = Pair<int, i...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static Template; using static System.Console; using static System.Convert; using static System.Math; using Pi = Pair<int, i...
[["+", 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, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24]...
8
1,597
using AtCoderBeginnerContest157.Questions; using AtCoderBeginnerContest157.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace AtCoderBeginnerContest157.Questions { // 復習 public class QuestionD_UnionFind : AtCoderQuestionBase { int n, m, ...
using AtCoderBeginnerContest157.Questions; using AtCoderBeginnerContest157.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace AtCoderBeginnerContest157.Questions { // 復習 public class QuestionD_UnionFind : AtCoderQuestionBase { int n, m, ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 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, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ...
8
1,074
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) { string[] nmk = Console.ReadLine().Split(' '); int n = int.Parse(nmk[0]); int m = int.Parse(nmk[1]); int k = int.Par...
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) { string[] nmk = Console.ReadLine().Split(' '); int n = int.Parse(nmk[0]); int m = int.Parse(nmk[1]); int k = int.Par...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+",...
8
638
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; static void Main() { ...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; static void Main() { ...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["-", 3, 4, ...
8
1,553
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; static void Main() { ...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; static void Main() { ...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 151], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25], ["-", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 0, 19...
8
1,611
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] ...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] ...
[["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 3, 4, 0, 28, 0, 218, 8, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 218, 8, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 218, 8, 74, 0, 25]...
8
1,452
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace V { partial class Solver { public void Solve() { long n = Read; char[] s = Str.ToArray(); long q = Read; var st = Enumerable.Range(0, 26) .Select(x => (char)('a' + x)) .ToD...
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace V { partial class Solver { public void Solve() { long n = Read; char[] s = Str.ToArray(); long q = Read; var st = Enumerable.Range(0, 26) .Select(x => (char)('a' + x)) .ToD...
[["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
6,900
using System; using System.Text; using System.Collections.Generic; using static System.Math; using System.Linq; using static System.Array; namespace ConsoleApp2 { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var Dic = new Dictionary<char, Set<int>>(); for (va...
using System; using System.Text; using System.Collections.Generic; using static System.Math; using System.Linq; using static System.Array; namespace ConsoleApp2 { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var Dic = new Dictionary<char, Set<int>>(); for (va...
[["+", 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, 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...
8
2,091
using Yorukatsu021.Questions; using Yorukatsu021.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu021.Questions { /// <summary> /// ABC157 E /// </summary> public class QuestionE : AtCoderQuestionBase { public override IEn...
using Yorukatsu021.Questions; using Yorukatsu021.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu021.Questions { /// <summary> /// ABC157 E /// </summary> public class QuestionE : AtCoderQuestionBase { public override IEn...
[["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 68], ["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 29], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 68], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 64, 196, 0, 37, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 37, 0, 213, 63, 214, 141, 22], [...
8
1,126
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } static void Solve() { ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } static void Solve() { ...
[["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 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, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 1, 0, 11, 0, 202,...
8
1,481
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_157 { class E { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_157 { class E { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["-", 64, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["-", 64, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["-", 64, 196, 0, 1, 0, 11, 12, 74, 0, 25], ["-", 0, 1, 0, 11, 12, 74, 51, 23, 0, 24], ["-", 0, 11, 12, 74, 51, 23, 0, 16, 17, 33], ["-", 12, 74, 51, 23, 0, 16, 12, 252, 0, 104], ["-", 12, 74, 51, 23, 0, 16, 12, 252, 0, 253], ["-...
8
993
using System.Collections.Generic; using System; public class Set<T> where T : IComparable { protected SB_BinarySearchTree<T>.Node _root; public T this[int idx] { get { return ElementAt(idx); } } public int Count() { return SB_BinarySearchTree<T>.Count(_root); } public virtual void Insert(T v) { ...
using System.Collections.Generic; using System; public class Set<T> where T : IComparable { protected SB_BinarySearchTree<T>.Node _root; public T this[int idx] { get { return ElementAt(idx); } } public int Count() { return SB_BinarySearchTree<T>.Count(_root); } public virtual void Insert(T v) { ...
[["-", 31, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 31, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 31, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["-", 0, 57, 15, 16, 12, 16, 12, 16, 17, 33], ["-",...
8
2,076
using System; using CompLib.Util; public class Program { private int N, K; private double[] X, Y, C; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); K = sc.NextInt(); X = new double[N]; Y = new double[N]; C = new double[N]; for (int i = 0; i < N; i++) { X[i] = s...
using System; using CompLib.Util; public class Program { private int N, K; private double[] X, Y, C; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); K = sc.NextInt(); X = new double[N]; Y = new double[N]; C = new double[N]; for (int i = 0; i < N; i++) { X[i] = s...
[["-", 31, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 31, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["-", 31, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 17, 33]]
8
1,227
using System; using System.Collections.Generic; using System.Linq; namespace ForAtCoder { class Program { static void Main() { int n = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); List<int> xi = str.Select(int.Parse).ToList(); xi.Sort(); int min = xi[0]; in...
using System; using System.Collections.Generic; using System.Linq; namespace ForAtCoder { class Program { static void Main() { int n = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); List<int> xi = str.Select(int.Parse).ToList(); int min = xi.Min(); int max = xi.Ma...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["-...
8
193
using System; using System.Linq; namespace ABC156C { class MainClass { public static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); int min = x.Min(); int max = x.Max(); int center = (min + max) / 2; long an...
using System; using System.Linq; namespace ABC156C { class MainClass { public static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); int min = x.Min(); int max = x.Max(); int center = (int)Math.Ceiling(x.Average()...
[["-", 0, 212, 0, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 212, 0, 16, 31, 23, 0, 16, 17, 72], ["-", 0, 212, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 212, 0, 74, 51, 213, 63, 214, 205, ...
8
170
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace D { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace D { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 212, 0, 16, 31, 23, 0, 16, 17, 72], ["-", 0, 212, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22],...
8
441
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 = 3; // 不正な入力は処理しない 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 = 3; // 不正な入力は処理しない if (inputArray.Length != inputCount) { ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 39, 216, ...
8
506
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var num = long.Parse(input[0]); var hateNum1 = long.Parse(input[1]); var hateNum2 = long.Parse(input[2]); var sum = Calc.ModPow(2, num, ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var num = long.Parse(input[0]); var hateNum1 = long.Parse(input[1]); var hateNum2 = long.Parse(input[2]); var sum = Calc.ModPow(2, num, ...
[["-", 31, 23, 0, 16, 31, 16, 31, 16, 31, 203], ["+", 31, 23, 0, 16, 31, 16, 31, 16, 31, 203], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 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
413
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using System.IO; class readint { public readint(out int i) { i = int.Parse(Console.ReadLine()); } public readint(out int a, out int b) { int[] sp = Console....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using System.IO; class readint { public readint(out int i) { i = int.Parse(Console.ReadLine()); } public readint(out int a, out int b) { int[] sp = Console....
[["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+...
8
4,113
using System; using System.Collections.Generic; using System.Linq; public class AtCoderD { static void Main() { long mod = 1000000007; int n; int a; int b; { var line = Console.ReadLine(); var words = line.Split(' '); n = int.Parse(words[0]); a = int.Parse(words[1]); ...
using System; using System.Collections.Generic; using System.Linq; public class AtCoderD { static void Main() { long mod = 1000000007; int n; int a; int b; { var line = Console.ReadLine(); var words = line.Split(' '); n = int.Parse(words[0]); a = int.Parse(words[1]); ...
[["+", 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, 196, 0, 45],...
8
449
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...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
1,928
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { static class Program { static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); int N; int ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { static class Program { static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); int N; int ...
[["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 23, 0, 25], ["+", 31, 23, 0, 16, 31, 16, 31, 16, 17, 109], ["+", 31, 23, 0, 16, 31, 16, 31, 16, 12, 22],...
8
1,268
using System; using System.Text; using System.Collections.Generic; using static System.Math; using System.Linq; using static System.Array; namespace ConsoleApp2 { class Program { static void Main(string[] args) { var NK = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); var N = NK[0]; ...
using System; using System.Text; using System.Collections.Generic; using static System.Math; using System.Linq; using static System.Array; namespace ConsoleApp2 { class Program { static void Main(string[] args) { var NK = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var N = NK[0]; v...
[["-", 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, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0,...
8
697
using System; using System.Collections.Generic; using System.Linq; namespace ABC156E { class Input { /// <summary> /// 1行の入力を取得する /// </summary> /// <returns>文字列</returns> public string String() { return Console.ReadLine(); } /// <summary> /// 複数行の入力を取得 /// </summary> /// <returns>文字列の配列</returns> ...
using System; using System.Collections.Generic; using System.Linq; namespace ABC156E { class Input { /// <summary> /// 1行の入力を取得する /// </summary> /// <returns>文字列</returns> public string String() { return Console.ReadLine(); } /// <summary> /// 複数行の入力を取得 /// </summary> /// <returns>文字列の配列</returns> ...
[["-", 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, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 2...
8
1,297
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, 28, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 25], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, ...
8
939
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using System.Diagnostics; using ll=System.Int64; using static Contest_F.Lib_IO; using static Contest_F.Lib_Minifunc; public static class Contest_F { public static ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using System.Diagnostics; using ll=System.Int64; using static Contest_F.Lib_IO; using static Contest_F.Lib_Minifunc; public static class Contest_F { public static ...
[["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 200, 0, 212, 0, 16, 12, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 12, 16, 17, 48], ...
8
3,132
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var k = ni(); var q = ni(); var d ...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var k = ni(); var q = ni(); var d ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 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, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 2...
8
1,264
using CompLib.Util; using System; using System.Text; public class Program { long K, Q; long[] D; long[] N, X, M; public void Solve() { var sc = new Scanner(); K = sc.NextInt(); Q = sc.NextInt(); D = sc.LongArray(); N = new long[Q]; X = new long[Q]; M = new long[Q]; for (int i = ...
using CompLib.Util; using System; using System.Text; public class Program { long K, Q; long[] D; long[] N, X, M; public void Solve() { var sc = new Scanner(); K = sc.NextInt(); Q = sc.NextInt(); D = sc.LongArray(); N = new long[Q]; X = new long[Q]; M = new long[Q]; for (int i = ...
[["+", 12, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 12, 23, 0, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 12, 203], ["+"...
8
663
/********************************************* * 20.05.11 AtCoder Beginner Contest 157. A, B, C * * *********************************************/ /********************************************* ::test input:: *********************************************/ namespace TempName { using System; using System.Linq; using...
/********************************************* * 20.05.11 AtCoder Beginner Contest 157. A, B, C * * *********************************************/ /********************************************* ::test input:: *********************************************/ namespace TempName { using System; using System.Linq; using...
[["+", 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, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 57, 0, 121],...
8
881
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 演習4_1_2 { class Program { static void Main(string[] args) { var x = Console.ReadLine().Split(' '); if ((x[0] == x[1] && x[0] == x[2]) || (x[0] != x[1] && x[0] != x[2])) Console....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 演習4_1_2 { class Program { static void Main(string[] args) { var x = Console.ReadLine().Split(' '); if ((x[0] == x[1] && x[0] == x[2]) || (x[0] != x[1] && x[0] != x[2] && x[1] ...
[["+", 0, 57, 15, 16, 12, 23, 0, 16, 17, 98], ["+", 12, 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], ["+", 15, 16, 12, 23, 0, 16, 12, 16, 17, 79], ["+", 12, 23, 0, 16, 12, 16, 12, 20...
8
128
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var r = Console.ReadLine().Split(' '); if (r.GroupBy(x => x).Count() == 2) { Console.Wri...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var r = Console.ReadLine().Split(' '); if (r.GroupBy(x => x).Count() == 2) { Console.Wri...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 20...
8
183
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Console; namespace CPLib { class Atria { static void Main(string[] args) { int[] s = ReadLine().Split(' ').Select(int.Parse).ToArray(); Array.Sort(s); if (s...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Console; namespace CPLib { class Atria { static void Main(string[] args) { int[] s = ReadLine().Split(' ').Select(int.Parse).ToArray(); Array.Sort(s); if ((...
[["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 31, 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, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 15, 16,...
8
129
using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { hoge(); System.Console.ReadLine(); } public static void hoge() { var line = System.Console.ReadLine() .Split(' ') .Select(x => long.Parse(x)) ...
using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { hoge(); System.Console.ReadLine(); } public static void hoge() { var line = System.Console.ReadLine() .Split(' ') .Select(x => long.Parse(x)) ...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 106], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 98], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 98], ["+", 31, 16, 12, 16, 12, 204, 206, 207, 0, 73], ["+", 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,...
8
158
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var a = int.Parse(line[0]); var b = int.Parse(line[1]); var c = int.Parse(line[2]); Console.WriteLine((a == b && b != c) | (b == c && a != b) ? "Yes" : "No"); } }
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var a = int.Parse(line[0]); var b = int.Parse(line[1]); var c = int.Parse(line[2]); Console.WriteLine( (a == b && b != c) | (b == c && a != b) | (a == c && a != b) ? "Yes" ...
[["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 139], ["+", 0, 28, 0, 41, 15, 16, 12, 23, 0, 24], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 17, 60], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["+", 0, 41, 15, 16, 12, 23, 0, 16, 17, 98], ["+", 15, 16, 12, 23, 0, 16, 12, 16, 31, 22], ["...
8
110
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int a; int b; int c; string str = Console.ReadLine(); string[] str1 = str.Split(' '); a = int.Parse(str1[0]); b = int.Parse(str1[1]); c = int.Parse(str1[2]); if (a == b) { if (b != c &&...
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int a; int b; int c; string str = Console.ReadLine(); string[] str1 = str.Split(' '); a = int.Parse(str1[0]); b = int.Parse(str1[1]); c = int.Parse(str1[2]); if (a == b) { if (b != c &...
[["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 95], ["+", 0, 57, 64, 196, 0, 57, 75, 196, 0, 45], ["+", 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, 213, 3, 4, 0, 28, 0, 5, 0, 62], [...
8
219
using System; using System.Collections.Generic; using System.Linq; class sample { static void Main() { string[] input = Console.ReadLine().Split(' '); List<int> num = new List<int>(); for (int i = 0; i < input.Length; i++) { num.Add(Convert.ToInt32(input[i])); } num = num.Distinct().ToLis...
using System; using System.Collections.Generic; using System.Linq; class sample { static void Main() { string[] input = Console.ReadLine().Split(' '); List<int> num = new List<int>(); for (int i = 0; i < input.Length; i++) { num.Add(Convert.ToInt32(input[i])); } num = num.Distinct().ToLis...
[["-", 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, 214, 205, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22], ["-...
8
143
using System; namespace A { class Program { static void Main(string[] args) { Console.WriteLine(solver() ? "Yes" : "No"); } static bool solver() { var ABC = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); if (ABC[0] == ABC[1]) { return ABC[0] != ABC[2]; } else if (ABC[0] == ABC[...
using System; namespace A { class Program { static void Main(string[] args) { Console.WriteLine(solver() ? "Yes" : "No"); } static bool solver() { var ABC = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); if (ABC[0] == ABC[1]) { return ABC[0] != ABC[2]; } else if (ABC[0] == ABC[...
[["-", 75, 57, 75, 196, 0, 37, 0, 211, 0, 147], ["+", 75, 196, 0, 37, 0, 16, 31, 204, 205, 22], ["+", 0, 37, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 37, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 75, 57, 75, 196, 0, 37, 0, 16, 17, 60], ["+", 75, 196, 0, 37, 0, 16, 12, 204...
8
120
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc141/tasks/abc141_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/abc141/tasks/abc141_a public class QuestionA { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( ...
[["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 95], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 24], ["+", 75, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 16, 31, 204, 206, ...
8
198