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; class Program { static void Main() { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int sockets = 1; int count = 0; while (true) { sockets += A - 1; count++; if (sockets >= B) { break; } ...
using System; class Program { static void Main() { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int sockets = 1; int count = 0; while (true) { if (sockets >= B) { break; } sockets += A - 1; count++; ...
[["-", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 52, ...
8
100
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int A = int.Parse(s[0]); int B = int.Parse(s[1]); int ans = 1; B -= A; ...
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int A = int.Parse(s[0]); int B = int.Parse(s[1]); if (B <= 1) { Consol...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
123
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public static void Main(string[] args) { string[] w = Input(); int a = int.Parse(w[0]); int b = int.Parse(w[1]); int r = a; int cnt = 1; whil...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public static void Main(string[] args) { string[] w = Input(); int a = int.Parse(w[0]); int b = int.Parse(w[1]); if (b == 1) { Console.WriteLine...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
215
using System; using System.Linq; class Program { static void Main(string[] args) { int[] AB = new int[2]; AB = Console.ReadLine().Split().Select(int.Parse).ToArray(); int concent_count = 1; int i = 0; while (AB[1] > concent_count) { i++; concent_count = i * AB[0]; } Console.Wri...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { int[] AB = new int[2]; AB = Console.ReadLine().Split().Select(int.Parse).ToArray(); int concent_count = 1; int i = 0; while (AB[1] > concent_count) { i++; concent_cou...
[["+", 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
97
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { var ab = ReadInts(); var tap_count = 0; var outlet_count = 1; while (tr...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { var ab = ReadInts(); var tap_count = 0; var outlet_count = 1; while (ou...
[["-", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 8, 196, 0, 52, 15, 16, 12, 204, 205, 22], ["+", 0, 52, 15, 16, 12, 204, 206, 207, 0, 70], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 52, 15, 16, 12, 204, 206, ...
8
586
namespace AtCoder.ABC.B139 { using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.IO; using AtCoder.ABC.IO; public class Quest { public object Solve(Parser parser) { int a = parser.Integer(); int b = parser.Integer(); // 4 + 3 + 3 ...
namespace AtCoder.ABC.B139 { using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.IO; using AtCoder.ABC.IO; public class Quest { public object Solve(Parser parser) { int a = parser.Integer(); int b = parser.Integer(); // 4 + 3 + 3 ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 0, 11, 12, 16, 12, 16, 31, 23, 0, 24], ["-", 12, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["-...
8
1,020
using System; using System.Linq; using System.Collections.Generic; namespace B { class Program { static void Main(string[] args) { Console.WriteLine(Run(args)); } private static int Run(string[] args) { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var A = input[0]; var B = in...
using System; using System.Linq; using System.Collections.Generic; namespace B { class Program { static void Main(string[] args) { Console.WriteLine(Run(args)); } private static int Run(string[] args) { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var A = input[0]; var B = in...
[["+", 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], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 24],...
8
121
using System; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { var p = new Program(); var input = p.ConvertIntArray(p.ReadInput()); var count = 0; var A = input[0] - 1; var B = input[1] - 1; if (input[1] != 1) { ...
using System; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { var p = new Program(); var input = p.ConvertIntArray(p.ReadInput()); var count = 1; var A = input[0] - 1; var B = input[1] - 1; if (input[1] == 1) { ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ...
8
212
// ABC139 B - Power Socket // 20190902 using System; namespace B { class Program { static void Main(string[] args) { // Console.WriteLine("Hello World!"); //入力受け取り string str = Console.ReadLine(); string[] arr = str.Split(' '); int A = int.Parse(arr[0]); int B = int.Parse(arr[1]); //計算...
// ABC139 B - Power Socket // 20190902 using System; namespace B { class Program { static void Main(string[] args) { // Console.WriteLine("Hello World!"); //入力受け取り string str = Console.ReadLine(); string[] arr = str.Split(' '); int A = int.Parse(arr[0]); int B = int.Parse(arr[1]); //計算...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
111
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { void Solve() { var N = ToInts(); var ret = 1; var a = N[0]; for (;;) { if (a >= N[1]) break; a += (N[0] - 1); ret += 1; } Console.Writ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { void Solve() { var N = ToInts(); if (N[1] == 1) { Console.WriteLine(0); return; } var ret = 1; var max = N[0]; for (;;) { if (max >= N[1]) ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 195, 8, 196, 0, 57, 15, 16...
8
189
using System; class Program { static void Main(string[] args) { string[] con = Console.ReadLine().Split(' '); int A = int.Parse(con[0]); int B = int.Parse(con[1]); int tap = A; int kosu = 1; while (B > tap) { kosu++; tap = tap + A - 1; } Console.WriteLine(kosu); Conso...
using System; class Program { static void Main(string[] args) { string[] con = Console.ReadLine().Split(' '); int A = int.Parse(con[0]); int B = int.Parse(con[1]); int tap = A; int kosu = 1; while (B > tap) { kosu++; tap = tap + A - 1; } if (B == 1) kosu = 0; Co...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ...
8
104
using System; namespace PowerSocket_20190901 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int tap = int.Parse(input[0]); //電源タップの差込口の数 int outlet = int.Parse(input[1]); //目標の差込口の数 int calc_tap = 1; //最初の差込口の数 計算用 int answer...
using System; namespace PowerSocket_20190901 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int tap = int.Parse(input[0]); //電源タップの差込口の数 int outlet = int.Parse(input[1]); //目標の差込口の数 int calc_tap = 1; //最初の差込口の数 計算用 int answer...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 93, 0, 94], ["+", 0, 7, 8...
8
127
using System; namespace abc139_2 { class Program { static void Main(string[] args) { // input string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int b = int.Parse(str[1]); // output int ans = 0; bool flg = true; int tmp = b - a; if (tmp <= 0) { ans = ...
using System; namespace abc139_2 { class Program { static void Main(string[] args) { // input string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int b = int.Parse(str[1]); // output int ans = 0; bool flg = true; int tmp = b - a; if (b == 1) { ans = 0;...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], [...
8
146
using System; using System.Linq; using System.Threading.Tasks; using static System.Console; using static System.Math; class program { static void Main(string[] args) { program p = new program(); p.Run(); } void Run() { int[] tmp = Readint(); int a = tmp[0], b = tmp[1]; int hole = a, res = 1; ...
using System; using System.Linq; using System.Threading.Tasks; using static System.Console; using static System.Math; class program { static void Main(string[] args) { program p = new program(); p.Run(); } void Run() { int[] tmp = Readint(); int a = tmp[0], b = tmp[1]; int hole = a, res = 1; ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 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
195
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc139 { class abc139b { static void Main(string[] args) { var buf = Console.ReadLine().Split(); var a = int.Parse(buf[0]); var b = int.Parse(buf[1]); var r = Solve(a, b); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc139 { class abc139b { static void Main(string[] args) { var buf = Console.ReadLine().Split(); var a = int.Parse(buf[0]); var b = int.Parse(buf[1]); var r = Solve(a, b); ...
[["-", 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
146
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var ab = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); if (ab[1] == 1) { Console.WriteLine(0); return; } ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var ab = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); if (ab[1] == 1) { Console.WriteLine(0); return; } ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 15, 16, 12, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 12, 16, 31, 23, 0, 16, 1...
8
139
using System; namespace Abc138 { public class QuestionB { public static void Main(string[] args) { // 整数の入力 string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int result = 1; while (true) { int count = a; count += (a - 1) * ...
using System; namespace Abc138 { public class QuestionB { public static void Main(string[] args) { // 整数の入力 string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); if (b == 1) { Console.WriteLine(0); return; } int result = 1...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
119
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProblemB { class Program { static void Main(string[] args) { var read = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var A = read[0]; var B = read[1]...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProblemB { class Program { static void Main(string[] args) { var read = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var A = read[0]; var B = read[1]...
[["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 20...
8
152
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int count = 0; int temp = 0; if (B > A) { wh...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int count = 0; int temp = 0; if (B > A) { wh...
[["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], [...
8
140
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC_Training { class Program { static void Main(string[] args) { var ab = Console.ReadLine().Split(' '); var a = int.Parse(ab[0]); var b = int.Parse(ab[1]); Console.WriteLine(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC_Training { class Program { static void Main(string[] args) { var ab = Console.ReadLine().Split(' '); var a = int.Parse(ab[0]); var b = int.Parse(ab[1]); Console.WriteLine(...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 203]...
8
155
using System; namespace pro { class MainClass { public static void Main() { string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int b = int.Parse(str[1]); int kuti = a; int count = 1; if (a >= b) { Console.WriteLine(1); } else { while (kuti < b) { ...
using System; namespace pro { class MainClass { public static void Main() { string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int b = int.Parse(str[1]); int kuti = a; int count = 1; if (b == 1) { Console.WriteLine(0); } else if (a >= b) { Console.WriteL...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, ...
8
117
using System; public class Test { public static void Main() { string[] input = Console.ReadLine().Trim().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int sum = 0; int count = 0; while (sum < B) { if (sum == 0) { sum += A; } else { sum += (...
using System; public class Test { public static void Main() { string[] input = Console.ReadLine().Trim().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int sum = 0; int count = 0; if (B == 1) { Console.WriteLine(0); return; } while (sum < B) { ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
115
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { var array = Console.ReadLine().Split().Select(_ => int.Parse(_)).ToArray(); var A = array[0]; var B = array[1]; var mod = (B - 1) / A; Console.WriteLine(mod +...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { var array = Console.ReadLine().Split().Select(_ => decimal.Parse(_)).ToArray(); var A = array[0]; var B = array[1]; var c = Math.Ceiling((B - 1) / (A - 1))...
[["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 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...
8
99
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { public class Solver { public void Solve() { var cin = new Scanner(); var a = cin.nextInt(); var b = cin.nextInt(); v...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { public class Solver { public void Solve() { var cin = new Scanner(); var a = cin.nextInt(); var b = cin.nextInt(); i...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
1,790
using System; using System.Linq; namespace ABC139_B { class Program { static void Main(string[] args) { var AB = Console.ReadLine().Split().Select(int.Parse).ToArray(); var A = AB[0]; var B = AB[1]; var ans = 1; var sum = A; while (true) { if (sum >= B) { break; } a...
using System; using System.Linq; namespace ABC139_B { class Program { static void Main(string[] args) { var AB = Console.ReadLine().Split().Select(int.Parse).ToArray(); var A = AB[0]; var B = AB[1]; if (B == 1) { Console.WriteLine(0); return; } var ans = 1; var sum = A; w...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
109
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp5 { class Program { static void Main(string[] args) { String S = Console.ReadLine(); String[] line = S.Split(' '); int A = int.Parse(line[0]); int B = int.Parse(lin...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp5 { class Program { static void Main(string[] args) { String S = Console.ReadLine(); String[] line = S.Split(' '); int A = int.Parse(line[0]); int B = int.Parse(lin...
[["+", 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, 20], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+", ...
8
140
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int A = l[0], B = l[1]; var ans = A; var count = 1; B -= A; while (B > 0) { B -= A ...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int A = l[0], B = l[1]; if (B == 1) { Console.WriteLine(0); return; } var ans = ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
111
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace ABC189 { public class Program { #region templete private static void WL(string s) { WriteLine(s); } /// <summary> /// 最小公倍数 /// </s...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace ABC189 { public class Program { #region templete private static void WL(string s) { WriteLine(s); } /// <summary> /// 最小公倍数 /// </s...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 213, 63, 22], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], [...
8
833
using System; using static System.Console; using System.Collections.Generic; using System.Linq; namespace Atcoder { class Program { static void Main(string[] args) { var input = InputNumList(); int a = input[0]; int b = input[1]; int tmp = a; int cnt = 1; while (true) { if (a >= b) ...
using System; using static System.Console; using System.Collections.Generic; using System.Linq; namespace Atcoder { class Program { static void Main(string[] args) { var input = InputNumList(); int a = input[0]; int b = input[1]; int tmp = a; int cnt = 1; while (true) { if (a >= b) ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ...
8
153
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using static System.Math; namespace NewCompetitionProgramming { public class Program { public static void Main(string[] args) { using (var sc = new SetConsole()) { Solve(); } } ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using static System.Math; namespace NewCompetitionProgramming { public class Program { public static void Main(string[] args) { using (var sc = new SetConsole()) { Solve(); } } ...
[["-", 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, 60], ["-", 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
709
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { var s = ReadLine().Split(' ').Select(int.Parse).ToArray(); int a = ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { var s = ReadLine().Split(' ').Select(int.Parse).ToArray(); int a = ...
[["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["+", 3, 4, 0...
8
129
using System; using System.Linq; namespace ABC139 { class Program { static void Main() { var input = Console.ReadLine().Split(' ').Select(decimal.Parse); var A = input.First(); var B = input.Skip(1).First(); Console.WriteLine(Math.Ceiling(B / A)); } } }
using System; using System.Linq; namespace ABC139 { class Program { static void Main() { var input = Console.ReadLine().Split(' ').Select(decimal.Parse); var A = input.First(); var B = input.Skip(1).First(); Console.WriteLine(Math.Ceiling((B - 1) / (A - 1))); } } }
[["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 12, 203], ["+", 3, 4, 0, ...
8
83
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static Library.Comfort; using static Library.Math; using static Library.Algorithm; using static System.Math; using System.ComponentModel; using Microsoft.Win32; namespace AtCoderer { public class App { public static vo...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static Library.Comfort; using static Library.Math; using static Library.Algorithm; using static System.Math; using System.ComponentModel; using Microsoft.Win32; namespace AtCoderer { public class App { public static vo...
[["-", 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, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 268], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["+", 0, 1,...
8
2,690
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, ' ')); r...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); r...
[["-", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 85], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 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, ...
8
502
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int answer = 1; int answerMemo = a; while...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int answer = 1; int answerMemo = a; while...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ...
8
111
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; using static MyIO; public class B { public static void Main() => (new Solver()).Solve(); } public class Solver { public void Solve() { int A = GetInt(); int B = GetInt(); Console.WriteLine(...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; using static MyIO; public class B { public static void Main() => (new Solver()).Solve(); } public class Solver { public void Solve() { int A = GetInt(); int B = GetInt(); int res = 0; i...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, ...
8
377
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace atcoder { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var hs = Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray(); var max = 0; ...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace atcoder { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var hs = Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray(); var max = 0; ...
[["-", 64, 196, 0, 1, 0, 11, 31, 22, 0, 314], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 64, 1, 0, 11, 12, 16, 31, 16, 17, 33], ["+", 0, 11, 12, 16, 31, 16, 12, 22, 0, 314], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 203], ["+", ...
8
170
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] H = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int[] ans = new int[N]; // for (int i = 1; i < N; i++) //{ /...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] H = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int[] ans = new int[N]; for (int i = 1; i < N; i++) { if (H[i]...
[["-", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ...
8
181
using System; namespace abc139_c { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(' '); int[] h = new int[n]; for (int i = 0; i < n; i++) { h[i] = Convert.ToInt32(input[i]); } int move = 0; for (in...
using System; namespace abc139_c { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(' '); int[] h = new int[n]; for (int i = 0; i < n; i++) { h[i] = Convert.ToInt32(input[i]); } int move = 0; int ans...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 3...
8
156
using System; using System.Linq; namespace C { class Program { static void Main(string[] args) { var n = (int)Console.ReadLine()[0]; var height = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var count = 0; var mid = height.Length / 2; for (int i = 0; i + 1 < height.Length; i++) { ...
using System; using System.Linq; namespace C { class Program { static void Main(string[] args) { var n = (int)Console.ReadLine()[0]; var height = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var max = 0; var count = 0; var mid = height.Length / 2; for (int i = 0; i + 1 < height....
[["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0...
8
146
using System; namespace MyProgram { class AtCoder { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long[] H = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); int sum_1 = 0; int sum_2 = 0; for (var i = 0; i < N - 1; i++) { if (H[i] < H[i + 1]) { ...
using System; namespace MyProgram { class AtCoder { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long[] H = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); int sum_1 = 0; int sum_2 = 0; for (var i = 0; i < N - 1; i++) { if (H[i] >= H[i + 1]) { ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 47], ["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+"...
8
134
using System; using System.Linq; namespace abc139_c { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var H = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList(); int r = 0; int rm = 0; for (int i = 0; i < N - 1; i++) if (H[i] < H[i + 1...
using System; using System.Linq; namespace abc139_c { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var H = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList(); int r = 0; int rm = 0; for (int i = 0; i < N - 1; i++) if (H[i] < H[i + 1...
[["-", 0, 7, 8, 57, 64, 196, 0, 57, 0, 121], ["-", 0, 7, 8, 57, 64, 196, 0, 57, 0, 24], ["-", 8, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["-", 8, 57, 64, 196, 0, 57, 15, 16, 17, 18], ["-", 8, 57, 64, 196, 0, 57, 15, 16, 12, 22], ["-", 0, 7, 8, 57, 64, 196, 0, 57, 0, 25], ["-", 64, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["-", ...
8
142
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Atcoder { /// <summary> /// ContestName : ABC139 /// Problem : B /// </summary> class Program { static void Main() { var sc = new Scanner(); new Program().Solve(sc, new AtMath()); } private void Solve(Scanner ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Atcoder { /// <summary> /// ContestName : ABC139 /// Problem : B /// </summary> class Program { static void Main() { var sc = new Scanner(); new Program().Solve(sc, new AtMath()); } private void Solve(Scanner ...
[["+", 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
910
using System; using System.Collections.Generic; using System.Linq; namespace Contest { class Program { static void Main() { int n = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(' '); List<int> q = new List<int>(); for (int i = 0; i < n; i++) { q.Add(int.Parse(input[i...
using System; using System.Collections.Generic; using System.Linq; namespace Contest { class Program { static void Main() { int n = int.Parse(Console.ReadLine()); string[] input = Console.ReadLine().Split(' '); List<int> q = new List<int>(); for (int i = 0; i < n; i++) { q.Add(int.Parse(input[i...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 12, 204, 206, 207, 0, 28, 0, 16, ...
8
178
using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.IO; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var H = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); int count = 0; int maxCou...
using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.IO; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var H = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); int count = 0; int maxCou...
[["+", 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], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 12, ...
8
176
using System; using System.Text.RegularExpressions; namespace ConsoleApp3 { class Program { static void Main(string[] args) { int len = Convert.ToInt32(Console.ReadLine()); double[] numlist = new double[len]; int tmp = 0; foreach (string x in Regex.Split(Console.ReadLine(), @"\s+")) { numlist[t...
using System; using System.Text.RegularExpressions; namespace ConsoleApp3 { class Program { static void Main(string[] args) { int len = Convert.ToInt32(Console.ReadLine()); double[] numlist = new double[len]; int tmp = 0; foreach (string x in Regex.Split(Console.ReadLine(), @"\s+")) { numlist[t...
[["-", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 17, 18], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 196, 0, 57, 75, 196, 0, 57, 0, 25], ["-", 0, 57, 75, 196, 0, 57, 64, 196, 0, 45],...
8
174
using System; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] H = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int ans = 0; int count = 0; for (int i = 0; i < N - 1; i++) { if (H[i] < H[i + 1]) { if (an...
using System; using System.Linq; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] H = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int ans = 0; int count = 0; for (int i = 0; i < N - 1; i++) { if (H[i] < H[i + 1]) { if (an...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], [...
8
139
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int b = int.Parse(str[1...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); int moveCount = 0; int maxCount = 0; for (int ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 204,...
8
201
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace A { class Program { /// <summary> /// The main entry point for the application /// </summary> [STAThread] public static void Main(string[] args) { string str_n = Console.ReadLin...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace A { class Program { /// <summary> /// The main entry point for the application /// </summary> [STAThread] public static void Main(string[] args) { string str_n = Console.ReadLin...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196...
8
200
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { long N = long.Parse(Console.ReadLine()); var line = Console.ReadLine().Split(' ').Select(p => long.Parse(p)).ToArray(); long count = 0; List<long> countList = new List<long>(); f...
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { long N = long.Parse(Console.ReadLine()); var line = Console.ReadLine().Split(' ').Select(p => long.Parse(p)).ToArray(); long count = 0; List<long> countList = new List<long>(); l...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214...
8
187
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long[] H = new long[N]; string[] input = Console.ReadLine().Split(' '); for (int i = 0; i < N; i++) { H[i] = long.Parse...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long[] H = new long[N]; string[] input = Console.ReadLine().Split(' '); for (int i = 0; i < N; i++) { H[i] = long.Parse...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 64, 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, 57, 64, 196, 0, 1, 0, 35], [...
8
209
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { partial class Program { static int ReadInt() { return int.Parse(Console.ReadLine()); } static long ReadLong() { return long.Parse(Console.ReadLine()); } static int[] ReadIntArray() { return Console.ReadLine().Split(' ').Se...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { partial class Program { static int ReadInt() { return int.Parse(Console.ReadLine()); } static long ReadLong() { return long.Parse(Console.ReadLine()); } static int[] ReadIntArray() { return Console.ReadLine().Split(' ').Se...
[["+", 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
790
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] s1 = Console.ReadLine().Split(' '); string[] s2 = Console.ReadLine().Split(' '); int[] a = new int[n], b = new int[n]; for (int i = 0; i < n; i++) { ...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] s1 = Console.ReadLine().Split(' '); string[] s2 = Console.ReadLine().Split(' '); int[] a = new int[n], b = new int[n]; for (int i = 0; i < n; i++) { ...
[["-", 75, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["-", 75, 57, 75, 196, 0, 57, 15, 16, 17, 18], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 75, 196, 0, 57, 15, 16, 31...
8
327
using System; namespace _153232 { class Program { static void Main(string[] args) { string A = Console.ReadLine(); string B = Console.ReadLine(); int a = int.Parse(A); int b = int.Parse(B); int[] ss = new int[] { a + b, a - b, a * b }; int s; Array.Sort(ss); s = ss[2]; Console.Wr...
using System; namespace _153232 { class Program { static void Main(string[] args) { string[] AB = Console.ReadLine().Split(); int a = int.Parse(AB[0]); int b = int.Parse(AB[1]); int[] ss = new int[] { a + b, a - b, a * b }; int s; Array.Sort(ss); s = ss[2]; Console.WriteLine(s); } ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0...
8
107
using System; namespace AtCorderBeginner137 { public class Answer { public static void Main(string[] args) { int a; int.TryParse(args[0], out a); int b; int.TryParse(args[1], out b); int sum = a + b; int sub = a - b; int multi = a * b; if (sum >= multi && sum >= sub) { Console....
using System; namespace AtCorderBeginner137 { public class Answer { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a; int.TryParse(input[0], out a); int b; int.TryParse(input[1], out b); int sum = a + b; int sub = a - b; int multi = a * b...
[["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 0, 213, 63, 214, 205...
8
126
using System; class Program { static void Main(string[] args) { int[] ab = new int[2]; int[] results = new int[3]; int i, max = 0; string[] input = Console.ReadLine().Split(' '); for (i = 0; i < 2; i++) { ab[i] = int.Parse(input[i]); } results[0] = ab[0] + ab[1]; results[1] = ab[...
using System; class Program { static void Main(string[] args) { int[] ab = new int[2]; int[] results = new int[3]; int max = -10000; int i; string[] input = Console.ReadLine().Split(' '); for (i = 0; i < 2; i++) { ab[i] = int.Parse(input[i]); } results[0] = ab[0] + ab[1]; res...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 3...
8
180
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp7 { class Program { static void MainA(string[] args) { var arr = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var n0 = arr[0] + arr[1]; var n1 = ar...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp7 { class Program { static void MainA(string[] args) { var arr = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var n0 = arr[0] + arr[1]; var n1 = ar...
[["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 16, 31, 204, 206, 207, 0, 28,...
8
254
using System; class Hello { static void Main(string[] args) { var AB = Console.ReadLine().Split(' '); byte a = byte.Parse(AB[0]); byte b = byte.Parse(AB[1]); for (var i = 0; i <= b - a; i++) { Console.Write((b - a + i + 1) + " "); } } }
using System; class Hello { static void Main(string[] args) { var AB = Console.ReadLine().Split(' '); byte a = byte.Parse(AB[0]); byte b = byte.Parse(AB[1]); for (var i = 0; i < a * 2 - 1; i++) { Console.Write((b - a + i + 1) + " "); } } }
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 15, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 7, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+...
8
97
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { int postition = 0, range = 0; string[] mass = Console.ReadLine().Split(' '); int[] result = new int[3];...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { int postition = 0, range = 0; string[] mass = Console.ReadLine().Split(' '); int[] result = new int[3];...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+...
8
206
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; void calc() { cin = new...
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; void calc() { cin = new...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 57, 64, 1, 0, 213, 3, 4, 0, 25], ["-...
8
777
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace atcorder2 { class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } public static lo...
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace atcorder2 { class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } public static lo...
[["+", 0, 57, 64, 1, 0, 11, 12, 213, 63, 22], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 25]]
8
372
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 n = Read().Int(); var d = new Dictionary<string, int>(); for (int i = 0; i < n; i++) ...
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 n = Read().Int(); var d = new Dictionary<string, int>(); for (int i = 0; i < n; i++) ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 250], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 11, 12, 16, 31, 16, 12, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 12, 74, 0, 2...
8
544
using System; using System.Linq; class Program { static void Main(string[] args) { var scaner = new Scanner(); var n = scaner.ReadInt(); var s = scaner.ReadStrArray(n); for (int i = 0; i < s.Length; i++) { s[i] = new string(s[i].OrderBy(c => c).ToArray()); } var l = s.GroupBy(x => x)...
using System; using System.Linq; class Program { static void Main(string[] args) { var scaner = new Scanner(); var n = scaner.ReadInt(); var s = scaner.ReadStrArray(n); for (int i = 0; i < s.Length; i++) { s[i] = new string(s[i].OrderBy(c => c).ToArray()); } var l = s.GroupBy(x => x)...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 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...
8
569
using System; using System.Linq; using System.Collections.Generic; class c { static void Main() { int n = int.Parse(Console.ReadLine()); var list = new string[n]; for (int i = 0; i < n; i++) { list[i] = string.Join("", Console.ReadLine().OrderBy(f => f)); } list = list.OrderBy(f => f).ToArra...
using System; using System.Linq; using System.Collections.Generic; using System.Text; // for StringBuilder class c { static void Main() { int n = int.Parse(Console.ReadLine()); var list = new string[n]; for (int i = 0; i < n; i++) { list[i] = string.Join("", Console.ReadLine().OrderBy(f => f)); ...
[["+", 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, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63...
8
185
using System; using System.Linq; class c { static void Main() { int n = int.Parse(Console.ReadLine()); var list = new string[n]; for (int i = 0; i < n; i++) { list[i] = string.Join("", Console.ReadLine().OrderBy(f => f)); } Array.Sort(list); long ans = 0; int cnt = 1; for (int i ...
using System; using System.Linq; using System.Collections.Generic; using System.Text; // for StringBuilder class c { static void Main() { int n = int.Parse(Console.ReadLine()); var list = new string[n]; for (int i = 0; i < n; i++) { list[i] = string.Join("", Console.ReadLine().OrderBy(f => f)); ...
[["+", 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
170
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { int n = ReadLineInt(); List<String> sList = new List<String>(); for (int i = 0; i < n; i++) { char[] wk = ReadLineStr().ToCharArray(); ...
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { int n = ReadLineInt(); List<String> sList = new List<String>(); for (int i = 0; i < n; i++) { char[] wk = ReadLineStr().ToCharArray(); ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, ...
8
897
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp2 { public class Program { static long D = (long)Math.Pow(10, 9) + 7; public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); Dictionary<string, int> stringMap = new Dictionary<string, int>(); ...
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp2 { public class Program { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); Dictionary<string, int> stringMap = new Dictionary<string, int>(); for (int i = 0; i < N; i++) { string ...
[["-", 0, 235, 8, 201, 0, 124, 0, 251, 0, 115], ["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 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...
8
209
using System; class uneven { public static void Main() { String str = Console.ReadLine(); int count = 0; if (str.Length % 2 == 0) { for (int i = 1; i < str.Length; i += 2) { count += 9 * (int)Math.Pow(10, i - 1); } } else { for (int i = 1; i < str.Length - 1; i += 2) { ...
using System; class uneven { public static void Main() { String str = Console.ReadLine(); int count = 0; if (str.Length % 2 == 0) { for (int i = 1; i < str.Length; i += 2) { count += 9 * (int)Math.Pow(10, i - 1); } } else { for (int i = 1; i < str.Length - 1; i += 2) { ...
[["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 203], ["-", 12, 16, 12, 16, 31, 213, 63, 214, 205, 199], ["-", 12, 16, 12, 16, 31, 213, 63, 214, 0, 131], ["-", 12, 16, 12, 16, 31, 213, 63, 214, 141, 22], ["-", 0, 28, 0, 213, 63, 214, 205, 204, 205, 22], ["-", 0, 213, 63, 214, 205, 20...
8
169
using System; namespace Answer { class Program { public static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var digitNum = N.ToString().Length; var ans = 0; int init, last; var digit = 1; var lessThanN = true; while (lessThanN) { init = (int)Math.Pow(10, digit - ...
using System; namespace Answer { class Program { public static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var digitNum = N.ToString().Length; var ans = 0; int init, last; var digit = 1; var lessThanN = true; while (lessThanN) { init = (int)Math.Pow(10, digit - ...
[["+", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 93, 0, 94], ["+", 0, 52, 8, 196, 0, 57, 64, 93, 0, 35], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8...
8
147
using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int n = int.Parse(s); int len = s.Length; //桁数 int ret = 0; if (len == 1) { ret = 9; } else if (len == 2) { ret = 9; } else if (len == 3) { ret = n - 99 + 9; } else if (l...
using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int n = int.Parse(s); int len = s.Length; //桁数 int ret = 0; if (len == 1) { ret = n; } else if (len == 2) { ret = 9; } else if (len == 3) { ret = n - 99 + 9; } else if (l...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["-", 75, 57, 75, 57, 75, 57, 75, 57, 0, 121], ["-", 75, 57, 75, 57, 75, 57, 75, 57, 0, 24], ["-", 75, 57, 75, 57, 75, 57, 15, 16, 31, 22], ["-", 75, 57, 75, 57, 75, 57, 15, 16, 17, 60], ["-", 75, 57, 75, 57, 75, 57, 15, 16, 12, 2...
8
146
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; void calc() { cin = new...
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; void calc() { cin = new...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
767
using System; using System.Linq; namespace CSharp { class Program { public static void Main() { var N = int.Parse(Console.ReadLine()); var H = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var result = true; for (int i = N - 1; i > 0; i--) { if (H[i] + 1 < H[i - 1]) { resu...
using System; using System.Linq; namespace CSharp { class Program { public static void Main() { var N = int.Parse(Console.ReadLine()); var H = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var result = true; for (int i = N - 1; i > 0; i--) { if (H[i] + 1 < H[i - 1]) { resu...
[["+", 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
146
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
546
using System; using System.Linq; using System.Collections.Generic; namespace atcoder { class Program { static void Main(string[] args) { if (ABC136.BuildStairs()) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } } class ABC136 { public static bool BuildStairs() { int...
using System; using System.Linq; namespace atcoder { class Program { static void Main(string[] args) { if (ABC136.BuildStairs()) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } } class ABC136 { public static bool BuildStairs() { int n = Input.getInt(); long[] h ...
[["-", 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
335
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace ConsoleApp1 { class Program { static void Main(string[] args) { A(); } static void A() { var N = ReadInt(); var a = ReadSplitInt(); for (int i = a.Count - 1; i > 0; i--) { if (a[i] < a[i - 1] &...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace ConsoleApp1 { class Program { static void Main(string[] args) { A(); } static void A() { var N = ReadInt(); var a = ReadSplitLong(); for (int i = a.Count - 1; i > 0; i--) { if (a[i] < a[i - 1] ...
[["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 24], ["+", ...
8
753
using System; using System.Linq; class Program { static void Main(string[] args) { //入力 int N = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); // int[] H = new int[N]; // for (int i = 0; i < N; i++) { // H[i] = int.Parse(s.Split(' ')[i]); //} int[] H = Console.ReadL...
using System; using System.Linq; class Program { static void Main(string[] args) { //入力 int N = int.Parse(Console.ReadLine()); // string s = Console.ReadLine(); // int[] H = new int[N]; // for (int i = 0; i < N; i++) { // H[i] = int.Parse(s.Split(' ')[i]); //} int[] H = Console.Re...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3...
8
219
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { // const int MOD = 1000000007; static void Main(string[] args) { new Program().Solve(); } void Solve() { Scanner cin = new Scanner(); int n = cin....
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { // const int MOD = 1000000007; static void Main(string[] args) { new Program().Solve(); } void Solve() { Scanner cin = new Scanner(); int n = cin....
[["-", 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, 204, 205, 22], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["+", 0, 198, 0, 200, 0, 212, 0...
8
537
using System; using System.Linq; namespace ABC136_C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var H = Console.ReadLine().Split().Select(long.Parse).ToArray(); H.Reverse(); var ans = true; for (int i = 0; i < N - 1; i++) { if (H[i] < H[i + 1]...
using System; using System.Linq; namespace ABC136_C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var H = Console.ReadLine().Split().Select(long.Parse).ToArray(); var ans = true; for (int i = N - 1; i >= 1; i--) { if (H[i] < H[i - 1]) { H[i ...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-",...
8
155
using System; class ProgramC { static void Main(string[] args) { string input = Console.ReadLine(); int n = int.Parse(input); string[] input_b = Console.ReadLine().Split(' '); long[] b = new long[n]; for (int i = 0; i < n; i++) b[i] = long.Parse(input_b[i]); int count = 0; int tem...
using System; class ProgramC { static void Main(string[] args) { string input = Console.ReadLine(); int n = int.Parse(input); string[] input_b = Console.ReadLine().Split(' '); long[] b = new long[n]; for (int i = 0; i < n; i++) b[i] = long.Parse(input_b[i]); int count = 0; int tem...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
241
using System; using System.Collections.Generic; using System.Linq; using System.Diagnostics; class Program { static void Main(string[] args) { var sc = new Scanner(); var n = sc.nextInt(); var h = new int[n]; var gap = new int[n]; bool flag = false; bool ans = true; int tmp = 0; for...
using System; using System.Collections.Generic; using System.Linq; using System.Diagnostics; class Program { static void Main(string[] args) { var sc = new Scanner(); var n = sc.nextInt(); var h = new int[n]; var gap = new long[n]; bool flag = false; bool ans = true; long tmp = 0; f...
[["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 57, 75, 57, 64, 196, 0, 45], ["+", 0, 57, 75, 57, 64, 196, 0, 1, 0, 35], ["+", 75, 57, 64, 196, 0, 1, 0, 11,...
8
562
using System; using System.Collections.Generic; using System.Linq; namespace ABC136C { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var H = Console.ReadLine().Split().Select(int.Parse).ToArray(); bool ans = true; int min = H[0]; for (int i = 0; i < N -...
using System; using System.Collections.Generic; using System.Linq; namespace ABC136C { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var H = Console.ReadLine().Split().Select(int.Parse).ToArray(); bool ans = true; int min = H[0]; for (int i = 0; i < N -...
[["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["-", 12, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ...
8
170
using System; using System.Collections.Generic; using System.Linq; namespace test { class Program { static void Main(string[] args) { var N = ReadInt(); var H = ReadArrayInt(); var chk = H[0]; for (int i = 1; i < N; i++) { if (H[i] < chk) chk = H[i]; else if (H[i] - i > chk) { ...
using System; using System.Collections.Generic; using System.Linq; namespace test { class Program { static void Main(string[] args) { var N = ReadInt(); var H = ReadArrayInt(); var chk = H[0]; for (int i = 1; i < N; i++) { if (H[i] > chk) chk = H[i] - 1; else if (H[i] < chk) { ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 203], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 33], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["+"...
8
250
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClarss { public const long Giri = 1000000007; public static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] s = Input(); long max = -10; for (int i = 0; i < n; i++) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClarss { public const long Giri = 1000000007; public static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string[] s = Input(); long max = -10; for (int i = 0; i < n; i++) { ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8...
8
264
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace Atcoder { class Pair : IComparable { public int x; public int y; public Pair(int X, int Y) { x = X; y = Y; ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace Atcoder { class Pair : IComparable { public int x; public int y; public Pair(int X, int Y) { x = X; y = Y; ...
[["+", 64, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 64, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 205, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 1...
8
6,790
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace ABC136D { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); r...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace ABC136D { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); r...
[["-", 0, 213, 3, 4, 0, 28, 0, 74, 51, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 74, 51, 22]]
8
841
using System; namespace question4 { class Program { static void Main(string[] args) { string LR = "LR"; string str = Console.ReadLine(); int N = str.Length; int[] idx = new int[N]; int[] res = new int[N]; int reg = 0; int count = 0; int pos = 0; string state = "leftwing"; for ...
using System; namespace question4 { class Program { static void Main(string[] args) { string LR = "LR"; string str = Console.ReadLine(); int N = str.Length; int[] idx = new int[N]; int[] res = new int[N]; int reg = 0; int count = 0; int pos = 0; string state = "leftwing"; for ...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196...
8
550
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { var s = Input.ScanStr() + "R"; int Lcount = 0, Rcount = 0, start = 0, point = 0; for (int i = 0; i < s.Length - 1; i++) { if (s[i] == 'L') Lcount++; else ...
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { var s = Input.ScanStr() + "R"; int Lcount = 0, Rcount = 0, start = 0, point = 0; for (int i = 0; i < s.Length - 1; i++) { if (s[i] == 'L') Lcount++; else ...
[["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 213, 63, 214, 205, 22], ["+", 31, 23, 0, 16, 31, 213, 63, 214, 0, 131], ["+", 31, 23, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 31, 23, 0, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["+", 31, 23, 0, 16, 31, 213, 3, 4, 0, 21...
8
824
using System; class P { static void Main() { int n = int.Parse(Console.ReadLine()); double[] kachi = Array.ConvertAll(Console.ReadLine().Split(' '), double.Parse); Array.Sort(kachi); Array.Reverse(kachi); double sum = 0; for (int i = 0; i < n - 1; i++) { sum += kachi[i] * Math.P...
using System; class P { static void Main() { int n = int.Parse(Console.ReadLine()); double[] kachi = Array.ConvertAll(Console.ReadLine().Split(' '), double.Parse); Array.Sort(kachi); Array.Reverse(kachi); double sum = 0; for (int i = 0; i < n - 1; i++) { sum += kachi[i] * Math.P...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]]
8
142
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // 整数の入力 int N = int.Parse(Console.ReadLine()); // var s = Console.ReadLine (); // int[] numbers = new int[N]; float ans = 0; string[] input = Console.ReadLine().Split(' '); ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // 整数の入力 int N = int.Parse(Console.ReadLine()); // var s = Console.ReadLine (); // int[] numbers = new int[N]; float ans = 0; string[] input = Console.ReadLine().Split(' '); ...
[["+", 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, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8,...
8
252
using System; using System.Linq; class Program { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] V = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); double ans = V[0]; for (int i = N - 1; i < N; i++) { foreach (int Y in V) { ans = (ans +...
using System; using System.Linq; class Task6 { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] V = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); Array.Sort(V); double X = V[0]; for (int i = N - 1; i < N; i++) { foreach (int Y in V) { ...
[["-", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ...
8
125
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+...
8
549
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class AtCoderrr { static void Main(string[] args) { int n = int.Parse(ReadLine()); double[] s = ReadLine().Split(' ').Select(double...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class AtCoderrr { static void Main(string[] args) { int n = int.Parse(ReadLine()); double[] s = ReadLine().Split(' ').Select(double...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, ...
8
209
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC138D { class Program { static List<List<int>> ki; static int[] ans; static void Main(string[] args) { string[] NQ = Console.ReadLine().Split(' '); int N = int.Parse(NQ[0]); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC138D { class Program { static List<List<int>> ki; static int[] ans; static void Main(string[] args) { string[] NQ = Console.ReadLine().Split(' '); int N = int.Parse(NQ[0]); ...
[["-", 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, 213, 63, 214, 205, 199], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22],...
8
633
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { //* var exStdIn = new System.IO.StreamReader("stdin.txt"); System.Console.SetIn(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["-", 0, 212, 0, 230, 39, 232, 234, 232, 234, 22], ["-", 0, 212, 0, 230, 39, 232, 234, 232, 0, 131], ["-", 0, 212, 0, 230, 39, 232...
8
478
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var nq = Console.ReadLine().Split(' '); var n = int.Parse(nq[0]); var q = int.Parse(nq[1]); var tree = new List<Tree>(); tree.Add(new Tree(-1, 0)); for (var i = 1; i < n; i++)...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var nq = Console.ReadLine().Split(' '); var n = int.Parse(nq[0]); var q = int.Parse(nq[1]); var tree = new Dictionary<int, Tree>(); tree.Add(0, new Tree(-1, 0)); for (var i = ...
[["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 21], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, ...
8
339
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass { static void Main() { string s = ReadLine(); string t = ReadLine(); string S = s + s; var next = new long [26][]; for (int i = 0; i < 26; i++) { next[i...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass { static void Main() { string s = ReadLine(); string t = ReadLine(); string S = s + s; var next = new long [26][]; for (int i = 0; i < 26; i++) { next[i...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", ...
8
249
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Library; using static Library.Input; namespace AtCoderTemplate { class ProgramE { static void Main() { var s = Line; var t = Line; var counts = Enumerable.Range(0, 26).Select(_ => new List<int>(...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Library; using static Library.Input; namespace AtCoderTemplate { class ProgramE { static void Main() { var s = Line; var t = Line; var counts = Enumerable.Range(0, 26).Select(_ => new List<int>(...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["-", 12, 23, 0, 16, 12, 204, 206, 207, 0, 70], ["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["-", 12, 23, 0, 16, 12, 204, 206, 20...
8
518
using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { var s = Console.ReadLine(); var t = Console.ReadLine(); var posList = Enumerable.Range(0, 'z' - 'a' + 1) .Select(x => new List<int>()) .ToList...
using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { var s = Console.ReadLine(); var t = Console.ReadLine(); var posList = Enumerable.Range(0, 'z' - 'a' + 1) .Select(x => new List<int>()) .ToList...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["-", 3, 4, 0, 28, 0, 218, 8, 16,...
8
227
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); int[,] l = new int[s.Length, 26]; int[] count = new int[26...
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using System.IO; namespace SolutionCS { class Program { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); int[,] l = new int[s.Length, 26]; int[] count = new int[26...
[["+", 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, 18], ["+", 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
388
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { partial class Program { static void Main(string[] args) { //↓ var s = Console.ReadLine(); var t = Console.ReadLine(); var sset = new HashSet<char>(s); var tset = new HashSet<char>(t); if (!tset.All(tc =>...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { partial class Program { static void Main(string[] args) { //↓ var s = Console.ReadLine(); var t = Console.ReadLine(); var sset = new HashSet<char>(s); var tset = new HashSet<char>(t); if (!tset.All(tc =>...
[["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 20], ["+", 75, 196, 0, 57, 15, 16, 12, 214, 2...
8
398