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; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int n = int.Parse(str[0]); int k = int.Parse(str[1]); var list = new SortedDictionary<int, int>(); for (int i = 0; ...
using System; using System.Collections.Generic; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int n = int.Parse(str[0]); long k = long.Parse(str[1]); var list = new SortedDictionary<int, long>(); for (int 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], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
220
8
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { class Entity : IComparable<Entity> { public int number; public int count; public int CompareTo(Entity e) { return number.CompareTo(e.number); } } static ...
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { class Entity : IComparable<Entity> { public int number; public int count; public int CompareTo(Entity e) { return number.CompareTo(e.number); } } static ...
[["-", 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
272
6
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC061C { class Program { static void Solve(Input input) { var n = input.NextInt(); var k = input.NextInt(); var a = new int[n]; var b =...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC061C { class Program { static void Solve(Input input) { var n = input.NextInt(); var k = input.NextLong(); var a = new int[n]; var b ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
1,245
2
using System; using System.Linq; namespace ABC061_C { class Program { static void Main(string[] args) { var NK = Console.ReadLine().Split().Select(int.Parse).ToArray(); var N = NK[0]; var K = NK[1]; var ar = new int [N][]; for (int i = 0; i < N; i++) { ar[i] = Console.ReadLine().Split().Se...
using System; using System.Linq; namespace ABC061_C { class Program { static void Main(string[] args) { var NK = Console.ReadLine().Split().Select(long.Parse).ToArray(); var N = NK[0]; var K = NK[1]; var ar = new int [N][]; for (int i = 0; i < N; i++) { ar[i] = Console.ReadLine().Split().S...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]]
8
192
2
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var line = Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray(); var N = line[0]; var K = line[1]; var list = new List<int[]>(); for (int i = 0; i < N; ++i) { var a...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var line = Console.ReadLine().Split(' ').Select(x => Int64.Parse(x)).ToArray(); var N = line[0]; var K = line[1]; var list = new List<long[]>(); for (var i = 0; i < N; ++i) { var ...
[["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 22], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 22], ["-", 0, 230, 39, 236, 237, 238, 0, 224, 39, 199], ["+", 0, 230, 39, 236, 237, 238, 0, 224, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 39, 216, 0, 217], ["-", 3, 4, 0, 28, 0, 227, ...
8
216
12
using System; using System.Linq; class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); ulong K = ulong.Parse(s[1]); var array = Enumerable.Repeat((ulong)0, AMAX + 1).ToArray(); for (int i = 0; i < N; i++) { string[] ss = Conso...
using System; using System.Linq; class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); ulong K = ulong.Parse(s[1]); var array = Enumerable.Repeat((ulong)0, AMAX + 1).ToArray(); for (int i = 0; i < N; i++) { string[] ss = Conso...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
213
2
using System; using System.Collections.Generic; using System.Text; using System.Linq; using static System.Math; class Program { static int n; static int k; static int[] a; static int[] b; static int[] count; // count[i] : iが配列に何個含まれるか static void Main() { /* 入力の受取 */ string[] input = Console.ReadL...
using System; using System.Collections.Generic; using System.Text; using System.Linq; using static System.Math; class Program { static int n; static long k; static int[] a; static int[] b; static long[] count; // count[i] : iが配列に何個含まれるか static void Main() { /* 入力の受取 */ string[] input = Console.Rea...
[["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 8, 201, 0, 124, 0, 198, 39, 224, 39, 199], ["+", 8, 201, 0, 124, 0, 198, 39, 224, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 0, 1, 0, 11, 12, 227, 3...
8
269
10
using System; class Program { static void Main(string[] args) { var nm = Console.ReadLine().Split(' '); var n = int.Parse(nm[0]); var m = int.Parse(nm[1]); var d = new Tuple<int, int>[n]; for (int i = 0; i < n; i++) { var ab = Console.ReadLine().Split(' '); d[i] = Tuple.Create(int.Pa...
using System; class Program { static void Main(string[] args) { var nm = Console.ReadLine().Split(' '); var n = long.Parse(nm[0]); var m = long.Parse(nm[1]); var d = new Tuple<int, int>[n]; for (int i = 0; i < n; i++) { var ab = Console.ReadLine().Split(' '); d[i] = Tuple.Create(int....
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
209
4
using System; using System.Collections.Generic; using System.Linq; public static partial class Program { public static void Main() { var nk = CRL().SpTInts(); var n = nk[0]; var k = nk[1]; var array = new List<KeyValuePair<int, int>>(); for (int i = 0; i < n; i++) { var ab = CRL().SpTInts()...
using System; using System.Collections.Generic; using System.Linq; public static partial class Program { public static void Main() { var nk = CRL().SpTLongs(); var n = nk[0]; var k = nk[1]; var array = new List<KeyValuePair<int, int>>(); for (int i = 0; i < n; i++) { var ab = CRL().SpTInts(...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 214, 205, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 214, 0, 131], ["-", 8, 196, 0, 7, 15, 16, 12, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
597
6
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var NK = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); var N = NK[0]; var K = NK[1]; var array = new List<KeyValuePair<long, long>>(); for (var i = 0; i < N; ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var NK = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); var N = NK[0]; var K = NK[1]; var array = new List<KeyValuePair<long, long>>(); for (var i = 0; i < N; ...
[["+", 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, 3, 4, 0, 25], ["+", 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]]
8
229
6
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; class Program { static void Main(string[] args) { var nk = Array.ConvertAll(ReadLine().Split(' '), long.Parse); var dic = new SortedDictionary<long, int>(); ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; class Program { static void Main(string[] args) { var nk = Array.ConvertAll(ReadLine().Split(' '), long.Parse); var dic = new SortedDictionary<long, long>(); ...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
221
4
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; using static System.Console; class Program { static Scanner sc = new Scanner(); class ab { public int a { get; set; } public int b { get; set; } } internal static void Main(string[] args) { var N = sc.nextIn...
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; using static System.Console; class Program { static Scanner sc = new Scanner(); class ab { public int a { get; set; } public int b { get; set; } } internal static void Main(string[] args) { var N = sc.nextIn...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
562
2
using System.Collections.Generic; using System.Linq; using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var k = int.Parse(line[1]); var d = new Dictionary<long, long>(); for (int i = 0; i < n; i++) { ...
using System.Collections.Generic; using System.Linq; using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var k = long.Parse(line[1]); var d = new Dictionary<int, long>(); for (int i = 0; i < n; i++) { ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
222
6
using System; using System.Linq; using System.Collections.Generic; using System.Runtime.InteropServices; class P { static void Main() { int[] NK = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); int[][] ab = new int[NK[0]][] .Select(_ => Console.ReadLine() ...
using System; using System.Linq; using System.Collections.Generic; using System.Runtime.InteropServices; class P { static void Main() { long[] NK = Console.ReadLine().Split().Select(x => long.Parse(x)).ToArray(); int[][] ab = new int[NK[0]][] .Select(_ => Console.ReadLine() ...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199]]
8
186
4
using System; using System.Collections.Generic; namespace C { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int K = int.Parse(input[1]); var data = new long[int.Parse(Math.Pow(10, 5).ToString()) + 1]; for (var i = 0; i <...
using System; using System.Collections.Generic; namespace C { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); long K = long.Parse(input[1]); var data = new long[int.Parse(Math.Pow(10, 5).ToString()) + 1]; for (var i = 0; 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
283
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int N = int.Parse(str[0]); long K = long.Parse(str[1]); long[] cnt = new long[100000 + 1]; for (int i = 0; i < N; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int N = int.Parse(str[0]); long K = long.Parse(str[1]); long[] cnt = new long[100000 + 1]; for (int i = 0; i < N; ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
202
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC061C { class Program { class Number { public int a, b; } static void Main(string[] args) { int N; long K; string[] vals = Console.ReadLine().Split(' '); N = int.P...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC061C { class Program { class Number { public int a, b; } static void Main(string[] args) { int N; long K; string[] vals = Console.ReadLine().Split(' '); N = int.P...
[["-", 0, 28, 0, 218, 8, 16, 12, 214, 205, 22], ["+", 0, 28, 0, 218, 8, 16, 12, 214, 205, 22], ["-", 0, 28, 0, 218, 8, 16, 12, 214, 141, 22], ["+", 0, 28, 0, 218, 8, 16, 12, 214, 141, 22]]
8
250
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Hello { static void Main() { var nk = Console.ReadLine().Split().Select(int.Parse).ToArray(); int n = nk[0], k = nk[1]; var pair = new KeyValuePair<int, int>[n]; for (int i = 0; i < pair.Length; i++) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Hello { static void Main() { var nk = Console.ReadLine().Split().Select(ulong.Parse).ToArray(); ulong n = nk[0], k = nk[1]; var pair = new KeyValuePair<int, int>[n]; for (int i = 0; i < pair.Length; i++) { ...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 57, 15, 16, 12, 74, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 12, 74, 39, 199], ["-", 8, 196, 0, 57, 15, 16, 12, 74...
8
228
7
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { long n = Cin.Ni(); long k = Cin.Ni(); SortedDictionary<long, long> dic = new SortedDictionary<long, long>(); for (int i = 0; i < n; i++) { long a = Cin.Ni(); long b = Cin....
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { long n = Cin.Ni(); long k = Cin.NextLong(); SortedDictionary<long, long> dic = new SortedDictionary<long, long>(); for (int i = 0; i < n; i++) { long a = Cin.Ni(); long b ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
327
2
using System; using System.Linq; namespace AtCoder { static class Solver { static IO io = new IO(); public static void Solve() { io.ReadSplit(); int N = io.Int(); long K = io.Long(); P[] plist = new P[N]; for (int i = 0; i < N; ++i) { io.ReadSplit(); plist[i].a = io.Int(); ...
using System; using System.Linq; namespace AtCoder { static class Solver { static IO io = new IO(); public static void Solve() { io.ReadSplit(); int N = io.Int(); long K = io.Long(); P[] plist = new P[N]; for (int i = 0; i < N; ++i) { io.ReadSplit(); plist[i].a = io.Int(); ...
[["+", 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, 3, 4, 0, 25], ["+", 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]]
8
539
6
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { public Solve() {} StringBuilder sb; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); Calc(); Console.Write(sb.ToString()); } void Calc() {...
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { public Solve() {} StringBuilder sb; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); Calc(); Console.Write(sb.ToString()); } void Calc() {...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
273
4
using System; using System.Linq; using System.Collections.Generic; using Debug = System.Diagnostics.Debug; using StringBuilder = System.Text.StringBuilder; using Number = System.Int64; using static System.Math; namespace Program { public class Solver { public void Solve() { var n = ri; var m = ri; var G =...
using System; using System.Linq; using System.Collections.Generic; using Debug = System.Diagnostics.Debug; using StringBuilder = System.Text.StringBuilder; using Number = System.Int64; using static System.Math; namespace Program { public class Solver { public void Solve() { var n = ri; var m = ri; var G =...
[["+", 0, 28, 0, 230, 3, 4, 0, 28, 0, 22], ["+", 3, 4, 0, 28, 0, 230, 3, 4, 0, 21]]
8
2,100
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class44 { static void Main() { var abc = Console.ReadLine().Split().Select(int.Parse).ToArray(); int a = abc[0], b = abc[1], c = abc[2]; if (!check(a, b, c)) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class44 { static void Main() { var abc = Console.ReadLine().Split().Select(int.Parse).ToArray(); int a = abc[0], b = abc[1], c = abc[2]; if (!check(a, b, c)) ...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
251
2
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int A = l[0], B = l[1], C = l[2]; if (A == B && B == C && A == C) { Console.WriteLine(-1); ...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int A = l[0], B = l[1], C = l[2]; if (A % 2 == 0 && A == B && B == C && A == C) { Console.Write...
[["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 60], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 31, 22]]
8
182
6
using System; class program { static long ans = 0; static void solv(long A, long B, long C) { long p, q, r; while (A % 2 == 0 && B % 2 == 0 && C % 2 == 0) { ans++; p = (B + C) / 2; q = (C + A) / 2; r = (A + B) / 2; A = p; B = q; C = r; } return; } sta...
using System; class program { static long ans = 0; static void solv(long A, long B, long C) { long p, q, r; while (A % 2 == 0 && B % 2 == 0 && C % 2 == 0) { ans++; p = (B + C) / 2; q = (C + A) / 2; r = (A + B) / 2; A = p; B = q; C = r; } return; } sta...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
206
6
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 inputs = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); Console.WriteLine(CookieExchanges(inputs)); } ...
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 inputs = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); Console.WriteLine(CookieExchanges(inputs)); } ...
[["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 0, 195, 54, 55, 0, 220, 39, 224, 39, 199], ["+", 0, 195, 54, 55, 0, 220, 39, 224, 39, 199], ["-", 0, 195, 8, 196, 0, 197, 0, ...
8
207
8
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
267
4
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 long n = long.Parse(input[0]); long m = long.Parse(input[1]); long[] u...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 long n = long.Parse(input[0]); long m = long.Parse(input[1]); long[] u...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
223
2
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.IO; using System.Linq; class Program { static void Main() { new Magatro().Solve(); } } class Magatro { private int A, B, C; publ...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.IO; using System.Linq; class Program { static void Main() { new Magatro().Solve(); } } class Magatro { private int A, B, C; publ...
[["+", 0, 7, 8, 196, 0, 57, 15, 241, 0, 111]]
8
292
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] a = new int[n[0]]; for (int i = 0; i < n[1]; i++) { int[] s = Read.Ints(); a[s[0]]++;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] a = new int[n[0]]; for (int i = 0; i < n[1]; i++) { int[] s = Read.Ints(); a[s[0] - 1...
[["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
366
4
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; // using System.Numerics; //comment out if AOJ using System.Text; using Problem = Tmp.Problem; using MyIO; #pragma warning disable // for AOJ namespace Tmp { class Problem : IDispo...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; // using System.Numerics; //comment out if AOJ using System.Text; using Problem = Tmp.Problem; using MyIO; #pragma warning disable // for AOJ namespace Tmp { class Problem : IDispo...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 17, 109], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
1,313
6
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
380
2
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var n = ni(); int mod = 1000000000 + 7; var dp = new long[n]; dp[0] = n % m...
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var n = ni(); int mod = 1000000000 + 7; var dp = new long[n]; dp[0] = n % m...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
1,151
8
using System; using System.Linq; using System.Collections.Generic; using Debug = System.Diagnostics.Debug; using StringBuilder = System.Text.StringBuilder; using Number = ModInteger; using System.Numerics; namespace Program { public class Solver { public void Solve() { var n = sc.Integer(); var ep = new ModIn...
using System; using System.Linq; using System.Collections.Generic; using Debug = System.Diagnostics.Debug; using StringBuilder = System.Text.StringBuilder; using Number = ModInteger; using System.Numerics; namespace Program { public class Solver { public void Solve() { var n = sc.Integer(); var ep = new ModIn...
[["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203]]
8
1,728
4
using System; using System.Linq; namespace ProgramingStydying { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(long.Parse).ToList(); a.Sort(); long ans = 0; for (int i = n; i < 2 * n; i++) { ans += a[i]; ...
using System; using System.Linq; namespace ProgramingStydying { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(long.Parse).ToList(); a.Sort(); long ans = 0; for (int i = n; i < 3 * n; i += 2) { ans += a[i]...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 8, 196, 0, 7, 26, 11, 0, 202, 0, 107], ["+", 0, 195, 8, 196, 0, 7, 26, 11, 12, 203]]
8
108
5
using System; using System.Linq; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); Array.Sort(a); long ans = 0; for (int i = 0; i < n; i++) { ans += a[2 * (n - i)]; } Console...
using System; using System.Linq; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); Array.Sort(a); long ans = 0; for (int i = 0; i < n; i++) { ans += a[3 * n - 2 * (n - i)]; } ...
[["+", 206, 207, 0, 28, 0, 16, 31, 16, 31, 203], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 17, 48], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33]]
8
112
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using System.Diagnostics; using ll=System.Int64; using static Contest_A.Lib_IO; using static Contest_A.Lib_Minifunc; public static class Contest_A { public static ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using System.Diagnostics; using ll=System.Int64; using static Contest_A.Lib_IO; using static Contest_A.Lib_Minifunc; public static class Contest_A { public static ...
[["-", 0, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["+", 0, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["-", 0, 287, 0, 196, 0, 7, 26, 223, 0, 29], ["+", 0, 196, 0, 7, 26, 11, 0, 202, 0, 107], ["+", 0, 287, 0, 196, 0, 7, 26, 11, 12, 203]]
8
2,942
5
public class Hello { public static void Main() { // Your code here! int n = int.Parse(System.Console.ReadLine()); string[] s = System.Console.ReadLine().Split(' '); long[] a = new long[3 * n]; for (int i = 0; i < n * 3; i++) a[i] = System.Int64.Parse(s[i]); System.Array.Sort(a); long...
public class Hello { public static void Main() { // Your code here! int n = int.Parse(System.Console.ReadLine()); string[] s = System.Console.ReadLine().Split(' '); long[] a = new long[3 * n]; for (int i = 0; i < n * 3; i++) a[i] = System.Int64.Parse(s[i]); System.Array.Sort(a); long...
[["-", 206, 207, 0, 28, 0, 16, 12, 16, 31, 203], ["+", 206, 207, 0, 28, 0, 16, 12, 16, 31, 22]]
8
154
2
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
494
4
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace AGC012A { class Program { static void Solve(Input input) { var n = input.NextInt(); var a = input.NextInt(n * 3); Array.Sort(a); int t...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace AGC012A { class Program { static void Solve(Input input) { var n = input.NextInt(); var a = input.NextInt(n * 3); Array.Sort(a); int t...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131]]
8
1,085
6
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace AtCoder { class Practice { static void Main() => CustomMain(); static void Solve() { var n = ReadInt(); var a = ReadLongArray(); Array.Sort(a); long ans = 0; for (int i = n...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace AtCoder { class Practice { static void Main() => CustomMain(); static void Solve() { var n = ReadInt(); var a = ReadLongArray(); Array.Sort(a); long ans = 0; for (int i = n...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 8, 196, 0, 7, 26, 11, 0, 202, 0, 107], ["+", 0, 195, 8, 196, 0, 7, 26, 11, 12, 203]]
8
746
5
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { long ans = 0; long N = long.Parse(Console.ReadLine()); long[] a = Console.ReadLine().Split().Select(long.Parse).ToArray(); Array.Sort(a)...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { long ans = 0; long N = long.Parse(Console.ReadLine()); long[] a = Console.ReadLine().Split().Select(long.Parse).ToArray(); Array.Sort(a)...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["+", 0, 7, 15, 16, 12, 16, 31, 16, 31, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 8, 196, 0, 7, 26, 11, 0, 202, 0, 107], ["+", 0, 195, 8, 196, 0, 7, 26, 11, 12, 203]]
8
130
7
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() { Array.Sort(A); long sum = 0; for (int i = N; i < N + N; i++) su...
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() { Array.Sort(A); long sum = 0; for (int i = N; i < 3 * N; i += 2) { ...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 48], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 8, 196, 0, 7, 26, 11, 0, 202, 0, 107], ["+", 0, 195, 8, 196, 0, 7, 26, 11, 12, 203], ["...
8
350
9
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.AGC_Challenge { class _012_B { static void Main(string[] args) { Method(args); ReadLine(); } static void Method(string[] args) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.AGC_Challenge { class _012_B { static void Main(string[] args) { Method(args); ReadLine(); } static void Method(string[] args) { ...
[["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203]]
8
739
4
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Globalization; using System.Diagnostics; using static System.Console; using Pair = System.Collections.Generic.KeyValuePair<int, int>; // using System.Numerics; class Program { static void Main() { SetOut(new StreamWr...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Globalization; using System.Diagnostics; using static System.Console; using Pair = System.Collections.Generic.KeyValuePair<int, int>; // using System.Numerics; class Program { static void Main() { SetOut(new StreamWr...
[["-", 0, 11, 12, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 11, 12, 227, 39, 224, 225, 226, 0, 22]]
8
878
6
using System; using System.Collections.Generic; using System.Linq; namespace AGC012 { public class B { private void Run() { var input = Console.ReadLine().Trim().Split(); var N = int.Parse(input[0]); var M = int.Parse(input[1]); var edges = Enumerable.Range(0, N).Select(_ => new List<int>()).ToArray...
using System; using System.Collections.Generic; using System.Linq; namespace AGC012 { public class B { private void Run() { var input = Console.ReadLine().Trim().Split(); var N = int.Parse(input[0]); var M = int.Parse(input[1]); var edges = Enumerable.Range(0, N).Select(_ => new List<int>()).ToArray...
[["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 47]]
8
594
2
using System; using System.IO; using System.Collections.Generic; using System.Linq; namespace AtCoder.Contest.A { static class Program { public static void Solve(Scanner cin) { var (a, b) = cin.ReadValue<int, int>(); var ans = (a + b) / 24; Console.WriteLine(ans); } public static void ...
using System; using System.IO; using System.Collections.Generic; using System.Linq; namespace AtCoder.Contest.A { static class Program { public static void Solve(Scanner cin) { var (a, b) = cin.ReadValue<int, int>(); var ans = (a + b) % 24; Console.WriteLine(ans); } public static void ...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109]]
8
2,451
2
using System; namespace ABC_057_A_Csharp_ver { class Program { static void Main(string[] args) { var word = Console.ReadLine().Split(' '); int A = int.Parse(word[0]); int B = int.Parse(word[1]); if (A + B > 24) { Console.WriteLine(A + B - 24); } else { Console.WriteLine(A + B); } ...
using System; namespace ABC_057_A_Csharp_ver { class Program { static void Main(string[] args) { var word = Console.ReadLine().Split(' '); int A = int.Parse(word[0]); int B = int.Parse(word[1]); if (A + B >= 24) { Console.WriteLine(A + B - 24); } else { Console.WriteLine(A + B); }...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
103
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { public class QuestionA { public static void Main(string[] args) { // 整数配列の入力 var inputLongArray = Console.ReadLine().Split(' ').Select(i => long.Parse(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { public class QuestionA { public static void Main(string[] args) { // 整数配列の入力 var inputLongArray = Console.ReadLine().Split(' ').Select(i => long.Parse(...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
125
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC057A { class Program { static void Main(string[] args) { int a, b, c; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c = a...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC057A { class Program { static void Main(string[] args) { int a, b, c; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c = a...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]]
8
128
2
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace AtCoder { class Program { static void Main() { var A = ReadIntArray(); if (A[0] + A[1] <= 24) { Console.WriteLine(A[0] + A[1]); } else { Console.WriteLine(A[0] + A[1] - 24...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace AtCoder { class Program { static void Main() { var A = ReadIntArray(); if (A[0] + A[1] < 24) { Console.WriteLine(A[0] + A[1]); } else { Console.WriteLine(A[0] + A[1] - 24)...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]]
8
281
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace At { class Program { static void Main(string[] args) { var input = ReadInts(); if (input[0] + input[1] > 24) { WriteLine(input[0] + input[1] - 24); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace At { class Program { static void Main(string[] args) { var input = ReadInts(); if (input[0] + input[1] > 23) { WriteLine(input[0] + input[1] - 24); ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]]
8
277
2
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main() { //入力 // int n = 100; /* long n = long.Parse(Console.ReadLine()); long[] input = new long[5]; for(int a = 0; a < 5; a++) { i...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main() { //入力 // int n = 100; /* long n = long.Parse(Console.ReadLine()); long[] input = new long[5]; for(int a = 0; a < 5; a++) { i...
[["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25]]
8
95
2
using System; class Program { static void Main(string[] args) { var ab = Console.ReadLine().Split(); Console.WriteLine(int.Parse(ab[0]) + int.Parse(ab[1]) % 24); } }
using System; class Program { static void Main(string[] args) { var ab = Console.ReadLine().Split(); Console.WriteLine((int.Parse(ab[0]) + int.Parse(ab[1])) % 24); } }
[["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 12, 213, 3, 4, 0, 25]]
8
58
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Atcoderrrrrrr { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int a = int.Parse(s[0]); int b = int.Parse(s[1]); int ans = a + b...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Atcoderrrrrrr { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int a = int.Parse(s[0]); int b = int.Parse(s[1]); int ans = a + b...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20]]
8
112
2
using System; using System.Linq; namespace _057 { class Program { static void Main(string[] args) { // A - Remaining Time var line = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var a = line[0]; var b = line[1]; Console.WriteLine(a + b <= 24 ? a + b : a + b - 24); ...
using System; using System.Linq; namespace _057 { class Program { static void Main(string[] args) { // A - Remaining Time var line = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var a = line[0]; var b = line[1]; Console.WriteLine(a + b < 24 ? a + b : a + b - 24); ...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18]]
8
97
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp38 { class Program { static void Main(string[] args) { string[] time = Console.ReadLine().Split(' '); int a = int.Parse(time[0]); int b = int.Parse(time[1]); int c =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp38 { class Program { static void Main(string[] args) { string[] time = Console.ReadLine().Split(' '); int a = int.Parse(time[0]); int b = int.Parse(time[1]); int c =...
[["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 20]]
8
135
2
// Rextester.Program.Main is the entry point for your code. Don't change it. // Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static vo...
// Rextester.Program.Main is the entry point for your code. Don't change it. // Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static vo...
[["-", 0, 195, 8, 196, 0, 57, 64, 260, 0, 35]]
8
127
1
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class CODEFORCES2 { static bool SAIKI = false; ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class CODEFORCES2 { static bool SAIKI = false; ...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
1,568
2
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(); long n = cin.nextLong(); long m = cin.nextLong(); ...
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(); long n = cin.nextLong(); long m = cin.nextLong(); ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
775
2
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 m = sc.NextInt(); Tuple<long, long>[] members = new Tuple<long, long>[n]; Tuple<long, long>[] points = new Tuple<lo...
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 m = sc.NextInt(); Tuple<long, long>[] members = new Tuple<long, long>[n]; Tuple<long, long>[] points = new Tuple<lo...
[["-", 31, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33]]
8
584
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp7 { class Program { static void Main(string[] args) { int[] param = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int studentNum = param[0]; int checkPointN...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp7 { class Program { static void Main(string[] args) { int[] param = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int studentNum = param[0]; int checkPointN...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
293
2
using System; namespace ABC057_B { class Program { static void Main(string[] args) { var sss = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = sss[0]; var M = sss[1]; var x = new int[N]; var y = new int[N]; var px = new int[M]; var py = new int[M]; var ans = new in...
using System; namespace ABC057_B { class Program { static void Main(string[] args) { var sss = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = sss[0]; var M = sss[1]; var x = new int[N]; var y = new int[N]; var px = new int[M]; var py = new int[M]; var ans = new in...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
339
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace MyProgram { public class Program { public static void Main(string[] args) { string[] buf = Console.ReadLine().Split(' '); int N = int.Parse(buf[0]); int M = int.Parse(buf[1]); int mcp = 0; int m...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace MyProgram { public class Program { public static void Main(string[] args) { string[] buf = Console.ReadLine().Split(' '); int N = int.Parse(buf[0]); int M = int.Parse(buf[1]); int mcp = 0; int m...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203]]
8
359
4
using System; public class P { public int x { get; set; } public int y { get; set; } } public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var m = int.Parse(line[1]); var std = new P[n]; var cp = new P[m]; for...
using System; public class P { public int x { get; set; } public int y { get; set; } } public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var m = int.Parse(line[1]); var std = new P[n]; var cp = new P[m]; for...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
390
2
using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { int[] n = Console.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); int N = n[0]; int M = n[1]; int[,] st = new int[N, 2]; for (int i = 0; i < N; i++) { n = Console...
using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { int[] n = Console.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); int N = n[0]; int M = n[1]; int[,] st = new int[N, 2]; for (int i = 0; i < N; i++) { n = Console...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203]]
8
368
4
using System; using System.Linq; namespace _057 { class Program { static void Main(string[] args) { // B - Checkpoints var line = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var n = line[0]; var m = line[1]; var ab = new long[n, 2]; var cd = new long[m, 2]; ...
using System; using System.Linq; namespace _057 { class Program { static void Main(string[] args) { // B - Checkpoints var line = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var n = line[0]; var m = line[1]; var ab = new long[n, 2]; var cd = new long[m, 2]; ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
376
2
using System; using System.Collections.Generic; namespace atcode { class MainClass { class Point { public int x; public int y; public Point() { x = 0; y = 0; } public double getDistTo(Point p) { return (Math.Abs(x - p.x) + Math.Abs(y - p.y)); } }; static void Main(string...
using System; using System.Collections.Generic; namespace atcode { class MainClass { class Point { public int x; public int y; public Point() { x = 0; y = 0; } public double getDistTo(Point p) { return (Math.Abs(x - p.x) + Math.Abs(y - p.y)); } }; static void Main(string...
[["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22]]
8
415
2
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() { for (int i = 0; i < N; i++) { int min = (int)1e9; int idx = -1; ...
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() { for (int i = 0; i < N; i++) { int min = (int)1e9; int idx = -1; ...
[["-", 0, 11, 12, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 11, 12, 227, 39, 224, 225, 226, 0, 22]]
8
591
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0031 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); double pN = Math.Sqrt((double)N); long result = long.MaxValue; for (lo...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0031 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); double pN = Math.Sqrt((double)N); long result = long.MaxValue; for (lo...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
180
2
using System; namespace ProgramingStydying { class Program { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); var ans = 20; for (long a = 1; a < Math.Sqrt(n); a++) { if (n % a != 0) { continue; } else { var b = n / a; if (F(a, b) < ans) { ...
using System; namespace ProgramingStydying { class Program { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); var ans = 20; for (long a = 1; a <= Math.Sqrt(n); a++) { if (n % a != 0) { continue; } else { var b = n / a; if (F(a, b) < ans) { ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
175
2
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
918
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 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
626
5
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; public class Hello { public static void Main() { long read = rlong(); double root = Sqrt((double)read); long max = 1; for (int i = 1; i < root; i++) { ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; public class Hello { public static void Main() { long read = rlong(); double root = Sqrt((double)read); long max = 1; for (int i = 1; i <= root; i++) { ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
657
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { long N = int.Parse(Console.ReadLine()); long A = 1; long i = 1; while (i <= N / i) { if (N % i == 0) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long A = 1; long i = 1; while (i <= N / i) { if (N % i == 0) { ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
140
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace CP { class Atria { readonly static long mod = 1000000000 + 7; static void Main(string[] args) { long n = long.Parse(ReadLine()); var ans = ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace CP { class Atria { readonly static long mod = 1000000000 + 7; static void Main(string[] args) { long n = long.Parse(ReadLine()); var ans = ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
166
4
using System; namespace ABC057 { class C { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long min = long.MaxValue; long B = 0; for (long i = 1; i < Math.Sqrt(N); i++) { if (N % i == 0) { B = N / i; min = Math.Min(min, CalculateTheNumberOfRows(B)); ...
using System; namespace ABC057 { class C { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long min = long.MaxValue; long B = 0; for (long i = 1; i <= Math.Sqrt(N); i++) { if (N % i == 0) { B = N / i; min = Math.Min(min, CalculateTheNumberOfRows(B));...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
138
2
using System; class Program { static void Main(string[] args) { ulong N = ulong.Parse(Console.ReadLine()); ulong A = 1; for (ulong i = 1; i < Math.Sqrt(N); i++) { if (N % i == 0) { A = i; } } Console.WriteLine((N / A).ToString().Length); } }
using System; class Program { static void Main(string[] args) { ulong N = ulong.Parse(Console.ReadLine()); ulong A = 1; for (ulong i = 1; i * i <= N; i++) { if (N % i == 0) { A = i; } } Console.WriteLine((N / A).ToString().Length); } }
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 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], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 48], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 12, 22]...
8
89
9
using System; class Program { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); var ans = long.MaxValue; for (long i = 1; i * i < n; i++) { if (n % i == 0) { ans = Math.Min(ans, Math.Max(f(i), f(n / i))); } } Console.WriteLine(ans); } static long f...
using System; class Program { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); var ans = long.MaxValue; for (long i = 1; i * i <= n; i++) { if (n % i == 0) { ans = Math.Min(ans, Math.Max(f(i), f(n / i))); } } Console.WriteLine(ans); } static long ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
132
2
using System; namespace ABC057_C { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var min = int.MaxValue; for (long i = 1; i * i < N; i++) { if (N % i != 0) continue; var B = N / i; var F = Math.Max(i.ToString().Length, B.ToString().L...
using System; namespace ABC057_C { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var min = int.MaxValue; for (long i = 1; i * i <= N; i++) { if (N % i != 0) continue; var B = N / i; var F = Math.Max(i.ToString().Length, B.ToString()....
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
120
2
using System; namespace ABC057_C_Digits_in_Multiplication { internal class Program { public static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); long a; long b; int resultLength = n.ToString().Length; for (long i = 1; i < Math.Sqrt(n); i++) { if (n % i == 0) { ...
using System; namespace ABC057_C_Digits_in_Multiplication { internal class Program { public static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); long a; long b; int resultLength = n.ToString().Length; for (long i = 1; i <= Math.Sqrt(n); i++) { if (n % i == 0) { ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
155
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static List<int[]> list = new List<int[]>(); static int[] yMove = new int[] { -1, 1, 0, 0 }; static int[] xMove = new int[] { 0, 0, -1, 1 }; static bool[,] mi...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static List<int[]> list = new List<int[]>(); static int[] yMove = new int[] { -1, 1, 0, 0 }; static int[] xMove = new int[] { 0, 0, -1, 1 }; static bool[,] mi...
[["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199]]
8
1,964
2
using System.Linq; using System.Collections.Generic; using System; public class P { public int x { get; set; } public int y { get; set; } } public class Hello { public static void Main() { var alist = new List<long>(); var n = long.Parse(Console.ReadLine().Trim()); var n2 = (long)Math.Sqrt(n + 1); ...
using System.Linq; using System.Collections.Generic; using System; public class P { public int x { get; set; } public int y { get; set; } } public class Hello { public static void Main() { var alist = new List<long>(); var n = long.Parse(Console.ReadLine().Trim()); var n2 = (long)Math.Sqrt(n + 1); ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
190
2
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace AtCoder { class MainClass { // C#7.0 long N; void Solve() { io.i(out N); Mathf mat = new Mathf(); long min = mat.Digit(N); for (l...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace AtCoder { class MainClass { // C#7.0 long N; void Solve() { io.i(out N); Mathf mat = new Mathf(); long min = mat.Digit(N); for (l...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
2,073
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { void Calc() { var sc = new Scanner(); int N = sc.NextInt(); double root = Math.Sqrt(N); double roottt = Math.Floor(root); int ret3 = (int)roottt; for (int i = ret3; i > 0; i--) { if (N ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { void Calc() { var sc = new Scanner(); long N = sc.NextLong(); double root = Math.Sqrt(N); double roottt = Math.Floor(root); int root3 = (int)roottt; for (int i = root3; i > 0; i--) { if...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, ...
8
280
10
using System; using System.Collections.Generic; class P { static void Main(string[] _) { decimal n = decimal.Parse(Console.ReadLine()); int result = int.MaxValue; List<int> l = new List<int>(); for (decimal i = 2; i <= (decimal)Math.Sqrt((double)n); i++) { if (n % i == 0) { result = Ma...
using System; using System.Collections.Generic; class P { static void Main(string[] _) { decimal n = decimal.Parse(Console.ReadLine()); int result = int.MaxValue; List<int> l = new List<int>(); for (decimal i = 2; i <= (decimal)Math.Sqrt((double)n); i++) { if (n % i == 0) { result = Ma...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 8, 196, 0, 57, 15, 16, 12, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 141, 22]]
8
164
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var firstLine = Console.ReadLine() .Split(' ') .Select(value => long.Parse(value)) .T...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var firstLine = Console.ReadLine() .Split(' ') .Select(value => long.Parse(value)) .T...
[["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199]]
8
530
4
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 nab = Array.ConvertAll(ReadLine().Split(' '), int.Parse); ...
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 nab = Array.ConvertAll(ReadLine().Split(' '), int.Parse); ...
[["+", 64, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 64, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
349
2
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { var cin = new Scanner2(); int n = cin.Int(); ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { var cin = new Scanner2(); int n = cin.Int(); ...
[["-", 0, 57, 64, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 57, 64, 196, 0, 7, 15, 16, 12, 22]]
8
1,001
2
using System; namespace ABC057D { class Program { static void Main(string[] args) { string[] bufs = Console.ReadLine().Split(' '); int N = Int32.Parse(bufs[0]); int A = Int32.Parse(bufs[1]); int B = Int32.Parse(bufs[2]); long[] v = new long[N]; bufs = Console.ReadLine().Split(' '); for (...
using System; namespace ABC057D { class Program { static void Main(string[] args) { string[] bufs = Console.ReadLine().Split(' '); int N = Int32.Parse(bufs[0]); int A = Int32.Parse(bufs[1]); int B = Int32.Parse(bufs[2]); long[] v = new long[N]; bufs = Console.ReadLine().Split(' '); for (...
[["+", 15, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["+", 0, 52, 15, 16, 31, 16, 12, 23, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 98], ["+", 8, 196, 0, 52, 15, 16, 12, 23, 0, 24]]
8
422
6
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { int[] nab = Console.ReadLine().Split().Select(int.Parse).ToArray(); long[] v = Console.ReadLine() .Split() .Select(long.Parse) .OrderByDescending(x => x) ...
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { int[] nab = Console.ReadLine().Split().Select(int.Parse).ToArray(); long[] v = Console.ReadLine() .Split() .Select(long.Parse) .OrderByDescending(x => x) ...
[["-", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 7, 15, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 141, 22], ["-", 12, 213, 3, 4, 0, 28, 0, 214, 205, 22], ["-", 12, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["-", 12, 213, 3, 4, 0, 28, 0, 214, ...
8
293
8
// optional using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; public static class Program { public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var sw = new StreamWriter(Consol...
// optional using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; public static class Program { public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var sw = new StreamWriter(Consol...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
7,299
4
using System; class c { static void Main() { string s = Console.ReadLine(); string ans = "D"; if (s[0] - s[1] == 0) ans = "H"; Console.WriteLine(ans); } }
using System; class c { static void Main() { string s = Console.ReadLine(); string ans = "D"; if (s[0] - s[2] == 0) ans = "H"; Console.WriteLine(ans); } }
[["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
57
2
using System; namespace Sample1 { class Program { static void Main(string[] args) { string input = Console.ReadLine(); string a = input.Split(' ')[0]; string b = input.Split(' ')[1]; if (a == b) { Console.WriteLine('H'); } else if (a == "H" && b == "D") { Console.WriteLine('D'); }...
using System; namespace Sample1 { class Program { static void Main(string[] args) { string input = Console.ReadLine(); string a = input.Split(' ')[0]; string b = input.Split(' ')[1]; if (a == b) { Console.WriteLine('H'); } else if (a == "H" & b == "D") { Console.WriteLine('D'); } ...
[["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 67], ["-", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253]]
8
116
4
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; using System.Text.RegularExpressions; namespace CsTest { class Program { static void Main() { int[] ab = AtCoder.ReadInt32Array(); ...
using System; using System.Linq; using System.Numerics; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; using System.Text.RegularExpressions; namespace CsTest { class Program { static void Main() { var ab = AtCoder.ReadStringArray(); ...
[["-", 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, 39, 216, 0, 217], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 195, 8, 196, 0, 1...
8
202
10
// Rextester.Program.Main is the entry point for your code. Don't change it. // Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static vo...
// Rextester.Program.Main is the entry point for your code. Don't change it. // Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static vo...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 62], ["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 2...
8
141
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int w = sc.NextInt(); int a = sc.NextInt(); int b = sc.NextInt(); int l = Math.Min(a, b); int r = Math.Max(a, b); int answer = Math...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int w = sc.NextInt(); int a = sc.NextInt(); int b = sc.NextInt(); int l = Math.Min(a, b); int r = Math.Max(a, b); int answer = Math...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]]
8
408
6
using System; namespace Sample1 { class Program { static void Main(string[] args) { string input = Console.ReadLine(); int width = int.Parse(input.Split(' ')[0]); int a = int.Parse(input.Split(' ')[1]); int b = int.Parse(input.Split(' ')[2]); int answer = 0; // b- (w+a) if (b > a) { ...
using System; namespace Sample1 { class Program { static void Main(string[] args) { string input = Console.ReadLine(); int width = int.Parse(input.Split(' ')[0]); int a = int.Parse(input.Split(' ')[1]); int b = int.Parse(input.Split(' ')[2]); int answer = 0; // b- (w+a) if (b >= a) { ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
184
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int x = sc.NextInt(); int answer = 1; int now = 0; while (true) { now += answer; answer++; if (now >= x) { break;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int x = sc.NextInt(); int answer = 1; int now = 0; while (true) { now += answer; if (now >= x) { break; } an...
[["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]]
8
383
6
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, 12, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 205, 199], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 0, 131], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 141, 22]]
8
1,500
4