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; public class MainClass { public const long Giri = 1000000007; public static void Main(string[] args) { var s = Console.ReadLine(); var k = Console.ReadLine().ToLong(); for (int i = 0; i < s.Length; i++) { if (...
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) { var s = Console.ReadLine(); var k = Console.ReadLine().ToLong(); for (int i = 0; i < Math.Min(k, s.Length); i++)...
[["+", 0, 7, 15, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 7, 15, 16, 12, 213, 3, 4, 0, 24], ["+", 15, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 7, 15, 16, 12, 213, 3, 4, 0, 21], ["+", 0, 7, 15, 16, 12, 213, 3, 4, 0, 25]]
8
343
using System; using System.Collections.Generic; using System.Linq; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var S = Console.ReadLine(); int K; var parseRet = int.TryParse(Console.ReadLine(), out K); if (!parseRet) { K = 100; } ...
using System; using System.Collections.Generic; using System.Linq; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var S = Console.ReadLine(); int K; var parseRet = int.TryParse(Console.ReadLine(), out K); if (!parseRet) { K = int.MaxValue; ...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 64, 196, 0, 1, 0, 11, 12, 214, 205, 199], ["+", 64, 196, 0, 1, 0, 11, 12, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 11, 12, 214, 141, 22], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212,...
8
207
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace ABC106C { 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 ABC106C { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); r...
[["-", 8, 196, 0, 7, 8, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 7, 8, 196, 0, 37, 0, 38], ["+", 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, 252, 0, 104], ["+", 0...
8
531
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 S = Read().ToList(); var K = ReadLong(); if (S.Count == 1 || K == 1 || (S.Count > 1 && S[0] != '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 S = Read().ToList(); var K = ReadLong(); if (S.Count == 1 || K == 1 || (S.Count > 1 && S[0] != '1')) { ...
[["+", 15, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 15, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 31, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 79], ["+", 0, 28, 0, 218, 8, 16, 12, 252, 0, 104],...
8
664
using System; class Program { static void Main(string[] args) { // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int K = int.Parse(input[1]); // 割ればええんちゃうの int amari = N % K; //出力 Console.WriteLine(amari.ToString()); } }
using System; class Program { static void Main(string[] args) { // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); int N = int.Parse(input[0]); int K = int.Parse(input[1]); // 割ればええんちゃうの int amari = N % K; //人が多いときはダメなのかぁ if (amari > 1) { amari = 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, 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
83
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { private static string Read() { return Console.ReadLine(); } private static int ReadInt() { return int.Parse(Read()); } private static long ReadLong() { return lo...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { private static string Read() { return Console.ReadLine(); } private static int ReadInt() { return int.Parse(Read()); } private static long ReadLong() { return lo...
[["-", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["-", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 15, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 85], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15...
8
265
using System; using static System.Console; using static System.Math; using System.Collections.Generic; using System.Linq; using System.IO; class Program { static void Main() { var input = ReadLine().Split(); int n = int.Parse(input[0]); int k = int.Parse(input[1]); WriteLine(n % k); } }
using System; using static System.Console; using static System.Math; using System.Collections.Generic; using System.Linq; using System.IO; class Program { static void Main() { var input = ReadLine().Split(); int n = int.Parse(input[0]); int k = int.Parse(input[1]); if (n % k == 0) WriteLine(0)...
[["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 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, 213, 63, 22], ["+", 0, 57, 64, 1, 0, 213, 3, 4, 0, 24], ["+...
8
87
#pragma warning disable using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Diagnostics; using System.Collections; static class MainClass { public static void Main() { var str = Console.ReadLine...
#pragma warning disable using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Diagnostics; using System.Collections; static class MainClass { public static void Main() { var n = Console.ReadLine(...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 204, ...
8
1,304
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { var s = Read(); var k = Read(); var ans = ""; for (int i = 0; i < s.Length; i++) { i...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { var s = Read(); var k = ReadLong(); for (int i = 0; i < s.Length; i++) { if (s[i].ToStri...
[["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 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, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 5, 0...
8
410
using System; using System.Collections.Generic; using System.Linq; public static partial class Program { //テンプレここから public static int ToInt(this string str) { return int.Parse(str); } public static long ToLong(this string str) { return long.Parse(str); } public static IEnumerable<int> ToInt(this string[] strs...
using System; using System.Collections.Generic; using System.Linq; public static partial class Program { //テンプレここから public static int ToInt(this string str) { return int.Parse(str); } public static long ToLong(this string str) { return long.Parse(str); } public static IEnumerable<int> ToInt(this string[] strs...
[["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3...
8
384
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { // http://abc106.contest.atcoder.jp/tasks/abc106_c public class Abc106_c { #if !Development public static void Main(string[] args) { Abc106_c.Solve(args); } #endif /* S は 1 文字以上 100 文字以下の文字列. K は 1...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace AtCoder { // http://abc106.contest.atcoder.jp/tasks/abc106_c public class Abc106_c { #if !Development public static void Main(string[] args) { Abc106_c.Solve(args); } #endif /* S は 1 文字以上 100 文字以下の文字列. K は 1...
[["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 210, 8, 196, 0, 57,...
8
357
using System; class p { static void Main() { int N = int.Parse(Console.ReadLine()); bool can = false; for (int i = 0; i < (N / 4); i++) { for (int j = 0; j < (N / 7); j++) { if (((i * 4) + (j * 7)) == N) { can = true; break; } } if (can) { brea...
using System; class p { static void Main() { int N = int.Parse(Console.ReadLine()); bool can = false; for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { if (((i * 4) + (j * 7)) == N) { can = true; break; } } if (can) { break; } ...
[["-", 8, 196, 0, 7, 15, 16, 12, 23, 0, 24], ["-", 0, 7, 15, 16, 12, 23, 0, 16, 17, 85], ["-", 0, 7, 15, 16, 12, 23, 0, 16, 12, 203], ["-", 8, 196, 0, 7, 15, 16, 12, 23, 0, 25]]
8
122
using System; namespace B { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); for (var i = 0; i < (N + 3) / 4; i++) { for (var j = 0; j < (N + 6) / 7; j++) { int sum = 4 * i + 7 * j; if (sum == N) { Console.WriteLine("Yes"); ret...
using System; namespace B { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); for (var i = 0; i <= N / 4; i++) { for (var j = 0; j <= N / 7; j++) { int sum = 4 * i + 7 * j; if (sum == N) { Console.WriteLine("Yes"); return; ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 7, 15, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 15, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["-", 15, 16, 12, 16, 31, 23, 0, 16, 12, 203], ["-", 0, 7, 15, 16, 12, 16, 31, 23, 0, 25], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+",...
8
119
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; using static MyIO; public class A { public static void Main() { int n = GetInt(); while (n >= 0) { if (n % 7 == 0) { Console.WriteLine("Yes"); break; } if (n < 7)...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; using static MyIO; public class A { public static void Main() { int n = GetInt(); while (n >= 0) { if (n % 4 == 0) { Console.WriteLine("Yes"); return; } n -= 7; ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["-", 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, 17, 18], [...
8
247
using System; public class Program { public static void Main() { int N = int.Parse(Console.ReadLine()); for (int i = 0; i < 100 / 7; i++) { for (int j = 0; j < 100 / 4; j++) { if (i * 7 + j * 4 == N) { Console.WriteLine("Yes"); return; } } } } }
using System; public class Program { public static void Main() { int N = int.Parse(Console.ReadLine()); for (int i = 0; i < 100 / 7; i++) { for (int j = 0; j < 100 / 4; j++) { if (i * 7 + j * 4 == N) { Console.WriteLine("Yes"); return; } } } Console.Writ...
[["+", 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, 201...
8
91
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.IO; using System.Linq; using System.Diagnostics; using System.Globalization; using static System.Console; using static System.Math; namespace abc106_c { class Program { static void Main(string[] args) { stri...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.IO; using System.Linq; using System.Diagnostics; using System.Globalization; using static System.Console; using static System.Math; namespace abc106_c { class Program { static void Main(string[] args) { stri...
[["+", 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, 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, ...
8
156
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string str = Console.ReadLine(); string str2 = Console.ReadLine(); long K = long.Parse(str2); string ans = "1"; for (var i = 0; i < str.Length; i++) { if (str.Substring(i, 1) != "1") { a...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string str = Console.ReadLine(); string str2 = Console.ReadLine(); long K = long.Parse(str2); string ans = "1"; for (var i = 0; i < str.Length; i++) { if (str.Substring(i, 1) != "1") { a...
[["+", 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], ["+", 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
115
using Yorukatsu058.Questions; using Yorukatsu058.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu058.Questions { public class QuestionD : AtCoderQuestionBase { public override IEnumerable<object> Solve(TextReader inputStream) {...
using Yorukatsu058.Questions; using Yorukatsu058.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu058.Questions { public class QuestionD : AtCoderQuestionBase { public override IEnumerable<object> Solve(TextReader inputStream) {...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 57, 64, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 7, 15, 16, 12, 203], ["-", 31, 23, 0, 16, 12, 23, 0, 16, 31, 203], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 31, 203], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 3...
8
602
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static PB10004.Algorithm.Util; namespace PB10004.Algorithm { class Template { static void Main(string[] args) { new C().Solve(); } } class A { public void Solve() {} } class B { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static PB10004.Algorithm.Util; namespace PB10004.Algorithm { class Template { static void Main(string[] args) { new C().Solve(); } } class A { public void Solve() {} } class B { ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 31, 204, 206, 207, 0, 28, 0, 74, 0, 24], ["-", 31, 204, 206, 207, 0, 28, 0, 74, 39, 199], ["-", 31, 204, 206, 207, 0, 28, 0, 74, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 74,...
8
498
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var minus = N < 0; if (minus) N = -N; var x = new bool[32]; for (int i = 0; i < 32; i++) { var y = (N >> i) & 1; if (y == ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); if (N == 0) { Console.WriteLine(0); return; } var minus = N < 0; if (minus) N = -N; var x = new bool[32]; for (int...
[["+", 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,330
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { string inNum = Reader.ReadLine(); long target = long.Parse(Reader.ReadLine()); long idx = 0; long ans = 0; for (int i = 0; i < inNum.Length; i++) { ...
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { string inNum = Reader.ReadLine(); long target = long.Parse(Reader.ReadLine()); long idx = 0; long ans = 0; for (int i = 0; i < inNum.Length; i++) { ...
[["+", 0, 7, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196...
8
232
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); // var A = Console.ReadLine().Split(' ').Select(x => // int.Parse(x)).ToArray(); // Consol...
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); // var A = Console.ReadLine().Split(' ').Select(x => // int.Parse(x)).ToArray(); // Consol...
[["+", 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, 213, 63, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 15, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+...
8
209
using System; using static System.Console; class Program { public static void Main() { long n = long.Parse(ReadLine()); long m = 0; string ans = ""; long x = 1; // (-2)^k long y = 2; // 2^(k+1) while (n != m) { long mm = n % y; if (mm < 0) mm += y; if (mm >= y / 2...
using System; using static System.Console; class Proram { public static void Main() { long n = long.Parse(ReadLine()); if (n == 0) { WriteLine(0); return; } long m = 0; string ans = ""; long x = 1; // (-2)^k long y = 2; // 2^(k+1) while (n != m) { long mm = n % y...
[["-", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 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,...
8
126
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() { ...
[["+", 0, 28, 0, 16, 31, 214, 205, 204, 205, 22], ["+", 0, 16, 31, 214, 205, 204, 206, 207, 0, 70], ["+", 31, 214, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 16, 31, 214, 205, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 141, 22], ["+", 12, 213, 3, 4, 0, 28, 0, ...
8
2,470
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace Ccs { class Program { static void Main(string[] args) { // Console.WriteLine(-10 % 3); var n = Int64.Parse(Console.ReadLine()); // ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace Ccs { class Program { static void Main(string[] args) { // Console.WriteLine(-10 % 3); var n = Int64.Parse(Console.ReadLine()); // ...
[["-", 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, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 72], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ...
8
224
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0035 { class Program { static void Main(string[] args) { var s = Console.ReadLine(); int A = int.Parse(s.Split(' ')[0]); int B = int.Parse(s.Split(' ')[1]); if (A % B ==...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0035 { class Program { static void Main(string[] args) { var s = Console.ReadLine(); int A = int.Parse(s.Split(' ')[0]); int B = int.Parse(s.Split(' ')[1]); if (A % B ==...
[["-", 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, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, ...
8
144
using System; using System.Collections.Generic; class Program { public static void Main() { int N = int.Parse(Console.ReadLine()); Stack<int> d = new Stack<int>(); while (N != 0) { if (N % 2 != 0) { d.Push(1); N--; } else d.Push(0); N /= 2; N = -N; } ...
using System; using System.Collections.Generic; class Program { public static void Main() { int N = int.Parse(Console.ReadLine()); Stack<int> d = new Stack<int>(); while (N != 0) { if (N % 2 != 0) { d.Push(1); N--; } else d.Push(0); N /= 2; N = -N; } ...
[["+", 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, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12...
8
120
using System; using System.Collections.Generic; using System.Linq; class Scanner { string[] s; int i; char[] cs = new char[] { ' ' }; public Scanner() { s = new string[0]; i = 0; } public string next() { if (i < s.Length) return s[i++]; string st = Console.ReadLine(); while (st ...
using System; using System.Collections.Generic; using System.Linq; class Scanner { string[] s; int i; char[] cs = new char[] { ' ' }; public Scanner() { s = new string[0]; i = 0; } public string next() { if (i < s.Length) return s[i++]; string st = Console.ReadLine(); while (st ...
[["+", 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, 57, 64, 1, 0, 213, 63, 214, 205, 22...
8
394
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Convert; using static System.Console; using static System.Math; class MainClass { static void Main(string[] args) { Answer(); } public static void Answer() { var cin = Console.ReadLine().Split(' ').Select(i...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Convert; using static System.Console; using static System.Math; class MainClass { static void Main(string[] args) { Answer(); } public static void Answer() { var cin = Console.ReadLine().Split(' ').Select(i...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
140
using System; using System.Linq; class p { static void Main() { int N = int.Parse(Console.ReadLine()); string ans = ""; while (N != 0) { if (N % 2 != 0) { ans = "1" + ans; N = (N - 1) / -2; } else { ans = "0" + ans; N /= -2; } } Console.WriteLine(...
using System; using System.Linq; class p { static void Main() { int N = int.Parse(Console.ReadLine()); string ans = ""; while (N != 0) { if (N % 2 != 0) { ans = "1" + ans; N = (N - 1) / -2; } else { ans = "0" + ans; N /= -2; } } Console.WriteLine(...
[["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 0, 28, 0, 41, 15, 16, 12, 5, 0, 62], ["+", 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], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 75, 22]]
8
99
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 NK = ReadSplitInt(); if (NK[0] % NK[1] == 0) { Println(0); } else { Println((NK[0] / NK[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 NK = ReadSplitInt(); if (NK[0] % NK[1] == 0) { Println(0); } else { Println(1); } } s...
[["-", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 23, 0, 16, 31, 204, 205, 22], ["-", 31, 23, 0, 16, 31, 204, 206, 207, 0, 70], ["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 23, 0, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 85], ["-", 0, 16, 31, 23, 0, 16, 12, 204, 205, ...
8
689
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { int[] a = Input.ScanIntArray(); if (a[0] < a[1]) Console.WriteLine(1); else Console.WriteLine(a[0] - (a[0] / a[1]) * a[1]); } } static class Input { static public ...
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { int[] a = Input.ScanIntArray(); Console.WriteLine(a[0] % a[1] == 0 ? 0 : 1); } } static class Input { static public int ScanInt() { return int.Parse(Console.ReadLine()); } stati...
[["-", 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
619
using System; using System.Collections.Generic; using System.Linq; namespace ABC105C { static class MainClass { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); if (N == 0) { Console.WriteLine("0"); return; } int diff = N; var anslist = new List<int>(...
using System; using System.Collections.Generic; using System.Linq; namespace ABC105C { static class MainClass { public static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); if (N == 0) { Console.WriteLine("0"); return; } int diff = N; var anslist = new List<int>(...
[["+", 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
465
using System; using System.Collections.Generic; using System.Linq; class Procon { public Procon() {} static void Main(string[] agrs) { new Procon().Do(); } Scanner cin; public void Do() { cin = new Scanner(); int N = cin.nextInt(); int K = cin.nextInt(); Console.WriteLine((N / K - N % K) % K)...
using System; using System.Collections.Generic; using System.Linq; class Procon { public Procon() {} static void Main(string[] agrs) { new Procon().Do(); } Scanner cin; public void Do() { cin = new Scanner(); int N = cin.nextInt(); int K = cin.nextInt(); if (N % K == 0) { Console.WriteL...
[["-", 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, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 0, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["-", 0, 16, 31, 23, 0, 16, 31, 16, 17, 85], [...
8
507
using System; namespace ABC105 { class TaskC { public static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string ans = ""; while (n != 0) { if (n % 2 != 0) { ans = "1" + ans; n = n - 1; } else { ans = "0" + ans; } n /= -2; } Con...
using System; namespace ABC105 { class TaskC { public static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string ans = ""; if (n == 0) { Console.WriteLine("0"); return; } while (n != 0) { if (n % 2 != 0) { ans = "1" + ans; n = n - 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
98
using System; using System.Collections.Generic; using System.Text; namespace AtCoder { public class Program { // ABC105-C static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int posi = 0, nega = 0, diff = N; int[] pattern = new int[32]; int m = 1; for (int i = 0; i < patte...
using System; using System.Collections.Generic; using System.Text; namespace AtCoder { public class Program { // ABC105-C static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long posi = 0, nega = 0, diff = N; long[] pattern = new long[64]; long m = 1; for (long i = 0; i < ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 212, 0, 227, 39, 2...
8
233
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace At { class Program { static void Main(string[] args) { var nk = ReadInts(); WriteLine(nk[0] % nk[1]); } private static string Read() { return ReadLine();...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace At { class Program { static void Main(string[] args) { var r = ReadInts(); if (r[0] % r[1] == 0) { WriteLine(0); } else { WriteLine(1); }...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 3, 4, 0, 28, 0, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 16, 12, 204, 205,...
8
243
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var strs = Console.ReadLine().Split(); var N = int.Parse(strs[0]); var K = int.Parse(strs[1]); Console.WriteLine(N % K); } } }
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var strs = Console.ReadLine().Split(); var N = int.Parse(strs[0]); var K = int.Parse(strs[1]); Console.WriteLine(N % K == 0 ? "0" : "1"); } } }
[["+", 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, 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, ...
8
82
using System; using System.Collections.Generic; using System.Linq; namespace ABC104A { class ABC104A { static void Main(string[] args) { var n = double.Parse(Console.ReadLine()); foreach (var v in Solve(n).Reverse()) { Console.Write(v); } Console.WriteLine(); } static string Solve(double ...
using System; using System.Collections.Generic; using System.Linq; namespace ABC104A { class ABC104A { static void Main(string[] args) { var n = double.Parse(Console.ReadLine()); foreach (var v in Solve(n).Reverse()) { Console.Write(v); } Console.WriteLine(); } static string Solve(double ...
[["-", 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, 52, 8, 196, 0, 1, 0, 35]]
8
174
using System; using System.Collections.Generic; using System.Text; namespace AtTest.ABC_105 { class C { static void Main(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { int n = int.Parse(Console.ReadLine()); if (n == 0) { Console.W...
using System; using System.Collections.Generic; namespace AtTest.ABC_105 { class C { static void Main(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { long n = long.Parse(Console.ReadLine()); if (n == 0) { Console.WriteLine(0); ...
[["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197,...
8
233
using System; using System.Linq; public class Program { public static void Main() { int N = int.Parse(Console.ReadLine()); string res = ""; while (N != 0) { if (N % 2 == 1) { res += "1"; N--; } else { res += "0"; } N /= -2; } if (N == 0) res = ...
using System; using System.Linq; public class Program { public static void Main() { int N = int.Parse(Console.ReadLine()); string res = ""; while (N != 0) { if (N % 2 != 0) { res += "1"; N--; } else { res += "0"; } N /= -2; } if (res == "") res...
[["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]...
8
121
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; using static System.Console; using static System.Math; class Z { static void Main() => new K(); } class K { int F => int.Parse(Str); ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; using static System.Console; using static System.Math; class Z { static void Main() => new K(); } class K { int F => int.Parse(Str); ...
[["-", 0, 52, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 295], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 45], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 46], ["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 22], ["-", 0, 213, 3,...
8
312
using System; class Program { static void Main(string[] args) { // 整数の入力 string input = Console.ReadLine(); int N = int.Parse(input); // atcoderってこんな数学な感じなんですか・・・ // なんとなく普通の二進数にしたあと奇数番と偶数番でうなるのがいい気がしてきた int[] Splus = new int[34]; int[] Shonmono = new int[34]; //// そっかプラスだけじゃないんかぁ ...
using System; class Program { static void Main(string[] args) { // 整数の入力 string input = Console.ReadLine(); int N = int.Parse(input); // atcoderってこんな数学な感じなんですか・・・ // なんとなく普通の二進数にしたあと奇数番と偶数番でうなるのがいい気がしてきた int[] Splus = new int[34]; int[] Shonmono = new int[34]; //// そっかプラスだけじゃないんかぁ ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 2...
8
251
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int n = int.Parse(str[0]); string output = ""; int baseNum = -2; List<int> nums = new List<int>(); while (n != 0) { nums.Add(seizyoyo(n, baseNum...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int n = int.Parse(str[0]); string output = ""; int baseNum = -2; List<int> nums = new List<int>(); while (n != 0) { nums.Add(seizyoyo(n, baseNum...
[["+", 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, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12...
8
207
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using static System.Console; using static AtCoder.Util; using static AtCoder.Cin; using static System.Math; namespace AtCoder { class Program { static void Main() => ReadLong().Call(ToN...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using static System.Console; using static AtCoder.Util; using static AtCoder.Cin; using static System.Math; namespace AtCoder { class Program { static void Main() => ReadLong().Call(ToN...
[["+", 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, 37, 0, 38],...
8
1,931
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Dcs { class Program { static void Main(string[] args) { var nm = Console.ReadLine() .Split(' ') .ToList() .Select(x => Int32.Parse(x)) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Dcs { class Program { static void Main(string[] args) { var nm = Console.ReadLine() .Split(' ') .ToList() .Select(x => Int32.Parse(x)) ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 218, 54, 55, 0, 24], ["-", 0, 28, 0, 218, 54, 55, 0, 220, 141, 22], ["-", 3, 4, 0, 28, 0, 218, 54, 55, 0, 21], ["-", 3, 4, 0, 28, 0, 218, 54, 55, 0, 25], ["-", 0, 213, 3, 4, 0, 28, 0, 218, 0, 221], [...
8
264
using System; using System.Collections.Generic; using System.Linq; namespace CandyDistribution { /// <summary> /// /// </summary> public class Program2 { /// <summary> /// /// </summary> /// <param name="args"></param> public static void Main(string[] args) { // 標準入力を受け取るところは同じ var n_m = Console.Read...
using System; using System.Collections.Generic; using System.Linq; namespace CandyDistribution { /// <summary> /// /// </summary> public class Program2 { /// <summary> /// /// </summary> /// <param name="args"></param> public static void Main(string[] args) { // 標準入力を受け取る var n_m = Console.ReadLine()...
[["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["-", 0, 212, 0, 230, 39, 236, 23...
8
391
using System; using static System.Console; using static System.Math; using System.Collections.Generic; using System.Linq; using System.IO; class Program { static void Main() { var input = ReadLine().Split(); int n = int.Parse(input[0]); int m = int.Parse(input[1]); int[] a = Array.ConvertAll(ReadLine...
using System; using static System.Console; using static System.Math; using System.Collections.Generic; using System.Linq; using System.IO; class Program { static void Main() { var input = ReadLine().Split(); int n = int.Parse(input[0]); int m = int.Parse(input[1]); int[] a = Array.ConvertAll(ReadLine...
[["-", 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, 203], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 20...
8
270
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AABC { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int k = int.Parse(s); if (k < 1200) { Console.WriteLine("ABC"); } else if (k > 1...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AABC { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int k = int.Parse(s); if (k < 1200) { Console.WriteLine("ABC"); } else if (k >= ...
[["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 47], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 20], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 17, 20], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 12, 203...
8
116
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; using System.Numerics; namespace AtCoder { public class Program { public static void Main(string[] args) { // SetOut(new StreamWriter(OpenStandardOutput())...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; using System.Numerics; namespace AtCoder { public class Program { public static void Main(string[] args) { // SetOut(new StreamWriter(OpenStandardOutput())...
[["-", 75, 57, 15, 16, 31, 16, 31, 252, 0, 104], ["-", 75, 57, 15, 16, 31, 16, 31, 252, 0, 253], ["-", 75, 57, 75, 57, 15, 16, 31, 16, 17, 18], ["-", 0, 57, 75, 57, 75, 57, 15, 16, 17, 106], ["+", 75, 57, 75, 57, 15, 16, 31, 16, 17, 18], ["-", 75, 57, 15, 16, 12, 16, 31, 252, 0, 253], ["+", 75, 57, 15, 16, 31, 16, 12, ...
8
538
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace FertiLib.Contest.B { static class Program { public static void Solve(Scanner cin) { string s = cin.ReadString(); bool ok = true; if (s[0] != 'A') ok = false; if (s....
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace FertiLib.Contest.B { static class Program { public static void Solve(Scanner cin) { string s = cin.ReadString(); bool ok = true; if (s[0] != 'A') ok = false; if (s....
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 0, 131], ["+", 206, 207, 0, 28, 0, 16, 31, 214, 141, 22], ["+", 31, 204, 206, 207, 0, 2...
8
2,720
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace B { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace B { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 64, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 64, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 2...
8
201
using System; namespace b { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var r = true; r = s[0] != 'A' ? false : r; var count = 0; for (var i = 1; i < s.Length; i++) { if (char.IsUpper(s[i])) { if (s[i] == 'C') { if ((i >= 2 && i <= s.Len...
using System; namespace b { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var r = true; if (s[0] != 'A') { r = false; } var count = 0; for (var i = 1; i < s.Length; i++) { if (char.IsUpper(s[i])) { if (s[i] == 'C') { if ((i >= 2 ...
[["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 1, 0, 11, 12, 41, 0, 101], ["-", 0, 1, 0, 11, 12, 41, 64, 211, 0, 147], ["-", 8, 196, 0, 1, 0, 11, 12, 41, 0, 102], ["+", 8,...
8
169
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; using Pair = System.Tuple<long, long>; /// <su...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using static Ha2ne2Util.Cin; using static Ha2ne2Util.Util; using static System.Console; using static System.Math; using System.Collections; using Pair = System.Tuple<long, long>; /// <su...
[["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 22], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0,...
8
3,578
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Practice { class Program { static void Main(string[] args) { Solve(); } private const long MOD = 1000000007; private static Dictionary<string, int> dic = new Dictionary<string, int>(); static void Solve() { var...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Practice { class Program { static void Main(string[] args) { Solve(); } private const long MOD = 1000000007; private static Dictionary<string, int> dic = new Dictionary<string, int>(); static void Solve() { var...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["-", 64, 196, 0, 57, 15, 16, 31, 16, 31, 22]...
8
449
using System; namespace ABC105_A_AtCoder_Crackers { internal class Program { public static void Main(string[] args) { string[] instr = Console.ReadLine().Split(' '); int n = int.Parse(instr[0]); int k = int.Parse(instr[1]); int waru = n / k; int amari = n % k; if (amari != 0) { Consol...
using System; namespace ABC105_A_AtCoder_Crackers { internal class Program { public static void Main(string[] args) { string[] instr = Console.ReadLine().Split(' '); int n = int.Parse(instr[0]); int k = int.Parse(instr[1]); int amari = n % k; if (amari != 0) { Console.WriteLine(1); } ...
[["-", 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, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39,...
8
104
using System; using System.Linq; using System.Collections.Generic; using static System.Math; using static System.Console; namespace AtCoder { class AtCoderrrrrr { static void Main(string[] args) { string s = ReadLine(); int w = int.Parse(ReadLine()); string ans = ""; int tmp = 0; for (int i = 0; ...
using System; using System.Linq; using System.Collections.Generic; using static System.Math; using static System.Console; namespace AtCoder { class AtCoderrrrrr { static void Main(string[] args) { string s = ReadLine(); int w = int.Parse(ReadLine()); string ans = ""; for (int i = 0; i < s.Length; 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, 1, 0, 223, 0, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 223, 0, 29], ...
8
125
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtcoderTemplateForCSharp { public class Program { public static void Main(string[] args) { var s = Console.ReadLine(); var w = Console.ReadLine().Select(x => int.Parse(x.ToString()))....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtcoderTemplateForCSharp { public class Program { public static void Main(string[] args) { var s = Console.ReadLine(); var w = int.Parse(Console.ReadLine()); for (int i = 0; i < s...
[["-", 205, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 0, ...
8
130
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtcoderTemplateForCSharp { public class Program { public static void Main(string[] args) { var s = Console.ReadLine(); var w = Console.ReadLine().Select(x => int.Parse(x.ToString()))....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtcoderTemplateForCSharp { public class Program { public static void Main(string[] args) { var s = Console.ReadLine(); var w = int.Parse(Console.ReadLine()); var ansList = new Lis...
[["-", 205, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 0, ...
8
145
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtcoderTemplateForCSharp { public class Program { public static void Main(string[] args) { var s = Console.ReadLine(); var w = Console.ReadLine().Select(x => int.Parse(x.ToString()))....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtcoderTemplateForCSharp { public class Program { public static void Main(string[] args) { var s = Console.ReadLine(); var w = int.Parse(Console.ReadLine()); var ans = ""; for...
[["-", 205, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 0, ...
8
138
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace SoundHound2018C { class Program { static void Main(string[] args) { var n = RInt; var m = RInt; var d = RInt; decimal ans = 0; ans = (decimal)...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace SoundHound2018C { class Program { static void Main(string[] args) { var n = RInt; var m = RInt; var d = RInt; decimal ans = d == 0 ? 1 : 2; an...
[["+", 0, 200, 0, 212, 0, 41, 15, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 60], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 101], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 64, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 102], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 75, 203], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32]...
8
1,164
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; using static AtCoder.Tool; namespace AtCoder { class AC { const int MOD = 1000000007; const int INF = int.MaxValue / 2; const long SINF = long.MaxValue / 2; ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; using static AtCoder.Tool; namespace AtCoder { class AC { const int MOD = 1000000007; const int INF = int.MaxValue / 2; const long SINF = long.MaxValue / 2; ...
[["-", 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
1,098
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder.SoundHound2018.B { class Program { static void Main() { var sc = new Scanner(); var n = sc...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder.SoundHound2018.C { class Program { static void Main() { var sc = new Scanner(); var n = sc...
[["-", 36, 36, 0, 208, 0, 209, 141, 232, 141, 22], ["+", 36, 36, 0, 208, 0, 209, 141, 232, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 250], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 0, 212, 0, 16, 31, 23, 0, 16, 31, 250], ["-", 0, 212, 0, 16, 31, 23, 0, 16...
8
553
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var array = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); decimal n = array[0]; decimal m = array[1]; decimal d = array[2]; // double res = 1.0 * (m - ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var array = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); decimal n = array[0]; decimal m = array[1]; decimal d = array[2]; // double res = 1.0 * (m - ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 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
124
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Practice { class Program { public struct Card { public char c; public int d; } static void Main(string[] args) { // SolveA(args); // SolveB(args); SolveC(args); // SolveD(args); } static vo...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Practice { class Program { public struct Card { public char c; public int d; } static void Main(string[] args) { // SolveA(args); // SolveB(args); SolveC(args); // SolveD(args); } static vo...
[["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 31, 16, 31, 16, 31, 16, 31, 74, 0, 24], ["+", 31, 16, 31, 16, 31, 16, 31, 74, 39, 199], ["+", 31, 16, 31, 16, 31, 16, 31, 74, 0, 25], ["+", 31, 16, 31, 16, 31, 74, 51, 23, 0, 24], ["+", 31, 16, 31, 74, 51, 23, 0, 16, 31, 22],...
8
377
using System; using System.Collections.Generic; using System.Linq; class Solution { static void Main() { var vals = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var n = vals[0]; var m = vals[1]; var d = vals[2]; var ones = d == 0 ? n : Math.Min(d * 2, n); var twos = n - ones; ...
using System; using System.Collections.Generic; using System.Linq; class Solution { static void Main() { var vals = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var n = vals[0]; var m = vals[1]; var d = vals[2]; var ones = d == 0 ? n : Math.Min(d * 2, n); var twos = n - ones; ...
[["-", 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
149
using System; using System.Collections.Generic; class Program { static void Main() { int[] s = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); List<long[]>[] li = new List<long[]>[s[0] + 1]; long[] hy = new long[s[0] + 1]; long[] hs = new long[s[0] + 1]; long[] ans = new long[s[0]]; f...
using System; using System.Collections.Generic; class Program { static void Main() { int[] s = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); List<long[]>[] li = new List<long[]>[s[0] + 1]; long[] hy = new long[s[0] + 1], hs = new long[s[0] + 1], ans = new long[s[0]]; for (int i =...
[["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 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], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 73], ["-", 8, 196, 0, 57, 15, 16, 31...
8
1,351
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 List<Tuple<int,...
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 List<Tuple<int,...
[["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 75, 196, 0, 1, 0, 11, 12, 227, 0, 228], ["+", 0, 1, 0, 11, 12, 227, 39, 224, 39, 199], ["+", 0, 11, 12, 227, 39, 224, 225, 226, 0, 70], ["+", 12, 227, 39, 224, 225, 226, 0, 16, 31, 22], ["+", 12, 227, 39, 224, 225, 226, 0, 16...
8
1,668
using System; using System.Linq; namespace AtCorder { class Program { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); var a = "1 1 1 1 1".Split(' ').Select(s => long.Parse(s)).Distinct(); var min = a.Min(); var max = a.Max(); Console.WriteLine(max - min); } } }
using System; using System.Linq; namespace AtCorder { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).Distinct(); var min = a.Min(); var max = a.Max(); Console.WriteLine(max - min); } } }
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 63, 214, 205, 213, 63, 214, 205, 5, 0, 62], ["-", 63, 214, 205, 213, 63, 214, 205, 5, 0, 222], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 205, ...
8
98
using System; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); int L, kL; string[] str = Console.ReadLine().Split(' '); L = 0; kL = 0; for (int i = 0; i < N - 1; i++) { L = System.Math.Abs(int.Parse(str[i]) - int.Parse(str[i + 1])); if (L > kL) { ...
using System; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); int L, kL; string[] str = Console.ReadLine().Split(' '); L = 0; kL = 0; for (int i = 0; i < N - 1; i++) { for (int j = 1; j < N; j++) { L = System.Math.Abs(int.Parse(str[i]) - int.Parse(st...
[["+", 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
131
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { string input = Console.ReadLine(); int N = int.Parse(input); string[] s_array = Console.ReadLine().Split(' ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { string input = Console.ReadLine(); int N = int.Parse(input); string[] s_array = Console.ReadLine().Split(' ...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 18], ["-", 0, 212, 0, 227, 39, ...
8
154
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace C { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace C { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 41, 15, 16, 31, 16, 31, 214, 205, 22], ["-", 0, 41, 15, 16, 31, 16, 31, 214, 0, 131], ["-", 0, 41, 15, 16, 31, 16, 31, 214, 141, 22], ["+", 0, 212, 0, 41, 15, 16, 31, 16, 31, 22], ["-", 0, 28, 0, 16, 31, 16, 31, 23...
8
241
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
[["-", 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
340
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC102C { class Program { static void Solve(Input input) { var n = input.NextInt(); var a = input.NextInt(n); var b = a.Select((x, i) => x ...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC102C { class Program { static void Solve(Input input) { var n = input.NextInt(); var a = input.NextInt(n); if (n == 1) { Console.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
1,286
using System; using System.Collections.Generic; using System.Linq; class Procon { public Procon() {} static void Main(string[] agrs) { new Procon().Do(); } Scanner cin; public void Do() { cin = new Scanner(); int N = cin.nextInt(); long[] a = cin.arrayLong(); long[] b = new long[N]; for ...
using System; using System.Collections.Generic; using System.Linq; class Procon { public Procon() {} static void Main(string[] agrs) { new Procon().Do(); } Scanner cin; public void Do() { cin = new Scanner(); int N = cin.nextInt(); long[] a = cin.arrayLong(); long[] b = new long[N]; for ...
[["+", 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, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 2...
8
607
using System; using System.Linq; using System.Collections.Generic; class Cmondai { static void Main() { var N = Int64.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(x => Int64.Parse(x)).ToArray(); var array = new long[N]; for (long i = 0; i < N; ++i) { array[i] = A[i] -...
using System; using System.Linq; using System.Collections.Generic; class Cmondai { static void Main() { var N = Int64.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(x => Int64.Parse(x)).ToArray(); var array = new long[N]; for (long i = 0; i < N; ++i) { array[i] = A[i] -...
[["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 75, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["+"...
8
293
using System; using System.Linq; using System.Collections.Generic; class Cmondai { static void Main() { var N = Int64.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(x => Int64.Parse(x)).ToArray(); var array = new long[N]; for (long i = 0; i < N; ++i) { array[i] = A[i] -...
using System; using System.Linq; using System.Collections.Generic; class Cmondai { static void Main() { var N = Int64.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(x => Int64.Parse(x)).ToArray(); var array = new long[N]; for (long i = 0; i < N; ++i) { array[i] = A[i] -...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 8, 196, 0, 57, 75, 1, 0, 11, 31, 22], ["+", 0, 57, 75, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 75, 1, 0, 11, 12, 204, 205, 22], ["+", 75, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33]...
8
249
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC102C_cs { class Program { static void Main(string[] args) { int givenN = int.Parse(Console.ReadLine()); if (givenN == 1) { Console.WriteLine("0"); return; } var...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC102C_cs { class Program { static void Main(string[] args) { int givenN = int.Parse(Console.ReadLine()); if (givenN == 1) { Console.WriteLine("0"); return; } var...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85...
8
294
using System; using System.Collections; using System.Collections.Generic; using System.Dynamic; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Reflection.Emit; using System.Runtime.Remoting.Proxies; using System.Text; using static System.Console; using static System.Math; using static E...
using System; using System.Collections; using System.Collections.Generic; using System.Dynamic; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Reflection.Emit; using System.Runtime.Remoting.Proxies; using System.Text; using static System.Console; using static System.Math; using static E...
[["+", 205, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 205, 213, 3...
8
2,110
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); string[] line = Console.ReadLine().Trim().Split(' '); var a = Array.ConvertAll(line, int.Parse); var b = new int[n]; for (int i = 0; i < n; i++) b[i] = a[i] - (i + 1); var med = ...
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); string[] line = Console.ReadLine().Trim().Split(' '); var a = Array.ConvertAll(line, int.Parse); var b = new int[n]; for (int i = 0; i < n; i++) b[i] = a[i] - (i + 1); Array.Sort...
[["+", 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], ["-", 3, 4...
8
195
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var ls = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList(); f...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var ls = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList(); 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
279
using System; using System.Collections.Generic; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { // SolveA(args); // SolveB(args); SolveC(args); // SolveD(args); } static void SolveA(string[] args) { string sz = (Console.ReadLine()); long n = lon...
using System; using System.Collections.Generic; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { // SolveA(args); // SolveB(args); SolveC(args); // SolveD(args); } static void SolveA(string[] args) { string sz = (Console.ReadLine()); long n = lon...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 12, 20...
8
628
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var array = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); for (int i = 0; i < array.Length; i++) { array[i] -= i ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var array = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); for (int i = 0; i < array.Length; i++) { array[i] -= i ...
[["+", 0, 41, 64, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 212, 0, 41, 64, 204, 206, 207, 0, 73], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 102], ["+", 0, 200, 0, 212, 0, 41, 75, 204, 205, 22], ["+", 0, 212, 0, 41, 75, 204, 206, 207, 0, 70], ["-", 0, 212, 0, 41, 64, 204, 206, 207, 0, 73], ["-", 0, 198, 0, 200, 0, 212, 0, ...
8
235
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.IO; using System.Linq; using System.Diagnostics; using System.Globalization; using static System.Console; using static System.Math; namespace abc102_c { class Program { static void Main(string[] args) { int ...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.IO; using System.Linq; using System.Diagnostics; using System.Globalization; using static System.Console; using static System.Math; namespace abc102_c { class Program { static void Main(string[] args) { int ...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 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, 14...
8
247
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { int inputCount = int.Parse(Reader.ReadLine()); this.Items = Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray(); long minItem = Items....
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public void Proc() { int inputCount = int.Parse(Reader.ReadLine()); this.Items = Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray(); long minItem = Items....
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 16, 12, 241, 0, 203], ["-", 0, 200, 0, 212, 0, 16, 31, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 214, ...
8
608
using System; using System.Linq; class Program { static long[] a; static int[] d; static long[] s; static void Main() { Console.ReadLine(); a = Console.ReadLine().Split().Select(long.Parse).ToArray(); var gap0 = Init(); var gapMin = Enumerable.Range(3, a.Length - 4).Min(_ => NextGap()); Cons...
using System; using System.Linq; using static System.Console; class Program { static long[] a; static int[] d; static long[] s; static void Main() { ReadLine(); a = ReadLine().Split().Select(long.Parse).ToArray(); var gap0 = Init(); if (d[3] == 4) { WriteLine(gap0); return; } ...
[["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 115], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 8, 196, 0, 1, 0, 213, 63...
8
375
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace ConsoleApplication1 { internal static class Program { public static void Main(string[] args) { var scanner = new StreamScanner(Console.OpenStandardInput()); var n = sca...
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace ConsoleApplication1 { internal static class Program { public static void Main(string[] args) { var scanner = new StreamScanner(Console.OpenStandardInput()); var n = sca...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 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, 19...
8
671
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Contest.cs { class Program { static void Main(string[] args) { int[] input = ReadInt(); int D = input[0]; int N = input[1]; int ans; if (D == 0) { an...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Contest.cs { class Program { static void Main(string[] args) { int[] input = ReadInt(); int D = input[0]; int N = input[1]; int ans; if (D == 0) { if...
[["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45]...
8
225
using System; using System.Collections.Generic; using System.Linq; using System.IO; // using System.Text; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; // using System.Numerics; // using static System.Math; // using pair = Pair<int, int...
using System; using System.Collections.Generic; using System.Linq; using System.IO; // using System.Text; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; // using System.Numerics; // using static System.Math; // using pair = Pair<int, int...
[["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 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, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+...
8
466
using System; namespace AtCorder100_B { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int D = int.Parse(input[0]); int N = int.Parse(input[1]); Console.WriteLine(Math.Pow(100, D) * N); } } }
using System; namespace AtCorder100_B { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int D = int.Parse(input[0]); int N = int.Parse(input[1]); if (N == 100) N++; Console.WriteLine(Math.Pow(100, D) * N); } } }
[["+", 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, 223, 0, 22], ...
8
82
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { //入力を受け取る var S = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var ans = 0; for (int i = 0; i < S.Length; i++...
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { //入力を受け取る var S = Console.ReadLine(); var ans = 0; for (int i = 0; i < S.Length; i++) { if (S[i] == '+') { ans++; ...
[["-", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 205, 213, 3, 4, 0, 28, 0, 252, 0, 104], ["-", 205, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["-", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 0, 213, 63, 214,...
8
129
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ACprac { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int d = int.Parse(str[0]); int n = int.Parse(str[1]); int kai = n * (...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ACprac { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int d = int.Parse(str[0]); int n = int.Parse(str[1]); if (n == 100) ...
[["+", 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, 223, 0, 22], ...
8
116
using System; using System.Linq; using System.Text.RegularExpressions; using System.Collections.Generic; using static program.Input; using static program.MyMath; using static System.Console; namespace program { class Program { static string alp = "abcdefghijklmnopqrstuvwxyz"; static string Alp = "ABCDEFGHIJKLMNOPQ...
using System; using System.Linq; using System.Text.RegularExpressions; using System.Collections.Generic; using static program.Input; using static program.MyMath; using static System.Console; namespace program { class Program { static string alp = "abcdefghijklmnopqrstuvwxyz"; static string Alp = "ABCDEFGHIJKLMNOPQ...
[["-", 0, 28, 0, 41, 15, 16, 31, 16, 31, 22], ["-", 0, 28, 0, 41, 15, 16, 31, 16, 17, 109], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 205, 199], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["-", 15, 16, 31, 16, 12, 23, 0, 214, 0, 131], ["-", 15, 16, 31, 16, 12, 23, 0...
8
1,300
using System; using System.Collections.Generic; using System.Linq; namespace ABC { class Program { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var sum = 0; int dig = 1; for (int i = n; i >= 10; i /= 10) { dig++; } for (var i = 0; i < dig; i++) { ...
using System; using System.Collections.Generic; using System.Linq; namespace ABC { class Program { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var nn = n; var sum = 0; var len = 1; var dig = 0; for (int i = n; i >= 10; i /= 10) { len++; } fo...
[["+", 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, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200,...
8
144
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) { string input = Console.ReadLine(); int A = int.Parse(input); int div_num = 0; while (true) { int ...
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) { string input = Console.ReadLine(); int A = int.Parse(input); int div_num = 0; foreach (char c in input)...
[["-", 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, 211, 0, 146], ["-", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["-", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22...
8
155
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string ss = Console.ReadLine(); string[] s = ss.Split(); int a = int.Parse(ss); int b = 0; for (int i = 0; i < s.Length; i++) { b += int.Parse(s[i]); } string buf = ""; if (a % b == 0) { ...
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string ss = Console.ReadLine(); int a = int.Parse(ss); int b = 0; for (int i = 0; i < ss.Length; i++) { b += int.Parse(ss[i].ToString()); } string buf = ""; if (a % b == 0) { buf = "Yes"; ...
[["-", 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, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 213,...
8
125
using System; using System.Collections.Generic; using System.Linq; class Program { static int n; static int sum = 0; static string ans; static int Main() { string nyu = Console.ReadLine(); n = int.Parse(nyu); char[] s = nyu.ToCharArray(); for (int i = 0; i < s.Length; i++) { sum += (...
using System; using System.Collections.Generic; using System.Linq; class Program { static int n; static int sum = 0; static string ans; static int Main() { string nyu = Console.ReadLine(); n = int.Parse(nyu); char[] s = nyu.ToCharArray(); for (int i = 0; i < s.Length; i++) { sum += (...
[["-", 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, 21], ["-", 0, 213...
8
168
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 d = int.Parse(input[0]); int n = int.Parse(input[1]); double num ...
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 d = int.Parse(input[0]); int n = int.Parse(input[1]); double num ...
[["+", 0, 99, 8, 254, 0, 239, 0, 57, 0, 121], ["+", 0, 99, 8, 254, 0, 239, 0, 57, 0, 24], ["+", 8, 254, 0, 239, 0, 57, 15, 16, 31, 22], ["+", 8, 254, 0, 239, 0, 57, 15, 16, 17, 60], ["+", 8, 254, 0, 239, 0, 57, 15, 16, 12, 203], ["+", 0, 99, 8, 254, 0, 239, 0, 57, 0, 25], ["+", 0, 239, 0, 57, 64, 1, 0, 11, 31, 22], ["+...
8
147
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["+", 8, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ["+",...
8
501
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp4 { class Program { static void Main(string[] args) { var s = Console.ReadLine().Split(' '); long a, b, c, d = 1; a = long.Parse(s[0]); b = long.Parse(s[1]); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp4 { class Program { static void Main(string[] args) { var s = Console.ReadLine().Split(' '); long a, b, c, d = 1; a = long.Parse(s[0]); b = long.Parse(s[1]); ...
[["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45]...
8
166