buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
change_count
int64
0
100
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Swap<T>(ref T a, ref T b) { T temp = a; a = b; b = temp; } ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Swap<T>(ref T a, ref T b) { T temp = a; a = b; b = temp; } ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 17, 72], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 12, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["+",...
8
1,707
15
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static ABC122_20200406C.Input; namespace ABC122_20200406C { static class Input { private static Func<string, T[]> Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray(); private static Func<string, T> Convert<T>() {...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static ABC122_20200406C.Input; namespace ABC122_20200406C { static class Input { private static Func<string, T[]> Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray(); private static Func<string, T> Convert<T>() {...
[["+", 0, 57, 15, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 15, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 21], ["-", 0, 57, 15, 16, 31, 16, 12, 23, 0, ...
8
1,590
9
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 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, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 12, 213...
8
1,284
23
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 var n = int.Parse(Console.ReadLine()); int[] x = new int[n]; int[] y = new int[n]; int[] h = new int[n]; for (int i = 0; i <...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 var n = int.Parse(Console.ReadLine()); int[] x = new int[n]; int[] y = new int[n]; int[] h = new int[n]; var s = 0; for ...
[["+", 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, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24...
8
386
39
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using static kyoupuro.Input; using static kyoupuro.MyMath; namespace kyoupuro { class Point { public int X { get; set; } public int Y { get; set; } public int H { get; set; } } class MainClass { public s...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using static kyoupuro.Input; using static kyoupuro.MyMath; namespace kyoupuro { class Point { public int X { get; set; } public int Y { get; set; } public int H { get; set; } } class MainClass { public s...
[["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["...
8
584
31
using System; namespace abc115 { class MainClass { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var x = new int[n]; var y = new int[n]; var h = new int[n]; for (int i = 0; i < n; i++) { var xyh = Console.ReadLine().Split(); x[i] = int.Parse(xyh[0]); ...
using System; namespace abc115 { class MainClass { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var x = new int[n]; var y = new int[n]; var h = new int[n]; for (int i = 0; i < n; i++) { var xyh = Console.ReadLine().Split(); x[i] = int.Parse(xyh[0]); ...
[["+", 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, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 33],...
8
575
21
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var xyh = new Tuple<int, int, int>[N]; Tuple<int, int, int> data = null; for (int i = 0; i < N; i++) { xyh[i] = Tuple.Create(sc.ReadInt(), sc.ReadInt(), sc....
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var xyh = new Tuple<int, int, int>[N]; Tuple<int, int, int> data = null; for (int i = 0; i < N; i++) { xyh[i] = Tuple.Create(sc.ReadInt(), sc.ReadInt(), sc....
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 17, 72], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 12, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["+",...
8
818
15
using System; using System.Linq; class C { static void Main() { var n = int.Parse(Console.ReadLine()); var ps = new int [n] .Select(_ => Console.ReadLine().Split().Select(int.Parse).ToArray()) .ToArray(); for (var i = 0; i <= 100; i++) for (var j = 0; j <= 100; j++)...
using System; using System.Linq; class C { static void Main() { var n = int.Parse(Console.ReadLine()); var ps = new int [n] .Select(_ => Console.ReadLine().Split().Select(int.Parse).ToArray()) .ToArray(); for (var i = 0; i <= 100; i++) for (var j = 0; j <= 100; j++)...
[["-", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["+", 0, 28, 0, 218, 8, 16, 31, 204, 205, 22], ["+", 0, 218, 8, 16, 31, 204, 206, 207, 0, 70], ["+", 8, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 218, 8, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 218, 8, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 218, 8, 16, 12, 213, 3, 4, ...
8
214
21
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) { int n = int.Parse(Console.ReadLine()); var xyh = new Tuple<int, int, int>[n]; for (int i = 0; i < n; i++) { ...
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) { int n = int.Parse(Console.ReadLine()); var xyh = new Tuple<int, int, int>[n]; for (int i = 0; i < n; i++) { ...
[["-", 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, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 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, ...
8
431
22
using System; using System.Linq; using System.Collections.Generic; using static System.Math; using static System.Console; using System.Text; class Program { static void Main(string[] args) { solve(); } static Scanner cin; static int N; static int[] X; static int[] Y; static int[] h; static void input() ...
using System; using System.Linq; using System.Collections.Generic; using static System.Math; using static System.Console; using System.Text; class Program { static void Main(string[] args) { solve(); } static Scanner cin; static int N; static int[] X; static int[] Y; static int[] h; static void input() ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 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, 198, 0, 200, 0, 212, 0, 213, 63, 2...
8
718
20
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC112C { class Program { static void Solve(Input input) { var n = input.NextInt(); var x = new int[n]; var y = new int[n]; var h = new ...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC112C { class Program { static void Solve(Input input) { var n = input.NextInt(); var x = new int[n]; var y = new int[n]; var h = new ...
[["-", 0, 28, 0, 16, 31, 16, 31, 204, 205, 22], ["-", 0, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 33],...
8
1,418
14
using System; using System.Linq; namespace ABC112_C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var list = new Model[N]; for (int i = 0; i < N; i++) { var line = Console.ReadLine().Split().Select(long.Parse).ToArray(); list[i] = new Model() { x =...
using System; using System.Linq; namespace ABC112_C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var list = new Model[N]; for (int i = 0; i < N; i++) { var line = Console.ReadLine().Split().Select(long.Parse).ToArray(); list[i] = new Model() { x =...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 2...
8
409
32
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static ABC112.Cin; using static ABC112.Util; using static System.Console; using static System.Math; using System.Collections; #if DEBUG using System.Diagnostics; #endif /// <summa...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static ABC112.Cin; using static ABC112.Util; using static System.Console; using static System.Math; using System.Collections; #if DEBUG using System.Diagnostics; #endif /// <summa...
[["-", 0, 195, 8, 196, 0, 210, 39, 224, 39, 199], ["-", 8, 196, 0, 210, 39, 224, 225, 226, 0, 70], ["-", 8, 196, 0, 210, 39, 224, 225, 226, 0, 73], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 39, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["-", 8, 201, 0, 195, 8, 196, ...
8
3,364
24
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static ABC112.Cin; using static ABC112.Util; using static System.Console; using System.Collections; #if DEBUG using System.Diagnostics; #endif /// <summary> /// https://atcoder.jp...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static ABC112.Cin; using static ABC112.Util; using static System.Console; using System.Collections; #if DEBUG using System.Diagnostics; #endif /// <summary> /// https://atcoder.jp...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 0, 97, 0, 210, 8, 196, 0, 57, 0, 25], ["+", 0, 210, 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, 210, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], [...
8
3,224
19
using System; using System.IO; using System.Linq; using System.Numerics; using System.Collections; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using Debug = System.Diagnostics.Debug; using LayoutKind = System.Runtime....
using System; using System.IO; using System.Linq; using System.Numerics; using System.Collections; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using Debug = System.Diagnostics.Debug; using LayoutKind = System.Runtime....
[["+", 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, 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
340
24
using System; using System.Linq; using static System.Math; namespace ConsoleApp1 { struct Point { public int X { get; } public int Y { get; } public long Height { get; } public Point(int x, int y, long height) { X = x; Y = y; Height = height; } } class Program { static bool Satisfies(Point ce...
using System; using System.Linq; using static System.Math; namespace ConsoleApp1 { struct Point { public int X { get; } public int Y { get; } public long Height { get; } public Point(int x, int y, long height) { X = x; Y = y; Height = height; } } class Program { static bool Satisfies(Point ce...
[["-", 0, 55, 0, 220, 0, 212, 0, 42, 0, 245], ["+", 0, 42, 0, 220, 0, 212, 0, 42, 0, 243], ["+", 0, 42, 0, 220, 0, 212, 0, 11, 31, 22], ["+", 0, 212, 0, 11, 0, 42, 0, 202, 0, 32], ["+", 0, 212, 0, 11, 0, 42, 0, 42, 0, 325], ["+", 0, 212, 0, 11, 0, 42, 0, 232, 234, 22], ["+", 0, 212, 0, 11, 0, 42, 0, 232, 0, 131], ["+",...
8
388
14
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; class Program { static int N; public static void Main(string[] args) { N = Input.NextInt(); var x = new int[N]; var y = new int[N]; var h = new int[N]; int samplex = 0, sampley = 0,...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; class Program { static int N; public static void Main(string[] args) { N = Input.NextInt(); var x = new int[N]; var y = new int[N]; var h = new int[N]; int samplex = 0, sampley = 0,...
[["-", 0, 28, 0, 16, 31, 16, 31, 204, 205, 22], ["-", 0, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 33],...
8
616
14
using System; using System.Linq; using System.Collections.Generic; class Cmondai { static void Main() { var N = Int32.Parse(Console.ReadLine()); var list = new List<long[]>(); for (int i = 0; i < N; ++i) { var xyh = Console.ReadLine() .Split(' ') .Select(num ...
using System; using System.Linq; using System.Collections.Generic; class Cmondai { static void Main() { var N = Int32.Parse(Console.ReadLine()); var list = new List<long[]>(); for (int i = 0; i < N; ++i) { var xyh = Console.ReadLine() .Split(' ') .Select(num ...
[["-", 31, 16, 31, 16, 31, 204, 205, 204, 205, 22], ["-", 31, 16, 31, 204, 205, 204, 206, 207, 0, 70], ["-", 31, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["-", 31, 16, 31, 204, 205, 204, 206, 207, 0, 73], ["-", 31, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 31, ...
8
326
27
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static AtCoderTemplate.MyExtensions; using static AtCoderTemplate.MyInputOutputs; using static AtCoderTemplate.MyNumericFunctions; namespace AtCoderTemplate { class Program { static void Main(string[] args) { var N...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static AtCoderTemplate.MyExtensions; using static AtCoderTemplate.MyInputOutputs; using static AtCoderTemplate.MyNumericFunctions; namespace AtCoderTemplate { class Program { static void Main(string[] args) { var N...
[["+", 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, 230, 0, 228], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 18], ["+", 0, 230, 39, 236, 237, 238,...
8
1,002
18
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(Console.ReadLine()); List<point> coordinate = new List<point>(); for (int i = 0; i < N; i++) { ...
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(Console.ReadLine()); List<point> coordinate = new List<point>(); 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, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ...
8
400
41
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; // https://beta.atcoder.jp/contests/abc112/tasks/abc112_c public class Program_ABC112_C // ←Class名変更!! { public static void Main(string[] args) { var n = int.Parse(ReadLine()); var point...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; // https://beta.atcoder.jp/contests/abc112/tasks/abc112_c public class Program_ABC112_C // ←Class名変更!! { public static void Main(string[] args) { var n = int.Parse(ReadLine()); var point...
[["-", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], [...
8
382
4
using System; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); int[] x = new int[N]; int[] y = new int[N]; int[] h = new int[N]; for (int i = 0; i < N; i++) { string[] array = Console.ReadLine().Split(' '); x[i] = int.Parse(array[0]); y[i] = int.Parse(...
using System; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); int[] x = new int[N]; int[] y = new int[N]; int[] h = new int[N]; for (int i = 0; i < N; i++) { string[] array = Console.ReadLine().Split(' '); x[i] = int.Parse(array[0]); y[i] = int.Parse(...
[["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 21], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 16, 12, 213, ...
8
465
21
using System; using System.Collections.Generic; using System.Text; namespace AtTest.C_Challenge { class ABC_112 { static void Main(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { int n = ReadInt(); var xs = new long[n]; var ys = new ...
using System; using System.Collections.Generic; using System.Text; namespace AtTest.C_Challenge { class ABC_112 { static void Main(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { int n = ReadInt(); var xs = new long[n]; var ys = new ...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 64, 1, 0, 35], ["+", 8, 196,...
8
478
10
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long[,] A = new long[N, 3]; for (var i = 0; i < N; i++) { string[] str = Console.ReadLine().Split(); A[i, 0] = long.Parse(str[0]); A[i, 1] = long.Par...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long[,] A = new long[N, 3]; for (var i = 0; i < N; i++) { string[] str = Console.ReadLine().Split(); A[i, 0] = long.Parse(str[0]); A[i, 1] = long.Par...
[["+", 0, 57, 15, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 15, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 21], ["+", 12, 23, 0, 16, 12, 213, 3, 4, 0, 2...
8
531
14
using System; using System.Linq; //リストの使用 using System.Collections.Generic; class Program { static void Main() { long n = long.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。 long heightMemo = 0; long[] answer = new long[3]; long[,] vertexes = new long[n, 3]; //ここに受け取る long checkOk = 0; for...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; class Program { static void Main() { long n = long.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。 long heightMemo = 0; long[] answer = new long[3]; long[,] vertexes = new long[n, 3]; //ここに受け取る long checkOk = 0; for...
[["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 31, 23, 0, 16, 31, 16, 31, 16, 31, 22], ["+", 31, 23, 0, 16, 31, 16, 31, 16, 17, 60], ["+", 31, 23, 0, 16, 31, 16, 31, 16, 12, 203], ["+", 15, ...
8
454
12
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { int inputCount = int.Parse(Reader.ReadLine()); for (int i = 0; i < inputCount; i++) { Elements.Add(new Piramix(Reader.ReadLine())); } Elements = Ele...
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { int inputCount = int.Parse(Reader.ReadLine()); for (int i = 0; i < inputCount; i++) { Elements.Add(new Piramix(Reader.ReadLine())); } Elements = Ele...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
861
16
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var x = new int[N]; var y = new int[N]; var h = new int[N]; for (int i = 0;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var x = new int[N]; var y = new int[N]; var h = new int[N]; for (int i = 0;...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 33], ["+", 31, 16, 31, 16, 12, 213, 63, 214, 205, 22], ["+", 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, ...
8
391
30
using System; using System.Collections.Generic; using System.Linq; using System.IO; // using System.Text; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; // using System.Numerics; using static System.Math; // using pair = Pair<int, int>; ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; // using System.Text; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; // using System.Numerics; using static System.Math; // using pair = Pair<int, int>; ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 1...
8
723
45
using System; using System.Text; using System.Collections.Generic; using System.Collections; 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 NM = Console.ReadLine(...
using System; using System.Text; using System.Collections.Generic; using System.Collections; 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 NM = Console.ReadLine(...
[["+", 64, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25]]
8
186
10
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class339 { static void Main() { var NM = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = NM[0], M = NM[1]; var div = new List<int>(); int...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class339 { static void Main() { var NM = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = NM[0], M = NM[1]; var div = new List<int>(); for...
[["-", 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, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0...
8
166
11
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadLong(); var M = sc.ReadLong(); var max = (double)M / N; var ans = 1; for (int i = 1; i * i <= M; i++) { if (M % i != 0 || max < i) continue; ans ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadLong(); var M = sc.ReadLong(); var max = (double)M / N; for (int i = (int)max; i >= 0; i--) { if (M % i != 0) continue; Console.WriteLine(i); r...
[["-", 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, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 10, 198, 0, 200, 0, 212, 0, 74, ...
8
619
32
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp34 { class Program { static void Main(string[] args) { var st = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int A = st[0]; int B = st[1]; int C = st[...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp34 { class Program { static void Main(string[] args) { var st = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int A = st[0]; int B = st[1]; int C = st[...
[["+", 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, 16, 31, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 72], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17...
8
133
18
using System; namespace AtCoder { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int C = int.Parse(input[2]); int result = 0; if (A > B && A > C) { if (B > C) { result =...
using System; namespace AtCoder { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int C = int.Parse(input[2]); int result = 0; if (A >= B && A >= C) { if (B >= C) { resul...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 20]]
8
232
18
using System; using System.Linq; using System.Text.RegularExpressions; using System.Collections.Generic; using static System.Console; using static Program.Input; using static Program.MyMath; using static Program.Const; namespace Program { static class Const { public static string alp = "abcdefghijklmnopqrstuvwxyz"; ...
using System; using System.Linq; using System.Text.RegularExpressions; using System.Collections.Generic; using static System.Console; using static Program.Input; using static Program.MyMath; using static Program.Const; namespace Program { static class Const { public static string alp = "abcdefghijklmnopqrstuvwxyz"; ...
[["+", 0, 57, 15, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 15, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ...
8
2,108
14
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp61 { class Program { static void Main(string[] args) { var st = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = st[0]; int M = st[1]; int X = st[2]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp61 { class Program { static void Main(string[] args) { var st = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = st[0]; int M = st[1]; int X = st[2]; ...
[["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 47], ["-", 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, 17, 106], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 9...
8
211
18
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[] nmxy = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); in...
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[] nmxy = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); in...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 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, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0,...
8
221
24
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { ABC110_B(); } static void ABC110_B() { var NMXY = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var N = NMXY[0]; var M = NMXY[1]; var X = NMXY[2...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { ABC110_B(); } static void ABC110_B() { var NMXY = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var N = NMXY[0]; var M = NMXY[1]; var X = NMXY[2...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["-", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 0, 210, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, ...
8
230
16
using System; using System.IO; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { var answer = "War"; var line = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var lineX = Console.ReadLine().Sp...
using System; using System.IO; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { var answer = "War"; var line = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var lineX = Console.ReadLine().Sp...
[["+", 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, 210, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 25], ["+", 0, 210, 8, 196, 0, 57, 64, 19...
8
205
13
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static PB10004.Algorithm.Util; namespace PB10004.Algorithm { class Template { static void Main(string[] args) { new B().Solve(); } } class A { public void Solve() { var array = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static PB10004.Algorithm.Util; namespace PB10004.Algorithm { class Template { static void Main(string[] args) { new B().Solve(); } } class A { public void Solve() { var array = ...
[["+", 15, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 16, 31, 16, 17, 72], ["+", 31, 23, 0, 16, 31, 16, 31, 16, 12, 203], ["+", 31, 23, 0, 16, 12, 16, 31, 16, 31, 22], ["+", 31, 23, 0, 16, 12, 16, 31, 16, 17, 72], ["+", 31, 23, 0, 16, 12, 16, 31, 16, 12, 203], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 17, 47...
8
543
16
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var S = Console.ReadLine(); var T = Console.ReadLine(); var map = new Dictionary<char, char>(); for (int i = 0; i < S.Length; i++) { var s = S[i]; var t = T[i]; if (...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var S = Console.ReadLine(); var T = Console.ReadLine(); var sMap = new Dictionary<char, char>(); var tMap = new Dictionary<char, char>(); for (int i = 0; i < S.Length; i++) { ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 212, 0, 230, 39, 236, 23...
8
194
27
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; using System.Numerics; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } st...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; using System.Numerics; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } st...
[["-", 0, 230, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 0, 230, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 52, 8, 196, 0, 57, 15, 241, 0, 111], ["-", 8, 196, 0, 57, 64, 1, 0, 241, 0, 29], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 12, 203], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 95], ["+", 0, 5...
8
591
10
using System; namespace debug { class Program { static void Main(string[] args) { ProgramD a = new ProgramD(); a.main(); } } // ABC110 class ProgramA { public void main() { string s1 = Console.ReadLine(); string s2 = Console.ReadLine(); if (s1[0] == s2[2] && s1[1] == s2[1] && s1[2] == s2[0]...
using System; namespace debug { class Program { static void Main(string[] args) { ProgramD a = new ProgramD(); a.main(); } } // ABC110 class ProgramA { public void main() { string s1 = Console.ReadLine(); string s2 = Console.ReadLine(); if (s1[0] == s2[2] && s1[1] == s2[1] && s1[2] == s2[0]...
[["-", 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], ["-", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["-", 0, 57,...
8
719
16
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC110D { class Program { static int n; static void Main(string[] args) { n = RInt; var m = RInt; var primes = PrimeNumbers(100000); var fact = ...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC110D { class Program { static int n; static void Main(string[] args) { n = RInt; var m = RInt; var primes = PrimeNumbers(100000); var fact = ...
[["+", 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
1,459
10
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using ll = System.Int64; public class Contest { static void Swap1<T>(ref T a, ref T b) { T t = a; a = b; b = t; } static void Swap2<T>(ref T a, ref T...
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using ll = System.Int64; public class Contest { static void Swap1<T>(ref T a, ref T b) { T t = a; a = b; b = t; } static void Swap2<T>(ref T a, ref T...
[["+", 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, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0...
8
4,213
24
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; using Pair = System.Tuple<int, int>; using Edge = System.Tuple<int, int, long>; // using Debug; // using static System.Globalization.CultureInfo; class Program { stat...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; using Pair = System.Tuple<int, int>; using Edge = System.Tuple<int, int, long>; // using Debug; // using static System.Globalization.CultureInfo; class Program { stat...
[["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+...
8
1,014
21
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; // using static System.Globalization.CultureInfo; class Program { static void Main(string[] args) { var nm = Input.ar; var dic = Calculation.Factorize(nm[1]);...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; // using static System.Globalization.CultureInfo; class Program { static void Main(string[] args) { var nm = Input.ar; if (nm[1] == 1) { WriteLine(1); ...
[["+", 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
915
18
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { const long MOD = 1000000007; // O(√N) // Nの素因数をリストで返す static List<int> Prime(int N) { List<int> p = new List<int>(); for (int i = 2; i <= Math.Sqrt(N); i++) { while (N % i == 0) { ...
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { const long MOD = 1000000007; // O(√N) // Nの素因数をリストで返す static List<int> Prime(int N) { List<int> p = new List<int>(); for (int i = 2; i <= Math.Sqrt(N); i++) { while (N % i == 0) { ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12...
8
484
21
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static bool[] isPrimes = makePrimeList(100000); // i-1が素数かどうか static string[] input = Console.ReadLine().Split(' '); static long n = long.Parse(input[0]); static long m = long.Parse(inpu...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static bool[] isPrimes = makePrimeList(100000); // i-1が素数かどうか static string[] input = Console.ReadLine().Split(' '); static long n = long.Parse(input[0]); static long m = long.Parse(inpu...
[["-", 39, 224, 225, 226, 0, 16, 31, 16, 31, 203], ["-", 39, 224, 225, 226, 0, 16, 31, 16, 17, 48], ["-", 39, 224, 225, 226, 0, 16, 31, 16, 12, 22], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["-", 31, 204, 206, 20...
8
982
40
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace kp { public class Program { // static long[,] cmb; static int MAX_INT = 1000000007; static void Main(string[] args) { // long N = long.Parse(Console....
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace kp { public class Program { // static long[,] cmb; static int MAX_INT = 1000000007; static void Main(string[] args) { // long N = long.Parse(Console....
[["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 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, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["...
8
449
9
using System; using System.Collections.Generic; namespace ABC110_D___Factorization { 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 primeFactors = new List<int>(); var factor = 2; long MO...
using System; using System.Collections.Generic; namespace ABC110_D___Factorization { class Program { static void Main(string[] args) { Console.WriteLine(solver()); } static long solver() { var NM = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = NM[0]; var M = NM[1]; if (M == 1)...
[["+", 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, 213, 63, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["+", 8, 19...
8
501
31
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace ABC110 { class Program { static long mod = 1000000007; static Dictionary<long, int> Factorize(long M) { long Mcopy = M; Dictionary<long, int> res = new Dictionary<long, int>(); for (int i = 2; i < Mco...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace ABC110 { class Program { static long mod = 1000000007; static Dictionary<long, int> Factorize(long M) { Dictionary<long, int> res = new Dictionary<long, int>(); long i = 2; while (M != 1) { whil...
[["-", 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, 22], ["-", 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, 24...
8
407
23
using System; using System.Linq; using System.Collections; using System.Collections.Generic; class Program { static long Mod = 1000000007; static Dictionary<int, int> Factorize(int M) { Dictionary<int, int> r = new Dictionary<int, int>(); while (M % 2 == 0) { M = (M - (M % 2)) / 2; if (r.Conta...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; class Program { static long Mod = 1000000007; static Dictionary<int, int> Factorize(int M) { Dictionary<int, int> r = new Dictionary<int, int>(); while (M % 2 == 0) { M = (M - (M % 2)) / 2; if (r.Conta...
[["+", 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, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17...
8
473
25
using System; using System.Collections.Generic; using System.Text; namespace AtTest.ABC_110 { class D { static void Main(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(inp...
using System; using System.Collections.Generic; using System.Text; namespace AtTest.ABC_110 { class D { static void Main(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(inp...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
806
16
using System; using System.Collections.Generic; using System.Linq; namespace abc110_d { class Program { const int mod = 1000000007; static long Calc_pow(long x, long pow) { if (pow == 0) return 1; long a = Calc_pow(x, pow / 2); a = a * a % mod; if (pow % 2 == 1) a *= x; return a % m...
using System; using System.Collections.Generic; using System.Linq; namespace abc110_d { class Program { const int mod = 1000000007; static long Calc_pow(long x, long pow) { if (pow == 0) return 1; long a = Calc_pow(x, pow / 2); a = a * a % mod; if (pow % 2 == 1) a *= x; return a % m...
[["+", 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
357
16
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder.ABC110.D { class Program { static void Main() { var sc = new Scanner(); var n = sc.Nextint(); var m = sc.Nexti...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder.ABC110.D { class Program { static void Main() { var sc = new Scanner(); var n = sc.Nextint(); var m = sc.Nexti...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 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], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, ...
8
831
23
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Competitive { internal class Solution { public int N, M; public long MOD = 1000000007; public void Run() { { var line = Input.ReadIntArray(); N = line[0]; M = line[1]; } var primes = Prim...
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Competitive { internal class Solution { public int N, M; public long MOD = 1000000007; public void Run() { { var line = Input.ReadIntArray(); N = line[0]; M = line[1]; } var primes = Prim...
[["+", 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, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 16, 31, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16,...
8
811
32
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { public Solve() {} StringBuilder sb; ReadData re; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); re = new ReadData(); Calc(); Console.W...
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { public Solve() {} StringBuilder sb; ReadData re; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); re = new ReadData(); Calc(); Console.W...
[["+", 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
3,231
20
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp14 { class Class15 { static void Main() { var nx = Console.ReadLine().Split(); int x = int.Parse(nx[1]); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp14 { class Class15 { static void Main() { var nx = Console.ReadLine().Split(); int x = int.Parse(nx[1]); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); ...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 75, 196, 0, 93, 0, 94], ["+", 8, 1...
8
167
9
using System; using System.IO; class Solve { static void Main(string[] args) { var arr = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); var a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); var N = arr[0]; var x = arr[1]; Array.Sort(a); var answer = 0; int i = 0; ...
using System; using System.IO; class Solve { static void Main(string[] args) { var arr = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); var a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); var N = arr[0]; var x = arr[1]; Array.Sort(a); var answer = 0; for (int i = 0;...
[["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 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, 24], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64,...
8
192
17
using System; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var N = int.Parse(input[0]); long x = int.Parse(input[1]); var A = Console.ReadLine().Split(" ").Select(long.Parse).ToArray(); Array.Sort(A); Array.Reverse(A); v...
using System; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var N = int.Parse(input[0]); long x = int.Parse(input[1]); var A = Console.ReadLine().Split(" ").Select(long.Parse).ToArray(); Array.Sort(A); var count = 0; for ...
[["-", 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
170
7
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const char White = '.'; const char Black = '#'; const long Mod = 1000000007;...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const char White = '.'; const char Black = '#'; const long Mod = 1000000007;...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 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], ["+", 8, 196, 0, 57, 15, 16, 12, 204, 205, 22...
8
317
16
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace atcorder2 { class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } static void Main...
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace atcorder2 { class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } static void Main...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["-", 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, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["-", ...
8
228
18
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
[["+", 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, 79], ["+", 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, 241, 0, 68], ...
8
1,005
9
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int n = sc.NextInt(); int x = sc.NextInt(); int[] a = sc.IntArray(); a = a.OrderBy(_a => _a).ToArray(); int answer = 0; for (int i ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int n = sc.NextInt(); int x = sc.NextInt(); int[] a = sc.IntArray(); a = a.OrderBy(_a => _a).ToArray(); int answer = 0; for (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, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22]...
8
432
15
using System; namespace agc027A { class MainClass { public static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int N = int.Parse(str[0]); int x = int.Parse(str[1]); int[] a = new int[N]; string[] src = Console.ReadLine().Split(); for (int i = 0; i < N; i++) { a...
using System; namespace agc027A { class MainClass { public static void Main(string[] args) { string[] str = Console.ReadLine().Split(); long N = long.Parse(str[0]); long x = long.Parse(str[1]); long[] a = new long[N]; string[] src = Console.ReadLine().Split(); for (int i = 0; i < N; i++) { ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, ...
8
192
18
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; 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 INF = int.MaxValue / 2; const long...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; 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 INF = int.MaxValue / 2; const long...
[["+", 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, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 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, 2...
8
1,125
8
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace ConsoleApp1 { class Program { static void Main(string[] args) { A(); } static void A() { var nx = ReadSplitLong(); var n = nx[0]; var x = nx[1]; var a = ReadSplitLong().OrderBy(z => z).ToArray();...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace ConsoleApp1 { class Program { static void Main(string[] args) { A(); } static void A() { var nx = ReadSplitLong(); var n = nx[0]; var x = nx[1]; var a = ReadSplitLong().OrderBy(z => z).ToArray();...
[["+", 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, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 57, 75, 196, 0, 93, 0, 94], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, ...
8
779
13
using System; using System.IO; using System.Linq; using System.Runtime; using System.Reflection; using System.Diagnostics; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Text; using System.Text.RegularExpressions; using static System.Math; class P { static void Main() { int...
using System; using System.IO; using System.Linq; using System.Runtime; using System.Reflection; using System.Diagnostics; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Text; using System.Text.RegularExpressions; using static System.Math; class P { static void Main() { 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, 47], ["+", 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, 223, 0, 22], ...
8
198
9
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; namespace AIZUproject07 { class Program { // static string T; /*static void Main() { int count = 0; bool flag = false; string In = Console.Re...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; namespace AIZUproject07 { class Program { // static string T; /*static void Main() { int count = 0; bool flag = false; string In = Console.Re...
[["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, ...
8
247
30
using System; using System.Linq; namespace A { class Program { static void Main(string[] args) { var Nx = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var N = Nx[0]; var x = Nx[1]; var aList = Console.ReadLine().Split(' ').Select(int.Parse); var nokori = x; var output = 0; ...
using System; using System.Linq; namespace A { class Program { static void Main(string[] args) { var Nx = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var N = Nx[0]; var x = Nx[1]; var aList = Console.ReadLine().Split(' ').Select(int.Parse); var nokori = x; var output = 0; ...
[["+", 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, 203], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 25], ["+", 0, 210, 8, 196, 0, 57, 64, 196, 0, 45]...
8
187
10
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static ABC122_20200406D.Input; namespace ABC122_20200406D { static class Input { private static Func<string, T[]> Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray(); private static Func<string, T> Convert<T>() {...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static ABC122_20200406D.Input; namespace ABC122_20200406D { static class Input { private static Func<string, T[]> Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray(); private static Func<string, T> Convert<T>() {...
[["-", 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, 197, 0, 198, 39, 199], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 197, 0...
8
1,467
13
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 ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 7, 15, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22], [...
8
1,178
25
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, 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
1,176
30
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder { public class ABC { static readonly int mod = 1000000007; // 10^9+7 static void Main(string[] args) { Console.SetOut( new StreamWriter(Console...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder { public class ABC { static readonly int mod = 1000000007; // 10^9+7 static void Main(string[] args) { Console.SetOut( new StreamWriter(Console...
[["-", 10, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["-", 10, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["-", 10, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["-", 0, 212, 0, 74, 51, 213, 63, 214, 205, 22], ["-", 0, 212, 0, 74, 51, 213, 63, 214, 0, 131], ["-", 0, 212, 0, 74, 51, 213, 63, 214, 141, 22], ["-", 0, 212, 0, 74, 51, 213, 3, ...
8
195
10
using System; namespace ABC112_D___Partition { class Program { static void Main(string[] args) { Console.WriteLine(solver()); } static int solver() { var NM = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = NM[0]; var M = NM[1]; for (int i = 2; i <= M / 2; i++) { if (M % i...
using System; namespace ABC112_D___Partition { class Program { static void Main(string[] args) { Console.WriteLine(solver()); } static int solver() { var NM = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = NM[0]; var M = NM[1]; if (N == 1) return M; for (int i = 2; 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, 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
117
6
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC112D { class Program { static void Solve(Input input) { var n = input.NextInt(); var m = input.NextInt(); // 全ての要素が一つの公約数を持つ必要があり、 /...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC112D { class Program { static void Solve(Input input) { var n = input.NextInt(); var m = input.NextInt(); // 全ての要素が一つの公約数を持つ必要があり、 /...
[["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 285, 0, 286], ["+", 8, 196, 0, 57, 64, 196, 0, 285, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 285, 0, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 285, 0, 35], ["+", 0, 57, 64, 196, 0, 285, 0, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 285, 0, 16, 17, 85]...
8
1,248
8
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; private const long INFINITY = 9223372036854775807; public static void Main() { int N = NextInt(); int M = NextInt(); List<int> memo = new List<int>(); int...
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; private const long INFINITY = 9223372036854775807; public static void Main() { long N = NextInt(); long M = NextInt(); List<int> memo = new List<int>(); i...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 64, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 64, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 64, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0,...
8
440
37
using System; using System.Linq; using System.Collections; using System.Collections.Generic; class Program { public static void Main() { var s = Console.ReadLine().Split(' '); var N = int.Parse(s[0]); var M = int.Parse(s[1]); for (int i = N; i > 0; i--) { if (M % i == 0) { Console.Writ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; class Program { public static void Main() { var s = Console.ReadLine().Split(' '); var N = int.Parse(s[0]); var M = int.Parse(s[1]); int l = M / N; for (int i = l; i > 0; i--) { if (M % i == 0) { ...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0...
8
109
9
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Int32; using static System.Math; using System.Numerics; class Program { static void Main(string[] args) { label: var sp = ReadLine().Split(); int n = Parse(sp[0]); int m = Parse(sp[1]); ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Int32; using static System.Math; using System.Numerics; class Program { static void Main(string[] args) { label: var sp = ReadLine().Split(); int n = Parse(sp[0]); int m = Parse(sp[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, 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
458
18
using System; using System.Collections.Generic; using System.Text; namespace AtTest.ABC_112 { class D { static void Main(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { long[] nm = ReadLongs(); long n = nm[0]; long m = nm[1]; i...
using System; using System.Collections.Generic; using System.Text; namespace AtTest.ABC_112 { class D { static void Main(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { long[] nm = ReadLongs(); long n = nm[0]; long m = nm[1]; i...
[["-", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["-", 0, 212, 0, 74, 51, 213, 63, 214, 205, 22], ["-", 0, 212, 0, 74, 51, 213, 63, 214, 0, 131], ["-", 0, 212, 0, 74, 51, 213, 63, 214, 141, 22], ["-", 0, 212, 0, 74, 51, 213, 3, 4, ...
8
307
16
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder.ABC112.D { class Program { static void Main() { var sc = new Scanner(); var n = sc.Nextint(); var m = sc.Nexti...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder.ABC112.D { class Program { static void Main() { var sc = new Scanner(); var n = sc.Nextint(); var m = sc.Nexti...
[["-", 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, 17, 85], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0,...
8
589
35
using System; class hogehoge { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int n = int.Parse(s[0]); int m = int.Parse(s[1]); int r = 1; for (int i = 1; i < 1000000000; i++) { if (i * n > m) break; if (m % i == 0) r = i; } Consol...
using System; class hogehoge { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int n = int.Parse(s[0]); int m = int.Parse(s[1]); int r = 1; for (int i = 1; i < 1000000000; i++) { if (n == 1) { r = m; break; } if (i * n > m) br...
[["+", 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], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57...
8
112
14
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static PB10004.Algorithm.Util; namespace PB10004.Algorithm { class Template { static void Main(string[] args) { new D().Solve(); } } class A { public void Solve() { var N = Read...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static PB10004.Algorithm.Util; namespace PB10004.Algorithm { class Template { static void Main(string[] args) { new D().Solve(); } } class A { public void Solve() { var N = Read...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
1,068
15
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { var l = new List<long>(); for (long i = 1; i * i <= M; i++) { if (M...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { var l = new List<long>(); for (long i = 1; i * i <= M; i++) { if (M...
[["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25]]
8
413
7
using System; using System.Collections.Generic; using System.Linq; using System.IO; // using System.Text; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; // using System.Numerics; // using static System.Math; // using pair = Pair<int, int...
using System; using System.Collections.Generic; using System.Linq; using System.IO; // using System.Text; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; // using System.Numerics; // using static System.Math; // using pair = Pair<int, 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, 48], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22]...
8
512
18
using System; namespace AtCoder.ABC._112 { class d { static void Main(string[] args) { var line = Console.ReadLine().Trim(); var spl = line.Split(' '); var N = int.Parse(spl[0]); var M = int.Parse(spl[1]); var O = (double)M / N; for (var i = (int)Math.Floor(O); i > 1; --i) { ...
using System; namespace AtCoder.ABC._112 { class d { static void Main(string[] args) { var line = Console.ReadLine().Trim(); var spl = line.Split(' '); var N = int.Parse(spl[0]); var M = int.Parse(spl[1]); var O = (double)M / N; for (var i = (int)Math.Floor(O); i > 1; --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, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
130
7
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; using static util; using P = pair<int, int>; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpressi...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; using static util; using P = pair<int, int>; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpressi...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 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, 57, 15, 16, 12, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, ...
8
4,964
26
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[] HW = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int H = HW[0]; int W = HW[1]; char[,] hairetu = new char[H, W]; for (...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[] HW = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int H = HW[0]; int W = HW[1]; char[,] hairetu = new char[H, W]; for (...
[["-", 8, 196, 0, 57, 15, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 57, 15, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 57, 15, 213, 3, 4, 0, 24], ["-", 0, 57, 15, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 57, 15, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25],...
8
461
25
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 h = cin.nextInt(); var w = cin.nextInt(); var...
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 h = cin.nextInt(); var w = cin.nextInt(); var...
[["-", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 21], ["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["+", 0, 198, 0, 200, 0, 212, 0,...
8
948
18
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main() { Solve(); Console.ReadKey(); } static void Solve() { int H; int W; Multi(out H, out W); var cell = new char [H][];...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main() { Solve(); Console.ReadKey(); } static void Solve() { int H; int W; Multi(out H, out W); var cell = new char [H][];...
[["-", 0, 7, 8, 196, 0, 1, 0, 213, 63, 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, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 230, 0, 228], ["+", 0, 213, 3, 4, 0, 28, 0, 230, 39, 199], ["-",...
8
880
14
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; class Program { static void Main(string[] args) { new Program().Calc(); } Scanner cin; public Program() {} bool chmax<T>(ref T a, T b) where T : IComparable<...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; class Program { static void Main(string[] args) { new Program().Calc(); } Scanner cin; public Program() {} bool chmax<T>(ref T a, T b) where T : IComparable<...
[["-", 0, 7, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["-", 0, 213, 3, 4, 0, 28, 0, 230, 0, 228], ["-", 0, 213, 3, 4, 0, 28, 0, 230, 39, 199], ["+", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 0,...
8
820
32
using System; using System.Collections.Generic; public class Test { public static void Main() { int h, w, ii, jj; string[] tmp; List<int> hl, wl; tmp = Console.ReadLine().Split(' '); h = int.Parse(tmp[0]); w = int.Parse(tmp[1]); string[] a, b; a = new string[h]; b = new string[h...
using System; using System.Collections.Generic; public class Test { public static void Main() { int h, w, ii, jj; string[] tmp; List<int> hl, wl; tmp = Console.ReadLine().Split(' '); h = int.Parse(tmp[0]); w = int.Parse(tmp[1]); string[] a, b; a = new string[h]; b = new string[h...
[["-", 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
375
7
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[] hw = 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[] hw = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int ...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 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, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 3...
8
546
28
using System; using System.Linq; using System.Collections.Generic; namespace _0030 { class Gyo { internal int dot; internal int sharp; public Gyo() { this.dot = 0; this.sharp = 0; } } class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int n = ...
using System; using System.Linq; using System.Collections.Generic; namespace _0030 { class Gyo { internal int dot; internal int sharp; public Gyo() { this.dot = 0; this.sharp = 0; } } class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int n = ...
[["-", 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], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32],...
8
455
35
using System; using System.Linq; public class Hello { public static void Main() { // Your code here! int[] a = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int H = a[0]; int W = a[1]; char[,] matrix = new char[H, W]; for (int h = 0; h < H; h++) { string line = Co...
using System; using System.Linq; public class Hello { public static void Main() { // Your code here! int[] a = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int H = a[0]; int W = a[1]; char[,] matrix = new char[H, W]; for (int h = 0; h < H; h++) { string line = Co...
[["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 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, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0...
8
436
33
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int H = int.Parse(s.Split(' ')[0]); int W = int.Parse(s.Split(' ')[1]); List<string> ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int H = int.Parse(s.Split(' ')[0]); int W = int.Parse(s.Split(' ')[1]); List<string> ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, ...
8
335
10
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var h = int.Parse(line[0]); var w = int.Parse(line[1]); var buf = new string[h]; var ha = new bool[h]; var wa = new bool[w]; for (int i = 0; i < h; i++) { var s = Con...
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var h = int.Parse(line[0]); var w = int.Parse(line[1]); var buf = new string[h]; var ha = new bool[h]; var wa = new bool[w]; for (int i = 0; i < h; i++) { var s = Con...
[["+", 8, 196, 0, 7, 8, 7, 8, 57, 0, 95], ["+", 0, 7, 8, 7, 8, 57, 75, 57, 0, 121], ["+", 0, 7, 8, 7, 8, 57, 75, 57, 0, 24], ["+", 8, 57, 75, 57, 15, 16, 31, 204, 205, 22], ["+", 75, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 75, 57, 15, 16, 31, 204, 206, 207, 0, 73], [...
8
243
20
using System; using System.Collections.Generic; using System.Linq; using static Atcoder; using System.Threading.Tasks; using System.ComponentModel; public class Hello { public static void Main() { int[] n = SpIntRead(' '); int H = n[0]; int W = n[1]; string[] s = new string[H]; bool[] h = new bo...
using System; using System.Collections.Generic; using System.Linq; using static Atcoder; using System.Threading.Tasks; using System.ComponentModel; public class Hello { public static void Main() { int[] n = SpIntRead(' '); int H = n[0]; int W = n[1]; string[] s = new string[H]; bool[] h = new bo...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 15, 16, 12, 16, 31, 204, 205, 204, 205, 22], ["+", 12, 16, 31, 204, 205, 204, 206, 207, 0, 70], ["+", 31, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 16, 31, 204, 205, 204, 206, 207, 0, 73], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, ...
8
710
12
using System; using System.Linq; class P { static void Main() { int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = n[0]; int K = n[1]; int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); int ans = int.MaxValue, tmp = 0; for (int i = 0; i < N - K; i++) { ...
using System; using System.Linq; class P { static void Main() { int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = n[0]; int K = n[1]; int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); int tmp = 0, ans = int.MaxValue; for (int i = 0; i <= N - K; 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], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, ...
8
203
10
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { // var data = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); // var t = data[0]; // var s = data[1];...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { // var data = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); // var t = data[0]; // var s = data[1];...
[["+", 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, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 19...
8
443
41