buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
using System; using System.Linq; class Program { static void Main(string[] args) { char[] input = Console.ReadLine().ToCharArray(); int ans = 0; int count = 0; for (int i = 0; i < input.Length; i++) { if (input[i] == 'R') { count++; } else { ans = count; count = 0;...
using System; using System.Linq; class Program { static void Main(string[] args) { char[] input = Console.ReadLine().ToCharArray(); int ans = 0; int count = 0; for (int i = 0; i < input.Length; i++) { if (input[i] == 'R') { count++; } else { ans = Math.Max(ans, count); ...
[["+", 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
107
using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int count = 0; int maxCount = 0; for (int i = 0; i < s.Length; i++) { if (s[i] == 'R') count++; else { if (count > maxCount) maxCount = count; count = 0; }...
using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int count = 0; int maxCount = 0; for (int i = 0; i < s.Length; i++) { if (s[i] == 'R') count++; else { if (count > maxCount) maxCount = count; count = 0; }...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], [...
8
93
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; class Program { static void Main(string[] args...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; class Program { static void Main(string[] args...
[["-", 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, 212, 0, 230, 39, 232, 234, 232, 234, 22], ["-", 0, 212, 0, 230, 39, 232, 234, 232, 0, 131], ["-", 0, 212, 0, 230, 39, 232...
8
177
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace Tasks { public class A { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Consol...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace Tasks { public class A { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Consol...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 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...
8
468
using System; using System.Linq; namespace abc175.b { class Program { static void Main(string[] args) { int num = getIntParam(); long[] paramArray = getLongParams(); int ret = 0; for (int i = 0; i < num; i++) { for (int j = i + 1; j < num; j++) { for (int k = j + 1; k <...
using System; using System.Linq; namespace abc175.b { class Program { static void Main(string[] args) { int num = getIntParam(); long[] paramArray = getLongParams(); int ret = 0; for (int i = 0; i < num; i++) { for (int j = i + 1; j < num; j++) { for (int k = j + 1; k <...
[["-", 31, 16, 31, 23, 0, 16, 31, 204, 205, 22], ["+", 31, 16, 31, 23, 0, 16, 31, 204, 205, 22], ["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 31, 23, 0, 16, 12, 204, 205, 22], ["+", 31, 16, 31, 23, 0, 16, 12, 204, 205, 22], ["-", 0, 16, 12, 204, 206, 207, ...
8
358
using System.Linq; using System.Text; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Diagnostics; using System.Reflection.Metadata; using System.Threading; using System.Runtime.CompilerServices; using System.IO.Pipes; namespace AtCode...
using System.Linq; using System.Text; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Diagnostics; using System.Reflection.Metadata; using System.Threading; using System.Runtime.CompilerServices; using System.IO.Pipes; namespace AtCode...
[["-", 0, 7, 8, 7, 8, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 7, 8, 57, 15, 16, 17, 79], ["+", 8, 7, 8, 57, 64, 7, 26, 241, 0, 22], ["+", 0, 7, 8, 7, 8, 57, 64, 7, 0, 25], ["+", 8, 7, 8, 57, 64, 7, 8, 57, 0, 121], ["+", 8, 7, 8, 57, 64, 7, 8, 57, 0, 24], ["+", 64, 7, 8, 57, 15, 16, 31, 204, 205, 22], ["+", 8, 57, 15, 16, 3...
8
278
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long n = sc.NextLong(); long[] ll = sc.LongArray(); long answer = 0; for (int a = 0; a < n; a++) { for (int b = a + 1; b < n; b++) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long n = sc.NextLong(); long[] ll = sc.LongArray(); long answer = 0; for (int a = 0; a < n; a++) { for (int b = a + 1; b < n; b++) { ...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 16, 12, 16, 12, 2...
8
503
using System; using System.Collections.Generic; using System.Collections; using System.Linq; class Program { static void Main() { int number = int.Parse(Console.ReadLine()); if (number < 3) { Console.WriteLine(0); } else { string[] numbersString = Console.ReadLine().Split(' '); List<int>...
using System; using System.Collections.Generic; using System.Collections; using System.Linq; class Program { static void Main() { int number = int.Parse(Console.ReadLine()); if (number < 3) { Console.WriteLine(0); } else { string[] numbersString = Console.ReadLine().Split(' '); List<int>...
[["-", 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, 241, 0, 111], ["-", 0, 200, 0, 212, 0, 241, 0, 23, 0, 24], ["-", 0, 23, 0, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 23, 0, 16, 31, 16, 31, 16, 17, 18], ["-", 0, 23, 0, 16, 31, 16, 31, 16, 12, 203...
8
394
using System; using System.Linq; class Program { static void Main(string[] args) { //整数の入力 int N = int.Parse(Console.ReadLine()); //スペース区切りの整数の入力 string[] L = Console.ReadLine().Split(' '); // var L2 = L.Distinct().OrderBy(o => o); var L2 = L.OrderBy(o => o).ToArray(); // string input = ...
using System; using System.Linq; class Program { static void Main(string[] args) { //整数の入力 int N = int.Parse(Console.ReadLine()); //スペース区切りの整数の入力 string[] L = Console.ReadLine().Split(' '); // var L2 = L.Distinct().OrderBy(o => o); var L2 = L.OrderBy(o => o).ToArray(); // string input = ...
[["+", 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, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 197, 0, 198, ...
8
262
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApp3 { internal class Program { private static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var lengths = Console.ReadLine().Split(" ").Select(x => decimal.Parse(x)).ToArray(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApp3 { internal class Program { private static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); if (n < 3) { Console.WriteLine("0"); return; } var lengths = Cons...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
791
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace CompetitiveProgramming { public class CPair<T, U> : IComparable where T : IComparable<T> { public readonly T Item1; ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace CompetitiveProgramming { public class CPair<T, U> : IComparable where T : IComparable<T> { public readonly T Item1; ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ...
8
13,736
using System; namespace workspace { public class Program { static void Main() { //入力値受け取り String[] data = Console.ReadLine().Split(' '); var X = long.Parse(data[0]); //座標 var K = long.Parse(data[1]); //移動回数 var D = long.Parse(data[2]); //移動距離 //保存用 long keep = 0; //最小値比較 var str...
using System; namespace workspace { public class Program { static void Main() { //入力値受け取り String[] data = Console.ReadLine().Split(' '); var X = long.Parse(data[0]); //座標 var K = long.Parse(data[1]); //移動回数 var D = long.Parse(data[2]); //移動距離 X = Math.Abs(X); //最小値比較 var straight = ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 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, 14...
8
140
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; using System.Collections; namespace debug { class main { static void Main(string[] args) { //問題クラスを展開 ProgramC a = new ProgramC(); a.main(); //実行する } } // ABC175 class ProgramA { public void m...
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; using System.Collections; namespace debug { class main { static void Main(string[] args) { //問題クラスを展開 ProgramC a = new ProgramC(); a.main(); //実行する } } // ABC175 class ProgramA { public void m...
[["-", 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], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 48], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]...
8
917
using System; using System.Linq; namespace _175.C { internal class Program { private static void Main(string[] args) { var input = Console.ReadLine().Split().Select(long.Parse).ToList(); var x = Math.Abs(input[0]); var k = input[1]; var d = input[2]; var a = Math.Min(k, x / d); ...
using System; using System.Linq; namespace _175.C { internal class Program { private static void Main(string[] args) { var input = Console.ReadLine().Split().Select(long.Parse).ToList(); var x = Math.Abs(input[0]); var k = input[1]; var d = input[2]; var a = Math.Min(k, x / d); ...
[["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 12, 41, 15, 16, 31, 16, 31, 23, 0, 24], ["-", 12, 41, 15, 16, 31, 16, 31, 23, 0, 22], ["-", 12, 41, 15, 16, 31, 16, 31, 23, 0, 25], ["-", 0, 11, 12, 41, 15, 16, 31, 16, 17, 109], ["-", 0, 11, 12, 41, 15, 16, 31, 16, 12, 203], ...
8
168
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_175 { class C { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_175 { class C { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["-", 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, 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], ["-", 0, 57, 64, 196, 0, 1, 0, 213, 63, 22],...
8
397
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long x = sc.NextLong(); long k = sc.NextLong(); long d = sc.NextLong(); long absX = Math.Abs(x); long count = absX / d; if (count >...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long x = sc.NextLong(); long k = sc.NextLong(); long d = sc.NextLong(); long absX = Math.Abs(x); long count = absX / d; if (k <= co...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+"...
8
438
using static System.Math; using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var x = Abs(long.Parse(line[0])); var k = long.Parse(line[1]); var d = long.Parse(line[2]); getAns(x, k, d); } static void getAns(long x, long k, long...
using static System.Math; using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var x = Abs(long.Parse(line[0])); var k = long.Parse(line[1]); var d = long.Parse(line[2]); getAns(x, k, d); } static void getAns(long x, long k, long...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 31,...
8
190
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using CS = System.Runtime.CompilerServices; // using System.Diagnostics; using static System.Math; using ll = System.Int64; using static Contest_C.Lib_IO; using static Contest_C.Lib_Minifunc; namespace Cont...
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using CS = System.Runtime.CompilerServices; // using System.Diagnostics; using static System.Math; using ll = System.Int64; using static Contest_C.Lib_IO; using static Contest_C.Lib_Minifunc; namespace Cont...
[["+", 0, 287, 0, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 196, 0, 1, 0, 11, 12, 213, 63, 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, 25], ["+", 8, 196, 0, 287, 0, 196, 0, 1, 0, 35]]
8
4,266
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; private static long max = 999999999999; static void Main(string[] args) { var r = ReadSpl...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; private static long max = 999999999999; static void Main(string[] args) { var r = ReadSpl...
[["+", 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, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 2...
8
1,839
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(" "); var X = long.Parse(input[0]); var K = long.Parse(input[1]); var D = long.Parse(input[2]); var numOfMove = Math.Abs(X) / D; long pos...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(" "); var X = long.Parse(input[0]); var K = long.Parse(input[1]); var D = long.Parse(input[2]); var numOfMove = Math.Abs(X) / D; long pos...
[["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0...
8
202
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); long x = long.Parse(str[0]); long k = long.Parse(str[1]); long d = lo...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); long x = long.Parse(str[0]); long k = long.Parse(str[1]); long d = lo...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 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
189
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; static public string al = "abcdefghijklmnopqrstuvwxyz"; public static void Main() { // ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; static public string al = "abcdefghijklmnopqrstuvwxyz"; public static void Main() { // ...
[["+", 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], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24]]
8
1,265
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { public const long mod = 1000000007; static void Main(string[] args) { var n = Input(); long ans = 0; long ten = 1; long nine = 1; long ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { public const long mod = 1000000007; static void Main(string[] args) { var n = Input(); long ans = 0; long ten = 1; long nine = 1; long ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ...
8
189
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; namespace AtCoderBeginnerContest178 { class Program { static void Main(string[] args) { // 課題C - Ubiquity(2020/9/13) int input = int.Parse(Console.ReadLine()); int modItem = 1000000007; long al...
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; namespace AtCoderBeginnerContest178 { class Program { static void Main(string[] args) { // 課題C - Ubiquity(2020/9/13) int input = int.Parse(Console.ReadLine()); int modItem = 1000000007; long al...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ...
8
140
// // ABC178C // URL : https://atcoder.jp/contests/abc178/tasks/abc178_c // using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; namespace AtCoder.Template.ABC178C { class Solver { public static readonly long MOD_CONST = 1000000007; //(long)Math.Pow(10, 9...
// // ABC178C // URL : https://atcoder.jp/contests/abc178/tasks/abc178_c // using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; namespace AtCoder.Template.ABC178C { class Solver { public static readonly long MOD_CONST = 1000000007; //(long)Math.Pow(10, 9...
[["-", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]...
8
1,665
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Numerics; using System.IO; using System.Net; using System.Diagnostics; using System.Runtime.InteropServices.WindowsRuntime; using System.Runtime.Remoting; namespace Practice { class Program { static void Main(string[] ...
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Numerics; using System.IO; using System.Net; using System.Diagnostics; using System.Runtime.InteropServices.WindowsRuntime; using System.Runtime.Remoting; namespace Practice { class Program { static void Main(string[] ...
[["-", 75, 57, 75, 196, 0, 57, 15, 16, 17, 47], ["+", 75, 57, 75, 196, 0, 57, 15, 16, 17, 20], ["+", 64, 196, 0, 37, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 37, 0, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 37, 0, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 37, 0, 213, 3, 4, 0, 24], ["+", 64, 196, 0, 37, 0, 213, 3, 4,...
8
2,721
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; class Program { static void Main(string[] args) { var line = Console.ReadLine().Split(' '); var x = long.Parse(line[0]); var k = long.Parse(line[1]); var d = long.Parse(line[2]); var firstMoveCount = Ma...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; class Program { static void Main(string[] args) { var line = Console.ReadLine().Split(' '); var x = long.Parse(line[0]); var k = long.Parse(line[1]); var d = long.Parse(line[2]); var firstMoveCount = Ma...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["+", 75, 196, 0, 1, 0, 213, 3, 4, 0, 24]]
8
248
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace Tasks { public class C { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Consol...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace Tasks { public class C { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Consol...
[["+", 0, 28, 0, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 28, 0, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 28, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 16, 31, 213, 3, 4, 0, 25], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+...
8
481
using System; using System.Collections.Generic; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { long mod = 1000000007; int N = int.Parse(Console.ReadLine()); long result = pow(10, N) - pow(9, N) + pow(8, N) - pow(9, N); result %= mod; Console.WriteLine(re...
using System; using System.Collections.Generic; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { long mod = 1000000007; int N = int.Parse(Console.ReadLine()); long result = pow(10, N) - pow(9, N) + pow(8, N) - pow(9, N); result %= mod; result = (result + m...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 8, 19...
8
152
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; const double eps = 1e-...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; static class Program { const int mod = (int)1e9 + 7; const double eps = 1e-...
[["+", 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], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["-", 64, 1...
8
1,134
using System; namespace ConsoleApp1 { class ABC178C { // https://atcoder.jp/contests/abc178/tasks/abc178_c static void Main(string[] args) { const UInt64 m = 1000000007; uint N = uint.Parse(Console.ReadLine()); UInt64 result = 0; UInt64 r10 = 10; UInt64 r9 = 9; UInt64 r8 = 8; if (N >...
using System; namespace ConsoleApp1 { class ABC178C { // https://atcoder.jp/contests/abc178/tasks/abc178_c static void Main(string[] args) { const long m = 1000000007; uint N = uint.Parse(Console.ReadLine()); long result = 0; long r10 = 10; long r9 = 9; long r8 = 8; if (N > 1) { ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 57, 64, 196, 0, 7, 10, 198, 39, 22], ["+", 0, 57, 64, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ...
8
151
using System; using System.Linq; using System.Collections.Generic; class program { static void Main() { var nk = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); int n = nk[0], k = nk[1]; var p = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); var c = Console.ReadLine()...
using System; using System.Linq; using System.Collections.Generic; class program { static void Main() { var nk = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); int n = nk[0], k = nk[1]; var p = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); var c = Console.ReadLine()...
[["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 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, 28, 0, 16, 31, 204, 205, 204, 205, 22], ...
8
803
using System; using System.Collections.Generic; using System.Linq; public static class Solution { static long GetMax(List<long> list, long K) { var N = list.Count; var acc = new long[N * 2 + 1]; for (int i = 0; i < N; i++) { acc[i + 1] = acc[i] + list[i]; } for (int i = 0; i < N; i++) { ...
using System; using System.Collections.Generic; using System.Linq; public static class Solution { static long GetMax(List<long> list, long K) { var N = list.Count; var acc = new long[N * 2 + 1]; for (int i = 0; i < N; i++) { acc[i + 1] = acc[i] + list[i]; } for (int i = 0; i < N; i++) { ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24],...
8
554
using System; using System.Collections.Generic; using System.Linq; namespace ABC178 { public class QuestionC { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); if (n == 1) { Console.WriteLine(0); return; } if (n == 2) { Console.WriteLine(2); re...
using System; using System.Collections.Generic; using System.Linq; namespace ABC178 { public class QuestionC { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); if (n == 1) { Console.WriteLine(0); return; } if (n == 2) { Console.WriteLine(2); re...
[["-", 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, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 16, 31, 23, ...
8
169
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.C { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var N = ReadLong(...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.C { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var N = ReadLong(...
[["-", 8, 201, 0, 195, 8, 196, 0, 37, 0, 38], ["+", 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], ["+", 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
436
using System; namespace ABC178 { class Program { static void Main() { // 全体 - (0がない場合 + 9がない場合 - 0,9がない場合) var n = int.Parse(Console.ReadLine()); var mod = new Modulo(); Console.WriteLine( (mod.Pow(10, n) - (mod.Multiply(mod.Pow(9, n), 2) - mod.Pow(8, n)) % 1000000007) % 100...
using System; namespace ABC178 { class Program { static void Main() { // 全体 - (0がない場合 + 9がない場合 - 0,9がない場合) var n = int.Parse(Console.ReadLine()); var mod = new Modulo(); long l = (mod.Pow(10, n) - (mod.Multiply(mod.Pow(9, n), 2) - mod.Pow(8, n)) % 1000000007) % 1000000007;...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, ...
8
203
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace ABC178 { class Program { static void Main(string[] args) { // var NXT = Console.ReadLine().Split().Select(double.Parse).ToArray(); var N = long.Parse(Console.ReadLine()); // var abcd = Console.ReadLine().S...
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace ABC178 { class Program { static void Main(string[] args) { // var NXT = Console.ReadLine().Split().Select(double.Parse).ToArray(); var N = long.Parse(Console.ReadLine()); // var abcd = Console.ReadLine().S...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 205, 22...
8
155
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; private static long max = 999999999999; static void Main(string[] args) { var r = ReadSpl...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; private static long max = 999999999999; static void Main(string[] args) { var r = ReadSpl...
[["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45]...
8
2,119
using System; using System.Collections; using System.Collections.Generic; using System.Linq; class Program { static long MOD = 1000000007; static void Main(string[] args) { long N = int.Parse(Console.ReadLine()); long ans = ModPow(10, N) - (2 * (ModPow(9, N)) % MOD) + (ModPow(8, N) % MOD) % MOD; ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; class Program { static long MOD = 1000000007; static void Main(string[] args) { long N = int.Parse(Console.ReadLine()); long ans = (ModPow(10, N) - (2 * (ModPow(9, N)) % MOD)) % MOD + (ModPow(8, N) ...
[["+", 0, 212, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 109], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+...
8
161
using System; using System.Collections; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Collections.Generic; using System.Threading.Tasks; class Program { //繰り返し2乗法 // N^Pをmodで割った余りを計算 static long PowMod(long N, long P, long mod) { // 0乗の場合 if (P ...
using System; using System.Collections; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Collections.Generic; using System.Threading.Tasks; class Program { //繰り返し2乗法 // N^Pをmodで割った余りを計算 static long PowMod(long N, long P, long mod) { // 0乗の場合 if (P ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
238
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.D { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var (N, K) = Read...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.D { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var (N, K) = Read...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 0, 200, 0, 212, 0, 16, 12, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 16, 12, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 16, 12, 214, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0...
8
758
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; static public string al = "abcdefghijklmnopqrstuvwxyz"; public static void Main() { // ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; static public string al = "abcdefghijklmnopqrstuvwxyz"; public static void Main() { // ...
[["-", 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, 22], ["+", 0, 7, 15, 16, 12, 16, 31, 16, 31, 203], ["+", 0, 7, 15, 16, 12, 16, 31, 16, 17, 48], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 3...
8
1,352
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; using System.Threading; static class Program { const int mod = (int)1e9 + 7; ...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; using System.Threading; static class Program { const int mod = (int)1e9 + 7; ...
[["+", 0, 52, 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], ["+", 205, 204, 206, 207, 0, 28, 0, 214, 205, 22], ["+", 205, 204, 206, 207, 0, 28, 0, 214, 0, 131], ["+", 205, 204, 206, 207, 0, 28, 0, 214, 141, 22], ["+", 12, 16, 31, 20...
8
1,576
using System; using System.Collections.Generic; using System.Linq; using System.IO; class d { public static void Main() { string[] str = Console.ReadLine().Split(' '); long n = long.Parse(str[0]); long k = long.Parse(str[1]); long[] p = Console.ReadLine().Split(' ').Select(s => long.Parse(s))....
using System; using System.Collections.Generic; using System.Linq; using System.IO; class d { public static void Main() { string[] str = Console.ReadLine().Split(' '); long n = long.Parse(str[0]); long k = long.Parse(str[1]); long[] p = Console.ReadLine().Split(' ').Select(s => long.Parse(s))....
[["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 210, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 210, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 75, 57, 15, 16, 31, 214, 205, 214, 205, 22], ["+", 75, 57, 15, 16, 31, 214, 205, 214, 0, 131], ["+", 75, 57, 15, 16, 31, 214, 205,...
8
450
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; class Program { static void Main(string[] args...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; class Program { static void Main(string[] args...
[["-", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 64, 196, 0, 57, 64, 196, 0, 1, 0, 35],...
8
388
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 205, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 196, 0, 197, 0, ...
8
2,142
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using CS = System.Runtime.CompilerServices; // using System.Diagnostics; using static System.Math; using ll = System.Int64; using static Contest_G.Lib_IO; using static Contest_G.Lib_Minifunc; namespace Cont...
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using CS = System.Runtime.CompilerServices; // using System.Diagnostics; using static System.Math; using ll = System.Int64; using static Contest_G.Lib_IO; using static Contest_G.Lib_Minifunc; namespace Cont...
[["+", 0, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 0, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 0, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 287, 0, 196, 0, 1, 0, 35]]
8
4,881
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; using System.Threading; internal partial class Solver { public void Run() { var n = ni(); v...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; using System.Threading; internal partial class Solver { public void Run() { var n = ni(); v...
[["-", 0, 11, 12, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 11, 12, 16, 31, 16, 31, 214, 205, 22], ["+", 0, 11, 12, 16, 31, 16, 31, 214, 0, 131], ["+", 0, 11, 12, 16, 31, 16, 31, 214, 141, 22], ["-", 12, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 1...
8
2,826
using System; using static System.Console; class A { static void Main() { var a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); if (a[0] > a[1] * a[2]) { WriteLine("No"); } else { WriteLine("No"); } } }
using System; class A { static void Main() { var a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); if (a[0] > a[1] * a[2]) { Console.WriteLine("No"); } else { Console.WriteLine("Yes"); } } }
[["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 115], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["+", 64, 196, 0, 1, 0, 213, 6...
8
78
using System; namespace _177 { class Program { static void Main(string[] args) { Console.WriteLine(solution()); } static public string solution() { string[] input = Console.ReadLine().Split(' '); int D = int.Parse(input[0]); // Distance m int T = int.Parse(input[1]); // Time min int S = int.Parse(...
using System; namespace _177 { class Program { static void Main(string[] args) { Console.WriteLine(solution()); } static public string solution() { string[] input = Console.ReadLine().Split(' '); int D = int.Parse(input[0]); // Distance m int T = int.Parse(input[1]); // Time min int S = int.Parse(...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 85], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 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, 20...
8
120
using System; using System.Collections.Generic; class TEST { public static void Main() { string[] values = Console.ReadLine().Split( new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); int distance = int.Parse(values[0]); int speed = int.Parse(values[1]); int time = int.Parse(value...
using System; using System.Collections.Generic; class TEST { public static void Main() { string[] values = Console.ReadLine().Split( new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); float distance = float.Parse(values[0]); float time = float.Parse(values[1]); float speed = float...
[["-", 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, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22]]
8
119
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int d = int.Parse(input[0]); int t = int.Parse(input[1]); int s = int.Parse(input[2]); string ans = ""; if ((double)(d / s) <= t) { ans = "...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); double d = double.Parse(input[0]); double t = double.Parse(input[1]); double s = double.Parse(input[2]); string ans = ""; if ((d / s) <= t) { ...
[["-", 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, 57, 15, 16, 31, 74, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 74, 39, 199], ["-", 8, 196, 0, 57, 15, 16, 31...
8
125
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Net.WebSockets; using System.Runtime.InteropServices.ComTypes; using System.Text; using System.Threading; class Test { // Driver code public static void Main() { ...
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Net.WebSockets; using System.Runtime.InteropServices.ComTypes; using System.Text; using System.Threading; class Test { // Driver code public static void Main() { v...
[["-", 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, 23, 0, 24], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 2...
8
151
using System; class notLate { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int d = int.Parse(input[0]); int t = int.Parse(input[1]); int s = int.Parse(input[2]); int time = d / s; if (t > time) { Console.WriteLine("Yes"); } if (t == time...
using System; class notLate { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); decimal d = decimal.Parse(input[0]); decimal t = decimal.Parse(input[1]); decimal s = decimal.Parse(input[2]); decimal time = d / s; if (t > time) { Console.WriteLine("Yes...
[["-", 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
133
using System; using System.Linq; using System.Collections.Generic; namespace AtCoderBeginnerContest177 { class Program { static void Main(string[] args) { // 課題A:Don't be late(2020/8/29) string[] input = Console.ReadLine().Split(' '); int length = int.Parse(input[0]); int time = int.Parse(input[1])...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoderBeginnerContest177 { class Program { static void Main(string[] args) { // 課題A:Don't be late(2020/8/29) string[] input = Console.ReadLine().Split(' '); int length = int.Parse(input[0]); int time = int.Parse(input[1]...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 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, 17, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31...
8
124
using System; using System.Linq; class Program { static void Main(string[] args) { int[] A = Console.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); if (A[1] >= A[0] / A[2]) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } //出力 } }
using System; using System.Linq; class Program { static void Main(string[] args) { int[] A = Console.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); if ((double)A[1] >= (double)A[0] / (double)A[2]) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } //出力 } }
[["+", 8, 196, 0, 57, 15, 16, 31, 74, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 74, 39, 199], ["+", 8, 196, 0, 57, 15, 16, 31, 74, 0, 25], ["+", 0, 57, 15, 16, 12, 16, 31, 74, 0, 24], ["+", 0, 57, 15, 16, 12, 16, 31, 74, 39, 199], ["+", 0, 57, 15, 16, 12, 16, 31, 74, 0, 25], ["+", 0, 57, 15, 16, 12, 16, 12, 74, 0, 24], ...
8
98
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { public class Solver { public void Solve() { var cin = new Scanner(); var a = cin.ArrayLong(3); var m = a[0] / a[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(); var a = cin.ArrayLong(3); var can = a[2] * a[1]; ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["-", 0, 16, 12, 204, 206, 207, 0, ...
8
582
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.A { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var (D, T, S) = R...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.A { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var (D, T, S) = R...
[["+", 0, 57, 15, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 57, 15, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 57, 15, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 12, 74, 39, 199], ["+", 0, 57, 15, 16, 31, 16, 12, 74, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 12, 74, 0, 24], ...
8
381
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; using System.Threading; internal partial class Solver { public void Run() { var n = ni(); v...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; using System.Threading; internal partial class Solver { public void Run() { var n = ni(); v...
[["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3...
8
2,352
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace AGC047A { class Program { static void Main(string[] args) { var N = RInt; var A = new decimal[N]; for (int i = 0; i < N; i++) { A[i] = decimal.Pa...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace AGC047A { class Program { static void Main(string[] args) { var N = RInt; var A = new decimal[N]; for (int i = 0; i < N; i++) { A[i] = decimal.Pa...
[["-", 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, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 19], ["+", 15, 16, 31, 16, 12, 16, 3...
8
1,564
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using System.IO; class readint { public readint(out int i) { i = int.Parse(Console.ReadLine()); } public readint(out int a, out int b) { int[] sp = Console....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using System.IO; class readint { public readint(out int i) { i = int.Parse(Console.ReadLine()); } public readint(out int a, out int b) { int[] sp = Console....
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25...
8
5,562
using System; using System.CodeDom; using System.Collections.Generic; using System.Configuration; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Xml.Schema; namespace AtCoder { public static class Ex { public static List<string> FastSort...
using System; using System.CodeDom; using System.Collections.Generic; using System.Configuration; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Xml.Schema; namespace AtCoder { public static class Ex { public static List<string> FastSort...
[["-", 0, 227, 39, 224, 39, 224, 225, 226, 0, 203], ["+", 0, 227, 39, 224, 39, 224, 225, 226, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 11, 12, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 11, 12, 227, 39, 224, 225, 226, 0, 203], ["-", 8, 196, 0, 57, 75, ...
8
2,485
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AirCondi { class Class2 { static void Main(string[] args) { int x = 34; if (x >= 30) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AirCondi { class Class2 { static void Main(string[] args) { int x = 34; x = int.Parse(Console.ReadLine()); if (x >= 30) { Console.WriteLine("Yes"); } else { Con...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 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], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+...
8
80
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0007 { class Program { static void Main(string[] args) { var fStr = Console.ReadLine(); int N = int.Parse(fStr.Split(' ')[0]); int D = int.Parse(fStr.Split(' ')[1]); int ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0007 { class Program { static void Main(string[] args) { var fStr = Console.ReadLine(); var N = int.Parse(fStr.Split(' ')[0]); var D = int.Parse(fStr.Split(' ')[1]); int ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 52, 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, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 74, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 12,...
8
194
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(" "); int N = int.Parse(input[0]); int D = int.Parse(input[1]); int counter = 0; //出力 for (int count = 0; count < N; count++) { string[] inputi = Console.ReadLine().Split(" "); ...
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(" "); double N = double.Parse(input[0]); double D = double.Parse(input[1]); double counter = 0; //出力 for (int count = 0; count < N; count++) { string[] inputi = Console.ReadLine().S...
[["-", 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, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 2...
8
167
using System; class Program { static void Main(string[] args) { // N/Dの入力 String[] nums = Console.ReadLine().Split(' '); int N = int.Parse(nums[0]); int D = int.Parse(nums[1]); //座標点の入力 int answer = 0; for (int i = 0; i < N; i++) { String[] point = Console.ReadLine().Split(' '); ...
using System; class Program { static void Main(string[] args) { // N/Dの入力 String[] nums = Console.ReadLine().Split(' '); int N = int.Parse(nums[0]); int D = int.Parse(nums[1]); //座標点の入力 int answer = 0; for (int i = 0; i < N; i++) { String[] point = Console.ReadLine().Split(' '); ...
[["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8...
8
181
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(" "); var N = int.Parse(inputs[0]); var D = int.Parse(inputs[1]); var X = new List<int>(); var Y = new List<int>(); for (int i = 0; i < N; i++) { inpu...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(" "); var N = int.Parse(inputs[0]); var D = int.Parse(inputs[1]); var X = new List<int>(); var Y = new List<int>(); for (int i = 0; i < N; i++) { inpu...
[["-", 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, 48], ["+", 0, 28, 0, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 28, 0, 16, 31, 213, 63, 214,...
8
215
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int d = int.Parse(input[1]); int r = 0; for (int i = 0; i < n; i++) { string[] input2 = Console.ReadLine().Split(' '); int x = int.Parse(input2[...
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); long d = long.Parse(input[1]); int r = 0; for (int i = 0; i < n; i++) { string[] input2 = Console.ReadLine().Split(' '); long x = long.Parse(in...
[["-", 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, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 7, 8, 196, 0, ...
8
153
using System; using System.Linq; namespace Sample { class Sample { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int N = int.Parse(str[0]); int D = int.Parse(str[1]); int ans = 0; for (int i = 1; i <= N; i++) { string[] str2 = Console.ReadLine().Split(' '); ...
using System; using System.Linq; using System.Numerics; namespace Sample { class Sample { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); long N = long.Parse(str[0]); long D = long.Parse(str[1]); int ans = 0; for (int i = 1; i <= N; i++) { string[] str2 = Cons...
[["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197,...
8
199
using System; using System.Linq; class names { static void Main() { int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray(); int n = s[0]; int d = s[1]; int ans = 0; int f = 0; for (int k = 0; k < n; k++) { s = Console.ReadLine().Split().Select(int.Parse).ToArray(); f = ...
using System; using System.Linq; class names { static void Main() { long[] s = Console.ReadLine().Split().Select(long.Parse).ToArray(); long n = s[0]; long d = s[1]; long ans = 0; long f = 0; for (long k = 0; k < n; k++) { s = Console.ReadLine().Split().Select(long.Parse).ToArray(); ...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 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], ["-", 0, 195, 8, 196, 0, 7, 1...
8
152
using System; using System.Collections.Generic; using System.Linq; namespace easy_Atcoder { class Program { static void Main(string[] args) { double[] ND = Array.ConvertAll(Console.ReadLine().Split(), double.Parse); int count = 0; for (int i = 0; i < ND[0]; i++) { double[] xy = Array.ConvertAll(Con...
using System; using System.Collections.Generic; using System.Linq; namespace easy_Atcoder { class Program { static void Main(string[] args) { double[] ND = Array.ConvertAll(Console.ReadLine().Split(), double.Parse); int count = 0; for (int i = 0; i < ND[0]; i++) { double[] xy = Array.ConvertAll(Con...
[["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 20...
8
221
using System; using static System.Console; using System.Linq; namespace AC { public class shiokara { static void Main(string[] args) { int[] tmp = ReadLine().Split(' ').Select(int.Parse).ToArray(); int N = tmp[0], D = tmp[1]; int cnt = 0; for (int i = 0; i < N; i++) { tmp = ReadLine().Split(' '...
using System; using static System.Console; using System.Linq; namespace AC { public class shiokara { static void Main(string[] args) { int[] tmp = ReadLine().Split(' ').Select(int.Parse).ToArray(); int N = tmp[0], D = tmp[1]; int cnt = 0; for (int i = 0; i < N; i++) { tmp = ReadLine().Split(' '...
[["-", 0, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["-", 0, 28, 0, 16, 31, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 16, 31, 213, 3, 4, 0, 21], ["+", 0, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["-", 0, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["-", 0, 28, 0, 16, 12, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 21], ["+", 0, 16, 12...
8
162
using System.Linq; using System.Text; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Security.Cryptography.X509Certificates; using System.Diagnostics; using System.Reflection.Metadata; using System.Threading; namespace AtCoder { class...
using System.Linq; using System.Text; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Security.Cryptography.X509Certificates; using System.Diagnostics; using System.Reflection.Metadata; using System.Threading; namespace AtCoder { class...
[["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 205, 22], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 15, 16, 31, 16, 31, 213...
8
257
using System; namespace _174.c { internal class Program { private static void Main(string[] args) { var k = int.Parse(Console.ReadLine()); var a = 7; var ans = -1; for (var i = 0; i < k; i++) { if (a % k == 0) { ans = i + 1; break; } a = a * 10...
using System; namespace _174.c { internal class Program { private static void Main(string[] args) { var k = int.Parse(Console.ReadLine()); long a = 7; var ans = -1; for (var i = 0; i < k; i++) { if (a % k == 0) { ans = i + 1; break; } a = (a % ...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 109], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 11, 12, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 11, 12, 16, 31, 16, 12, 23, 0, ...
8
104
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; namespace AtCoder { static class Program_D { class Solver { int ri => sc.Integer(); long r...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; namespace AtCoder { static class Program_D { class Solver { int ri => sc.Integer(); long r...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 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,558
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, ' ')); } ...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 2...
8
536
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace AtCoder { class Program { private static void Main(string[] args) { var k = Scanner.Integer(); var l = 9 * k; int i = 1; int value = 1...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace AtCoder { class Program { private static void Main(string[] args) { var k = Scanner.Integer(); var l = k % 7 == 0 ? 9 * k / 7 : 9 * k; int...
[["+", 0, 212, 0, 41, 15, 16, 31, 16, 31, 22], ["+", 0, 212, 0, 41, 15, 16, 31, 16, 17, 109], ["+", 0, 212, 0, 41, 15, 16, 31, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 60], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 101], ["+", 0, 212, 0, 41, 64, 16, 31, 16, 31,...
8
1,248
using System; public class Hello { public static void Main() { ulong K = ulong.Parse(System.Console.ReadLine()); if (K % 2 == 0) { Console.WriteLine(-1); return; } ulong count = (ulong)Math.Log10(K) + 1; ulong v = 7; for (ulong i = 1; i < count; i++) { v = v * 10 + 7; } ...
using System; public class Hello { public static void Main() { ulong K = ulong.Parse(System.Console.ReadLine()); if (K % 2 == 0) { Console.WriteLine(-1); return; } ulong count = (ulong)Math.Log10(K) + 1; ulong v = 7; for (ulong i = 1; i < count; i++) { v = v * 10 + 7; } ...
[["-", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 241, 0, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 241, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 5...
8
155
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder0802 { class MainClass { public static void Main(string[] args) { long K = long.Parse(Console.ReadLine()); long seven = 7; long ans = 1; long lseven; if (K % 2 != 0) { for (var i = 1; i < 1000000; i++) { ...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder0802 { class MainClass { public static void Main(string[] args) { long K = long.Parse(Console.ReadLine()); long seven = 7; long ans = 1; if (K % 2 != 0) { for (var i = 1; i < 1000000; i++) { if (seven % ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 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, 195, 8, 196, 0, 57, 15, 16, 17...
8
163
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); if (n % 2 == 0) { Console.WriteLine("-1"); } else { var ans = 0; var rem = 0; var current = 0; ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); if (n % 2 == 0) { Console.WriteLine("-1"); } else { var ans = 0; var rem = 0; var current = 0; ...
[["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 25], ["+", 0, 57, 75, 196, 0, 57, 64, 196, 0, 45]...
8
235
using System; using System.Collections.Generic; using System.Linq; using System.IO; class c { public static void Main() { long k = long.Parse(Console.ReadLine()); long num = 0; long ans = 1; bool[] already = new bool[k]; if (k % 2 == 0) { ans = -1; } else { while (true) { n...
using System; using System.Collections.Generic; using System.Linq; using System.IO; class c { public static void Main() { long k = long.Parse(Console.ReadLine()); long num = 0; long ans = 1; bool[] already = new bool[k]; if (k % 2 == 0) { ans = -1; } else { while (true) { n...
[["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 75, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 75, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["...
8
135
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC174C { class Program { static void Main(string[] args) { var K = RInt; Dictionary<int, int> dic = new Dictionary<int, int>(); int a = 7; int an...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC174C { class Program { static void Main(string[] args) { var K = RInt; Dictionary<int, int> dic = new Dictionary<int, int>(); int a = 7; if (K ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 2...
8
1,206
using System; using System.CodeDom; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PaperMario { class Program { public static void Main(string[] args) { Console.ReadLine(); var str = Console.ReadLine(); var redCount = str.Count(c => c == 'R'); Console.WriteLine(redCount...
using System; using System.CodeDom; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PaperMario { class Program { public static void Main(string[] args) { Console.ReadLine(); var str = Console.ReadLine(); var redCount = str.Count(c => c == 'R'); var changeCount = str.Take...
[["-", 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
111
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace atcoder { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var str = Console.ReadLine().ToArray(); var tmp = 0; var result = 0; for (var i = 0; i < n; i++) ...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace atcoder { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var str = Console.ReadLine().ToArray(); var rCnt = str.Count(c => c == 'R'); var tmp = 0; var res...
[["+", 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, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 22...
8
151
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace contest_Csharp { class Program { public static (long m, long s)[,] dp; static void Main(string[] args) { checked { var sw = new System.IO.StreamWriter( Console.OpenStandard...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace contest_Csharp { class Program { public static (long m, long s)[,] dp; static void Main(string[] args) { checked { var sw = new System.IO.StreamWriter( Console.OpenStandard...
[["-", 64, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 64, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 64, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 106], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 57, 15, 16, 31, 16...
8
283
using System; class Program { static void Main(string[] args) { int i, j; int n = int.Parse(Console.ReadLine()); string strInput = Console.ReadLine(); char[] cInput = strInput.ToCharArray(); int result = 0; int startRNum = 0; // Rで始まる。 int endWNum = 0; i = 0; while (cInput[i] =...
using System; class Program { static void Main(string[] args) { int i, j; int n = int.Parse(Console.ReadLine()); string strInput = Console.ReadLine(); char[] cInput = strInput.ToCharArray(); int result = 0; int startRNum = 0; // Rで始まる。 int endWNum = 0; i = 0; while (cInput[i] =...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 98], ["-", 8, 196, 0, 52, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 52, 15, 16, 12, 16, 17, 18], ["-", 8, 196, 0, 52, 15, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+...
8
243
using System; using System.Linq; class program { static void Main() { var nk = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var log = Array.ConvertAll(Console.ReadLine().Split(' '), double.Parse); int mxlg = (int)log.Max(), mnlg = mxlg / (1 + nk[1]); int sum, mid; while (mnlg < mxlg...
using System; using System.Linq; class program { static void Main() { var nk = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var log = Array.ConvertAll(Console.ReadLine().Split(' '), double.Parse); int mxlg = (int)log.Max(), mnlg = mxlg / (1 + nk[1]), mid; uint sum; while (mnlg < mxl...
[["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 74, ...
8
190
using System; using System.Linq; using System.Security.Cryptography.X509Certificates; namespace _0815 { class Program { static long[] a; static long n, k; static void Main(string[] args) { var nk = Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray(); n = nk[0]; k = nk[1]; a = Conso...
using System; using System.Linq; using System.Security.Cryptography.X509Certificates; namespace _0815 { class Program { static long[] a; static long n, k; static void Main(string[] args) { var nk = Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray(); n = nk[0]; k = nk[1]; a = Conso...
[["+", 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, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 3...
8
233
using System; using System.Collections.Generic; using System.Collections; using System.Linq; namespace Atcoder_0404 { class Program { static void Main(string[] args) { var NK = GetInput_long(); var n = NK[0]; var k = NK[1]; var A_n = GetInput_long().ToList(); A_n.Sort(); var a_max = A_n[A_n.Co...
using System; using System.Collections.Generic; using System.Collections; using System.Linq; namespace Atcoder_0404 { class Program { static void Main(string[] args) { var NK = GetInput_long(); var n = NK[0]; var k = NK[1]; var A_n = GetInput_long().ToList(); A_n.Sort(); var a_max = A_n[A_n.Co...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 1...
8
581
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace contest_Csharp { class PriorityQueue<T> : IEnumerable<T> where T : IComparable<T> { private List<T> heap = new List<T>(); private int lastindex = -1; private void swap(int n, int m) { ...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace contest_Csharp { class PriorityQueue<T> : IEnumerable<T> where T : IComparable<T> { private List<T> heap = new List<T>(); private int lastindex = -1; private void swap(int n, int m) { ...
[["+", 8, 201, 0, 195, 8, 196, 0, 287, 0, 292], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212...
8
873
using System; using System.Collections.Generic; using System.Linq; public class SegmentTree { public int N { get; private set; } public int[] Node; public int InvalidVal { get; private set; } public SegmentTree(int[] a, int invVal) { InvalidVal = invVal; for (N = 1; N < a.Length; N *= 2) ; N...
using System; using System.Collections.Generic; using System.Linq; public class SegmentTree { public int N { get; private set; } public int[] Node; public int InvalidVal { get; private set; } public SegmentTree(int[] a, int invVal) { InvalidVal = invVal; for (N = 1; N < a.Length; N *= 2) ; N...
[["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 63, 214, 205, 213, 63, 214, 205, 227, 0, 228], ["+", 205, 213, 63, 214, 205, 227, 39, 224, 39, 199], ["+", 63, 214, 205, 227, 39, 224, ...
8
749
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { #region library static int n = 0; static int m = 0; static int r = 0; static int c = 0; static int x = 0; static int y = 0; static string s = ""; static string[] ss; static long sum = 0; static long ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { #region library static int n = 0; static int m = 0; static int r = 0; static int c = 0; static int x = 0; static int y = 0; static string s = ""; static string[] ss; static long sum = 0; static long ...
[["-", 0, 208, 0, 235, 8, 201, 0, 235, 0, 269], ["-", 0, 208, 0, 235, 8, 201, 0, 235, 141, 22], ["-", 0, 235, 8, 201, 0, 235, 8, 201, 0, 45], ["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["-", 8, 201, 0, 235, 8, 201, 0, 124, 0, 35], ["-", 0, 235, 8, 201, 0, 124, 0, 251...
8
1,502
using Microsoft.Win32.SafeHandles; using System; using System.Collections.Generic; using System.Linq; class TEST { public static void Main() { string S = Console.ReadLine(); string T = Console.ReadLine(); Console.WriteLine(T.Length - Atteru(T, S)); // Console.ReadKey(); } static int Atteru(st...
using System; class TEST { public static void Main() { string S = Console.ReadLine(); string T = Console.ReadLine(); Console.WriteLine(T.Length - Atteru(T, S)); // Console.ReadKey(); } static int Atteru(string t, string s) { int bestcount = -1; // int pointer=0; for (int i = 0; i...
[["-", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 36, 36, 36, 3...
8
165
using static System.Math; using System; public class Hello { public static void Main() { var s = Console.ReadLine().Trim(); var t = Console.ReadLine().Trim(); var sL = s.Length; var tL = t.Length; var ans = int.MaxValue; for (int i = 0; i < sL - tL; i++) { var w = s.Substring(i, tL); ...
using static System.Math; using System; public class Hello { public static void Main() { var s = Console.ReadLine().Trim(); var t = Console.ReadLine().Trim(); var sL = s.Length; var tL = t.Length; var ans = int.MaxValue; for (int i = 0; i <= sL - tL; i++) { var w = s.Substring(i, tL); ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 235, 8, 201, 0, 195, 54, 55, 0, 21], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 141, 22], ["-"...
8
176
using System; namespace Atc_0008 { class Program { static void Main(string[] args) { string S = Console.ReadLine(); string T = Console.ReadLine(); if (S.Contains(T)) { Console.WriteLine(0); return; } int count = 0; int result = T.Length; for (int i = 0; i < (S.Length - T.L...
using System; namespace Atc_0008 { class Program { static void Main(string[] args) { string S = Console.ReadLine(); string T = Console.ReadLine(); if (S.Contains(T)) { Console.WriteLine(0); return; } int count = 0; int result = T.Length; int num = (S.Length - T.Length + 1);...
[["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], [...
8
174
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); char[] ss = s.ToCharArray(); char[] tt = t.ToCharArray(); int r = tt.Length; for (int i = 0; i < ss.Length; i++) { int rr = ...
using System; using System.Collections.Generic; using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); char[] ss = s.ToCharArray(); char[] tt = t.ToCharArray(); int r = int.MaxValue; f...
[["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["+", 36, 36, 0, 208, 0...
8
165
using System; using System.Linq; class Program { static void Main(string[] args) { int n = ReadInt(); long[] a = ReadLongArray(); long ans = 0; long mod = (long)Math.Pow(10, 9) + 7; long sum = a.Sum(); for (int i = 0; i < n; i++) { sum -= a[i]; if (sum < 0) sum += mod; ...
using System; using System.Linq; class Program { static void Main(string[] args) { int n = ReadInt(); long[] a = ReadLongArray(); long ans = 0; long mod = (long)Math.Pow(10, 9) + 7; long sum = 0; for (int i = 0; i < a.Length; i++) { sum += a[i]; sum %= mod; } for (int i =...
[["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["+", 0, 195, 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],...
8
225
using System; using System.Linq; using System.Collections.Generic; namespace ABC177 { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var input = Console.ReadLine().Split(' ').ToList(); List<long> A = new List<long>(); long tmp = 0; long mod = (long)(Math...
using System; using System.Linq; using System.Collections.Generic; namespace ABC177 { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var input = Console.ReadLine().Split(' ').ToList(); List<long> A = new List<long>(); long tmp = 0; long mod = (long)(Math...
[["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0,...
8
214
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace atcoder { public class Program { public static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var buffer = Console.ReadLine().Split(); var A = new List<long>(); foreach (var v in ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace atcoder { public class Program { public static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var buffer = Console.ReadLine().Split(); var A = new List<long>(); foreach (var v in ...
[["+", 12, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["-", 0, 213,...
8
198
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc177_c { class Program { static void Main(string[] args) { var N = CIn.ReadLong(); var A = CIn.ReadIntArray(N); var sum = new long[N + 1]; var sum2 = 0l; for (var i = N;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc177_c { class Program { static void Main(string[] args) { var N = CIn.ReadLong(); var A = CIn.ReadIntArray(N); var sum = new long[N + 1]; var sum2 = 0l; for (var i = N;...
[["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 109], ["+", 0, 11, 12, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 12, 23, 0, 16, 31, 74, 0, 24], ["+", 31, 16, 12, 23, 0, 16, 31, 74, 39, 199], ["+", 31, 16, 12, 23, 0, 16, 31, 74, 0, 25], ["+", 31, 16, 12, 23, 0, 16, 31, 74, 51, 250], ["+", 12, 16, 31, 16, 12, 23, 0, 16, 17, 72],...
8
474