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.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main() { Solve(); Console.ReadKey(); } static void Solve() { var N = IO.GetInt(); var A = IO.GetIntList(); var B = IO.GetIntLis...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main() { Solve(); Console.ReadKey(); } static void Solve() { var N = IO.GetInt(); var A = IO.GetIntList(); var B = IO.GetIntLis...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 93, 0, 94], ["+", ...
8
391
using System; using System.Linq; using System.Collections.Generic; public class Hello { public static void Main() { var num = int.Parse(Console.ReadLine()); var a = ReadList(); var b = ReadList(); var c = ReadList(); c.Add(0); int satisfy = 0; for (int i = 0; i < num; i++) { sati...
using System; using System.Linq; using System.Collections.Generic; public class Hello { public static void Main() { var num = int.Parse(Console.ReadLine()); var a = ReadList(); var b = ReadList(); var c = ReadList(); c.Add(0); int satisfy = 0; int before = 10000; for (int i = 0; i <...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 6...
8
178
using System; using System.Collections.Generic; using System.Linq; namespace abc140_b { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var arrayA = Console.ReadLine().Split(' ').Select(int.Parse).ToList(); var arrayB = Console.ReadLine().Split(' ').Select(int.Par...
using System; using System.Linq; namespace abc140_b { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var arrayA = Console.ReadLine().Split(' ').Select(int.Parse).ToList(); var arrayB = Console.ReadLine().Split(' ').Select(int.Parse).ToList(); var arrayC = Con...
[["-", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["-", 0, 198, 0, 200, 0, ...
8
205
using System; using System.Linq; namespace ABC140B { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var As = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); var Bs = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); var Cs = Cons...
using System; using System.Linq; namespace ABC140B { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var As = Console.ReadLine().Split().Select(x => int.Parse(x) - 1).ToArray(); var Bs = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); var Cs = ...
[["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 12, 203], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 2...
8
202
using System; namespace ABC140 { class B { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); Console.WriteLine(Math.Pow(N, 3)); int[] A = new int[N]; int[] B = new int[N]; int[] C = new int[N]; string[] input = Console.ReadLine().Split(' '); for (int i = 0; i < N;...
using System; namespace ABC140 { class B { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] A = new int[N]; int[] B = new int[N]; int[] C = new int[N]; string[] input = Console.ReadLine().Split(' '); for (int i = 0; i < N; i++) { A[i] = int.Parse(input[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], ["-", 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], ...
8
317
using System; using System.Collections.Generic; using System.Linq; namespace Buffet { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split().Select(x => int.Parse(x)); var B = Console.ReadLine().Split().Select(x => int.Parse(x)); va...
using System; using System.Collections.Generic; using System.Linq; namespace Buffet { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split().Select(x => int.Parse(x)); var B = Console.ReadLine().Split().Select(x => int.Parse(x)); va...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["-", 15, 16, 31, 16, 12, 16, 31, 214, 205, 22], ["-", 15, 16, 31, 16, 12, 16, 31, 214, 0, 131], ["-", 15, 16, 31, 16, 12, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 25], ["+", 0, 210, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 57,...
8
231
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static int N; static int[] A; static int[] B; static int[] C; static void INPUT() { N = NextInt(); A = LineInt();...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static int N; static int[] A; static int[] B; static int[] C; static void INPUT() { N = NextInt(); A = LineInt();...
[["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, ...
8
518
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.JSC_2019_qual { class C { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.JSC_2019_qual { class C { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
448
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { const long MOD = 1000000007; static int[,] ans; static void Main(string[] args) { Scanner cin = new Scanner(); int n = cin.Int(); ans = new ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { const long MOD = 1000000007; static int[,] ans; static void Main(string[] args) { Scanner cin = new Scanner(); int n = cin.Int(); ans = new ...
[["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296], ["+", 3, 4, 0, 28, 0, 283, 0, 284, 0, 45], ["+", 0, 28, 0, 283, 0, 284, 0, 204, 205, 22], ...
8
631
using System; namespace newEx { class Program { static void Main(string[] args) { // string[] l = Console.ReadLine().Split(' '); // int p = int.Parse(l[0]); // int q = int.Parse(l[1]); // int r = int.Parse(l[2]); string l = Console.ReadLine(); int r = int.Parse(l); l = Console.ReadLine()...
using System; namespace newEx { class Program { static void Main(string[] args) { // string[] l = Console.ReadLine().Split(' '); // int p = int.Parse(l[0]); // int q = int.Parse(l[1]); // int r = int.Parse(l[2]); string l = Console.ReadLine(); int r = int.Parse(l); l = Console.ReadLine()...
[["-", 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, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-",...
8
119
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC138A { class Program { static void Main(string[] args) { int a; String s; a = int.Parse(Console.ReadLine()); s = Console.ReadLine(); char[] cs = s.ToCharArray(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC138A { class Program { static void Main(string[] args) { int a; String s; a = int.Parse(Console.ReadLine()); s = Console.ReadLine(); char[] cs = s.ToCharArray(); ...
[["-", 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, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131]]
8
120
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); if (a >= 3200) { Console.WriteLine(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); string s = Console.ReadLine(); if (a <...
[["+", 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
106
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC_138A { class Program { static void Main(string[] args) { int a; a = int.Parse(Console.ReadLine()); if (a >= 3200) Console.WriteLine("pink"); else Console.W...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC_138A { class Program { static void Main(string[] args) { int a; a = int.Parse(Console.ReadLine()); String s = Console.ReadLine(); if (a < 3200) Console.WriteLine...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["+", 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
93
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC138A { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); string n; n = Console.ReadLine(); if (a < 3200) Console.WriteLine(n); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC138A { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); string n; n = Console.ReadLine(); if (a < 3200) Console.WriteLine("red...
[["-", 64, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 75, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
100
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner sc = new Scaner(); write wr = new write();...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner sc = new Scaner(); write wr = new write();...
[["+", 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, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 205, 22...
8
534
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.B { static class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = ...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.B { static class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = ...
[["-", 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, 16, 31, 74, 39, 199], ["-", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25], ["-", 3, 4, 0, 28, 0, 16, 12, 74, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 12, 74, 39, 199], ["-", 3, ...
8
540
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { public class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); var s = Console.ReadLine().Split(' '); double x = 0; for (int i = 0; i < a; i++) { x += (double)1 / int.Pars...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { public class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); var s = Console.ReadLine().Split(' '); double x = 0; for (int i = 0; i < a; i++) { x += (double)1 / int.Pars...
[["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["-", 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
121
using System; using System.Text.RegularExpressions; class Program { static void Main(string[] args) { int num; Double sum = 0, len = 1; int.TryParse(Console.ReadLine(), out num); foreach (string x in Regex.Split(Console.ReadLine(), @"\s+")) { sum += Convert.ToDouble(x); len *= Convert.ToD...
using System; using System.Text.RegularExpressions; class Program { static void Main(string[] args) { int num; Double sum = 0; int.TryParse(Console.ReadLine(), out num); foreach (string x in Regex.Split(Console.ReadLine(), @"\s+")) { sum += 1 / Convert.ToDouble(x); }; Console.WriteLine(...
[["-", 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, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 14...
8
103
using System; using System.Linq; namespace Main { class Program { static void Main(string[] args) { int i; var temp = 0.0; var n = int.Parse(Console.ReadLine()); var A_temp = Console.ReadLine().Split(); var a = new double[n]; for (i = 0; i < n; i++) { a[i] = double.Parse(Console.ReadLin...
using System; using System.Linq; namespace Main { class Program { static void Main(string[] args) { int i; var temp = 0.0; var n = int.Parse(Console.ReadLine()); var A_temp = Console.ReadLine().Split(' '); var a = new double[n]; for (i = 0; i < n; i++) { a[i] = double.Parse(A_temp[i]); ...
[["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 104], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["-", 0, 1, 0, 11, 12, 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, 25], ["+", 12, 2...
8
137
using System; using System.Collections.Generic; // list用 using System.Text.RegularExpressions; //正規表現用 using System.Text; // StringBuilder用 using System.Collections; //ハッシュテーブル用 using System.Linq; //デリゲータの使い方をマスターしたい class Program { Hashtable ht = new Hashtable(); static List<int...
using System; using System.Collections.Generic; // list用 using System.Text.RegularExpressions; //正規表現用 using System.Text; // StringBuilder用 using System.Collections; //ハッシュテーブル用 using System.Linq; //デリゲータの使い方をマスターしたい class Program { Hashtable ht = new Hashtable(); static List<dou...
[["-", 0, 124, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 124, 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, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0...
8
321
using System; using System.Linq; using System.Collections.Generic; public class AtCoderC { static void Main() { int n = int.Parse(Console.ReadLine()); int[] b = new int[n - 1]; { var line = Console.ReadLine(); var words = line.Split(' '); for (int i = 0; i < n; i++) { b[i] = int...
using System; using System.Linq; using System.Collections.Generic; public class AtCoderC { static void Main() { int n = int.Parse(Console.ReadLine()); int[] b = new int[n - 1]; { var line = Console.ReadLine(); var words = line.Split(' '); for (int i = 0; i < n - 1; i++) { b[i] =...
[["+", 0, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 0, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22...
8
178
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(); int[] bList = ReadLineIntArray(); int[] aList = new int[n]; for (int i = 0; i < n; i++) { if (i == 0) { ...
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(); int[] bList = ReadLineIntArray(); int[] aList = new int[n]; for (int i = 0; i < n; i++) { if (i == 0) { ...
[["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["...
8
659
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 = int.Parse(input[1]); var S = Console.ReadLine().ToCharArray(); var before = ""; var now = ""; ...
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 = int.Parse(input[1]); var S = Console.ReadLine().ToCharArray(); var before = ""; var now = ""; ...
[["+", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 3, 4, 0, 28, 0, 41, 64, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 41, 64, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 41, 64, 16, 12, 203], ["+", 0, 213, 3,...
8
267
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } static public List<long> S...
[["-", 0, 200, 0, 212, 0, 16, 31, 213, 63, 22], ["-", 0, 212, 0, 16, 31, 213, 3, 4, 0, 24], ["-", 0, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 212, 0, 16, 31, 213, 3, 4, 0, 21], ["-", 0, 212, 0, 16, 31, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 64, 1, 0, 241, 0, 22], ["-", 0, 195, 8, 196, 0, 57, 64, 1, 0, 35], ["-", 8, ...
8
254
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; namespace AtCoder { class Program { static long[] Sarray() { return ReadLine().Trim().Split().Select(long.Parse).ToArray(); } static List<long> Slist() { return ReadLine().T...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; namespace AtCoder { class Program { static long[] Sarray() { return ReadLine().Trim().Split().Select(long.Parse).ToArray(); } static List<long> Slist() { return ReadLine().T...
[["-", 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, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 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
249
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderD { static void Main() { int n; int k; { var line = Console.ReadLine(); var words = line.Split(' '); n = int.Parse(words[0]); k = int.Parse(words[1]); } string s = Co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderD { static void Main() { int n; int k; { var line = Console.ReadLine(); var words = line.Split(' '); n = int.Parse(words[0]); k = int.Parse(words[1]); } string s = Co...
[["-", 0, 57, 75, 196, 0, 57, 75, 57, 0, 121], ["-", 0, 57, 75, 196, 0, 57, 75, 57, 0, 24], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 85], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 12, 203], ["-", 75, 196, 0, 57, 75, 57, 15, 16, 17, 60], ["-", 75, 196, 0, 57, 75, 57, 15, 16, 12, ...
8
258
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Text; class Procon { static void Main(string[] agrs) { int N = Int(); int K = Int(); char[] S = Chars(); int ret = 0; int num = 1; int tmp...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Text; class Procon { static void Main(string[] agrs) { int N = Int(); int K = Int(); char[] S = Chars(); int ret = 0; int num = 1; int tmp...
[["-", 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], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203...
8
763
using System; using System.Collections; 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 Consol...
using System; using System.Collections; 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 Consol...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 0, 1...
8
1,472
namespace AtCoder { using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static Util; class AtCoder { /*------------------------------------------------------------------*/ void Solve() { int N, K; ...
namespace AtCoder { using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static Util; class AtCoder { /*------------------------------------------------------------------*/ void Solve() { int N, K; ...
[["-", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 8, 196, 0, 57, 75, 196, 0, 197, 0, 35], ["-", 75, 196, 0, 197, 0, 198, 39, 216,...
8
2,674
using System; using System.Collections.Generic; using System.Linq; namespace Test01 { class Program { static void Main(string[] args) { int[] input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int N = input[0]; int K = input[1]; string S = Console.ReadLine(); int ...
using System; using System.Collections.Generic; using System.Linq; namespace Test01 { class Program { static void Main(string[] args) { int[] input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int N = input[0]; int K = input[1]; string S = Console.ReadLine(); int ...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 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], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, ...
8
189
using System; using System.Collections.Generic; using System.Linq; public class ABC0140_A4v1 { private static void Main(string[] args) { var inputs = new List<string>() { Console.ReadLine().Trim(), Console.ReadLine().Trim(), }; Prepare(inputs); } private static void Prepare(List<string>...
using System; using System.Collections.Generic; using System.Linq; public class ABC0140_A4v1 { private static void Main(string[] args) { var inputs = new List<string>() { Console.ReadLine().Trim(), Console.ReadLine().Trim(), }; Prepare(inputs); } private static void Prepare(List<string> ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 57, 64, 1, 0, 223, 0, 22], ["+", 8, 196, 0, 57, 64, 1, 0, 223, 0, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, ...
8
269
using System; using System.Collections.Generic; using System.Linq; public class ABC0140_A4v1 { private static void Main(string[] args) { var inputs = new List<string>() { Console.ReadLine().Trim(), Console.ReadLine().Trim(), }; Prepare(inputs); } private static void Prepare(List<string>...
using System; using System.Collections.Generic; using System.Linq; public class ABC0140_A4v1 { private static void Main(string[] args) { var inputs = new List<string>() { Console.ReadLine().Trim(), Console.ReadLine().Trim(), }; Prepare(inputs); } private static void Prepare(List<string>...
[["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["-", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["-", 15, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["-", 15, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["-", 15, 16, 31, 16, 31, 23, 0, 16, 12, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 23, 0, 25], ...
8
269
using System; using System.Linq; using System.Collections.Generic; class ProgramD { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int k = int.Parse(input[1]); string s = Console.ReadLine(); List<int> LR = new List<int>(); int...
using System; using System.Linq; using System.Collections.Generic; class ProgramD { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int k = int.Parse(input[1]); string s = Console.ReadLine(); List<int> LR = new List<int>(); int...
[["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 46], ["+", 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, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["...
8
267
using System; using System.Linq; namespace abc140_d { static class Program { static void Main(string[] args) { var items = Console.ReadLine().ToIntArray(); // 人数 var n = items[0]; // 回転させる回数 var k = items[1]; // 向いている方向 var s = Console.ReadLine(); // 向いている方向が同じ人たちの列が最も長くなるところを回転させたい ...
using System; using System.Linq; namespace abc140_d { static class Program { static void Main(string[] args) { var items = Console.ReadLine().ToIntArray(); // 人数 var n = items[0]; // 回転させる回数 var k = items[1]; // 向いている方向 var s = Console.ReadLine(); // 向いている方向が同じ人たちの列が最も長くなるところを回転させたい ...
[["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 12, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 200, 0, 212, 0, 16, 12, 16, 31, 22], ["-", 0, 200, 0, 212, 0, 16, 12, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, ...
8
260
using System; namespace D { class Program { static void Main(string[] args) { var NK = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = NK[0]; var K = NK[1]; var S = Console.ReadLine(); var happiness = 0; if (S[0] == 'R' && S[1] == 'R') happiness++; if (S[N - 1] ...
using System; namespace D { class Program { static void Main(string[] args) { Console.WriteLine((solver())); } static int solver() { var NK = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = NK[0]; var K = NK[1]; var S = Console.ReadLine(); if (N == 1) return 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], ["+", 0, 213, 3, 4, 0, 28, 0, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 23, 0, 213, 63, 22], ["+", 0, 28, 0, 23, 0, 213, 3, 4, 0, 24], ["+", 0, 2...
8
215
using System; using System.Collections.Generic; namespace ConsoleApp1 { class Program { static void Main(string[] args) { // 各種変数の読み込み var its = Readints(); int n = its[0]; int k = its[1]; var muki = ReadLR(); int hap = 0; if (muki[0] & muki[1]) { hap++; } if (!muki[muki.Le...
using System; using System.Collections.Generic; namespace ConsoleApp1 { class Program { static void Main(string[] args) { // 各種変数の読み込み var its = Readints(); int n = its[0]; int k = its[1]; var muki = ReadLR(); if (n == 1) { Console.WriteLine(0); } else { int hap = 0; if...
[["+", 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,312
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class ABC { // long[] sp = Console.ReadLine().Split().Select(long // .Parse).ToArray(); int[] sp = // Console.ReadLine().Split().Select(int.Parse).ToArray(); int N...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class ABC { // long[] sp = Console.ReadLine().Split().Select(long // .Parse).ToArray(); int[] sp = // Console.ReadLine().Split().Select(int.Parse).ToArray(); int N...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 212, 0, 16, 31, 16, 31, 204, 205, 22], ["-", 0, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 200, 0, 212, 0, 16, 31,...
8
276
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Program { static void Main(string[] args) { string S = Console.ReadLine(); string T = Console.ReadLine(); int a = 0; for (int i = 1; i < 3; i++) { if (...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Program { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); int a = 0; for (int i = 0; i < 3; i++) { ...
[["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 57, 15, 16, 31, 20...
8
115
using System; using System.Collections.Generic; using System.Linq; using System.IO; using SB = System.Text.StringBuilder; // using System.Threading.Tasks; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; using System.Numerics; using static...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using SB = System.Text.StringBuilder; // using System.Threading.Tasks; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; using System.Numerics; using static...
[["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["-", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 7, 0, 35], ["-", 0, 7...
8
906
using System; class Program { static void Main(string[] args) { int n = 0; string[] yohou = Console.ReadLine().Split(' '); string[] tenki = Console.ReadLine().Split(' '); for (int i = 0; i < 3; i++) { if (yohou[i] == tenki[i]) n++; } Console.WriteLine(n); } }
using System; class Program { static void Main(string[] args) { int n = 0; string yohou = Console.ReadLine(); string tenki = Console.ReadLine(); for (int i = 0; i < 3; i++) { if (yohou[i] == tenki[i]) n++; } Console.WriteLine(n); } }
[["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 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, 252...
8
97
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner sc = new Scaner(); write wr = new write();...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner sc = new Scaner(); write wr = new write();...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 1, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, ...
8
979
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.Flush(...
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.Flush(...
[["+", 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
2,358
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { Scanner cin = new Scanner(); long n = cin.Long(); long ans = (n - 1) * (n - 2) / 2; Console.WriteLine(ans)...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { Scanner cin = new Scanner(); long n = cin.Long(); long ans = n * (n - 1) / 2; Console.WriteLine(ans); } ...
[["-", 0, 212, 0, 16, 31, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["-", 0, 212, 0, 16, 31, 16, 31, 23, 0, 25], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 12, 203]]
8
449
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; class Myon { public Myon() {} public static int Main() { cin = new Scanner(); new Myon().calc(); return 0; } static Scanner cin; // メンバ変数---...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; class Myon { public Myon() {} public static int Main() { cin = new Scanner(); new Myon().calc(); return 0; } static Scanner cin; // メンバ変数---...
[["+", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 0, 208, 0, 235, 8, 201, 0, 195, 141, 22], ["+", 0, 235, 8, 201, 0, 195, 54, 55, 0, 24], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 141, 22], ["+", 0, 235, 8, 201, 0, 195, 54, 55, 0, 25], ["+", 0, 235, 8, 201, 0, 195, 8, 19...
8
573
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) { long n = long.Parse(ReadLine()); decimal divide = n / 2; long su...
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) { long n = long.Parse(ReadLine()); decimal divide = (decimal)(n / 2D);...
[["+", 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, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 212, 0, 74, 51, 23, 0, 16, 12, 250], ["+", 0, 200, 0, 212, 0, 74, 51, 23, 0, 25],...
8
102
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, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, ...
8
694
using System; using System.Linq; using System.Collections.Generic; using E = System.Linq.Enumerable; public class Program { public static void Main() { var n = int.Parse(Console.ReadLine()); var seqA = new int [n + 1][]; for (int i = 1; i < seqA.Length; ++i) { seqA[i] = Console.ReadLine().Split()....
using System; using System.Linq; using System.Collections.Generic; using E = System.Linq.Enumerable; public class Program { public static void Main() { var n = int.Parse(Console.ReadLine()); var seqA = new int [n + 1][]; for (int i = 1; i < seqA.Length; ++i) { seqA[i] = Console.ReadLine().Split()....
[["-", 0, 212, 0, 41, 64, 213, 3, 4, 0, 21], ["-", 0, 41, 64, 213, 3, 4, 0, 28, 0, 203], ["-", 0, 235, 8, 201, 0, 195, 54, 55, 0, 21], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 20...
8
614
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; using static MyIO; public class E { public static void Main() => (new Solver()).Solve(); } public class Solver { public void Solve() { int N = GetInt(); int[,] A = new int[N, N - 1]; for (in...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; using static MyIO; public class E { public static void Main() => (new Solver()).Solve(); } public class Solver { public void Solve() { int N = GetInt(); int[,] A = new int[N, N - 1]; for (in...
[["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 45], [...
8
909
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { int n = int.Parse(Console.ReadLine()); int[,] matrix = new int[n, n - 1]; //行列 long answer = 0; for (int i = 0; i < n; i++) //それぞれの行 { int[] nums...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { int n = int.Parse(Console.ReadLine()); int[,] matrix = new int[n, n - 1]; //行列 long answer = 0; for (int i = 0; i < n; i++) //それぞれの行 { int[] nums...
[["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 31, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 25], ["+", 64, 1, 0, 213, 3, 4, 0, 28, 0, 203], [...
8
368
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using CS = System.Runtime.CompilerServices; // using System.Diagnostics; using static System.Math; using ll = System.Int64; using static Contest_F.Lib_IO; using static Contest_F.Lib_Minifunc; namespace Cont...
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using CS = System.Runtime.CompilerServices; // using System.Diagnostics; using static System.Math; using ll = System.Int64; using static Contest_F.Lib_IO; using static Contest_F.Lib_Minifunc; namespace Cont...
[["+", 0, 287, 0, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 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, 196, 0, 287, 0, 196, 0, 197, 0, 35], ["-", 0, 287, 0, 196, 0, 52, 8, 196, 0, 46], ["-", 0, 287, 0, 196, 0, 197, 0, 198, 3...
8
4,535
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using static System.Math; using static System.Array; using static AtCoder.IO_ShortCut; using static AtCoder.Tool; namespace AtCoder { class AC { // const int MOD = 1000000007; const int MOD ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using static System.Math; using static System.Array; using static AtCoder.IO_ShortCut; using static AtCoder.Tool; namespace AtCoder { class AC { // const int MOD = 1000000007; const int MOD ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 0,...
8
1,515
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; static void Main() { ...
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; static void Main() { ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 0, 21], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, ...
8
1,175
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long m = sc.NextLong(); long d = sc.NextLong(); long answer = 0; for (int i = 10; i <= d; i++) { if ((i / 10) * (i % 10) <= m) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long m = sc.NextLong(); long d = sc.NextLong(); long answer = 0; for (int i = 10; i <= d; i++) { long d1 = i % 10; long d10 = i ...
[["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 15, 16, 31, 16, 31, 23, 0, 16, 17, 85], [...
8
401
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner sc = new Scaner(); write wr = new write();...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner sc = new Scaner(); write wr = new write();...
[["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 15, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["+", 15, 16, 31, 16, 31, 16, 12, 23, 0, 25]...
8
980
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace jsc2019_A { class Program { static void Main(string[] args) { var MD = Console.ReadLine().Split().Select(int.Parse).ToArray(); var M = MD[0]; var D = MD[1]; var ans = 0; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace jsc2019_A { class Program { static void Main(string[] args) { var MD = Console.ReadLine().Split().Select(int.Parse).ToArray(); var M = MD[0]; var D = MD[1]; var ans = 0; ...
[["+", 0, 57, 15, 16, 31, 16, 31, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 15, 16, 12, 16, 31, 214...
8
248
using System; class Program { static void Main(string[] args) { string[] input1 = Console.ReadLine().Split(' '); int M = int.Parse(input1[0]); int D = int.Parse(input1[1]); int count = 0; int d1 = 0; int d10 = 0; for (int i = 1; i <= M; i++) { for (int j = 10; j <= D; j++) { ...
using System; class Program { static void Main(string[] args) { string[] input1 = Console.ReadLine().Split(' '); int M = int.Parse(input1[0]); int D = int.Parse(input1[1]); int count = 0; int d1 = 0; int d10 = 0; for (int i = 1; i <= M; i++) { for (int j = 10; j <= D; j++) { ...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", ...
8
154
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 md = ReadInts(); var ans = 0; for (int i = 1; i <= md[0]; i++) { fo...
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 md = ReadInts(); var ans = 0; for (int i = 1; i <= md[0]; i++) { fo...
[["-", 0, 57, 64, 196, 0, 1, 0, 213, 63, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 28, 0, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 28, 0, 16, 31, 16, 31, 16, 17, 72], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["-", 3, ...
8
686
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JSC2019 { class Program { static void Main(string[] args) { int[] md = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] mdd = new int[3]; int ans = 0; for (int i ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JSC2019 { class Program { static void Main(string[] args) { int[] md = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] mdd = new int[3]; int ans = 0; for (int i ...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+...
8
154
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { #if DEBUG // MyDebugger.MakeTestCase("../TextFile2.txt"); MyDebugger.Test(process, "../TextFile1.txt"); #else object ret = pro...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { #if DEBUG // MyDebugger.MakeTestCase("../TextFile2.txt"); MyDebugger.Test(process, "../TextFile1.txt"); #else object ret = pro...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25],...
8
203
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProgramingStudying2 { class Program { static void Main(string[] args) { var nk = Console.ReadLine().Split(); var n = int.Parse(nk[0]); var k = long.Parse(nk[1]); var a = Console.ReadLine().Split().Select(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProgramingStudying2 { class Program { static void Main(string[] args) { var nk = Console.ReadLine().Split(); var n = int.Parse(nk[0]); var k = long.Parse(nk[1]); var a = Console.ReadLine().Split().Select(...
[["-", 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
317
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...
[["-", 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, 12, 16, 31, 23, 0, 24], ["-", 0, 16, 12, 16, 31, 23, 0, 74, 0, 24], ["-", 0, 16, 12, 16, 31, 23, 0, 74, 39, 199], ["-", 0, 16, 12, 16, 31, 23, 0, 74, 0, 25], ["-...
8
228
using System; namespace pro { class MainClass { public static void Main() { string[] str1 = Console.ReadLine().Split(' '); int n = int.Parse(str1[0]); long k = int.Parse(str1[1]); int[] a = new int[n]; string[] str2 = Console.ReadLine().Split(' '); for (int i = 0; i < n; i++) { a[i] = i...
using System; namespace pro { class MainClass { public static void Main() { string[] str1 = Console.ReadLine().Split(' '); int n = int.Parse(str1[0]); long k = int.Parse(str1[1]); int[] a = new int[n]; string[] str2 = Console.ReadLine().Split(' '); for (int i = 0; i < n; i++) { a[i] = i...
[["+", 8, 201, 0, 195, 8, 196, 0, 287, 0, 292], ["+", 0, 195, 8, 196, 0, 287, 0, 196, 0, 45], ["-", 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], ["+", 31,...
8
324
using System; using System.Collections.Generic; // list用 using System.Text.RegularExpressions; //正規表現用 using System.Text; // StringBuilder用 using System.Collections; //ハッシュテーブル用 using System.Linq; class Program { Hashtable ht = new Hashtable(); static List<long> s = new List<long...
using System; using System.Collections.Generic; // list用 using System.Text.RegularExpressions; //正規表現用 using System.Text; // StringBuilder用 using System.Collections; //ハッシュテーブル用 using System.Linq; class Program { Hashtable ht = new Hashtable(); static List<long> s = new List<long...
[["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 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, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 12, 16, 31, 23, 0, 16...
8
902
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { public struct Pair { public int x, y; public Pair(int x, int y) { this.x = x; this.y = y; } } public static void Solve() { int N = NextInt(); long K = NextLong(); int[] A...
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { public struct Pair { public int x, y; public Pair(int x, int y) { this.x = x; this.y = y; } } public static void Solve() { int N = NextInt(); long K = NextLong(); int[] A...
[["+", 31, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+",...
8
567
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; using System.Diagnostics; using static System.Math; using static System.Array; using static AtCoder.Sc_out; using static AtCoder.To...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; using System.Diagnostics; using static System.Math; using static System.Array; using static AtCoder.Sc_out; using static AtCoder.To...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
3,454
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 n = ni(); var s = ns(); bool fl...
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 n = ni(); var s = ns(); bool fl...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ...
8
1,273
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_s = Conso...
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_s = Console.ReadLin...
[["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 25...
8
140
using System; using System.Linq; namespace ABC139 { class Program { static void Main() { var S = Console.ReadLine(); var T = Console.ReadLine(); var ans = 0; for (int i = 0; i < 3; i++) if (S[i] == T[i]) ans++; } } }
using System; using System.Linq; namespace ABC139 { class Program { static void Main() { var S = Console.ReadLine(); var T = Console.ReadLine(); var ans = 0; for (int i = 0; i < 3; i++) if (S[i] == T[i]) ans++; Console.WriteLine(ans); } } }
[["+", 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
75
using System; using System.Linq; class A { static void Main() { var s = Console.ReadLine(); var t = Console.ReadLine(); Console.WriteLine(new int [s.Length].Count(i => s[i] == t[i])); } }
using System; using System.Linq; class A { static void Main() { var s = Console.ReadLine(); var t = Console.ReadLine(); Console.WriteLine(Enumerable.Range(0, s.Length).Count(i => s[i] == t[i])); } }
[["-", 0, 28, 0, 213, 63, 214, 205, 227, 0, 228], ["-", 0, 213, 63, 214, 205, 227, 39, 224, 39, 199], ["-", 63, 214, 205, 227, 39, 224, 225, 226, 0, 70], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 21...
8
65
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0031 { class Program { static void Main(string[] args) { var str = Console.ReadLine(); int A = int.Parse(str.Split(' ')[0]); int B = int.Parse(str.Split(' ')[1]); int r...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0031 { class Program { static void Main(string[] args) { var str = Console.ReadLine(); int A = int.Parse(str.Split(' ')[0]); int B = int.Parse(str.Split(' ')[1]); int r...
[["-", 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], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 12, 22], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["...
8
143
using System; class main { static void Main(string[] args) { string[] s = Console.ReadLine().Split(" "); int tap = int.Parse(s[0]) - 1; int sockets = int.Parse(s[1]); for (int i = 1; i != 0; i++) { if (tap * i + 1 >= sockets) { Console.Write(i); break; } } } }
using System; class main { static void Main(string[] args) { string[] s = Console.ReadLine().Split(" "); int tap = int.Parse(s[0]) - 1; int sockets = int.Parse(s[1]); if (sockets == 1) { Console.Write("0"); return; } for (int i = 1; i != 0; i++) { if (tap * i + 1 >= sockets...
[["+", 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
101
using System; using System.Linq; namespace b { class Program { static void Main(string[] args) { var ln = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var a = ln[0]; var b = ln[1]; decimal ans = 1; if (a < b) { decimal x = b - a; ans += Math.Ceiling(x / (a - 1)...
using System; using System.Linq; namespace b { class Program { static void Main(string[] args) { var ln = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var a = ln[0]; var b = ln[1]; decimal ans = 0; if (b > 1) { ans = 1; if (a < b) { decimal x = b - a; ...
[["+", 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, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 20...
8
117
using System; namespace Sample { class Sample { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int A = int.Parse(str[0]); int B = int.Parse(str[1]); int count = B - A; int ans = 1; while (count > 0) { count++; ans++; count = count - A; } ...
using System; namespace Sample { class Sample { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int A = int.Parse(str[0]); int B = int.Parse(str[1]); int count = B - A; int ans; if (B == 1) { ans = 0; } else { ans = 1; while (count > 0) { ...
[["+", 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, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25]...
8
105
using System; using System.Collections.Generic; using System.Linq; namespace competitive_programming { public class Program { static void Main(string[] args) { var sep = ' '; var cin = new ConsoleInput(Console.In, sep); var program = new Program(); program.Solve(cin); } private void Solve(Consol...
using System; using System.Collections.Generic; using System.Linq; namespace competitive_programming { public class Program { static void Main(string[] args) { var sep = ' '; var cin = new ConsoleInput(Console.In, sep); var program = new Program(); program.Solve(cin); } private void Solve(Consol...
[["-", 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, 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, 1...
8
781
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.B { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var inputs = Read...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.B { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var inputs = Read...
[["+", 15, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 15, 16, 31, 16, 31, 16, 31, 23, 0, 25], ["-", 75, 57, 75, 57, 15, 16, 31, 16, 17, 33], ["+", 75, 57, 75, 57, 15, 16, 31, 16, 17, 72], ["-", 8, 201, 0, 195, 8, 196, 0, 37, 0, ...
8
264
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Library; using static Library.Input; namespace AtCoderTemplate { class ProgramB { static void Main() { int a = NextInt, b = NextInt; System.Console.WriteLine((b - 1) / a + 1); } } } namespace Li...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Library; using static Library.Input; namespace AtCoderTemplate { class ProgramB { static void Main() { int a = NextInt, b = NextInt; int tmp = 1, count = 0; while (tmp < b) { tmp = tmp - ...
[["+", 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], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0...
8
289
using System; class c { static void Main() { var ab = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int a = ab[0], b = ab[1]; Console.WriteLine((b + 1) / (a - 1)); } }
using System; class c { static void Main() { var ab = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int a = ab[0], b = ab[1]; Console.WriteLine(Math.Ceiling((decimal)(b - 1) / (a - 1))); } }
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 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], ["-", 0, 28, ...
8
68
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace tapp { class Program { static void Main(string[] args) { string num = Console.ReadLine(); String[] input = num.Split(' '); int A = Convert.ToInt32(input[0]); int B = Convert.T...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace tapp { class Program { static void Main(string[] args) { string num = Console.ReadLine(); String[] input = num.Split(' '); int A = Convert.ToInt32(input[0]); int B = Convert.T...
[["-", 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
130
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp21 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = Convert.ToInt32(input[0]); int b = Convert.ToInt32(input[1...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp21 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = Convert.ToInt32(input[0]); int b = Convert.ToInt32(input[1...
[["-", 8, 196, 0, 52, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 52, 15, 16, 31, 16, 17, 48], ["-", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 72], ["+", 0, ...
8
134
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc139_b { 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 tap...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc139_b { 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 tap...
[["-", 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, 22], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["-", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["-", ...
8
160
using System; namespace B { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); double cnt = Math.Ceiling((double)B / A); Console.WriteLine(cnt); Console.Read(); } } }
using System; namespace B { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); double cnt = Math.Ceiling((double)(B - 1) / (A - 1)); Console.WriteLine(cnt); Console.Read(); } } }
[["+", 0, 28, 0, 16, 31, 74, 51, 23, 0, 24], ["+", 0, 16, 31, 74, 51, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 74, 51, 23, 0, 16, 12, 203], ["+", 0, 28, 0, 16, 31, 74, 51, 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, ...
8
94
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc139_b { class Program { static void Main(string[] args) { string[] kazu = Console.ReadLine().Split(' '); int A = int.Parse(kazu[0]); int B = int.Parse(kazu[1]); int consent...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc139_b { class Program { static void Main(string[] args) { string[] kazu = Console.ReadLine().Split(' '); int A = int.Parse(kazu[0]); int B = int.Parse(kazu[1]); int consent...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 64, 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], ["+"...
8
159
using System; class Prog { static void Main() { int[] ls = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int a = ls[0]; int b = ls[1]; int i = 0; while (a + (a - 1) * i - b < 0) { i++; } Console.WriteLine(i + 1); } }
using System; class Prog { static void Main() { int[] ls = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int a = ls[0]; int b = ls[1]; int i = 0; while (a + (a - 1) * i - b < 0) { i++; } if (b != 1) { Console.WriteLine(i + 1); } else { 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, 79], ["+", 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
92
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { var AB = Console.ReadLine().Split().Select(s => int.Parse(s)).ToArray(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { var AB = Console.ReadLine().Split().Select(s => int.Parse(s)).ToArray(); ...
[["+", 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
156
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { public const ulong mod = 1000000007; static void Main(string[] args) { var ab = Input3(); var ans = 1; var sct = ab[0]; while (sct < ab[...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_solve { class Program { public const ulong mod = 1000000007; static void Main(string[] args) { var ab = Input3(); var ans = 1; var sct = ab[0]; while (sct < ab[...
[["+", 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
333
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.IO.Pipes; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCorders { public class Program { static void Main(string[] args) { ...
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.IO.Pipes; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCorders { public class Program { static void Main(string[] args) { ...
[["+", 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, 131], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 14...
8
168
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { Scanner cin = new Scanner(); int a = cin.Int(); int b = cin.Int(); int ans = 0; while (ans * (a - 1) + ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { Scanner cin = new Scanner(); int a = cin.Int(); int b = cin.Int(); if (b == 1) { Console.WriteLine(0)...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 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
467
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static _20200410.abc139_b.Cin; using static _20200410.abc139_b.Util; // using Pair = System.ValueTuple<long, long>; /// <summary> /// abc139 /// B - Power Socket /// https://atcoder.jp/contests/abc139/tasks/abc139_b /// ...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static _20200410.abc139_b.Cin; using static _20200410.abc139_b.Util; // using Pair = System.ValueTuple<long, long>; /// <summary> /// abc139 /// B - Power Socket /// https://atcoder.jp/contests/abc139/tasks/abc139_b /// ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 48], ["+", 15, 16, 31, 16, 12, 16, 12, 23, 0, 24], ["+", 31, 16, 12, 16, 12, 23, 0, 16, 31, 22], ["+", 31, 16, 12, 16, 12, 23, 0, 16, 17, 33], ["+", 31, 16, 12, 16, 12, 23, 0, 16, 12, 2...
8
2,416
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_Cs { public class Program { public static void Main() { decimal[] vs = Console.ReadLine().Split().Select(decimal.Parse).ToArray(); decimal ans = 1; if (vs[0] < vs[1]) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_Cs { public class Program { public static void Main() { decimal[] vs = Console.ReadLine().Split().Select(decimal.Parse).ToArray(); decimal ans = 0; if (vs[1] > 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], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 57, 15, 16, 31, 204, 206, 207,...
8
126
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...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 1, 0, 11, 12, 41, 15, 23, 0, 24], ["-", 0, 11, 12, 41, 15, 23, 0, 16, 31, 22], ["-", 0, 11, 12, 41, 15, 23, 0, 16, 17, 60], ["-", 0, 11, 12, 41, 15, 23, 0, 16, 12, 203], ["-", 0, 1, 0, 11, 12, 41, 15, 23, 0, 25], ["-...
8
207
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(); var A = int.Parse(input[0]); var B = int.Parse(input[1]); var sum = 0; var ans = 0; while (true) { sum += A; ans++; i...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(); var A = int.Parse(input[0]); var B = int.Parse(input[1]); if (B <= 1) { Console.WriteLine(0); return; } var sum = 0; va...
[["+", 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
112
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { int[] ab = ReadLineIntArray(); int rtn = 1; int n = ab[1] - ab[0]; while (n > 0) { n -= ab[0] - 1; rtn++; } Console.Write...
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { int[] ab = ReadLineIntArray(); if (ab[1] == 1) { Console.WriteLine(0); } else { int rtn = 1; int n = ab[1] - ab[0]; while...
[["+", 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
711
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { #region library static int n = 0; static int m = 0; static int r = 0; static int c = 0; static int x = 0; static int y = 0; static string s = ""; static string[] ss; static long sum = 0; static long ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { #region library static int n = 0; static int m = 0; static int r = 0; static int c = 0; static int x = 0; static int y = 0; static string s = ""; static string[] ss; static long sum = 0; static long ...
[["+", 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,276
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // using ProCon.Util; namespace ProCon { class Program { static void Main(string[] args) { AC139B(); } static void AC139B() { // https://atcoder.jp/contests/abc139/tasks var input = Console...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // using ProCon.Util; namespace ProCon { class Program { static void Main(string[] args) { AC139B(); } static void AC139B() { // https://atcoder.jp/contests/abc139/tasks var input = Console...
[["+", 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
173
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Security.Cryptography.X509Certificates; using System.Text.RegularExpressions; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split(' ...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Security.Cryptography.X509Certificates; using System.Text.RegularExpressions; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split(' ...
[["+", 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
149
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp10 { class Program { static void MainA(string[] args) { Console.WriteLine( Console.ReadLine() .ToCharArray() .Zip(Console.ReadLine().ToCharArray(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp10 { class Program { static void MainA(string[] args) { Console.WriteLine( Console.ReadLine() .ToCharArray() .Zip(Console.ReadLine().ToCharArray(...
[["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["-", 0, 200, 0, 212, 0, 41, 15, 16, 17, 60], ["-", 0, 212, 0, 41, 15, 16, 12, 204, 205, 22], ["-", 0, 41, 15, 16, 12, 204, 206, 207, 0, 70], ["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 41, 15, 16, 12, 204, 206, 207, 0, 73], ["-", 0, 198, 0, 200, 0, 212, 0, 41...
8
164
using System; namespace AtCoder { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int A = int.Parse(str[0]); int B = int.Parse(str[1]); int tmp = 0; int ans = 0; while (true) { ans += 1; tmp = ans * (A - 1) + 1; if (tmp >= B) ...
using System; namespace AtCoder { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int A = int.Parse(str[0]); int B = int.Parse(str[1]); int tmp = 0; int ans = 0; while (true) { tmp = ans * (A - 1) + 1; if (tmp >= B) break; ...
[["-", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 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, 57, 64, 93, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 52, 8...
8
113
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 AB = ReadSplitInt(); var A = AB[0]; var B = AB[1]; var sum = A; var ans = 1; while (sum < B) ...
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 AB = ReadSplitLong(); var A = AB[0]; var B = AB[1]; var kuchi = 1L; var ans = 0; while (kuchi...
[["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 197, 0, 198, 0, 200, 0, 212...
8
730
using System; namespace ABC139 { class B { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int count = 1; for (int i = A; i < B; i += (A - 1)) { count++; } Console.WriteLine(count); } } }
using System; namespace ABC139 { class B { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int count = 1; for (int i = A; i < B; i += (A - 1)) { count++; } if (B != 1) Console.WriteLine(c...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 1, 0, 213, 3, 4, 0, 25], ["...
8
99
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); for (int i = 1;; i++) { int n = a * i - (i - 1); if (b <= n) { Console.WriteLine(i); return; } ...
using System; 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 i = 0; for (i = 0;; i++) { int n = (a * i) - (i - 1); if (b <= n) { break; } } Console.Wr...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 7, 10, 198, 0, 200, 0, 212, ...
8
105