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.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = input[0]; var M = input[1]; var lMax = 1; var rMin = N; for (int i = 0; i < M; i++) { var LR = Console.R...
using System; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = input[0]; var M = input[1]; var lMax = 1; var rMin = N; for (int i = 0; i < M; i++) { var LR = Console.R...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
156
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace C { 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 C { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
223
using System; using System.Linq; public class Program { static void Main() { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int m = int.Parse(input[1]); int left = int.MinValue, right = int.MaxValue; for (int i = 0; i < m; i++) { int[] lr = Array.ConvertAll(Con...
using System; using System.Linq; public class Program { static void Main() { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int m = int.Parse(input[1]); int left = int.MinValue, right = int.MaxValue; for (int i = 0; i < m; i++) { int[] lr = Array.ConvertAll(Con...
[["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 0, 28, 0, 41, 64, 16, 31, 16, 31, 22], ["+", 0, 28, 0, 41, 64, 16, 31, 16, 17, 33], ["+", 0, 28, 0, 41, 64, 16, 31, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 0, 21...
8
159
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { public const ulong mod = 1000000007; static void Main(string[] args) { var nm = Input3(); var n = nm[0]; var m = nm[1]; var maxrange = n; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { public const ulong mod = 1000000007; static void Main(string[] args) { var nm = Input3(); var n = nm[0]; var m = nm[1]; var maxrange = 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, 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, 203...
8
378
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace AtCoder { public class Program { public static void Main() { int[] args = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int m = args[1]; int l = 1; int r = args[0]; for ...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace AtCoder { public class Program { public static void Main() { int[] args = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int m = args[1]; int l = 1; int r = args[0]; for ...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
170
using System; using System.Collections.Generic; using System.Linq; class Program { static Scanner sc = new Scanner(); static void Main(string[] args) { var N = sc.ReadInt(); var M = sc.ReadInt(); var D = new Door[M]; var maxL = int.MinValue; var minR = int.MaxValue; for (int i = 0; i < M; i...
using System; using System.Collections.Generic; using System.Linq; class Program { static Scanner sc = new Scanner(); static void Main(string[] args) { var N = sc.ReadInt(); var M = sc.ReadInt(); var D = new Door[M]; var maxL = int.MinValue; var minR = int.MaxValue; for (int i = 0; i < M; 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, 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, 203...
8
1,645
using System; using System.Linq; using System.Collections.Generic; namespace c { class Program { static void Main(string[] args) { var _ = Console.ReadLine().Split(); var n = int.Parse(_[0]); var m = int.Parse(_[1]); var minPos = 0; var maxPos = int.MaxValue; for (var i = 0; i < m; i++) { ...
using System; using System.Linq; using System.Collections.Generic; namespace c { class Program { static void Main(string[] args) { var _ = Console.ReadLine().Split(); var n = int.Parse(_[0]); var m = int.Parse(_[1]); var minPos = 0; var maxPos = int.MaxValue; for (var i = 0; i < m; i++) { ...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 205, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 205, 213, 63, 214, 205, ...
8
186
using System; using System.Linq; using System.Collections.Generic; namespace ABC127_1 { class c { static void Main(string[] args) { var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int L = 0; int R = int.MaxValue; for (int i = 0; i < a[1]; i++) { var b = Console.ReadLine().Split(...
using System; using System.Linq; using System.Collections.Generic; namespace ABC127_1 { class c { static void Main(string[] args) { var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int L = 0; int R = int.MaxValue; for (int i = 0; i < a[1]; i++) { var b = Console.ReadLine().Split(...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 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, 72], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203...
8
156
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class107 { static void Main() { var NM = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = NM[0], M = NM[1]; int[] L = new int[M]; int[] R =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class107 { static void Main() { var NM = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = NM[0], M = NM[1]; int[] L = new int[M]; int[] R =...
[["+", 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, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ...
8
208
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { nm = ReadLineIntArray(); lrArr = ReadMLineIntArray(nm[1]); int min = 1; int max = nm[0]; for (int i = 0; i < nm[1]; i++) { if (lrAr...
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { nm = ReadLineIntArray(); lrArr = ReadMLineIntArray(nm[1]); int min = 1; int max = nm[0]; for (int i = 0; i < nm[1]; i++) { if (lrAr...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],...
8
1,018
using System; public class AtCoderC { static void Main() { int n; int m; { var line = Console.ReadLine(); var words = line.Split(' '); n = int.Parse(words[0]); m = int.Parse(words[1]); } int left = 1; int right = n; for (int i = 0; i < m; i++) { var line = C...
using System; public class AtCoderC { static void Main() { int n; int m; { var line = Console.ReadLine(); var words = line.Split(' '); n = int.Parse(words[0]); m = int.Parse(words[1]); } int left = 1; int right = n; for (int i = 0; i < m; i++) { var line = C...
[["+", 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
174
using System; namespace MyProgram { class AtCoder { static void Main(string[] args) { int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int N = input[0]; int M = input[1]; int[] L = new int[M]; int[] R = new int[M]; for (var i = 0; i < M; i++) { int[] temp = Arra...
using System; namespace MyProgram { class AtCoder { static void Main(string[] args) { int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int N = input[0]; int M = input[1]; int[] L = new int[M]; int[] R = new int[M]; for (var i = 0; i < M; i++) { int[] temp = Arra...
[["+", 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
223
using System; using System.Collections.Generic; using System.Linq; namespace abc127_c { class Program { static void Main(string[] args) { var NM = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList(); var N = NM[0]; var M = NM[1]; int Lm = 0; int Rm = 0; for (int i = 0; i < M; i...
using System; using System.Collections.Generic; using System.Linq; namespace abc127_c { class Program { static void Main(string[] args) { var NM = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList(); var N = NM[0]; var M = NM[1]; int Lm = 0; int Rm = 0; for (int i = 0; i < M; i...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 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, ...
8
193
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public static void Main(string[] args) { var p = Input().ToInt(); var n = p[0]; var m = p[1]; var min = 0; var max = n; for (int i = 0; i < m;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public static void Main(string[] args) { var p = Input().ToInt(); var n = p[0]; var m = p[1]; var min = 0; var max = n; for (int i = 0; i < m;...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
371
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public static void Main(string[] args) { var ps = Input().ToInt(); var n = ps[0]; var m = ps[1]; int min = -1; int max = 999999999; for (int i...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public static void Main(string[] args) { var ps = Input().ToInt(); var n = ps[0]; var m = ps[1]; int min = -1; int max = 999999999; for (int i...
[["+", 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, 57, 64, 1, 0, 213, 63, 214, 205, 22]...
8
372
using System; using System.Linq; namespace CSharp { class Program { public static void Main() { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var N = input[0]; var M = input[1]; var l = 1; var r = N; for (int i = 0; i < M; i++) { input = Console.ReadLine().Spli...
using System; using System.Linq; namespace CSharp { class Program { public static void Main() { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var N = input[0]; var M = input[1]; var l = 1; var r = N; for (int i = 0; i < M; i++) { input = Console.ReadLine().Spli...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
168
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AtCoder { static class Program { static void Main() { //ここから var M = IO.ReadLineToIntList()[1]; var min = int.MinValue; var max = int.MaxValue; fo...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AtCoder { static class Program { static void Main() { //ここから var M = IO.ReadLineToIntList()[1]; var min = int.MinValue; var max = int.MaxValue; fo...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25...
8
685
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var NM = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); var N = NM[0]; var M = NM[1]; var L = new in...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var NM = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); var N = NM[0]; var M = NM[1]; var L = new in...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 31, 16, 31, 16, 31, 213, 63, 214, 205, 22], ["+", 31, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 31, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 31, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 31, 16, 31, 16, 31, 213, 3, ...
8
179
using System; using System.Linq; using System.Collections.Generic; using System.IO; class Program { public static long ReadInt() { return long.Parse(Console.ReadLine()); } public static long[] ReadInts() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } public static void Main() { va...
using System; using System.Linq; using System.Collections.Generic; using System.IO; class Program { public static long ReadInt() { return long.Parse(Console.ReadLine()); } public static long[] ReadInts() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } public static void Main() { va...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 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, 72], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203...
8
223
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder { public class Program { // static int[] parent; static void Main(string[] args) { int[] input = Console.ReadLine().Split().Select(p => int.Parse(p)).ToArray(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder { public class Program { // static int[] parent; static void Main(string[] args) { int[] input = Console.ReadLine().Split().Select(p => int.Parse(p)).ToArray(); ...
[["+", 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, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ...
8
208
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; namespace AtcoderC { class Program { /*static void Main(string[] args) { }*/ // ABC132C //全探索法 /*static void Main() { BigInteger N = int.Parse(Console.ReadLine(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; namespace AtcoderC { class Program { /*static void Main(string[] args) { }*/ // ABC132C //全探索法 /*static void Main() { BigInteger N = int.Parse(Console.ReadLine(...
[["+", 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, 19], ["+", 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
289
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { class Program { static void Main(string[] args) { var NM = ReadSplitLong(); var N = NM[0]; var M = NM[1]; var LR = ReadSplitLongLines(M); var min = LR.Max(x ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { class Program { static void Main(string[] args) { var NM = ReadSplitLong(); var N = NM[0]; var M = NM[1]; var LR = ReadSplitLongLines(M); var min = LR.Max(x ...
[["-", 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, 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, ...
8
374
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Solver { Scanner sc = new Scanner(); public void Solve() { var N = sc.nextInt(); var M = sc.nextInt(); var L = new int[M]; var R = new int[M]; for (int i = 0; i < M; i++) { L[i] = sc.nex...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Solver { Scanner sc = new Scanner(); public void Solve() { var N = sc.nextInt(); var M = sc.nextInt(); var L = new int[M]; var R = new int[M]; for (int i = 0; i < M; i++) { L[i] = sc.nex...
[["+", 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
562
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 { class Program { static void Main(string[] args) { new ABC127().SolveC(new ConsoleInput(Console.In, ' ')); } } public class ...
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 { class Program { static void Main(string[] args) { new ABC127().SolveC(new ConsoleInput(Console.In, ' ')); } } public class ...
[["+", 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], ["+", 8, 196, 0, 57, 64, 1, 0, 213, 63, 22], ...
8
569
using System; using System.Linq; namespace C___Prison { class Program { static void Main(string[] args) { var NM = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = NM[0], M = NM[1]; var LiRi = new int [M] .Select(_ => Console.ReadLine().Split().Select(int.Parse).ToArray...
using System; using System.Linq; namespace C___Prison { class Program { static void Main(string[] args) { var NM = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = NM[0], M = NM[1]; var LiRi = new int [M] .Select(_ => Console.ReadLine().Split().Select(int.Parse).ToArray...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
146
using System; using System.Linq; namespace abc127 { class C { static void Main(string[] args) { var input = Input.IntArray(); var N = input[0]; var M = input[1]; // ゲート int L, R, maxL = -1, minR = N; for (int i = 0; i < M; i++) { input = Input.IntArray(); L = input[0]; R = ...
using System; using System.Linq; namespace abc127 { class C { static void Main(string[] args) { var input = Input.IntArray(); var N = input[0]; var M = input[1]; // ゲート int L, R, maxL = 1, minR = N; for (int i = 0; i < M; i++) { input = Input.IntArray(); L = input[0]; R = i...
[["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 0, 57, 15, 16, 31, 16, 12, 241, 0, 33], ["-", 0, 57, 15, 16, 31, 16, 12, 241, 0, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 2...
8
280
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int m = int.Parse(input[1]); int left_max = 0; int right_min = int.MaxValue; for (int i = 0; i < m;...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int m = int.Parse(input[1]); int left_max = 0; int right_min = int.MaxValue; for (int i = 0; i < m;...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
176
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC127C { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int M = int.Parse(input[1]); int left...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC127C { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int M = int.Parse(input[1]); int left...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
193
using System; namespace ABC127_C { class Program { static void Main(string[] args) { var nm = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var min = int.MinValue; var max = int.MaxValue; for (var i = 0; i < nm[1]; i++) { var num = Array.ConvertAll(Console.ReadLine().Split(' '), i...
using System; namespace ABC127_C { class Program { static void Main(string[] args) { var nm = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var min = int.MinValue; var max = int.MaxValue; for (var i = 0; i < nm[1]; i++) { var num = Array.ConvertAll(Console.ReadLine().Split(' '), i...
[["+", 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
152
using System; namespace Atcoder { class Program // ABC127 C - Prison { private static void Main(string[] args) { var nm = Console.ReadLine().Split(' '); var n = int.Parse(nm[0]); var m = int.Parse(nm[1]); var ans = 0; var lr = Console.ReadLine().Split(' '); var l = int.Parse(lr[0]); ...
using System; namespace Atcoder { class Program // ABC127 C - Prison { private static void Main(string[] args) { var nm = Console.ReadLine().Split(' '); var n = int.Parse(nm[0]); var m = int.Parse(nm[1]); var ans = 0; var lr = Console.ReadLine().Split(' '); var l = int.Parse(lr[0]); ...
[["+", 0, 7, 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, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 64, 196, 0, 1, 0, 11, 12, 241, 0, 33], ["+", 64, 196, 0, 1, 0, 11, 12, 241, 0, 203], ...
8
233
using System; using System.Linq; using System.Collections.Generic; namespace Program { class Program { static void Main(string[] args) { int[] input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int IDCard = input[0]; int Gate = input[1]; int left = 0, right = IDCard -...
using System; using System.Linq; using System.Collections.Generic; namespace Program { class Program { static void Main(string[] args) { int[] input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int IDCard = input[0]; int Gate = input[1]; int left = 1, right = IDCard; ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 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
188
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace AtCoder { class Program { static void Main() { int minRight = int.MaxValue; int maxLeft = int.MinValue; var array = ReadIntArray(); int N = array[0]; int M = array[1]; int...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace AtCoder { class Program { static void Main() { int minRight = int.MaxValue; int maxLeft = int.MinValue; var array = ReadIntArray(); int N = array[0]; int M = array[1]; int...
[["+", 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, 57, 64, 1, 0, 213, 63, 214, 205, 22]...
8
338
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { string[] ss = Console.ReadLine().Split(' '); int N = int.Parse(ss[0]); int M = int.Parse(ss[1]); int L, R, LL = 1, RR = N; for (int i = 0; i < M; i++) { s...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { string[] ss = Console.ReadLine().Split(' '); int N = int.Parse(ss[0]); int M = int.Parse(ss[1]); int L, R, LL = 1, RR = N; for (int i = 0; i < M; i++) { s...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 7, 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, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+...
8
181
using System; class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int M = int.Parse(s[1]); int maxLeft = int.MinValue; int minRight = int.MaxValue; for (int i = 0; i < M; i++) { string[] input = Console.ReadLine().Split...
using System; class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int M = int.Parse(s[1]); int maxLeft = int.MinValue; int minRight = int.MaxValue; for (int i = 0; i < M; i++) { string[] input = Console.ReadLine().Split...
[["+", 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, 57, 64, 1, 0, 213, 63, 214, 205, 22]...
8
167
using System; namespace AtCoder { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int M = int.Parse(input[1]); string[] newline = Console.ReadLine().Split(' '); int l_max = int.Parse(newline[0]); int r_min = int.Pa...
using System; namespace AtCoder { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int M = int.Parse(input[1]); string[] newline = Console.ReadLine().Split(' '); int l_max = int.Parse(newline[0]); int r_min = int.Pa...
[["+", 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, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 1, 0, 213, 3, 4, 0, 25], ["+...
8
210
using System; using System.Collections.Generic; using System.Linq; namespace CsTest { public class Program { static void Main(string[] args) { int[] NM = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int L = 1; int R = NM[0]; for (int i = 0; i < NM[1]; ++i) { int[] LR = Console.Re...
using System; using System.Collections.Generic; using System.Linq; namespace CsTest { public class Program { static void Main(string[] args) { int[] NM = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int L = 1; int R = NM[0]; for (int i = 0; i < NM[1]; ++i) { int[] LR = Console.Re...
[["+", 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, 57, 64, 1, 0, 213, 63, 214, 205, 22]...
8
164
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Main { public static class Program { public static List<int> list = new List<int>(); static void Main(string[] arg) { // int r = int.Parse(Console.ReadLine()); var...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Main { public static class Program { public static List<int> list = new List<int>(); static void Main(string[] arg) { // int r = int.Parse(Console.ReadLine()); var...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 64, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0...
8
499
using System; using System.Linq; namespace agc030_a { class Program { static void Main(string[] args) { var text = Console.ReadLine(); var list = text.Split(' ').ToList(); var a = int.Parse(list[0]); var b = int.Parse(list[1]); int leftvalue = 1; int rightvalue = a; for (var i = 0; i <...
using System; using System.Linq; namespace agc030_a { class Program { static void Main(string[] args) { var text = Console.ReadLine(); var list = text.Split(' ').ToList(); var a = int.Parse(list[0]); var b = int.Parse(list[1]); int leftvalue = 1; int rightvalue = a; for (int i = 0; i <...
[["-", 8, 196, 0, 7, 10, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, ...
8
186
using System; namespace AtCoder { class Program { static void Main(string[] args) { int ans = 0; string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int M = int.Parse(s[1]); s = Console.ReadLine().Split(' '); int Min = int.Parse(s[0]); int Max = int.Parse(s[1]); ...
using System; namespace AtCoder { class Program { static void Main(string[] args) { int ans = 0; string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int M = int.Parse(s[1]); s = Console.ReadLine().Split(' '); int Min = int.Parse(s[0]); int Max = int.Parse(s[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, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["...
8
208
namespace ABC127.C { using System; using static System.Console; using System.Linq; using System.Collections.Generic; public class Program { public static void Main(string[] args) { var l = ReadInputsAsInt().ToList(); var n = l[0]; var m = l[1]; WriteLine(Solve(n, m, ReadLinesAsIn...
namespace ABC127.C { using System; using static System.Console; using System.Linq; using System.Collections.Generic; public class Program { public static void Main(string[] args) { var l = ReadInputsAsInt().ToList(); var n = l[0]; var m = l[1]; WriteLine(Solve(n, m, ReadLinesAsIn...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203...
8
254
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { public class Prog { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoF...
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { public class Prog { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoF...
[["-", 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, 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, ...
8
613
using System; using System.Collections.Generic; using System.Text; using System.Numerics; namespace SolutionCS { class Program { static void Main(string[] args) { string[] inS = Console.ReadLine().Split(' '); int N = int.Parse(inS[0]); int M = int.Parse(inS[1]); int left = 0; int right = int.Max...
using System; using System.Collections.Generic; using System.Text; using System.Numerics; namespace SolutionCS { class Program { static void Main(string[] args) { string[] inS = Console.ReadLine().Split(' '); int N = int.Parse(inS[0]); int M = int.Parse(inS[1]); int left = 0; int right = int.Max...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
188
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC127C { class Program { static void Main(string[] args) { var nums = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToList(); var n = nums[0]; var m = nums[1]; va...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC127C { class Program { static void Main(string[] args) { var nums = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToList(); var n = nums[0]; var m = nums[1]; va...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
192
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { int[] s = ReadLine().Split(' ').Select(int.Parse).ToArray(); int N = s[0]; int M = ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { int[] s = ReadLine().Split(' ').Select(int.Parse).ToArray(); int N = s[0]; int M = ...
[["-", 3, 4, 0, 28, 0, 16, 31, 213, 63, 22], ["+", 31, 16, 31, 16, 31, 213, 63, 214, 205, 22], ["+", 31, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 31, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 31, 16, 31, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 41, 15, 16, 31, 16, 31, 16, 17, 33], ["-", 31, 213, 3, 4, 0, 28, 0, 16, ...
8
205
using System; namespace C___Prison { class Program { static void Main(string[] args) { var read = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int N = read[0]; int M = read[1]; int Lmax = 1; int Rmin = N; for (int i = 0; i < M; i++) { var LR = Array.ConvertAll(Console.R...
using System; namespace C___Prison { class Program { static void Main(string[] args) { var read = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int N = read[0]; int M = read[1]; int Lmax = 1; int Rmin = N; for (int i = 0; i < M; i++) { var LR = Array.ConvertAll(Console.R...
[["-", 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, 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, ...
8
157
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc119d { class Program { static void Main(string[] args) { var s = ReadIntList(); var N = s[0]; var M = s[1]; var a = 1; var z = N; for (int i = 0; i < M; i++) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc119d { class Program { static void Main(string[] args) { var s = ReadIntList(); var N = s[0]; var M = s[1]; var a = 1; var z = N; for (int i = 0; i < M; i++) { ...
[["+", 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, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 1, 0, 213, 3, 4, 0, 25], ["+...
8
464
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var ss = Console.ReadLine().Split(); var N = int.Parse(ss[0]); var M = int.Parse(ss[1]); var maxL = 1; var minR = N; for (int i = 0; i < M; i++) { ...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var ss = Console.ReadLine().Split(); var N = int.Parse(ss[0]); var M = int.Parse(ss[1]); var maxL = 1; var minR = N; for (int i = 0; i < M; i++) { ...
[["+", 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, 16, 31, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17...
8
170
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { C(); } public static void C() { Scanner cin = new Scanner(); int n = cin.Int(); int m = cin.Int(); int[] ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { C(); } public static void C() { Scanner cin = new Scanner(); int n = cin.Int(); int m = cin.Int(); int[] ...
[["+", 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, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
574
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace C { class Program { static void Main(string[] args) { int[] nm = RArInt(); int n = nm[0]; int m = nm[1]; int min = int.MinValue; int max = int.MaxValue; for (int i = 0; i < m; i++) { int[] ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace C { class Program { static void Main(string[] args) { int[] nm = RArInt(); int n = nm[0]; int m = nm[1]; int min = int.MinValue; int max = int.MaxValue; for (int i = 0; i < m; i++) { 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, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203...
8
434
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; public class Solver { public void Solve() { int n = ri, m = ri, min = 1, max = n; int t = 0; for (int i = 0; i < m; i++) { t = ri; if (t > min) min = t; ...
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.IO; using System.Text; public class Solver { public void Solve() { int n = ri, m = ri, min = 1, max = n; int t = 0; for (int i = 0; i < m; i++) { t = ri; if (t > min) { min = t; ...
[["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 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, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["+",...
8
1,012
/* csc -debug C.cs && mono --debug C.exe <<< "4 2 1 3 2 4" */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Reflection; public class HelloWorld { public static void SolveCodeForces() { var N = cin.NextInt(); var M = cin.NextInt(); ...
/* csc -debug C.cs && mono --debug C.exe <<< "4 2 1 3 2 4" */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Reflection; public class HelloWorld { public static void SolveCodeForces() { var N = cin.NextInt(); var M = cin.NextInt(); ...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
626
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC127_C { class Program { static void Main(string[] args) { var NM = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = NM[0]; var M = NM[1]; var L = new int[M]...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC127_C { class Program { static void Main(string[] args) { var NM = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = NM[0]; var M = NM[1]; var L = new int[M]...
[["-", 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, 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, ...
8
183
using System; using System.Collections.Generic; using System.Linq; class Program { static Scanner sc = new Scanner(); static void Main(string[] args) { var N = sc.ReadInt(); var M = sc.ReadInt(); var A = sc.ReadLongArray(N); var list = new BC[M]; for (int i = 0; i < M; i++) { list[i] = ne...
using System; using System.Collections.Generic; using System.Linq; class Program { static Scanner sc = new Scanner(); static void Main(string[] args) { var N = sc.ReadInt(); var M = sc.ReadInt(); var A = sc.ReadLongArray(N); var list = new BC[M]; for (int i = 0; i < M; i++) { list[i] = ne...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 93, 0, 94], ["+", 0, 7, 8, 196, 0, 57, 64, 93, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, ...
8
1,741
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { // 方針 // int[] n = inta(); int[] list = inta(); ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { // 方針 // int[] n = inta(); int[] list = inta(); ...
[["-", 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...
8
1,959
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { nm = ReadLineIntArray(); List<long> aList = ReadLineLongList(); int[] bArr = new int[nm[1]]; int[] cArr = new int[nm[1]]; for (int i = 0;...
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { nm = ReadLineIntArray(); List<long> aList = ReadLineLongList(); int[] bArr = new int[nm[1]]; int[] cArr = new int[nm[1]]; for (int i = 0;...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 204, 205, 22], ["+", 0, 57, 15, 16, 12, 204, 206, 207, 0, 70], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 57, 15, 16, 12, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, ...
8
1,129
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; namespace Test { class Program { static voi...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; namespace Test { class Program { static voi...
[["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, ...
8
3,596
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtC { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); long N = long.Parse(str[0]); long M = long.Parse(str[1]); string[] str2 =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtC { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); long N = long.Parse(str[0]); long M = long.Parse(str[1]); string[] str2 =...
[["+", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 93, 0, 94], ["+", 0, 52, 8, 196, 0, 57, 64, 93, 0, 35], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8...
8
439
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { static class Extensions { public static int LowerBound<T>(this IList<T> list, T value, IComparer<T> comp = null) { if (comp == null) comp = Comparer<T>.Default;...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { static class Extensions { public static int LowerBound<T>(this IList<T> list, T value, IComparer<T> comp = null) { if (comp == null) comp = Comparer<T>.Default;...
[["+", 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, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, ...
8
2,855
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static Dictionary<int, int> Query; static int H; static int[] A; static void Main(string[] args) { //入力を受け取る int[] NM = Console.ReadLine().Split(' ').Select...
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static Dictionary<int, int> Query; static int H; static int[] A; static void Main(string[] args) { //入力を受け取る int[] NM = Console.ReadLine().Split(' ').Select...
[["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["-", 0, 210, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 95], ["-", 0, 210, 8, 196, 0, 57, 75, 196, 0, 45], ["-", 75, 196, 0, 1, 0, 213, 63, 214, 205, ...
8
421
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace ABC127D { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); r...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace ABC127D { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); r...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 210, 8, 196, 0, 7,...
8
750
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { public class Program { static void Main(string[] args) { int[] vs = Console.ReadLine().Split().Select(p => int.Parse(p)).ToArray(); int N = vs[0]; int M = vs[1]; int[] A = Console.ReadLine() ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { public class Program { static void Main(string[] args) { int[] vs = Console.ReadLine().Split().Select(p => int.Parse(p)).ToArray(); int N = vs[0]; int M = vs[1]; int[] A = Console.ReadLine() ...
[["+", 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, 20], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45],...
8
326
using System; using System.Linq; namespace D___Integer_Cards { class Program { static void Main(string[] args) { var read = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var N = read[0]; var M = read[1]; var Ai = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); Array.S...
using System; using System.Linq; namespace D___Integer_Cards { class Program { static void Main(string[] args) { var read = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var N = read[0]; var M = read[1]; var Ai = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); Array.S...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 93, 0, 94], ["+", 0, 7, 8, 196, 0, 57, 64, 93, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, ...
8
318
using System; using System.Linq; using System.Collections.Generic; class Mondai { static void Main() { var line = Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray(); var N = line[0]; var M = line[1]; var A = Console.ReadLine() .Split(' ') .Sele...
using System; using System.Linq; using System.Collections.Generic; class Mondai { static void Main() { var line = Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray(); var N = line[0]; var M = line[1]; var A = Console.ReadLine() .Split(' ') .Sele...
[["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 24], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 25], ["+", 0, 210, 8, 196, 0, 57, 64, 93, 0, 94], ...
8
336
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var line = Console.ReadLine().Split().Select(z => int.Parse(z)).ToArray(); int n = line[0], m = line[1]; var k = Console.ReadLine().Split().Select(z => long.Parse(z)...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var line = Console.ReadLine().Split().Select(z => int.Parse(z)).ToArray(); int n = line[0], m = line[1]; var k = Console.ReadLine().Split().Select(z => long.Parse(z)...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 16, 31, 16, 12, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 16, 12, 214, 141, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, ...
8
307
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string[] s1 = Console.ReadLine().Split(' '); int n = int.Parse(s1[0]), m = int.Parse(s1[1]); string[] s2 = Console.ReadLine().Split(' '); int[] a = new int[n]; for (int i = 0; i < ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string[] s1 = Console.ReadLine().Split(' '); int n = int.Parse(s1[0]), m = int.Parse(s1[1]); string[] s2 = Console.ReadLine().Split(' '); int[] a = new int[n]; for (int i = 0; i < ...
[["+", 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, 20], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45],...
8
417
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { long[] s = ReadLine().Split(' ').Select(long.Parse).ToArray(); long N = s[0]; long ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { long[] s = ReadLine().Split(' ').Select(long.Parse).ToArray(); long N = s[0]; long ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 52, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 52, 15, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121...
8
367
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' '); var N = int.Parse(inputs[0]); var M = int.Parse(inputs[1]); var A = new long[N]; inputs = Console.ReadLine().Split(' '); for (int i ...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' '); var N = int.Parse(inputs[0]); var M = int.Parse(inputs[1]); var A = new long[N]; inputs = Console.ReadLine().Split(' '); for (int i ...
[["+", 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, 19], ["+", 15, 16, 12, 16, 12, 16, 31, 214, 205, 22], ["+", 15, 16, 12, 16, 12, 16, 31, 214, 0, 131], ["+", 15, 16, 12, 16, 12, 16, 31, 214, 141, 22], ["+", 0, 57, 15, 16, 12, 16, 12, 16, ...
8
390
using System; using System.Collections.Generic; class ABC_127_D { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int M = int.Parse(input[1]); int[] A = new int[N]; int[] newA = new int[N]; string[] input2 = Console.ReadLine().S...
using System; using System.Collections.Generic; class ABC_127_D { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int M = int.Parse(input[1]); int[] A = new int[N]; int[] newA = new int[N]; string[] input2 = Console.ReadLine().S...
[["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 98], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 98], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, ...
8
431
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Collections; class Program { static void Main() { long[] nm = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); lon...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Collections; class Program { static void Main() { long[] nm = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); lon...
[["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], [...
8
656
using System; namespace AtCoder { class Program { static void Main(string[] args) { long ans = 0; string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int M = int.Parse(s[1]); s = Console.ReadLine().Split(' '); int[] X = new int[N]; for (int i = 0; i < N; i++) { ...
using System; namespace AtCoder { class Program { static void Main(string[] args) { long ans = 0; string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int M = int.Parse(s[1]); s = Console.ReadLine().Split(' '); int[] X = new int[N]; for (int i = 0; i < N; i++) { ...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 8, 196, 0, 57, 75, 1, 0, 11, 31, 22], ["+", 0, 57, 75, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 57, 75, 1, 0, 11, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 75, 1, 0, 35], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60]]
8
453
using System; using System.Collections.Generic; namespace 私が灰コーダーです { class Inonoa { static void Main() { string[] n_m = Console.ReadLine().Split(); int n = int.Parse(n_m[0]); int m = int.Parse(n_m[1]); string[] sa = Console.ReadLine().Split(); int[] a = new int[n]; for (int i = 0; i < n; i++)...
using System; using System.Collections.Generic; namespace 私が灰コーダーです { class Inonoa { static void Main() { string[] n_m = Console.ReadLine().Split(); int n = int.Parse(n_m[0]); int m = int.Parse(n_m[1]); string[] sa = Console.ReadLine().Split(); int[] a = new int[n]; for (int i = 0; i < n; i++)...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 205, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 2...
8
410
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Hello { public static void Main() { string S = NextString(); int A = int.Parse(S.Substring(0, 2)); int B = int.Parse(S.Substring(2)); if (1 <= A && 1 <= B && A <= 12 && B <= 12) Console.WriteLine(...
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Hello { public static void Main() { string S = NextString(); int A = int.Parse(S.Substring(0, 2)); int B = int.Parse(S.Substring(2)); if (1 <= A && 1 <= B && A <= 12 && B <= 12) Console.WriteLine(...
[["-", 75, 57, 15, 16, 31, 16, 12, 16, 31, 203], ["-", 75, 57, 15, 16, 31, 16, 12, 16, 17, 19], ["-", 75, 57, 15, 16, 31, 16, 12, 16, 12, 22], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["-", 75, 57, 15, 16, 31, 16, 31, 16, 31, 203], ["-", 75, 57, 15, 16, 31, 16, 31, 16, 17, 19], ["-", 75, 57, 15, 16, 31, 16, 31, 16...
8
443
using System; using System.Text.RegularExpressions; namespace C_DiceAndCoin { class Program { static void Main(string[] args) { double[] numlist = { 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384 }; string[] tmplist = Regex.Split(Console.ReadLin...
using System; using System.Text.RegularExpressions; namespace C_DiceAndCoin { class Program { static void Main(string[] args) { double[] numlist = { 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 13107...
[["+", 0, 198, 0, 200, 0, 212, 0, 229, 0, 21], ["+", 0, 198, 0, 200, 0, 212, 0, 229, 0, 203], ["-", 0, 7, 8, 196, 0, 57, 64, 1, 0, 35], ["-", 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, 47], ["-", 0, ...
8
200
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Collections; class Program { static void Main() { int[] nk = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Collections; class Program { static void Main() { int[] nk = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int ...
[["+", 3, 4, 0, 28, 0, 16, 12, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 12, 74, 0, 25], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4...
8
596
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int k = int.Parse(input[1]); double res = 0; for (int i = 1; i <= n; i++) { int count = 1; while (i * Math.Pow(2, count) < k) count++; ...
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int k = int.Parse(input[1]); double res = 0; for (int i = 1; i <= n; i++) { if (i >= k) { res += 1 / (double)n; continue; } ...
[["+", 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, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, ...
8
130
using System; using System.Linq; class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int K = int.Parse(s[1]); double ans = 0; int iter = 1; while (N + 1 > iter) { int pow = 0; int num = iter; while (K > num) ...
using System; class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int K = int.Parse(s[1]); double ans = 0; int iter = 1; while (N + 1 > iter) { int pow = 0; int num = iter; while (K > num) { pow++; ...
[["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0...
8
149
using System; using System.Text; namespace ABC126 { class Program { static int Main(string[] args) { ProblemC(); return 0; } static void ProblemC() { string[] input = System.Console.ReadLine().Split(' '); double N = int.Parse(input[0]); double K = int.Parse(input[1]); double victory; ...
using System; using System.Text; namespace ABC126 { class Program { static int Main(string[] args) { ProblemC(); return 0; } static void ProblemC() { string[] input = System.Console.ReadLine().Split(' '); double N = int.Parse(input[0]); double K = int.Parse(input[1]); double victory; ...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 2...
8
206
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); double kaku = 0; for (int...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); double kaku = 0; for (int...
[["-", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 31, 203], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 17, 85], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, ...
8
156
using System; using System.Linq; namespace abc126 { class Program { static void Main(string[] args) { var tmp = Console.ReadLine() .Split(' ') .Select(_ => int.Parse((string)_)) .ToArray(); // var tmp = new int[] {10000, 5}; // var tmp = new int[] {3,...
using System; using System.Linq; namespace abc126 { class Program { static void Main(string[] args) { var tmp = Console.ReadLine() .Split(' ') .Select(_ => int.Parse((string)_)) .ToArray(); // var tmp = new int[] {10000, 5}; // var tmp = new int[] {3,...
[["-", 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], ["-", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["-", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25]]
8
227
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; namespace AtCorder { public class Program { public static void Main(string[] args) { var l = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; namespace AtCorder { public class Program { public static void Main(string[] args) { var l = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); ...
[["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 31, 250], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 85], [...
8
172
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace ConsoleApp1 { using static Util; internal class Program { static void Main(string[] args) { var s = ReadIntArray(); var n = s[0]; var k = s[1]; var res = 0.0; for (var i = 0; i < n; i++) { ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace ConsoleApp1 { using static Util; internal class Program { static void Main(string[] args) { var s = ReadIntArray(); var n = s[0]; var k = s[1]; var res = 0.0; for (var i = 0; i < n; i++) { ...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+",...
8
318
using System; using System.Collections.Generic; using static AtCoderer.Exter; using static System.Console; using static System.Math; using System.Linq; namespace AtCoderer { public class App { public static void Main(string[] args) { double Perc = 0; var r = readarr; double n = r[0], k = r[1]; for (...
using System; using System.Collections.Generic; using static AtCoderer.Exter; using static System.Console; using static System.Math; using System.Linq; namespace AtCoderer { public class App { public static void Main(string[] args) { double Perc = 0; var r = readarr; double n = r[0], k = r[1]; for (...
[["+", 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], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["+"...
8
418
using AtCoderBeginnerContest126.Questions; using AtCoderBeginnerContest126.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace AtCoderBeginnerContest126.Questions { public class QuestionE : AtCoderQuestionBase { public override IEnumerable<...
using AtCoderBeginnerContest126.Questions; using AtCoderBeginnerContest126.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace AtCoderBeginnerContest126.Questions { public class QuestionE : AtCoderQuestionBase { public override IEnumerable<...
[["-", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["-", 0, 218, 8, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 218, 8, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 218, 8, 230, 3, 4, 0, 28, 0, 22], ["+", 8, 230, 3, 4, 0, 28, 0, 211, 0, 147], ["-", 0, 212, 0, 230, 39, 236, 237, ...
8
882
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using static System.Math; using static System.Array; using static AtCoder.Tool; using static AtCoder.CalcL; namespace AtCoder { class AC { const int MOD = 1000000007; // const int MOD = 9982...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using static System.Math; using static System.Array; using static AtCoder.Tool; using static AtCoder.CalcL; namespace AtCoder { class AC { const int MOD = 1000000007; // const int MOD = 9982...
[["+", 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
1,664
using System; using System.Collections.Generic; using System.Linq; using System.IO; using SB = System.Text.StringBuilder; // using System.Threading.Tasks; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; using System.Numerics; using static...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using SB = System.Text.StringBuilder; // using System.Threading.Tasks; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; using System.Numerics; using static...
[["+", 8, 196, 0, 7, 15, 16, 12, 214, 205, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 0, 131], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 25], [...
8
1,239
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[,] A = new int[N, 2]; for (var i = 0; i < N - 1; i++) { string[] str = Console.ReadLine().Split(); A[i, 0] = int.Parse(str[0]); A[i, 1] = int.Parse...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); if (N == 1) { Console.WriteLine("First"); } else { int[,] A = new int[N, 2]; for (var i = 0; i < N - 1; i++) { string[] str = Console.ReadLine(...
[["+", 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
538
using System; using System.Linq; using System.Collections.Generic; using Debug = System.Diagnostics.Trace; using SB = System.Text.StringBuilder; using System.Numerics; using static System.Math; using Number = System.Int64; namespace Program { public class Solver { Random rnd = new Random(0); public void Solve() { ...
using System; using System.Linq; using System.Collections.Generic; using Debug = System.Diagnostics.Trace; using SB = System.Text.StringBuilder; using System.Numerics; using static System.Math; using Number = System.Int64; namespace Program { public class Solver { Random rnd = new Random(0); public void Solve() { ...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 11, 12, 214, 141, 22], ["+", 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, ...
8
1,118
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; static class Program { const int mod = (int)1e9 + 7; static List<int>[] li; static bool[] b; static int kr = 0, kc = 0; static void Main() { Sc sc = new Sc(); int n = sc.I; li = new List<int>[n +...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; static class Program { const int mod = (int)1e9 + 7; static List<int>[] li; static bool[] b; static int kr = 0, kc = 0; static void Main() { Sc sc = new Sc(); int n = sc.I; if (n == 1) { Co...
[["+", 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
1,103
using System; using System.Linq; using System.Collections.Generic; namespace Sample { class Sample { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); int A = int.Parse(str[0]); int B = int.Parse(str[1]); int C = int.Parse(str[2]...
using System; using System.Linq; using System.Collections.Generic; namespace Sample { class Sample { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int A = int.Parse(str[0]); int B = int.Parse(str[1]); int C = int.Parse(str[2]); Console.WriteLine(C / A * B); } }...
[["-", 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, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, ...
8
116
using System; class plogram { static void Main() { string[] array = Console.ReadLine().Split(' '); var A = double.Parse(array[0]); var B = double.Parse(array[1]); var T = double.Parse(array[2]); var sum = ((T + 0.5) / A) * B; Console.WriteLine(Math.Floor(sum)); } }
using System; class plogram { static void Main() { string[] array = Console.ReadLine().Split(' '); var A = int.Parse(array[0]); var B = int.Parse(array[1]); var T = int.Parse(array[2]); var sum = ((T) / A) * B; Console.WriteLine(sum); } }
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 17, 72], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 12, 250], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 1...
8
98
using System; public class Solution { public static void Main() { string line = Console.ReadLine(); string[] input = line.Split(' '); int A = Convert.ToInt32(input[0]); int B = Convert.ToInt32(input[1]); int T = Convert.ToInt32(input[2]); int num = Convert.ToInt32((T + 0.5) / A); Console.W...
using System; public class Solution { public static void Main() { string line = Console.ReadLine(); string[] input = line.Split(' '); int A = Convert.ToInt32(input[0]); int B = Convert.ToInt32(input[1]); int T = Convert.ToInt32(input[2]); Console.WriteLine((T / A) * B); } }
[["-", 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, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, ...
8
103
using System; class Program { static void Main(string[] args) { string[] tmp = Console.ReadLine().Split(' '); int a = int.Parse(tmp[0]); int b = int.Parse(tmp[1]); int c = int.Parse(tmp[2]); if (a < c && c < b) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } }...
using System; class Program { static void Main(string[] args) { string[] tmp = Console.ReadLine().Split(' '); int a = int.Parse(tmp[0]); int b = int.Parse(tmp[1]); int c = int.Parse(tmp[2]); if ((a < c && c < b) || (b < c && c < a)) { Console.WriteLine("Yes"); } else { Console.Writ...
[["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 23, 0, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 17, 18], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 12, 22],...
8
108
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 n = Console.ReadLine().ToInt(); var s = Console.ReadLine(); bool ...
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 n = Console.ReadLine().ToInt(); var s = Console.ReadLine(); n = s...
[["+", 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, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 11, 12, 214, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["+",...
8
402
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { // 方針 // 左から数えて初めて黒が出る場所から右の黒全部か白全部変える -> WA // 左から黒の...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { // 方針 // 左から数えて初めて黒が出る場所から右の黒全部か白全部変える -> WA // 左から黒の...
[["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["-", 0, 28, 0, ...
8
1,054
using System; using System.Linq; class C { static void Main() { Console.ReadLine(); var s = Console.ReadLine(); var m = s.Count(c => c == '.'); Console.WriteLine(s.Min(c => m += c == '.' ? -1 : 1)); } }
using System; using System.Linq; class C { static void Main() { Console.ReadLine(); var s = Console.ReadLine(); var m = s.Count(c => c == '.'); Console.WriteLine(Math.Min(m, s.Min(c => m += c == '.' ? -1 : 1))); } }
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
75
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string input = Console.ReadLine(); int N = int.Parse(input); input = Console.ReadLine(); char[] S = input.ToCharArray(); int white_all = 0; int white = 0; int black = 0; ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string input = Console.ReadLine(); int N = int.Parse(input); input = Console.ReadLine(); char[] S = input.ToCharArray(); int white_all = 0; int black = 0; for (int i = 0; i...
[["-", 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], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, ...
8
207
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TenkaPBC2019C2 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); //石の数N個 string S = Console.ReadLine(); //文字列 .白 #黒 int ans = N; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TenkaPBC2019C2 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); //石の数N個 string S = Console.ReadLine(); //文字列 .白 #黒 int black = 0...
[["-", 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, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 3...
8
198
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TenkaPBC2019C2 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); //石の数N個 string S = Console.ReadLine(); //文字列 .白 #黒 int ans = N; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TenkaPBC2019C2 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); //石の数N個 string S = Console.ReadLine(); //文字列 .白 #黒 int black = 0...
[["-", 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, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0,...
8
198
using System; using System.Linq; namespace AtCoder2 { class Program { static void Main(string[] args) { checked { Console.ReadLine(); var s = Console.ReadLine(); var white = s.Select(c => c == '.' ? 1 : 0).ToList(); { var sum = 0; for (int n = white.Count - 1; n >= 0; n-...
using System; using System.Linq; namespace AtCoder2 { class Program { static void Main(string[] args) { checked { Console.ReadLine(); var s = Console.ReadLine(); var white = s.Select(c => c == '.' ? 1 : 0).ToList(); { var sum = 0; for (int n = white.Count - 1; n >= 0; n-...
[["+", 0, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 0, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 0, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 141, 22], ["+...
8
218
using System; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); int LW = 0; int LB = 0; int RW = 0; int RB = 0; // 初期化 for (int i = 0; i < N; i++) { if (S[i] == '.') { RW++; } else { RB...
using System; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); int LW = 0; int LB = 0; int RW = 0; int RB = 0; // 初期化 for (int i = 0; i < N; i++) { if (S[i] == '.') { RW++; } else { RB...
[["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 1...
8
177