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.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; using System.Text.RegularExpressions; namespace Yuzuki { class Yukari { static int n; static long k; static int[] As; public static void Main(st...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; using System.Text.RegularExpressions; namespace Yuzuki { class Yukari { static int n; static long k; static int[] As; public static void Main(st...
[["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 98], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]...
8
297
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, 52, 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, 204, 205, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+",...
8
1,190
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var N = int.Parse(input[0]); var K = long.Parse(input[1]); var array = Console.ReadLine().Split(' '); var list = new List<int>(); v...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var N = int.Parse(input[0]); var K = long.Parse(input[1]); var array = Console.ReadLine().Split(' '); var list = new List<int>(); v...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],...
8
313
using System; using System.Linq; using System.Collections.Generic; using E = System.Linq.Enumerable; public class Program { public static void Main() { var nk = Console.ReadLine().Split().Select(x => long.Parse(x)).ToArray(); var (n, k) = (nk[0], nk[1]); var seqA = Console.ReadLine() ...
using System; using System.Linq; using System.Collections.Generic; using E = System.Linq.Enumerable; public class Program { public static void Main() { var nk = Console.ReadLine().Split().Select(x => long.Parse(x)).ToArray(); var (n, k) = (nk[0], nk[1]); var seqA = Console.ReadLine() ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 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
226
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static ABC166.abc166_f.Cin; using static ABC166.abc166_f.Util; using Pair = ABC166.abc166_f.VTuple<long, long>; /// <summary> /// ABC166 /// F - Three Variables Game /// https://atcoder.jp/contests/ABC166/tasks/abc166_f ...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static ABC166.abc166_f.Cin; using static ABC166.abc166_f.Util; using Pair = ABC166.abc166_f.VTuple<long, long>; /// <summary> /// ABC166 /// F - Three Variables Game /// https://atcoder.jp/contests/ABC166/tasks/abc166_f ...
[["+", 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
4,159
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class A_165_We_Love_Golf { // https://atcoder.jp/contests/abc165/tasks/abc165_a public static void Main(string[] args) { var sw = new System.IO.StreamWriter( ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class A_165_We_Love_Golf { // https://atcoder.jp/contests/abc165/tasks/abc165_a public static void Main(string[] args) { var sw = new System.IO.StreamWriter( ...
[["-", 75, 57, 15, 16, 31, 16, 31, 16, 17, 109], ["-", 75, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 79], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 31, 22], ["-", 75, 57, 15, 16, 12, 16, 12, 16, 1...
8
216
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // 問題: class A_165_We_Love_Golf { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // 問題: class A_165_We_Love_Golf { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush =...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["-", 0, 7, 15, 16, 12, 16, 31, 16, 17, 33], ["-", 0, 7, 15, 16, 12, 16, 31, 16, 12, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24...
8
216
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // 問題: class A_165_We_Love_Golf { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // 問題: class A_165_We_Love_Golf { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush =...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 15, 16, 12, 16, 31, 16, 17, 33], ["-", 0, 7, 15, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 1...
8
216
using System; using System.Collections.Generic; using System.Linq; namespace AtcoderSubmit { class Program { static void Main(string[] args) { var k = int.Parse(Console.ReadLine()); var line = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var a = line[0]; var b = line[1]; var m = a %...
using System; using System.Collections.Generic; using System.Linq; namespace AtcoderSubmit { class Program { static void Main(string[] args) { var k = int.Parse(Console.ReadLine()); var line = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var a = line[0]; var b = line[1]; var result ...
[["-", 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, 304, 0, 162], ["+", 0, 198, 0, 200, 0, 212, 0, 304, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 304, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 304, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 197...
8
128
using System; using System.Linq; namespace atcorder { class Program { static void Main() { var k = int.Parse(Console.ReadLine()); var ab = Console.ReadLine().Split(' '); var a = int.Parse(ab[0]); var b = int.Parse(ab[1]); int sho = a / k; if (k * (sho + 1) >= a && k * (sho + 1) <= b) { ...
using System; using System.Linq; namespace atcorder { class Program { static void Main() { var k = int.Parse(Console.ReadLine()); var ab = Console.ReadLine().Split(' '); var a = int.Parse(ab[0]); var b = int.Parse(ab[1]); int sho = a / k; if (a % k != 0) { sho += 1; } if (k *...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 48], ["-", 15, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 2...
8
131
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var k = ni(); var a = ni(); var b =...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using E = System.Linq.Enumerable; internal partial class Solver { public void Run() { var k = ni(); var a = ni(); var b =...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 2...
8
1,124
using System; namespace ConsoleApp2 { class Program { static void Main() { int a, b, i, j, k; string ab; k = int.Parse(Console.ReadLine()); ab = Console.ReadLine(); i = ab.IndexOf(" "); if (i >= 0) { a = int.Parse(ab.Substring(0, i)); b = int.Parse(ab.Substring(i + 1)); ...
using System; namespace ConsoleApp2 { class Program { static void Main() { int a, b, i, j, k; string ab; bool gflag = false; k = int.Parse(Console.ReadLine()); ab = Console.ReadLine(); i = ab.IndexOf(" "); if (i >= 0) { a = int.Parse(ab.Substring(0, i)); b = int.Parse(ab.Su...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214...
8
166
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Main { public static class Program { static void Main(string[] args) { int k = int.Parse(Console.ReadLine()); int[] ab = GetIntList(Console.ReadLine()); var a = a...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Main { public static class Program { static void Main(string[] args) { int k = int.Parse(Console.ReadLine()); int[] ab = GetIntList(Console.ReadLine()); var a = a...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 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], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 2...
8
432
using System; using System.Collections.Generic; using System.Numerics; using System.Linq; using System.Text; using static System.Math; class MainClass { public static void Main(string[] args) { var K = LnInt(); var _ = LnInts(); var A = _[0]; var B = _[1]; if (B - A + 1 >= K) { print("OK")...
using System; using System.Collections.Generic; using System.Numerics; using System.Linq; using System.Text; using static System.Math; class MainClass { public static void Main(string[] args) { var K = LnInt(); var _ = LnInts(); var A = _[0]; var B = _[1]; for (int i = A; i <= B; i++) { if...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 33], ["+", 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
563
using System; class Program { static void Main(string[] args) { int k = int.Parse(Console.ReadLine()); string[] s = Console.ReadLine().Split(" "); int a = int.Parse(s[0]); int b = int.Parse(s[1]); if (a > b) { int temp = a; a = b; b = temp; } bool ok = false; for (...
using System; class Program { static void Main(string[] args) { int k = int.Parse(Console.ReadLine()); string[] s = Console.ReadLine().Split(" "); int a = int.Parse(s[0]); int b = int.Parse(s[1]); if (a > b) { int temp = a; a = b; b = temp; } bool ok = false; for (...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 15, 16, 31, 23, 0, 24], ["+", 0, 7, 15, 16, 31, 23, 0, 16, 17, 48], ["+", 0, 7, 15, 16, 31, 23, 0, 16, 12, 22], ["+", 8, 196, 0, 7, 15, 16, 31, 23, 0, 25], ["-", 0, 195, 8, 196, 0, 7, 26, 11, 31, 22], ["-", 8...
8
166
// C# program to build the smallest number // by removing n digits from a given number using System; using System.Collections.Generic; using System.Linq; class GFG { public static void Main(String[] args) { var n = int.Parse(Console.ReadLine()); var input = Console.ReadLine().Split(' '); var l = int.Pars...
// C# program to build the smallest number // by removing n digits from a given number using System; using System.Collections.Generic; using System.Linq; class GFG { public static void Main(String[] args) { var n = int.Parse(Console.ReadLine()); var input = Console.ReadLine().Split(' '); var l = int.Pars...
[["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 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], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], [...
8
165
using System; public class Hello { public static void Main() { // Your code here! string Ns = System.Console.ReadLine(); string[] S = System.Console.ReadLine().Split(' '); // System.Console.WriteLine("Hello C#"); int A = int.Parse(S[0]); int B = int.Parse(S[1]); int N = int.Parse(Ns); ...
using System; public class Hello { public static void Main() { // Your code here! string Ns = System.Console.ReadLine(); string[] S = System.Console.ReadLine().Split(' '); // System.Console.WriteLine("Hello C#"); int A = int.Parse(S[0]); int B = int.Parse(S[1]); int N = int.Parse(Ns); ...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 3...
8
135
using System; class A { static void Main() { int K = int.Parse(Console.ReadLine()); int[] P = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int A = P[0]; int B = P[1]; int C = B % K; if (C < B) Console.WriteLine("NG"); else Console.WriteLine("OK"); } }
using System; class A { static void Main() { int K = int.Parse(Console.ReadLine()); int[] P = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int A = P[0]; int B = P[1]; int C = B / K; if (C * K <= B && C * K >= A) Console.WriteLine("OK"); else Console.WriteLine("N...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 9...
8
103
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace AtCoder { class Program { public static void Main() { #if TextInput using (var reader = new StreamReader(Debug.SampleTextPath)) { Console.SetIn(reader); #endif var scale = IO.ReadInt(); var intArray = ...
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace AtCoder { class Program { public static void Main() { #if TextInput using (var reader = new StreamReader(Debug.SampleTextPath)) { Console.SetIn(reader); #endif var scale = IO.ReadInt(); var intArray = ...
[["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
1,113
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramB { static void Main(string[] args) { var x = long.Parse(Console.ReadLine()); var result = 0L; var a = 100L; while (a < x) { a = (long)(a + a * 0.01f); result++; } Console.WriteLine(re...
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramB { static void Main(string[] args) { var x = long.Parse(Console.ReadLine()); var result = 0L; var a = 100L; while (a < x) { a = a + (a / 100L); result++; } Console.WriteLine(result); ...
[["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 25], ["-", 0, 1, 0, 11, 12, 74, 51, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["-", 12, 74, 51, 23, 0, 16, 12, 16, 17, 48], ["-", 12, 74, 51, 23, 0, 16, 12, 16, 12, 250], ["+", 0, ...
8
89
using System; class Program { static void Main(string[] args) { var x = long.Parse(Console.ReadLine()); decimal money = 100; decimal rate = 1.01m; for (var i = 1; true; i++) { money = money * rate; if (money >= x) { Console.WriteLine(i); break; } } } }
using System; class Program { static void Main(string[] args) { var x = long.Parse(Console.ReadLine()); decimal money = 100; for (var i = 1; true; i++) { money = Math.Floor(money * 1.01m); if (money >= x) { Console.WriteLine(i); break; } } } }
[["-", 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, 250], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, ...
8
79
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionD { /// <summary> /// B - 1% /// https://atcoder.jp/contests/abc165/tasks/abc165_b /// </summary> public static void Main(string[] args) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionD { /// <summary> /// B - 1% /// https://atcoder.jp/contests/abc165/tasks/abc165_b /// </summary> public static void Main(string[] args) { ...
[["-", 8, 201, 0, 195, 8, 196, 0, 82, 0, 170], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ...
8
142
using System; using System.Linq; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { long start = 100; long goal = long.Parse(Console.ReadLine()); int ans = 0; while (start < goal) { start += (long)Math.Floor(start * 0.01f); ans++; } Console.Write(ans);...
using System; using System.Linq; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { long start = 100; long goal = long.Parse(Console.ReadLine()); int ans = 0; while (start < goal) { start += start / 100; ans++; } Console.Write(ans); } } }
[["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 25], ["-", 0, 11, 12, 74, 51, 213, 63, 214, 205, 22], ["-", 0, 11, 12, 74, 51, 213, 63, 214, 0, 131], ["-", 0, 11, 12, 74, 51, 213, 63, 214, 141, 22], ["-", 0, 11, 12, 74, 51, 213, 3, 4, 0, 24]...
8
84
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { long X = long.Parse(Console.ReadLine()); double saving = 100; int ans = 0; while (saving < X) { saving += (saving * 0.01); Math.Floor(saving); an...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { long X = long.Parse(Console.ReadLine()); long saving = 100; int ans = 0; while (saving < X) { saving += (saving / 100); ans++; } Console.Write...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 1, 0, 11, 12, 23, 0, 16, 17, 48], ["-", 0, 1, 0, 11, 12, 23, 0, 16, 12, 250], ["-", 8, 196, 0, 1, 0, 11, 12, 23, 0, 25], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-...
8
91
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Main { public static class Program { static void Main(string[] args) { Double x = Double.Parse(Console.ReadLine()); var answer = 0.0; answer = (Math.Log10(x) - 2...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Main { public static class Program { static void Main(string[] args) { Double x = Double.Parse(Console.ReadLine()); var answer = 0.0; answer = (Math.Log10(x) - 2...
[["-", 0, 11, 12, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 250], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 12, 250], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, ...
8
396
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var x = long.Parse(Console.ReadLine()); long m = 100; long ans = 0; while (true) { m = m + (long)((float)m * 0.01f); ans++; if (m >= x) break; } Co...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { long x = long.Parse(Console.ReadLine()); long m = 100; long ans = 0; while (true) { long tmp = (long)(m * 0.01d); m = m + tmp; ans++; if (m >= x) brea...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72...
8
94
using System; using System.Collections.Generic; class Program { static void Main() { string[] Sh = Console.ReadLine().Split(' '); int Th = int.Parse(Sh[0]); int Ta = int.Parse(Sh[1]); int Ah = int.Parse(Sh[2]); int Aa = int.Parse(Sh[3]); while (Th <= 0 || Ah <= 0) { Ah -= Ta; Th -...
using System; using System.Collections.Generic; class Program { static void Main() { string[] Sh = Console.ReadLine().Split(' '); int Th = int.Parse(Sh[0]); int Ta = int.Parse(Sh[1]); int Ah = int.Parse(Sh[2]); int Aa = int.Parse(Sh[3]); while (true) { Ah -= Ta; Th -= Aa; if...
[["-", 8, 196, 0, 52, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 52, 15, 16, 31, 16, 17, 19], ["-", 8, 196, 0, 52, 15, 16, 31, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 106], ["-", 8, 196, 0, 52, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 52, 15, 16, 12, 16, 17, 19], ["-", 8, 196, 0, 52, 15, 16, 12, 16, 12, ...
8
140
using System; using System.Linq; public class ABC164B { private static void Main(string[] args) { var input = ReadIntsAsArray(); var a = input[0]; var b = input[1]; var c = input[2]; var d = input[3]; var answer = (c / b) >= (a / d) ? "Yes" : "No"; Console.WriteLine(answer); } priva...
using System; using System.Linq; public class ABC164B { private static void Main(string[] args) { var input = ReadDoublesAsArray(); var a = input[0]; var b = input[1]; var c = input[2]; var d = input[3]; var answer = (Math.Ceiling(c / b) <= Math.Ceiling(a / d)) ? "Yes" : "No"; Console.Wr...
[["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 15, 23, 0, 16, 31, 213, 63, 214, 205, 22], ["+", 15, 23, 0, 16, 31, 213, 63, 214, 0, 131], ["+", 15, 23, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 15, 23, 0, 16, 31, 213, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 41, 15, 16...
8
133
using System; namespace Atcoder { class Program { static void Main(string[] args) { int thit, tak, ahit, atak; bool count = false; string[] str = Console.ReadLine().Split(' '); thit = int.Parse(str[0]); tak = int.Parse(str[1]); ahit = int.Parse(str[2]); atak = int.Parse(str[3]); while...
using System; namespace Atcoder { class Program { static void Main(string[] args) { int thit, tak, ahit, atak; bool count = false; string[] str = Console.ReadLine().Split(' '); thit = int.Parse(str[0]); tak = int.Parse(str[1]); ahit = int.Parse(str[2]); atak = int.Parse(str[3]); while...
[["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+",...
8
165
using System; class MainClass { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int C = int.Parse(input[2]); int D = int.Parse(input[3]); if (C / B <= A / D) { Console.WriteLine("Yes"...
using System; class MainClass { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int C = int.Parse(input[2]); int D = int.Parse(input[3]); if ((C - 1) / B <= (A - 1) / D) { Consol...
[["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 57, 15, 16, 12, 16, 31, 23, 0, 24], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 12, 203]...
8
122
using System; using System.Collections.Generic; using System.Linq; namespace Atcoder { class Program { static void Main(string[] args) { //テンプレート //// 整数の入力 // int a = int.Parse(Console.ReadLine()); //// スペース区切りの整数の入力 // string[] input = Console.ReadLine().Split(' '); // int b = int.Parse(i...
using System; using System.Collections.Generic; using System.Linq; namespace Atcoder { class Program { static void Main(string[] args) { //テンプレート //// 整数の入力 // int a = int.Parse(Console.ReadLine()); //// スペース区切りの整数の入力 // string[] input = Console.ReadLine().Split(' '); // int b = int.Parse(i...
[["+", 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, 25]]
8
174
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; Func cin2; public static long mod = 100...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; Func cin2; public static long mod = 100...
[["-", 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, 16, 31, 74, 0, 24], ["-", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["-", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25], ["-", 0, 200, 0, 212, 0, 16, 12, 74, 0, 24], ["-", 0, 200, 0, 212, 0, 16, 12, 74, 39, ...
8
983
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Swap<T>(ref T a, ref T b) { T temp = a; a = b; b = temp; } ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Swap<T>(ref T a, ref T b) { T temp = a; a = b; b = temp; } ...
[["-", 31, 16, 31, 16, 31, 23, 0, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["-", 0, 200, 0, 212, 0, 41, 15, 16, 17, 19], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 47], ["-", 12, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["-", 12, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 3...
8
1,550
using System; using System.Linq; namespace B { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray(); int A = input[0]; int B = input[1]; int C = input[2]; int D = input[3]; bool winTakahashi = false; while (true) { ...
using System; using System.Linq; namespace B { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray(); int A = input[0]; int B = input[1]; int C = input[2]; int D = input[3]; while (true) { C -= B; if (C <= 0) {...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22]...
8
158
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C_gacha { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] Thg = new string[N]; for (int i = 0; i <= N; i++) { Thg[i] = Con...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C_gacha { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] Thg = new string[N]; for (int i = 0; i < N; i++) { Thg[i] = Cons...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199]...
8
121
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var S = new List<string>(); for (int i = 0; i < N; i++) { S.Add(Console.ReadLin...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var S = new List<string>(); for (int i = 0; i < N; i++) { S.Add(Console.ReadLin...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 47], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 200, 0, 212, 0, 2...
8
119
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { var inp = Console.ReadLine().Split(' '); int n = int.Parse(inp[0]); List<string> keihin = new List<string>(); for (int i = 0; i < n; i++) { var inps = Console.ReadLine(); if (keihin.Contains...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var inp = Console.ReadLine().Split(' '); int n = int.Parse(inp[0]); List<string> keihin = new List<string>(); for (int i = 0; i < n; i++) { var inps = Console.ReadLine(); ...
[["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57...
8
120
using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { int num = int.Parse(Console.ReadLine()); // Console.WriteLine(num); List<string> list = new List<string>(); string ip = Console.ReadLine(); list.Add(ip); for (int i = 0; i ...
using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { int num = int.Parse(Console.ReadLine()); // Console.WriteLine(num); List<string> list = new List<string>(); string ip = Console.ReadLine(); list.Add(ip); for (int i = 1; i ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-...
8
119
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace B { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace B { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, ...
8
168
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; using System.Text.RegularExpressions; namespace Yuzuki { class Yukari { public static void Main(string[] args) { string[] buf = Console.ReadLine()...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; using System.Text.RegularExpressions; namespace Yuzuki { class Yukari { public static void Main(string[] args) { string[] buf = Console.ReadLine()...
[["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 25], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 45], ["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+",...
8
177
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderTest { class ABC163C { public static int readLineAsInt() { var line = Console.ReadLine(); return int.Parse(line); } public static List<int> readLineAsListOfInt() { var...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderTest { class ABC163C { public static int readLineAsInt() { var line = Console.ReadLine(); return int.Parse(line); } public static List<int> readLineAsListOfInt() { var...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 18], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 47], ["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 230, 3,...
8
373
using System; using System.Collections.Generic; using System.Linq; namespace abc161 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(s => int.Parse(s)).ToList(); var temp = new int[n]; for (int i = 0; i < n - 1; i++) ...
using System; using System.Collections.Generic; using System.Linq; namespace abc161 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(s => int.Parse(s)).ToList(); var temp = new int[n]; for (int i = 0; i < n - 1; i++) ...
[["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 266], ["-", 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], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35],...
8
151
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static void Main(string[] args) { try { Solve.Answer(); } catch (Exception ex) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static void Main(string[] args) { try { Solve.Answer(); } catch (Exception ex) { ...
[["-", 12, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["-", 12, 16, 31, 23, 0, 16, 12, 16, 12, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
1,126
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace cysharp_test { class Program { static void Main(string[] args) { new Program().solve(); } void solve() { long[] NK = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long N = NK[0]; long K...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace cysharp_test { class Program { static void Main(string[] args) { new Program().solve(); } void solve() { ulong[] NK = Console.ReadLine().Split(' ').Select(ulong.Parse).ToArray(); ulong N = NK[0]; ulo...
[["-", 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
346
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO.Pipes; using System.Runtime; namespace Csharponly { class Program { static public void Main() { int[] NK = Arrayint(); string ans = Team(NK[0] + 1, NK[1]); long a = long.Parse(ans); ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO.Pipes; using System.Runtime; namespace Csharponly { class Program { static public void Main() { int[] NK = Arrayint(); string ans = Team(NK[0] + 1, NK[1]); long a = long.Parse(ans); ...
[["+", 12, 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, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 12, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 12, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
1,082
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; public static class P { public static void Mai...
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; public static class P { public static void Mai...
[["+", 8, 196, 0, 7, 15, 16, 12, 23, 0, 24], ["+", 0, 7, 15, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 7, 15, 16, 12, 23, 0, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 23, 0, 25], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["-", 0, 212, 0, 16, 31, 16, 31, 16, 31, 22], ["-", ...
8
760
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["+", 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], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 141, 22], ["+...
8
805
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, ' ')); } ...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 41, 64, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 41, 64, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 41, 64, 74, 0, 25], ["+", 0, 28, 0, 41, 64, 74, 51, 23, 0, 24], ["+", 64, 74, 51, 23, 0, 16, 31, 74, 0, 24], ["+", 64, 74, 51...
8
884
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main(string[] args) { var ABN = ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); var (A, B, N) = (ABN[0], ABN[1], ABN[2]); var ans = Math.Min(B - 1, (A * N / B) - A * (N...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main(string[] args) { var ABN = ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); var (A, B, N) = (ABN[0], ABN[1], ABN[2]); var x = (N < B - 1) ? N : B - 1; var ans ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 31, 22], ["+", 0, 212, 0, 41, 15, 23, 0, ...
8
125
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-...
[["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 16, 12, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 12, 204, 205, 22], ["+", 0, 11, 12, 16, 12, 204, 206, 207, 0...
8
1,306
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ABC163F { static bool SAIKI = false; sta...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Math; using System.Text; using System.Threading; using System.Globalization; using System.Runtime.CompilerServices; using Library; namespace Program { public static class ABC163F { static bool SAIKI = false; sta...
[["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 16...
8
2,643
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC162_A { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); bool ans = (N % 10) == 7; if (ans) { Console.WriteLine("Yes"); } else...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC162_A { class Program { static void Main(string[] args) { var N = Console.ReadLine(); bool ans = (N.Contains("7")); if (ans) { Console.WriteLine("Yes"); } else { ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["-", 0, 212, 0, 16, 31, 23, 0, 16, 17, 109], ["-", 0, 212, 0, 16, 31, 23, 0, 16, 12, 2...
8
98
using System; using System.Collections.Generic; using System.Numerics; using System.Linq; using static System.Math; class MainClass { public static void Main(string[] args) { var N = LnInt(); var hun = N / 100; var ten = N % 100 / 10; var one = N % 10; Console.WriteLine(one == 7 || hun == 7 || t...
using System; using System.Collections.Generic; using System.Numerics; using System.Linq; using static System.Math; class MainClass { public static void Main(string[] args) { var N = LnInt(); var hun = N / 100; var ten = N % 100 / 10; var one = N % 10; Console.WriteLine((one == 7 || hun == 7 || ...
[["+", 3, 4, 0, 28, 0, 41, 15, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 41, 15, 23, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41,...
8
268
namespace Test { using System; using System.Collections.Generic; using System.Linq; using System.Text; public class Test { public static void Main(string[] args) { var t = new Test(); var input = t.ReadInputOneLine(); if (input % 10 == 7 || input / 10 == 7 || input / 100 == 7) { Console.WriteLine(...
namespace Test { using System; using System.Collections.Generic; using System.Linq; using System.Text; public class Test { public static void Main(string[] args) { var t = new Test(); var input = t.ReadInputOneLine(); var middle = (input / 10) % 10; if (input % 10 == 7 || middle == 7 || input / 100 ...
[["+", 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, 0, 24], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 85], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 12, 20...
8
406
using System; public class SevenSpotter { public static void Main(string[] args) { var number = int.Parse(Console.ReadLine()); var result = IsThereA7(number); Console.WriteLine(result); } public static bool IsThereA7(int number) { for (int i = 0; i < 3; i++) { var divisor = Math.Pow(10, i...
using System; public class SevenSpotter { public static void Main(string[] args) { var number = int.Parse(Console.ReadLine()); var result = IsThereA7(number); Console.WriteLine(result); } public static string IsThereA7(int number) { for (int i = 0; i < 3; i++) { var divisor = Math.Pow(10,...
[["-", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 0, 57, 64, 196, 0, 37, 0, 211, 0, 146], ["+", 0, 57, 64, 196, 0, 37, 0, 5, 0, 62], ["+", 0, 57, 64, 196, 0, 37, 0, 5, 0, 222], ["-", 0, 195, 8, 196, 0, 37, 0, 211, 0, 147], ["+", 0, 195, 8, 196, 0, 37, 0, 5, 0, 62], [...
8
120
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; class Program { static void Main(string[] args) { // 入力 string[] sS = System.Console.ReadLine().Trim().Split(' '); long iN = long.Parse(sS[0]); System.Diagnostics.Stopwatch sw = new System.Diagnosti...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; class Program { static void Main(string[] args) { // 入力 string[] sS = System.Console.ReadLine().Trim().Split(' '); long iN = long.Parse(sS[0]); System.Diagnostics.Stopwatch sw = new System.Diagnosti...
[["+", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62...
8
194
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace D { class Program { static void Main(string[] args) { string line = Console.ReadLine(); string[] strs = line.Split(' '); long A = long.Parse(strs[0]); long B = long.Parse(strs...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace D { class Program { static void Main(string[] args) { string line = Console.ReadLine(); string[] strs = line.Split(' '); long A = long.Parse(strs[0]); long B = long.Parse(strs...
[["-", 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, 74, 0, 24], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["-", 0, 200, 0, 212, 0, 74, 51, 23, 0, 24], ["-", 0, 212, 0, 74, 51, 23, 0, 16, 31, 22]...
8
159
using System; namespace ForATCODER { public class Program { public static void Main(string[] args) { int N = s2i(Console.ReadLine()); int sum = 0; for (int i = 1; i < N; i++) { if (i % 3 != 0 && i % 5 != 0) sum += i; } RESULT(sum); } static int s2i(String s) { return Convert.ToIn...
using System; namespace ForATCODER { public class Program { public static void Main(string[] args) { ulong N = (ulong)s2i(Console.ReadLine()); ulong sum = 0; for (ulong i = 1; i <= N; i++) { if (i % 3 != 0 && i % 5 != 0) sum += i; } Console.WriteLine(sum); } static int s2i(String...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 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, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39...
8
246
using System; using System.Collections; using System.Collections.Generic; using System.IO.Pipes; using System.Linq; using System.Numerics; using System.Security.Cryptography; using System.Text; using System.Threading; namespace ForATCODER { public class Program { public static void Main(string[] args) { // ...
using System; using System.Collections; using System.Collections.Generic; using System.IO.Pipes; using System.Linq; using System.Numerics; using System.Security.Cryptography; using System.Text; using System.Threading; namespace ForATCODER { public class Program { public static void Main(string[] args) { // ...
[["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 31, 204, 205, 22], ["+", 31, 23, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 23, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 48...
8
617
using System; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public static void Main(string[] args) { new B().test(); } } public class B { public void test() { // 普通の文字列取得 // 英語小文字のみ var input = CommonRead.ReadLong(); var notFizzBuzz = new List<long>...
using System; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public static void Main(string[] args) { new B().test(); } } public class B { public void test() { // 普通の文字列取得 // 英語小文字のみ var input = CommonRead.ReadLong(); var notFizzBuzz = new List<long>(...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 60], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 139], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 17, 10...
8
521
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 = (double)cin.nextLong(); var b = (double)cin....
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 = (double)cin.nextLong(); var b = (double)cin....
[["+", 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
793
using System; using static System.Console; using static System.Math; using System.Linq; using System.Collections.Generic; namespace Main { class Program { static void Main(string[] args) { ulong N = ulong.Parse(ReadLine()); ulong sum = 0; for (ulong i = 0; i < N; i++) { if (i % 3 != 0 && i % 5 != ....
using System; using static System.Console; using static System.Math; using System.Linq; using System.Collections.Generic; namespace Main { class Program { static void Main(string[] args) { ulong N = ulong.Parse(ReadLine()); ulong sum = 0; for (ulong i = 0; i < N; i++) { if ((i + 1) % 3 != 0 && (i +...
[["+", 15, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 15, 16, 31, 16, 31, 16, 31, 23, 0, 25], ["+", 15, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 12, 2...
8
104
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main() { int n = int.Parse(Console.ReadLine()); long sum = 0; for (int i = 0; i < n; i++) { sum += i % 3 == 0 ? 0 : i % 5 == 0 ? 0 : i; } Console.WriteLine(sum); } } }
using System; namespace AtCoder { class Program { static void Main() { int n = int.Parse(Console.ReadLine()); long sum = 0; for (int i = 1; i <= n; i++) { sum += i % 3 == 0 ? 0 : i % 5 == 0 ? 0 : i; } Console.WriteLine(sum); } } }
[["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 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, ...
8
92
using System; namespace _165d { class Program { static void Main(string[] args) { float[] ABN = Array.ConvertAll(Console.ReadLine().Split(), float.Parse); // int[] NMQ = Array.ConvertAll(Console.ReadLine().Split(),int.Parse); // long K = long.Parse(Console.ReadLine()); // int[] AB = Array.ConvertAll(...
using System; namespace _165d { class Program { static void Main(string[] args) { long[] ABN = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); // int[] NMQ = Array.ConvertAll(Console.ReadLine().Split(),int.Parse); // long K = long.Parse(Console.ReadLine()); // int[] AB = Array.ConvertAll(Co...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 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, 198, 0, 200, 0, 212, 0, ...
8
153
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var r = ReadSplit(); var a = r[0].Double(); var b = r[1].Double(); var n = r[2].Double...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var r = ReadSplit(); var a = r[0].Double(); var b = r[1].Double(); var n = r[2].Double...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 250], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 0, 195, 8, 196, 0, 57, 15, 16, ...
8
600
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; class Program { public static void Main() { var a = Read.Long(); var b = Read.Long(); var n = Read.Long(); long x = Min(b - 1, n); long result = (long)((a *...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; class Program { public static void Main() { var a = Read.Long(); var b = Read.Long(); var n = Read.Long(); long x = Min(b - 1, n); long result = (long)((a *...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 218, 8, 196, 0, 45], ["-", 0, 28, 0, 218, 8, 196, 0, 1, 0, 35], ["-", 0, 28, 0, 218, 8, 196, 0, 37, 0, 38], ["-", 0, 218, 8, 196, 0, 37, 0, 211, 0, 146], ["-", 0, 28, 0, 218, 8, 196, 0, 37, 0, 35], ["-",...
8
308
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; namespace AtCoder { class Program { static void Main() { var raw = ReadLine().Split().Select(long.Parse).ToArray(); var A = raw[0]; var B = raw[1]; var N = raw[...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; namespace AtCoder { class Program { static void Main() { var raw = ReadLine().Split().Select(long.Parse).ToArray(); var A = raw[0]; var B = raw[1]; var N = raw[...
[["+", 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, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 213, 63, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["-", 0, 28, 0, 213, 3, 4, 0, 28, 0, 203], ["-", 3, 4, 0,...
8
142
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace D { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace D { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["-", 0, 28, 0, 41, 15, 16, 31, 204, 205, 22], ["-", 0, 41, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 41, 15, 16, 31, 204, 206, 207, 0, 73], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["-", 0, 28, 0, 41, 15, 16, 12, 204, 205, 22], ["-", 0, 41, 15, 16, 12, 204, 206, 20...
8
208
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flus...
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flus...
[["-", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 85], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 6...
8
2,487
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading; namespace AtCoder { public class Program { static void Main() { var cin = new Scanner(); long a = cin.Long(); long b = cin.Long(); long...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading; namespace AtCoder { public class Program { static void Main() { var cin = new Scanner(); long a = cin.Long(); long b = cin.Long(); long...
[["+", 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
1,616
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; public static class P { public static void Mai...
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; public static class P { public static void Mai...
[["+", 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, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ...
8
141
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; using System.Text; namespace ABC165F { class Program { static long[] a; static List<int>[] edge; static int N; static void Main(string[] args) { N = RInt; a = ...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; using System.Text; namespace ABC165F { class Program { static int[] a; static List<int>[] edge; static int N; static void Main(string[] args) { N = RInt; a = R...
[["-", 8, 201, 0, 124, 0, 198, 39, 224, 39, 199], ["+", 8, 201, 0, 124, 0, 198, 39, 224, 39, 199], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["-", 205, 213, 63, 214, 205, 227, 39, 224,...
8
1,078
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 nint = System.Int64; static class Program { const int mod = (int)1e9 + ...
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 nint = System.Int64; static class Program { const int mod = (int)1e9 + ...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 41, 15, 23, 0, 24], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 17, 106], ["+", 15, 23, 0, 16, 12, 16, 31, 214, 205, 22], ["+", 15, 23, 0, 16, 12, 16, 31, 214, 0, 131], ["+", 15, 23, 0, 16, 12, 16, 31, 214, 141, 22], [...
8
4,659
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC162D { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string input = Console.ReadLine(); string[] S = new string[N]; for (int i = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC162D { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string input = Console.ReadLine(); string[] S = new string[N]; for (int i = ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 57, 64, 196, 0...
8
336
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { public static long count; static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); char[] sArr = s.ToArray(); int[] arrAns = new int[1]; checkAns(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { public static long count; static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); char[] sArr = s.ToArray(); int[] arrAns = new int[1]; checkAns(...
[["-", 8, 201, 0, 195, 8, 196, 0, 210, 0, 266], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 0, 24], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 0, 267], ["+", 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, 3, 4, 0,...
8
359
using System; using System.Collections.Generic; using System.Linq; namespace ABC162D { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var s = Console.ReadLine(); int[] dR = new int[N]; int[] dG = new int[N]; int[] dB = new int[N]; for (int i = s.Leng...
using System; using System.Collections.Generic; using System.Linq; namespace ABC162D { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); var s = Console.ReadLine(); long[] dR = new long[N]; long[] dG = new long[N]; long[] dB = new long[N]; for (int i ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, ...
8
633
using System; using System.Collections; using System.Collections.Generic; using System.IO.Pipes; using System.Linq; using System.Numerics; using System.Security.Cryptography; using System.Text; using System.Threading; namespace ForATCODER { public class Program { public static void Main(string[] args) { int N =...
using System; using System.Collections; using System.Collections.Generic; using System.IO.Pipes; using System.Linq; using System.Numerics; using System.Security.Cryptography; using System.Text; using System.Threading; namespace ForATCODER { public class Program { public static void Main(string[] args) { int N =...
[["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 212, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 212, 0, 16, 31, 16, 12, 74, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 12, 74, 0, 25], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 0, 24], ...
8
2,008
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var d = DateTime.Now; var n = Read().ToInt(); var s = Read(); var r = new List<int>()...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { static void Main(string[] args) { var d = DateTime.Now; var n = Read().ToInt(); var s = Read(); var r = new List<int>()...
[["+", 0, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0...
8
530
using System; using System.Collections.Generic; using System.Linq; class Progaram { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var s = Console.ReadLine().ToCharArray(); var r = 0; var g = 0; var b = 0; for (var i = 0; n > i; i++) { if (s[i] == 'R') ...
using System; using System.Collections.Generic; using System.Linq; class Progaram { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var s = Console.ReadLine().ToCharArray(); var r = 0L; var g = 0L; var b = 0L; for (var i = 0; n > i; i++) { if (s[i] == 'R') ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70],...
8
242
using System; using System.Collections.Generic; namespace B { class Program { static void Main(string[] args) { string line = Console.ReadLine(); int N = int.Parse(line); line = Console.ReadLine(); int sum = 0; var listR = new List<int>(); var listG = new List<int>(); var listB = new Lis...
using System; using System.Collections.Generic; namespace B { class Program { static void Main(string[] args) { string line = Console.ReadLine(); int N = int.Parse(line); line = Console.ReadLine(); int sum = 0; var listR = new List<int>(); var listG = new List<int>(); var listB = new Lis...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 16, 31, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 16, 31, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 16, 31, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 16, 31, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 16, 31, 16, 31, 16, 12, 74, 39, ...
8
1,070
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace competitive_programming { class Program { static void Main(string[] args) { var main = new Program(); main.solve(); } void solve() { int N = int.Parse(Console.ReadLine()); var S = Console.ReadL...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace competitive_programming { class Program { static void Main(string[] args) { var main = new Program(); main.solve(); } void solve() { int N = int.Parse(Console.ReadLine()); var S = Console.ReadL...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["-", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, ...
8
362
using System; using System.Collections; using System.Collections.Generic; namespace 練習問題 { class Program { static void Main(string[] args) { // var sw =z new System.Diagnostics.Stopwatch(); // sw.Start(); List<int> pattern = new List<int>(); int n = 0; string s = ""; int result = 0; // Si...
using System; using System.Collections; using System.Collections.Generic; namespace 練習問題 { class Program { static void Main(string[] args) { // var sw =z new System.Diagnostics.Stopwatch(); // sw.Start(); List<int> pattern = new List<int>(); int n = 0; string s = ""; long result = 0; // S...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 57, 75, 57, 75, 57, 0, 121], ["-", 8, 196, 0, 57, 75, 57, 75, 57, 0, 24], ["-", 75, 57, 15, 16, 31, 213, 63, 214, 205, 22], ["-", 75, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["-", 75, 57, 15, 16, 31, 213, 63...
8
1,211
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace MyProject { class Program { static void Main(string[] args) { #if Local var sw = new Stopwatch(); sw.Start(); Console.SetIn(new StreamReader("input.in")); #endif var solver = new S...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace MyProject { class Program { static void Main(string[] args) { #if Local var sw = new Stopwatch(); sw.Start(); Console.SetIn(new StreamReader("input.in")); #endif var solver = new S...
[["-", 31, 16, 31, 74, 51, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 74, 51, 213, 63, 214, 0, 131], ["+", 31, 16, 31, 74, 51, 213, 63, 214, 141, 22], ["+", 31, 16, 31, 74, 51, 213, 3, 4, 0, 24], ["-", 31, 16, 31, 74, 51, 204, 206, 207, 0, 73], ["+", 31, 16, 31, 74, 51, 213, 3, 4, 0, 25], ["-", 0, 16, 31, 16, 12, 204, 20...
8
309
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Math; using static System.Console; using static exMath; using static exReadLine; class Program { static void Main(string[] args) { long N; longReadLine(out N); string S = Re...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Math; using static System.Console; using static exMath; using static exReadLine; class Program { static void Main(string[] args) { long N; longReadLine(out N); string S = Re...
[["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 79], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 79], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106...
8
976
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.D { internal static class CR { public static string GetText() { return Console.ReadLine(); } public static List<string> GetTexts() { return Console.ReadLine().Split(' ').ToList(); } pu...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.D { internal static class CR { public static string GetText() { return Console.ReadLine(); } public static List<string> GetTexts() { return Console.ReadLine().Split(' ').ToList(); } pu...
[["-", 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, 72], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 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...
8
399
using System; using System.Collections.Generic; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var s = Console.ReadLine(); var r_num = s.Length - s.Replace("R", "").Length; var g_num = s.Length - s.Replace("G", "").Length; var b_n...
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var s = Console.ReadLine(); long r_num = s.Length - s.Replace("R", "").Length; long g_num = s.Length - s.Replace("G", "").Length; long b_num = s.Length - s.Replace("B", ...
[["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 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, ...
8
218
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder.Beginner162 { public class ABC162D { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); char[] S = Console.ReadLine().ToArray(); List<int> Rs = new List<int>(); List<int> Gs ...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder.Beginner162 { public class ABC162D { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); char[] S = Console.ReadLine().ToArray(); List<int> Rs = new List<int>(); List<int> Gs ...
[["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 212, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 212, 0, 16, 31, 16, 12, 74, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 12, 74, 0, 25], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 0, 24], ...
8
293
using System; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); char[] S = Console.ReadLine().ToArray(); int R = 0, G = 0, B = 0, ans = 0; foreach (char i in S) switch (i) { case 'R': R++; break; case 'G': ...
using System; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); char[] S = Console.ReadLine().ToArray(); int R = 0, G = 0, B = 0; foreach (char i in S) switch (i) { case 'R': R++; break; case 'G': G++...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 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...
8
355
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static void Main(string[] args) { try { Solve.Answer(); } catch (Exception ex) { WriteLine(ex.ToString()); } } } ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static void Main(string[] args) { try { Solve.Answer(); } catch (Exception ex) { WriteLine(ex.ToString()); } } } ...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["+...
8
492
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { ABC162.F(); } class ABC162 { public static void A() { var N = Read.Int(); Console.WriteLine( N % 10 == 7 || N / 100 == 7 || (N / 10) % 10 == 7 ? "Yes" ...
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { ABC162.F(); } class ABC162 { public static void A() { var N = Read.Int(); Console.WriteLine( N % 10 == 7 || N / 100 == 7 || (N / 10) % 10 == 7 ? "Yes" ...
[["+", 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
3,005
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Threading.Tasks; using AtCoderBeginnerContest161.Questions; using AtCoderBeginnerContest161.Extensions; namespace AtCoderBeginnerContest161 { class Program { static void Main(string[] args) { IAtCo...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Threading.Tasks; using AtCoderBeginnerContest161.Questions; using AtCoderBeginnerContest161.Extensions; namespace AtCoderBeginnerContest161 { class Program { static void Main(string[] args) { IAtCo...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 266], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 24], ["+", 0, 195, 8, 196, 0, 210, 39, 216, 0, 217], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 21...
8
538
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long bmod = 1000000007; static void Main() { Console.SetOut( new StreamWriter(Console.OpenStanda...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long bmod = 1000000007; static void Main() { Console.SetOut( new StreamWriter(Console.OpenStanda...
[["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["-", 205, 23, 0, 16, 31, 16, 31, 16, 17, 60], ["-", 0, 16, 31, 16, 31, 16, 12, 204, 205, 22], ["-", 31, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 31, 16, 12, 20...
8
1,508
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var X = int.Parse(Console.ReadLine()); Console.WriteLine(Logic(X)); } private static int Logic(int X) { var remain = X; var Happi...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var X = int.Parse(Console.ReadLine()); Console.WriteLine(Logic(X)); } private static int Logic(int X) { var remain = X; var Happi...
[["-", 8, 196, 0, 210, 8, 196, 0, 82, 0, 170], ["+", 8, 196, 0, 210, 8, 196, 0, 52, 0, 89], ["+", 8, 196, 0, 210, 8, 196, 0, 52, 0, 24], ["+", 0, 210, 8, 196, 0, 52, 15, 16, 31, 22], ["+", 0, 210, 8, 196, 0, 52, 15, 16, 17, 20], ["+", 8, 196, 0, 52, 15, 16, 12, 214, 205, 22], ["+", 8, 196, 0, 52, 15, 16, 12, 214, 0, 13...
8
156
using System; namespace abc160_1 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine().Trim()); var happy = 0; happy += (int)Math.Floor((double)n / 500); happy += (int)Math.Floor((double)(n % 500) / 5); Console.WriteLine(happy); } } }
using System; namespace abc160_1 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine().Trim()); var happy = 0; happy += (int)(n / 500) * 1000; happy += (int)(n % 500 / 5) * 5; Console.WriteLine(happy); } } }
[["-", 0, 11, 12, 74, 51, 213, 63, 214, 205, 22], ["-", 0, 11, 12, 74, 51, 213, 63, 214, 0, 131], ["-", 0, 11, 12, 74, 51, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 74, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["-", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], [...
8
90
using System; using System.Collections.Generic; using System.IO; using System.Text; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(" "); var K = int.Parse(input[0]); var N = int.Parse(input[1]); var A = new List<int>(); var line = Console.ReadLine().Split("...
using System; using System.Collections.Generic; using System.IO; using System.Text; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(" "); var K = int.Parse(input[0]); var N = int.Parse(input[1]); var A = new List<int>(); var line = Console.ReadLine().Split("...
[["-", 0, 212, 0, 16, 12, 213, 63, 214, 205, 22], ["-", 0, 212, 0, 16, 12, 213, 63, 214, 0, 131], ["-", 0, 212, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 17, 33], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 33], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22...
8
216
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Program { static void Main() { var input = ReadLine().Split(' ').Select(int.Parse).ToArray(); var x = input[0]; var y = input[1]; var lake = ReadLine().Split(' ').Select(int.Parse).ToArray(); var...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Program { static void Main() { var input = ReadLine().Split(' ').Select(int.Parse).ToArray(); var x = input[0]; var y = input[1]; var lake = ReadLine().Split(' ').Select(int.Parse).ToArray(); var...
[["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 0, 200, 0, 212, 0, 16, 12, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 16, 12, 204, 205, 22], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
184
using System; using System.Linq; using System.Collections.Generic; namespace cs { class Program { static void Main(string[] args) { var pg = new Program(); pg.Execute(); } private void Execute() { var input = ReadLinesLongList; var ALists = ReadLinesLongList.ToList(); var K = input.ElementA...
using System; using System.Linq; using System.Collections.Generic; namespace cs { class Program { static void Main(string[] args) { var pg = new Program(); pg.Execute(); } private void Execute() { var input = ReadLinesLongList; var ALists = ReadLinesLongList.ToList(); var K = input.ElementA...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 205, 22], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["-", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["-", 0, 57, 15, 16, 31, 213, 3, 4, 0,...
8
296
using System; using System.Collections.Generic; public class TravelLake { public static void Main() { var input = Console.ReadLine().Split(' '); var total = int.Parse(input[0]); var house = int.Parse(input[1]); int distance = 0; int distance_r = 0; int distance_o = 0; int min = 0; va...
using System; using System.Collections.Generic; public class TravelLake { public static void Main() { var input = Console.ReadLine().Split(' '); var total = int.Parse(input[0]); var house = int.Parse(input[1]); int distance = 0; int distance_r = 0; int distance_o = 0; int min = 0; va...
[["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 12, 16, 31, 16, 31, 213, 63, 214, 205, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 12, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 31, 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,...
8
301
using System; namespace AtCorder1 { class AtCorder160C { static void Main(string[] args) { string[] line = System.Console.ReadLine().Trim().Split(' '); var lakePerim = int.Parse(line[0]); var houseNum = int.Parse(line[1]); string[] meterFrmLake = System.Console.ReadLine().Trim().Split(' '); i...
using System; namespace AtCorder1 { class AtCorder160C { static void Main(string[] args) { string[] line = System.Console.ReadLine().Trim().Split(' '); var lakePerim = int.Parse(line[0]); var houseNum = int.Parse(line[1]); string[] meterFrmLake = System.Console.ReadLine().Trim().Split(' '); i...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0,...
8
210
using System; using System.Collections.Generic; using System.Linq; class Ho { static void Main() { var aho = Console.ReadLine().Split(); var K = int.Parse(aho[0]); var N = int.Parse(aho[1]); var baka = Console.ReadLine().Split(); var a = new List<int>(); foreach (var ba in baka) { a.Add(...
using System; using System.Collections.Generic; using System.Linq; class Ho { static void Main() { var aho = Console.ReadLine().Split(); var K = int.Parse(aho[0]); var N = int.Parse(aho[1]); var baka = Console.ReadLine().Split(); var a = new List<int>(); foreach (var ba in baka) { a.Add(...
[["+", 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, 200, 0, 212, 0, 213, 3, 4,...
8
237