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; class Progaram { static void Main(string[] args) { var l = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); l[0] = l[0] % l[1]; Console.WriteLine(l.Min()); } }
using System; using System.Collections.Generic; using System.Linq; class Progaram { static void Main(string[] args) { var l = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); l[0] = l[0] % l[1]; l[1] = l[1] - l[0]; Console.WriteLine(l.Min()); } }
[["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 204, 205, 22], ["+", 0, 11, 12, 16, 31, 204, 206, 207, 0, 7...
8
88
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace lean { class Program { static void Main() { // long[] a = Console.ReadLine().Split().Select(long.Parse).ToArray(); string S = Console.ReadLine(); int N = S.Length; if (S.Subst...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace lean { class Program { static void Main() { // long[] a = Console.ReadLine().Split().Select(long.Parse).ToArray(); string S = Console.ReadLine(); int N = S.Length; if (S.Subst...
[["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 85]]
8
114
using System; using System.Linq; class Program { static void Main(string[] args) { var inputs = Console.ReadLine(); var length = inputs.Length; var front = inputs.Take((length - 1) / 2).ToArray(); var back = inputs.Skip(length + 1 / 2).Take((length - 1) / 2); bool isKaibun1 = front.SequenceEqual...
using System; using System.Linq; class Program { static void Main(string[] args) { var inputs = Console.ReadLine(); var length = inputs.Length; var front = inputs.Take((length - 1) / 2); var back = inputs.Reverse().Take((length - 1) / 2); bool isKaibun = inputs.SequenceEqual(inputs.Reverse()); ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 205, 213, 3, 4, 0, 28, 0...
8
137
using System; using System.Linq; using System.Text.RegularExpressions; using System.Collections.Generic; using static System.Console; using static Program.Input; using static Program.MyMath; using static Program.Const; namespace Program { static class Const { public static string alp = "abcdefghijklmnopqrstuvwxyz"; ...
using System; using System.Linq; using System.Text.RegularExpressions; using System.Collections.Generic; using static System.Console; using static Program.Input; using static Program.MyMath; using static Program.Const; namespace Program { static class Const { public static string alp = "abcdefghijklmnopqrstuvwxyz"; ...
[["+", 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
2,091
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.AtCoder_Begginer_Contest_159 { class B { static void Main(string[] args) { string s = Console.ReadLine(); int halfLen = (s.Length - 2) / 2; string s1 = s.Substr...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.AtCoder_Begginer_Contest_159 { class B { static void Main(string[] args) { string s = Console.ReadLine(); if (!s.Equals(new string(s.Reverse().ToArray()))) { ...
[["+", 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, 241, 0, 111], ["+", 0, 57, 15, 241, 0, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 241, 0, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 241, 0, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 241, 0, 213, 3, 4,...
8
190
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class162 { static void Main() { string S = Console.ReadLine(); int N = S.Length; string s1 = S.Substring(0, (N - 1) / 2); string s2 = S.Substring((N + 1) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class162 { static void Main() { string S = Console.ReadLine(); int N = S.Length; string s1 = S.Substring(0, (N - 1) / 2); string s2 = S.Substring((N + 1) ...
[["+", 64, 196, 0, 1, 0, 11, 12, 230, 0, 228], ["+", 64, 196, 0, 1, 0, 11, 12, 230, 39, 199], ["+", 0, 1, 0, 11, 12, 230, 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, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213,...
8
334
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class _159b { static void Main() { string s = Console.ReadLine(); string rev = s.Reverse() + ""; string pre = s.Substring(0, (s.Length - 1) / 2); string prerev = pre...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class _159b { static void Main() { string s = Console.ReadLine(); string rev = string.Join("", s.Reverse()); string pre = s.Substring(0, (s.Length - 1) / 2); string ...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72...
8
189
using System; using System.Linq; namespace oasobi { static class MainClass { public static void Main() { string S = Console.ReadLine(); int N = S.Length; string mae = S.Substring(0, (N - 1) / 2); string usiro = S.Substring((N + 1) / 2); var reva = new string(mae.Reverse().ToArray()); var re...
using System; using System.Linq; namespace oasobi { static class MainClass { public static void Main() { string S = Console.ReadLine(); int N = S.Length; string mae = S.Substring(0, (N - 1) / 2); string usiro = S.Substring((N + 1) / 2); var reva = new string(mae.Reverse().ToArray()); var re...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 12, 213, 3, 4, 0, 24], ["+", 15, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0,...
8
148
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) { var s = Console.ReadLine(); if (!IsPalindrome(s)) { Console.WriteLine("No"); return; } if (!IsPalindrom...
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) { var s = Console.ReadLine(); if (!IsPalindrome(s)) { Console.WriteLine("No"); return; } if (!IsPalindrom...
[["-", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["-", 0, 7, 15, 16, 12, 16, 31, 23, 0, 24], ["-", 15, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["-", 15, 16, 12, 16, 31, 23, 0, 16, 12, 203], ["-"...
8
225
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Numerics; namespace ABC159.B { using static Util; public class Solver : SolverBase { public void Run() { var S = ReadString(); var len = S.Length / 2; // 0 to (N-1)/...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Numerics; namespace ABC159.B { using static Util; public class Solver : SolverBase { public void Run() { var S = ReadString(); var len = S.Length / 2; if (!IsLooped(...
[["+", 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, 241, 0, 111], ["+", 8, 196, 0, 57, 15, 241, 0, 213, 63, 22], ["+", 0, 57, 15, 241, 0, 213, 3, 4, 0, 24], ["+", 15, 241, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 57, 15, 241, 0, 213, 3, 4, 0, 25], ["...
8
2,532
using System; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Collections.Generic; class Program { static void Main(string[] args) { string line = Console.ReadLine(); int num = line.Length; string str = line.Substring(0, num / 2); int num2 = line.IndexOf(str,...
using System; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Collections.Generic; class Program { static void Main(string[] args) { string line = Console.ReadLine(); int num = line.Length; string str = line.Substring(0, num / 2); int num2 = line.IndexOf(str,...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 75, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["-", 75, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 75, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 75, 196, 0, 1, 0, 213, 3, 4, 0, 24]]
8
125
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() { var line = Line; int len = line.Length; if (len % 2 == 1 && string.Join("", line.Su...
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() { var line = Line; int len = line.Length; if (len % 2 == 1 && string.Join("", line.Reverse())...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["+", 31, 16, 12, 16, 31, 213, 3, 4, 0, 25], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 17, 60], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", ...
8
1,572
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main() { var l = int.Parse(Console.ReadLine()); decimal l3 = l / 3; decimal ans = l3 * l3 * l3; Console.WriteLine(ans.ToString()); } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main() { var l = int.Parse(Console.ReadLine()); decimal l3 = l / 3m; decimal ans = l3 * l3 * l3; Console.WriteLine(ans.ToString()); Console.ReadLine(); } }
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 250], ["+", 3, 4, 0, 28, 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, 196, 0, 1, 0, 213, 63, 214, 141, 22], ...
8
72
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var vs = Int32.Parse(Console.ReadLine()); var result = max(vs); Console.WriteLine(result); Console.ReadKey(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var vs = Int32.Parse(Console.ReadLine()); var result = max(vs); Console.WriteLine(result); Console.ReadKey(); ...
[["-", 8, 201, 0, 195, 8, 196, 0, 37, 0, 38], ["+", 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, 16, 31, 16, 17, 48], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17,...
8
101
using System; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public static void Main(string[] args) { new C().test(); } } public class C { public void test() { // 整数の入力 int input = CommonRead.ReadInt(); //出力 Console.WriteLine((Math.Pow((input / 3), 3...
using System; using System.Linq; using System.Collections.Generic; using System.Text; public class Program { public static void Main(string[] args) { new C().test(); } } public class C { public void test() { // 整数の入力 decimal input = CommonRead.ReadDecimal(); var divinput = decimal.Divide(input, 3.000...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 197,...
8
475
using System; using System.Collections.Generic; using System.Linq; class Ho { static void Main() { var N = int.Parse(Console.ReadLine()); var aho = Console.ReadLine().Split(); var A = new long[N + 1]; var b = new long[N + 1]; for (int i = 0; i < N; i++) { A[i] = long.Parse(aho[i]); } ...
using System; using System.Collections.Generic; using System.Linq; class Ho { static void Main() { var N = int.Parse(Console.ReadLine()); var aho = Console.ReadLine().Split(); var A = new long[N]; var b = new long[N + 1]; for (int i = 0; i < N; i++) { A[i] = long.Parse(aho[i]); } va...
[["-", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 210, 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, ...
8
253
using System; using System.Collections.Generic; using System.Numerics; using System.Linq; using static System.Math; class MainClass { public static void Main(string[] args) { var N = LnInt(); var As = LnLngs(); var nums = new long[N + 1]; for (int i = 0; i < N; i++) { nums[As[i]]++; } ...
using System; using System.Collections.Generic; using System.Numerics; using System.Linq; using static System.Math; class MainClass { public static void Main(string[] args) { var N = LnInt(); var As = LnLngs(); var nums = new long[N + 1]; for (int i = 0; i < N; i++) { nums[As[i]]++; } ...
[["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["-", 12, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 12, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 8, 196, 0, 7, 15, 16, 12, 16, ...
8
700
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 long n = long.Parse(Console.ReadLine()); long[] a = Console.ReadLine().Split().Select(long.Parse).ToArray(); var dic = new Dictionar...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 long n = long.Parse(Console.ReadLine()); long[] a = Console.ReadLine().Split().Select(long.Parse).ToArray(); var dic = new Dictionar...
[["+", 0, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 16, 31, 23, 0, 16, 31, 23, 0, 25], ["-", 31, 23, 0, 16, 12, 23, 0, 16, 12, 203], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 12, 203]]
8
442
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder { public class ABC { // private const int mod = 1000000007; // 10^9+7 static void Main(string[] args) { // System.Diagnostic...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AtCoder { public class ABC { // private const int mod = 1000000007; // 10^9+7 static void Main(string[] args) { // System.Diagnostic...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],...
8
423
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); var N = sc.ReadInt(); var A = sc.ReadLongArray(N); // ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); var N = sc.ReadInt(); var A = sc.ReadLongArray(N); // ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 210, 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...
8
1,195
using System; using System.Linq; using System.Collections.Generic; using System.Collections; class Program { static void Main(string[] args) { var sol = new Solve(); sol.Exec(); } } class Solve { public void Exec() { var N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split().Selec...
using System; using System.Linq; using System.Collections.Generic; using System.Collections; class Program { static void Main(string[] args) { var sol = new Solve(); sol.Exec(); } } class Solve { public void Exec() { var N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split().Selec...
[["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["-", 206, 207, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28,...
8
345
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { public class Solver { public void Solve() { var cin = new Scanner(); var a = cin.nextInt(); var b = cin.nextInt(); fo...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Numerics; namespace AtCoderWorkspace { public class Solver { public void Solve() { var cin = new Scanner(); var a = cin.nextInt(); var b = cin.nextInt(); fo...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 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, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12,...
8
626
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ABC157 { public class C { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var answer = Enumerable.Range(0, 10000) .Where(x => Math.Tru...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ABC157 { public class C { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var answer = Enumerable.Range(0, 10000).Where( x => Math.Truncate(x * 0.0...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 0, 28, 0, 41, 15, 213, 63, 214, 0, 131], ["+", 0, 28, 0, 41, 15, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 41, 15, 213, 3, 4, 0, 2...
8
123
namespace AtCoder { using System; using System.Linq; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.RegularExpressions; class Program { static void Main() { var s = System.Console.ReadLine(); var q = System.Console.ReadLine().ToInt32(); var ans = new List<char>() ...
namespace AtCoder { using System; using System.Linq; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.RegularExpressions; class Program { static void Main() { var s = System.Console.ReadLine(); var q = System.Console.ReadLine().ToInt32(); var ans = new List<char>(s....
[["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 25], ["-", 0, 200, 0, 212, 0, 230, 10, 229, 0, 45], ["-", 0, 230, 10, 229, 0, 204, 206, 207, 0, 70], ["-", 10, 229, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 230, 10, 229, 0, 204, 206, 207, 0, 73], ["-", 0, 200, 0, 212, 0, 230, 10, 229, 0, 46], ["-", 8, 201, 0, 195, 8, 196, 0, 1...
8
653
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { public static void Main() { string S = Console.ReadLine(); int Q = int.Parse(Console.ReadLine()); bool isReversed = false; var ans = new List<string>(S.Select(c => c.ToString())); for (int i = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { public static void Main() { string S = Console.ReadLine(); int Q = int.Parse(Console.ReadLine()); bool isReversed = false; var ans = new List<char>(S.ToArray()); for (int i = 0; i < Q; i++) { ...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["-", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["-", 0, 28, 0, 218, 8, 213, 63, 21...
8
249
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using static System.Math; using static System.Array; using static AtCoder.IO_ShortCut; using static AtCoder.Tool; using static AtCoder.ModInt; namespace AtCoder { class A...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using static System.Math; using static System.Array; using static AtCoder.IO_ShortCut; using static AtCoder.Tool; using static AtCoder.ModInt; namespace AtCoder { class A...
[["+", 64, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 64, 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
1,970
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading; using System.Threading.Tasks; using static System.Console; namespace ConsoleApp2 { class Program { static public long[] Sarray() { return ReadLine().Split...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading; using System.Threading.Tasks; using static System.Console; namespace ConsoleApp2 { class Program { static public long[] Sarray() { return ReadLine().Split...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 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], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22],...
8
353
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { string s = Console.ReadLine(); long n = long.Parse(Console.ReadLine()); LinkedList<char> lst = new LinkedList<char>(s); Boolean inv = false; int cnt = 0; for (int i = 0; i < ...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { string s = Console.ReadLine(); long n = long.Parse(Console.ReadLine()); LinkedList<char> lst = new LinkedList<char>(s); Boolean inv = false; int cnt = 0; for (int i = 0; i <...
[["+", 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
221
using System; using System.Collections.Generic; using System.IO; using System.Linq; class D { static StreamWriter Out = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; static void Main(string[] args) { string S; Input(out S); int Q; Input(out Q); bool isReversed = fa...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class D { static StreamWriter Out = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; static void Main(string[] args) { string S; Input(out S); int Q; Input(out Q); bool isReversed = fa...
[["+", 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], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, ...
8
1,016
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; using static System.Math; using static Solve.Methods; using stat...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; using static System.Math; using static Solve.Methods; using stat...
[["-", 0, 57, 64, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 141, 22], ["-", 0, 57, 75, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 57, 75, 1, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 20...
8
6,147
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { LinkedList<string> answer = new LinkedList<string>(); answer.AddLast(Console.ReadLine()); bool reverse = false; long Q = long.Parse(Console.ReadLine()); for (var i = 0; i < Q; i++)...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { LinkedList<string> answer = new LinkedList<string>(); foreach (var c in Console.ReadLine()) { answer.AddLast(c.ToString()); } bool reverse = false; long Q = long.Parse(Consol...
[["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 266], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 24], ["+", 0, 195, 8, 196, 0, 210, 39, 216, 0, 217], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 267], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 210, 12, 213, 63,...
8
297
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { var s = Console.ReadLine(); var q = int.Parse(Console.ReadLine()); var flag = true; var list = new LinkedList<string>(); list.AddLast(s); for (var i = 0; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { var s = Console.ReadLine(); var q = int.Parse(Console.ReadLine()); var flag = true; var list = new LinkedList<string>(); foreach (var c in s) { list.AddL...
[["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 266], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 24], ["+", 0, 195, 8, 196, 0, 210, 39, 216, 0, 217], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 267], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210,...
8
303
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace StringFormation { class Program { static void Main(string[] args) { bool hantenFlg = false; var first = Console.ReadLine().Split(' '); LinkedList<string> kotae = new LinkedList<string>(); foreach (var a in...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace StringFormation { class Program { static void Main(string[] args) { bool hantenFlg = false; var first = Console.ReadLine().Split(' '); LinkedList<string> kotae = new LinkedList<string>(); foreach (var a in...
[["+", 8, 196, 0, 210, 12, 204, 206, 207, 0, 70], ["+", 0, 210, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 8, 196, 0, 210, 12, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
358
using System; using System.Linq; using System.Collections.Generic; using System.Text; namespace AtCoder.Contests.ABC158 { /// <summary> /// /// </summary> static class D { static void Main(string[] args) { var s = Console.ReadLine(); var q = ReadInt(); var forward = true; var f = n...
using System; using System.Linq; using System.Collections.Generic; using System.Text; namespace AtCoder.Contests.ABC158 { /// <summary> /// /// </summary> static class D { static void Main(string[] args) { var s = Console.ReadLine(); var q = ReadInt(); var forward = true; var f = n...
[["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 75, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 57, 75, 196, 0, 7, 0, 88], ["+", 8, 196, 0, 57, 75, 196, 0, 7, 0, 24], ["+", 0, 57, 75, 196, 0, 7, 10, 198, 39...
8
656
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 line = Console.ReadLine(); int num = int.Parse(Console.ReadLine()); var mozi = new LinkedList<string>(); boo...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main() { string line = Console.ReadLine(); int num = int.Parse(Console.ReadLine()); var mozi = new LinkedList<string>(); Boolean flag = f...
[["-", 0, 195, 54, 55, 0, 220, 39, 224, 39, 199], ["-", 54, 55, 0, 220, 39, 224, 225, 226, 0, 70], ["-", 54, 55, 0, 220, 39, 224, 225, 226, 0, 73], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 141, 22], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["-", 8, 196, 0, 197, 0, 198,...
8
305
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) { var S = Console.ReadLine(); var Q = Console.ReadLine().ToInt(); var l = new LinkedList<string>(); l.AddFirst(S); ...
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) { var S = Console.ReadLine(); var Q = Console.ReadLine().ToInt(); var l = new LinkedList<string>(); foreach (var item...
[["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 266], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 24], ["+", 0, 195, 8, 196, 0, 210, 39, 216, 0, 217], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 267], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210,...
8
344
using System; using System.Collections.Generic; using System.Linq; namespace CSharp { class Program { static void Main() { var S = Console.ReadLine(); var Q = int.Parse(Console.ReadLine()); var flag = true; var ll = new LinkedList<char>(); ll.AddLast('*'); for (int i = 0; i < Q; i++) { ...
using System; using System.Collections.Generic; using System.Linq; namespace CSharp { class Program { static void Main() { var S = Console.ReadLine(); var Q = int.Parse(Console.ReadLine()); var flag = true; var ll = new LinkedList<char>(); ll.AddLast('*'); for (int i = 0; i < Q; i++) { ...
[["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 64, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["-", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102]...
8
294
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AC { class Program { static void Main(string[] args) { var S = Read().ToCharArray(); var Q = ReadInt(); var S1 = new List<string>(); var S2 = new List<string>(); var right = true; var ans = ""; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AC { class Program { static void Main(string[] args) { var S = Read().ToList(); var Q = ReadInt(); var right = true; var S1 = new List<char>(); var S2 = new List<char>(); var ans = ""; for (int...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 39, ...
8
452
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using AtCoder.Algorithms; using AtCoder.Collections; using AtCoder.Extensions; using AtCoder.Mathematics; namespace AtCoder.ABC158 { public class A : Solver { public override void Solve() { var S = Console.ReadLine...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using AtCoder.Algorithms; using AtCoder.Collections; using AtCoder.Extensions; using AtCoder.Mathematics; namespace AtCoder.ABC158 { public class A : Solver { public override void Solve() { var S = Console.ReadLine...
[["-", 0, 230, 3, 4, 0, 28, 0, 41, 0, 102], ["-", 63, 214, 205, 213, 63, 214, 205, 214, 205, 22], ["-", 63, 214, 205, 213, 63, 214, 205, 214, 0, 131], ["-", 63, 214, 205, 213, 63, 214, 205, 214, 141, 22], ["+", 0, 230, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 3, 4, 0, 28, 0, 41, 75, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 41, 7...
8
6,055
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, 57, 64, 196, 0, 7, 0, 88], ["+", 8, 196, 0, 57, 64, 196, 0, 7, 0, 24], ["+", 0, 57, 64, 196, 0, 7, 10, 198, 39, 199], ["+", 64, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 16, 31, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 214, 0, 13...
8
1,328
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public const long DpInf = 99999999999999; public static void Main(string[] args) { var s = Console.ReadLine(); var q = Console.ReadLine().ToInt(); var ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public const long DpInf = 99999999999999; public static void Main(string[] args) { var s = Console.ReadLine(); var q = Console.ReadLine().ToInt(); var ...
[["+", 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
477
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Library; using static Library.Input; namespace AtCoderTemplate { class ProgramD { static void Main() { var S = Line; int Q = NextInt; bool reverse = false; var first = new List<char>(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Library; using static Library.Input; namespace AtCoderTemplate { class ProgramD { static void Main() { var S = Line; int Q = NextInt; bool reverse = false; var first = new List<char>(); ...
[["+", 0, 16, 31, 16, 12, 213, 63, 214, 205, 199], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0, 24], ["+", 12, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131...
8
1,628
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Text; using System.Text.RegularExpressions; using System.Diagnostics; using static util; using P = pair<int, int>; class Program { static void Main(string[] args) { var sw = new Stream...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Threading; using System.Text; using System.Text.RegularExpressions; using System.Diagnostics; using static util; using P = pair<int, int>; class Program { static void Main(string[] args) { var sw = new Stream...
[["+", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["+", 75, 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, 196, 0, 57, 75, 196, 0, 197, 0, 35], ["-", 31, 23, 0, 16, 31, 16, 31, 16, 17, 48], ["-", 31, 23, 0, 16, 31, 16, 31, 16, ...
8
2,335
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace V { partial class Solver { public void Solve() { Write(SolveLong()); // YesNo(SolveBool()); } public long SolveLong() { long n = Read; long p = Read; string s = Str; n = s.LongCount(); if (...
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace V { partial class Solver { public void Solve() { Write(SolveLong()); // YesNo(SolveBool()); } public long SolveLong() { long n = Read; long p = Read; string s = Str; n = s.LongCount(); if (...
[["-", 8, 201, 0, 195, 8, 196, 0, 37, 0, 38], ["-", 0, 195, 8, 196, 0, 37, 0, 241, 0, 33], ["-", 0, 195, 8, 196, 0, 37, 0, 241, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 37, 0, 35], ["+", 0, 195, 8, 306, 0, 74, 51, 23, 0, 25], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 0, 35], ["+", 0, 235, 8, 201, 0, 195, 0, 251, 0, 259], ...
8
6,817
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; using static MyIO; using static MyUtil; public class E { public static void Main() => (new Solver()).Solve(); } public class Solver { p...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Console; using static System.Math; using static MyIO; using static MyUtil; public class E { public static void Main() => (new Solver()).Solve(); } public class Solver { p...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 20...
8
793
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { ABC158E(); } static void ABC158A() { var str = ReadStr(); Console.WriteLine(str == "AAA" || str == "BBB" ? "No" : "Yes"); } static void ABC158B() { var nab = Rea...
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { ABC158E(); } static void ABC158A() { var str = ReadStr(); Console.WriteLine(str == "AAA" || str == "BBB" ? "No" : "Yes"); } static void ABC158B() { var nab = Rea...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 1...
8
4,415
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; using MethodImplAttribute = System.Runtime.Compi...
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; using MethodImplAttribute = System.Runtime.Compi...
[["+", 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], ["-", 0, 11, 12, 16, 31, 16, 31, 16, 17, 48], ["-", 0, 11, 12, 16, 31, 16, 31, 16, 1...
8
324
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; namespace V { partial class Solver { public void Solve() { // var n = Read; Write(SolveLong()); // YesNo(SolveBool()); } public long SolveLong() { Mint.Set998244353(); v...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; namespace V { partial class Solver { public void Solve() { // var n = Read; Write(SolveLong()); // YesNo(SolveBool()); } public long SolveLong() { Mint.Set998244353(); v...
[["-", 8, 201, 0, 195, 8, 196, 0, 82, 0, 170], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25],...
8
9,593
using System; using System.Linq; using System.Collections.Generic; namespace Sample { class Sample { static void Main(string[] args) { string[][] card = new string[3][]; card[0] = Console.ReadLine().Split(' '); card[1] = Console.ReadLine().Split(' '); card[2] = Console.ReadLine().Split(' '); int N...
using System; using System.Linq; using System.Collections.Generic; namespace Sample { class Sample { static void Main(string[] args) { string[][] card = new string[3][]; card[0] = Console.ReadLine().Split(' '); card[1] = Console.ReadLine().Split(' '); card[2] = Console.ReadLine().Split(' '); int N...
[["-", 31, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 31, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 16, 31, 204, 206, 20...
8
431
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { string s = ReadLineStr(); if (s.Substring(0, 1) != s.Substring(1, 1) || s.Substring(0, 1) != s.Substring(1, 1)) { Console.WriteLine("Ye...
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { string s = ReadLineStr(); if (s.Substring(0, 1) != s.Substring(1, 1) || s.Substring(1, 1) != s.Substring(2, 1)) { Console.WriteLine("Ye...
[["-", 12, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 12, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["-", 12, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 12, 16, 12, 213, 3, 4, 0, 28, 0, 203]]
8
979
using System; using System.Collections.Generic; using System.IO; using System.Linq; class A { static StreamWriter Out = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; static void Main(string[] args) { string s; Input(out s); switch (s) { case "AAA": case "BBB": ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class A { static StreamWriter Out = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; static void Main(string[] args) { string s; Input(out s); switch (s) { case "AAA": case "BBB": ...
[["-", 0, 99, 8, 254, 0, 239, 0, 264, 0, 173], ["-", 8, 254, 0, 239, 0, 264, 0, 5, 0, 62], ["-", 8, 254, 0, 239, 0, 264, 0, 5, 0, 222], ["-", 0, 99, 8, 254, 0, 239, 0, 264, 0, 102], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
875
using System; using System.Linq; using System.Collections.Generic; namespace AtCoderPractice0802 { class MainClass { public static void Main(string[] args) { long[] NAB = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); long N = NAB[0]; long A = NAB[1]; long B = NAB[2]; ...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoderPractice0802 { class MainClass { public static void Main(string[] args) { long[] NAB = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); long N = NAB[0]; long A = NAB[1]; long B = NAB[2]; ...
[["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 25], ["+", 0, 57, 75, 196, 0, 57, 64, 196, 0, 45],...
8
149
using System; namespace abc158_b { class Program { static void Main(string[] args) { string[] NAB = Console.ReadLine().Split(" "); long N = long.Parse(NAB[0]); long A = long.Parse(NAB[1]); long B = long.Parse(NAB[2]); long ans = N / (A + B); long rem = N % (A + B); ans = ans * A + rem; ...
using System; namespace abc158_b { class Program { static void Main(string[] args) { string[] NAB = Console.ReadLine().Split(" "); long N = long.Parse(NAB[0]); long A = long.Parse(NAB[1]); long B = long.Parse(NAB[2]); long ans = N / (A + B); long rem = N % (A + B); ans = ans * A + Math.M...
[["+", 0, 11, 12, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 11, 12, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 11, 12, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 16, 12, 213, 3, 4, 0, 21], ["+", 12, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 11, 12, 16, 12, 213, 3, 4, 0, 25...
8
116
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC158B { class Program { static void Main(string[] args) { var N = RLong; var A = RLong; var B = RLong; long ans = Math.Min(N, A); Console.Wr...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC158B { class Program { static void Main(string[] args) { var N = RLong; var A = RLong; var B = RLong; long div = N / (A + B); long rem = N ...
[["+", 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, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 17, 72]...
8
693
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) { var q = ReadLineIntSpilit(); var n = q[0]; var a = q[1]; var b = q[2]; var re = 0; //はみ出た個数 var t = n...
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) { long[] q = ReadLineLongSpilit(); long n = q[0]; long a = q[1]; long b = q[2]; long re = 0; //はみ出た個数 v...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 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, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 195, 8, 196, 0, 197, ...
8
668
using System; using System.Collections.Generic; namespace atcoder { class Program { static void Main(string[] args) { string[] S = Console.ReadLine().Split(' '); int N = int.Parse(S[0]); int A = int.Parse(S[1]); int B = int.Parse(S[2]); int total = A + B; int ans; ans = (N / total) * A; ...
using System; using System.Collections.Generic; namespace atcoder { class Program { static void Main(string[] args) { string[] S = Console.ReadLine().Split(' '); long N = long.Parse(S[0]); long A = long.Parse(S[1]); long B = long.Parse(S[2]); long total = A + B; long ans; ans = (N / tota...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
128
using System; using System.Linq; class Program { static void Main(string[] args) { long[] inp = Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray(); long n, a, b; n = inp[0]; a = inp[1]; b = inp[2]; long ans = 0; ans = a * (n / (a + b)); ans += n % (a + b);...
using System; using System.Linq; class Program { static void Main(string[] args) { long[] inp = Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray(); long n, a, b; n = inp[0]; a = inp[1]; b = inp[2]; long ans = 0, tmp = 0; ans = a * (n / (a + b)); tmp = n % ...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ...
8
121
using System; namespace abc158B { class MainClass { public static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int N = int.Parse(str[0]); int A = int.Parse(str[1]); int B = int.Parse(str[2]); int M = N / (A + B); int L = N % (A + B); if (L >= A) Console.Writ...
using System; namespace abc158B { class MainClass { public static void Main(string[] args) { string[] str = Console.ReadLine().Split(); long N = long.Parse(str[0]); long A = long.Parse(str[1]); long B = long.Parse(str[2]); long M = N / (A + B); long L = N % (A + B); if (L >= A) Cons...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
128
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { string[] input = Console.ReadLine().Split(); int N = int.Parse(input[0]); int A = int.Parse(input[1]); int B = int.Parse(input[2]); int ans = ((N / (A + B)) * A) + Math.Min(A, (N % (A + ...
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { string[] input = Console.ReadLine().Split(); long N = long.Parse(input[0]); long A = long.Parse(input[1]); long B = long.Parse(input[2]); long ans = ((N / (A + B)) * A) + Math.Min(A, (N ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
122
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc158/tasks/abc158_b class QuestionB { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Consol...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc158/tasks/abc158_b class QuestionB { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Consol...
[["-", 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, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 20...
8
220
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class B { public static void Main() { var nab = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); long n = nab[0]; long a = nab[1]; long b ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class B { public static void Main() { var nab = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); long n = nab[0]; long a = nab[1]; long b ...
[["+", 0, 28, 0, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 21], ["+", 0, 16, 12, 213, 3, 4, 0, 28, 0, 22]]
8
122
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var nab = Console.ReadLine().Split().Select(int.Parse).ToArray(); var n = nab[0]; var a = nab[1]; var b = nab[2]; var ans = (n / (a + b)) * a; var mod = n % (a + b); if (...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var nab = Console.ReadLine().Split().Select(long.Parse).ToArray(); var n = nab[0]; var a = nab[1]; var b = nab[2]; var ans = (n / (a + b)) * a; var mod = n % (a + b); ans...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 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,...
8
130
using System; class Test { public static void Main() { var str = Console.ReadLine().Split(' '); int N = int.Parse(str[0]); int blue = int.Parse(str[1]); int red = int.Parse(str[2]); int sumBlue = 0; sumBlue = N / (blue + red) * blue; if (N % (blue + red) >= blue) { sumBlue += blue;...
using System; class Test { public static void Main() { var str = Console.ReadLine().Split(' '); long N = long.Parse(str[0]); long blue = long.Parse(str[1]); long red = long.Parse(str[2]); long sumBlue = 0; sumBlue = N / (blue + red) * blue; if (N % (blue + red) >= blue) { sumBlue +...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
125
using System; namespace ABC158B { static class Program { static void Main() { long[] nbrs = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); var total = (nbrs[0] / (nbrs[1] + nbrs[2])) * nbrs[1]; var remaining = Math.Min(nbrs[1], nbrs[0] % nbrs[1]); total += remaining; Console.WriteLine(...
using System; namespace ABC158B { static class Program { static void Main() { long[] nbrs = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); var total = (nbrs[0] / (nbrs[1] + nbrs[2])) * nbrs[1]; var remaining = Math.Min(nbrs[1], nbrs[0] % (nbrs[1] + nbrs[2])); total += remaining; Consol...
[["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 23, 0, 16, 12, 204, 205, 22], ["+", 12, 23, 0, 16, 12, 204, 206, 207, 0, 70], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 23, 0, 16, 12, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]]
8
104
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) { var arg = Console.ReadLine().Split(' '); var N = arg[0].ToDecimal(); var A = arg[1].ToDecimal(); var B = arg[2].ToD...
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) { var arg = Console.ReadLine().Split(' '); var N = arg[0].ToDecimal(); var A = arg[1].ToDecimal(); var B = arg[2].ToD...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0...
8
208
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TOPSIC { partial class Program { static void Main(string[] args) { string[] NAB = Console.ReadLine().Split(' '); double N = double.Parse(NAB[0]); double A = double.Parse(NAB[1]); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TOPSIC { partial class Program { static void Main(string[] args) { string[] NAB = Console.ReadLine().Split(' '); long N = long.Parse(NAB[0]); long A = long.Parse(NAB[1]); long...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 39, 199], ["+", 0, 1, 0, 11, 12, 16, 31, 74, ...
8
147
using System; namespace Count_Balls { class Program { static void Main(string[] args) { String input = Console.ReadLine(); String[] splitted = input.Split(' '); int N = int.Parse(splitted[0]); int A = int.Parse(splitted[1]); int B = int.Parse(splitted[2]); int answer = ((N / (A + B)) * A) + ...
using System; namespace Count_Balls { class Program { static void Main(string[] args) { String input = Console.ReadLine(); String[] splitted = input.Split(' '); long N = long.Parse(splitted[0]); long A = long.Parse(splitted[1]); long B = long.Parse(splitted[2]); long answer = ((N / (A + B)) ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
125
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { List<long> NAB = Console.ReadLine().Split(' ').Select(o => long.Parse(o)).ToList(); long N = NAB[0], A = NAB[1], B = NAB[2]; Console.WriteLine(A != 0 ? A * (N / (A + B)) + N % (A ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { List<long> NAB = Console.ReadLine().Split(' ').Select(o => long.Parse(o)).ToList(); long N = NAB[0], A = NAB[1], B = NAB[2]; Console.WriteLine(A != 0 ? A * (N / (A + B)) + Math.Mi...
[["+", 0, 41, 64, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 41, 64, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 41, 64, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 41, 64, 16, 12, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25], ["+", 0, 41, 64, 16, 12, 213, 3, 4, 0, 21], ["+", 64, 16, 12, 213, 3, 4, 0, 28, 0, 22]]
8
118
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); long N = long.Parse(input[0]); long A = long.Parse(input[1]); long B = long.Parse(input[2]); if (A == 0) { Console.WriteLine(0); } else if (N <= A) { Console.Write(N); ...
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); long N = long.Parse(input[0]); long A = long.Parse(input[1]); long B = long.Parse(input[2]); if (A == 0) { Console.WriteLine(0); } else if (N <= A) { Console.Write(N); ...
[["-", 0, 57, 75, 57, 75, 57, 15, 16, 17, 18], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 17, 19], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 25], ["+", 75, 57, 75, 57, 75, 196, 0, 197, 0, 35], ["+", 75, 57, 75, 57, 75, 196, 0, 57, 0, 121], ["+", 75, 57, 75, 57, 75, 196, 0, 57, 0, 24], ["+", 75, 57, 75, 196, 0, 57, 15, 16, 31, ...
8
162
using System; using System.Linq; namespace ABC158B { class Program { static void Main(string[] args) { var NAB = Console.ReadLine().Split().Select(long.Parse).ToArray(); var N = NAB[0]; var A = NAB[1]; var B = NAB[2]; if (A > N || A + B >= N) { Console.WriteLine(A); return; } ...
using System; using System.Linq; namespace ABC158B { class Program { static void Main(string[] args) { var NAB = Console.ReadLine().Split().Select(long.Parse).ToArray(); var N = NAB[0]; var A = NAB[1]; var B = NAB[2]; if (N <= A) { Console.WriteLine(N); return; } if (A + B >...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 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, 1...
8
145
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { long[] nab = ReadLineLongArray(); if (nab[1] == 0) { Console.WriteLine(0); return; } if (nab[2] == 0) { Console.WriteLine(n...
using System; using System.Collections.Generic; using static System.Math; using System.Linq; using System.Text; class DandA { static void Main(string[] args) { long[] nab = ReadLineLongArray(); if (nab[1] == 0) { Console.WriteLine(0); return; } if (nab[2] == 0) { Console.WriteLine(n...
[["+", 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], ["+", 12, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+"...
8
1,024
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; namespace Atcoder { class Program { static void Main(string[] args) { StreamScanner scan = new StreamScanner(System.Console.OpenStandardInput()); lon...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; namespace Atcoder { class Program { static void Main(string[] args) { StreamScanner scan = new StreamScanner(System.Console.OpenStandardInput()); lon...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 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, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, ...
8
682
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int a = int.Parse(input[1]); int b = int.Parse(input[2]); int ans = 0; int c = n / (a + b); int d = 0; if (a <= n % (a + b)) { d = a; ...
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); long n = long.Parse(input[0]); long a = long.Parse(input[1]); long b = long.Parse(input[2]); long ans = 0; long c = n / (a + b); long d = 0; if (a <= n % (a + b)) { ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
138
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 28, 0, 16, 31, 16, 31, 16, 17, 48], ["-", 0, 28, 0, 16, 31, 16, 31, 16, 12, 22], ...
8
466
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassLibrary1 { public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } public class Class1 { static Dictionary<Tuple<long, long>, long> dic...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassLibrary1 { public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } public class Class1 { static Dictionary<Tuple<long, long>, long> dic...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 48], ["+", 0, 212, 0, 16, 31, 16, 12, 23...
8
1,979
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var sol = new Solve(); sol.Exec(); } } class Solve { public void Exec() { var l = Console.ReadLine().Split().Select(long.Parse).ToArray(); long N = l[0], A = l[1], B = l[2]; ...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var sol = new Solve(); sol.Exec(); } } class Solve { public void Exec() { var l = Console.ReadLine().Split().Select(long.Parse).ToArray(); long N = l[0], A = l[1], B = l[2]; ...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]]
8
134
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static void Main(string[] args) { // スペース区切りの整数の入力 var inputNum = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var N = inputNum[0]; var A = inputNum[...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static void Main(string[] args) { // スペース区切りの整数の入力 var inputNum = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long N = inputNum[0]; long A = inputN...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
147
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var NAB = ReadLongArray(); var div = NAB[0] / (NAB[1] + NAB[2]); var lastBlue = NAB[0] % (N...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var NAB = ReadLongArray(); var div = NAB[0] / (NAB[1] + NAB[2]); var lastBlue = NAB[0] % (N...
[["+", 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, 41, 15, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 41, 15, 16, 17, 20], ["+", 0, 11, 12, 41, 15, 16, 12, 204, 205, 22], ["+", 12, 41, 15, 16, 12, 204, 206, 207, 0, 70], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203]...
8
288
using System; using System.Collections.Generic; using System.IO; using System.Linq; class B { static StreamWriter Out = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; static void Main(string[] args) { long N, A, B; Input(out N, out A, out B); if (B == 0) { Print(0); ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class B { static StreamWriter Out = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; static void Main(string[] args) { long N, A, B; Input(out N, out A, out B); if (A == 0) { Print(0); ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 8, 196, 0, 57, 75, 196, 0, 197, 0, 35], ["-", 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, 16, 31, 22], ["-", 75, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["-...
8
909
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace CsharpSpiral { partial class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = true }; Console.SetOut(sw); new Program()...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace CsharpSpiral { partial class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = true }; Console.SetOut(sw); new Program()...
[["+", 0, 28, 0, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 23, 0, 24], ["+", 12, 213, 3, 4, 0, 28, 0, 23, 0, 25], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 21], ["+", 0, 16, 12, 213, 3, 4, 0, 28, 0, 22]]
8
620
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Swap<T>(ref T a, ref T b) { T temp = a; a = b; b = temp; } static void Main() { ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Swap<T>(ref T a, ref T b) { T temp = a; a = b; b = temp; } static void Main() { ...
[["+", 0, 212, 0, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 212, 0, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 212, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 212, 0, 16, 12, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]]
8
1,174
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...
[["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 31, 22], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 85]...
8
178
using System; using System.Linq; class C { static void Main() { var h = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); var r = Enumerable.Range(1, 1009).FirstOrDefault(x => 2 * x == 25 * h[0] && x == 10 * h[1]); Console.WriteLine(r > 0 ?...
using System; using System.Linq; class C { static void Main() { var h = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); var r = Enumerable.Range(1, 1009).FirstOrDefault( x => (int)(0.08 * x) == h[0] && (int)(0.1 * x) == h[1]); Console.WriteLine(r > 0 ? r : -1); } }
[["-", 0, 218, 8, 16, 31, 16, 31, 16, 31, 203], ["+", 0, 218, 8, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 218, 8, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 218, 8, 16, 31, 16, 31, 74, 0, 25], ["+", 8, 16, 31, 16, 31, 74, 51, 23, 0, 24], ["+", 31, 16, 31, 74, 51, 23, 0, 16, 31, 250], ["+", 8, 16, 31, 16, 31, 74, 51, 23, 0, 25]...
8
92
using System; using System.Collections.Generic; using System.Linq; namespace test { class MainClass { public static void Main(string[] args) { //問題158 // A <= x * 1.08 < A + 1 // 100 * A <= x * 108 < 100 * A + 100 // B * 100 <= x * 110 < B * 100 + 100 // A * 100 / 108 <= x < (A + 100) / 108 ...
using System; using System.Collections.Generic; using System.Linq; namespace test { class MainClass { public static void Main(string[] args) { //問題158 // A <= x * 1.08 < A + 1 // 100 * A <= x * 108 < 100 * A + 100 // B * 100 <= x * 110 < B * 100 + 100 // A * 100 / 108 <= x < (A + 100) / 108 ...
[["+", 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, 16, 31, 16, 31, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 48], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 1...
8
163
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[] line = Console.ReadLine().Split(' '); float A = float.Parse(line[0]); float B = float.Parse(line[1]); for ...
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[] line = Console.ReadLine().Split(' '); float A = float.Parse(line[0]); float B = float.Parse(line[1]); for ...
[["+", 8, 196, 0, 7, 15, 16, 12, 74, 0, 24], ["+", 8, 196, 0, 7, 15, 16, 12, 74, 39, 199], ["+", 8, 196, 0, 7, 15, 16, 12, 74, 0, 25], ["+", 0, 7, 15, 16, 12, 74, 51, 23, 0, 24], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 48], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 15, 16, 12, 74, 51, 23, 0, 16, 17, 85], ["+"...
8
156
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TOPSIC { partial class Program { static void Main(string[] args) { string[] AB = Console.ReadLine().Split(' '); int A = int.Parse(AB[0]); int B = int.Parse(AB[1]); double ans...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TOPSIC { partial class Program { static void Main(string[] args) { string[] AB = Console.ReadLine().Split(' '); int A = int.Parse(AB[0]); int B = int.Parse(AB[1]); double ans...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 15, 16, 12, 74, 51, 213, 63, 214, 205, 22], ["+", 15, 16, 12, 74, 51, 213, 63, 214, 0, 131], ["+", 15, 16, 12, 74, 51, 213, 63, 214, 141, 22], ["+", 15, 16, 12, 74, 51, 213, 3, 4, 0, 24], ["+", 15, 16, 12, 74, 51, 213, 3, 4...
8
207
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C___Tax_Increase { class Program { static void Main(string[] args) { var A_B = Console.ReadLine().Split().Select(int.Parse).ToArray(); int A = A_B[0], B = A_B[1]; int cal_A = (in...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C___Tax_Increase { class Program { static void Main(string[] args) { var A_B = Console.ReadLine().Split().Select(int.Parse).ToArray(); int A = A_B[0], B = A_B[1]; for (int i = 10...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 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, ...
8
167
using System; using System.Linq; namespace ABC158_C { class Program { static void Main(string[] args) { int[] S = Console.ReadLine() .Trim() .Split(' ') .Select(a => int.Parse(a)) .ToArray(); Console.WriteLine(S[0]); Console.WriteLin...
using System; using System.Linq; namespace ABC158_C { class Program { static void Main(string[] args) { int[] S = Console.ReadLine() .Trim() .Split(' ') .Select(a => int.Parse(a)) .ToArray(); for (int i = 0; i <= 1000; i++) { if (M...
[["-", 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, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ...
8
155
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; using System.Numerics; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Co...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; using System.Numerics; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Co...
[["+", 0, 212, 0, 74, 51, 213, 63, 214, 205, 22], ["+", 0, 212, 0, 74, 51, 213, 63, 214, 0, 131], ["+", 0, 212, 0, 74, 51, 213, 63, 214, 141, 22], ["-", 0, 212, 0, 74, 51, 23, 0, 16, 12, 250], ["+", 51, 213, 3, 4, 0, 28, 0, 16, 12, 250], ["-", 0, 212, 0, 74, 51, 23, 0, 16, 12, 203]]
8
1,262
using System; using System.Linq; using System.Collections.Generic; using E = System.Linq.Enumerable; public class Program { public static void Main() { var ab = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); var a = ab[0]; var b = ab[1]; for (int i = 1; i <= 100; ++i) { var x...
using System; using System.Linq; using System.Collections.Generic; using E = System.Linq.Enumerable; public class Program { public static void Main() { var ab = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); var a = ab[0]; var b = ab[1]; for (int i = 1; i <= 1100; ++i) { var ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 213, 63, 214, 205, 214, 205, 214, 205, 22], ["-", 0, 213, 63, 214, 205, 214, 205, 214, 0, 131], ["-", 0, 213, 63, 214, 205, 214, 205, 214, 141, 22], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["-", 0, 1, 0, 213, ...
8
175
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static Panasonic2020.C.Cin; using static Panasonic2020.C.Util; using Pair = Panasonic2020.C.VTuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<long>>; using System.Text; ...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static Panasonic2020.C.Cin; using static Panasonic2020.C.Util; using Pair = Panasonic2020.C.VTuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<long>>; using System.Text; ...
[["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 72], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22...
8
2,216
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...
[["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, ...
8
212
using System; using System.Linq; using System.Collections.Generic; namespace PANASONIC2020 { class C { static void Main(string[] args) { var x = Console.ReadLine().Split().Select(long.Parse).ToArray(); var a = x[0]; var b = x[1]; var c = x[2]; if (a + b < c) Console.WriteLine("Yes"); el...
using System; using System.Linq; using System.Collections.Generic; namespace PANASONIC2020 { class C { static void Main(string[] args) { var x = Console.ReadLine().Split().Select(long.Parse).ToArray(); var a = x[0]; var b = x[1]; var c = x[2]; var d = c - a - b; if (4 * a * b < d * d && d >...
[["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17...
8
109
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C { class Program { static void Main(string[] args) { var abc = Console.ReadLine().Split(' '); var nums = new long[3]; for (int i = 0; i < 3; i++) { nums[i] = long.Parse(abc...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C { class Program { static void Main(string[] args) { var abc = Console.ReadLine().Split(' '); var nums = new long[3]; for (int i = 0; i < 3; i++) { nums[i] = long.Parse(abc...
[["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 205, 22], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["-", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["-", 31, 213, 3, 4, 0, 28, 0, 23, 0, ...
8
164
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System; using System.Collections.Generic; using System.Linq; namespace ClassLibrary1 { public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } pub...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System; using System.Collections.Generic; using System.Linq; namespace ClassLibrary1 { public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } pub...
[["-", 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], ["+", 8, 201, 0, 195, 8, 196, 0...
8
1,909
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; using static System.Math; using static Solve.Methods; using stat...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Text; using static System.Math; using static Solve.Methods; using stat...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]...
8
5,464
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { long[] num = longa(); long ab2 = num[0] * num[1] * 4; long cba = num[2...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { long[] num = longa(); long ab2 = num[0] * num[1] * 4; long cba = num[2...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]...
8
844
using System; using System.Linq; using System.Text; using System.Collections.Generic; class Program { static void Main(string[] args) { //読み込む string[] line = Console.ReadLine().Split(' '); ulong a = ulong.Parse(line[0]); ulong b = ulong.Parse(line[1]); ulong c = ulong.Parse(line[2]); bool l...
using System; using System.Linq; using System.Text; using System.Collections.Generic; class Program { static void Main(string[] args) { //読み込む string[] line = Console.ReadLine().Split(' '); long a = long.Parse(line[0]); long b = long.Parse(line[1]); long c = long.Parse(line[2]); bool less = ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199]]
8
171
using System; class Program { static void Main() { var lines = Console.ReadLine().Split(' '); var H = long.Parse(lines[0]); var M = long.Parse(lines[1]); var L = long.Parse(lines[2]); var N = (L - H - M) * (L - H - M) - 4 * H * M; if (N > 0) Console.WriteLine("Yes"); else Conso...
using System; class Program { static void Main() { var lines = Console.ReadLine().Split(' '); var H = long.Parse(lines[0]); var M = long.Parse(lines[1]); var L = long.Parse(lines[2]); if (L - H - M < 0) Console.WriteLine("No"); else { var N = (L - H - M) * (L - H - M) - 4 * H * M;...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]...
8
119
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var a = long.Parse(input[0]); var b = long.Parse(input[1]); var c = long.Parse(input[2]); if (4 * a * b < (c -...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var a = long.Parse(input[0]); var b = long.Parse(input[1]); var c = long.Parse(input[2]); if (c - a - b > 0) {...
[["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 20...
8
143