buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionB { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionB { /// <summary> /// https://atcoder.jp/contests/abc168/tasks/abc168_b /// </summary> public static void Main(string[] args) { var sw = new ...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 64, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 75, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 16, 31, 213, 3, 4, 0, 28, 0, 22]]
8
165
using System; public class Hello { public static void Main() { int n = int.Parse(Console.ReadLine()); string str = Console.ReadLine(); int s = str.Length; if (s > n) { Console.WriteLine(str.Substring(0, 7) + "..."); } else { Console.WriteLine(str); } } }
using System; public class Hello { public static void Main() { int n = int.Parse(Console.ReadLine()); string str = Console.ReadLine(); int s = str.Length; if (s > n) { Console.WriteLine(str.Substring(0, n) + "..."); } else { Console.WriteLine(str); } } }
[["-", 0, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 16, 31, 213, 3, 4, 0, 28, 0, 22]]
8
82
using System; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); int s = int.Parse(Console.ReadLine()); string k = Console.ReadLine(); if (k...
using System; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); int s = int.Parse(Console.ReadLine()); string k = Console.ReadLine(); if (k...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
138
using System; using System.Collections.Generic; class Program { static void Main() { string K = Console.ReadLine(); string S = Console.ReadLine(); int Ka = int.Parse(K); int Sa = S.Length; if (Ka >= Sa) { Console.WriteLine(S); } else if (Ka < Sa) { Console.WriteLine(S.Substring(0...
using System; using System.Collections.Generic; class Program { static void Main() { string K = Console.ReadLine(); string S = Console.ReadLine(); int Ka = int.Parse(K); int Sa = S.Length; if (Ka >= Sa) { Console.WriteLine(S); } else if (Ka < Sa) { Console.WriteLine(S.Substring(0...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 12, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 16, 12, 5, 0, 222]]
8
94
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int K = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); int flg = S.Length; if (K - flg >= 0) { Console.Write(S); } else { for (int i = 0; i < flg - K; i++) { Console.Write(S...
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int K = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); int flg = S.Length; if (K - flg >= 0) { Console.Write(S); } else { for (int i = 0; i < K; i++) { Console.Write(S[i]); ...
[["-", 75, 196, 0, 7, 15, 16, 12, 16, 31, 22], ["-", 75, 196, 0, 7, 15, 16, 12, 16, 17, 33]]
8
109
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { public static class program { public static void Main() { var K = int.Parse(Console.ReadLine()); var S = Console.ReadLine(); if (K <= S.Length) { var ans = ""; for (var i = 0; i < K; i++) { ans = a...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { public static class program { public static void Main() { var K = int.Parse(Console.ReadLine()); var S = Console.ReadLine(); if (K < S.Length) { var ans = ""; for (var i = 0; i < K; i++) { ans = an...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]]
8
122
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC168_B { class Program { static void Main(string[] args) { int K = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); if (S.Length >= K) { S = S.Substring(0, K...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC168_B { class Program { static void Main(string[] args) { int K = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); if (S.Length > K) { S = S.Substring(0, K)...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]]
8
107
using System; namespace _168 { class Program { static void Main(string[] args) { B(); } public static void A() { int x = int.Parse(Console.ReadLine()) % 10; if (x == 2 || x == 4 || x == 5 || x == 7 || x == 9) { Console.WriteLine("hon"); } if (x == 0 || x == 6 || x == 1 || x == 8) { Con...
using System; namespace _168 { class Program { static void Main(string[] args) { B(); } public static void A() { int x = int.Parse(Console.ReadLine()) % 10; if (x == 2 || x == 4 || x == 5 || x == 7 || x == 9) { Console.WriteLine("hon"); } if (x == 0 || x == 6 || x == 1 || x == 8) { Con...
[["-", 0, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 16, 31, 213, 3, 4, 0, 28, 0, 22]]
8
198
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; using System.Text; namespace AtCoder { static class Program_B { class Solver { public void Solve() { var k = Int(); var s = Rl(); if (s.Length < k) { Wl(s...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; using System.Text; namespace AtCoder { static class Program_B { class Solver { public void Solve() { var k = Int(); var s = Rl(); if (s.Length <= k) { Wl(...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
745
using System; class Program { static void Main(string[] args) { int k = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); if (s.Length < k) { Console.WriteLine(s); } else { string s2 = s.Remove(k); Console.WriteLine(s2 + "..."); } return; } }
using System; class Program { static void Main(string[] args) { int k = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); if (s.Length <= k) { Console.WriteLine(s); } else { string s2 = s.Remove(k); Console.WriteLine(s2 + "..."); } return; } }
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
84
using System; using System.Collections.Generic; using System.Linq; namespace abc168b { class Program { static void Main(string[] args) { //========================================================================================================================== // 1) input int k = int.Parse(Console.ReadL...
using System; using System.Collections.Generic; using System.Linq; namespace abc168b { class Program { static void Main(string[] args) { //========================================================================================================================== // 1) input int k = int.Parse(Console.ReadL...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]]
8
93
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...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
182
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace Main { class Program { static void Main(string[] args) { //ここから // int n=Readint(); // string[] str = Console.ReadLine().Split(' '); int n = Readint(); string s = Console.ReadLine(); if (s...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace Main { class Program { static void Main(string[] args) { //ここから // int n=Readint(); // string[] str = Console.ReadLine().Split(' '); int n = Readint(); string s = Console.ReadLine(); if (s...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
198
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...
[["-", 0, 212, 0, 16, 31, 16, 31, 23, 0, 24], ["-", 31, 23, 0, 16, 31, 213, 3, 4, 0, 25], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 17, 109], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203]]
8
234
using System; using System.Linq; namespace _168.C { internal class Program { private static void Main(string[] args) { var i = Console.ReadLine().Split().Select(int.Parse).ToList(); var (a, b, h, m) = (i[0], i[1], i[2], i[3]); var hd = 360 * h / 12.0 * Math.PI / 180; var md = 360 * m / 60...
using System; using System.Linq; namespace _168.C { internal class Program { private static void Main(string[] args) { var i = Console.ReadLine().Split().Select(int.Parse).ToList(); var (a, b, h, m) = (i[0], i[1], i[2], i[3]); var hd = (360 * h / 12.0 + m / 2.0) * Math.PI / 180; var md = ...
[["+", 0, 212, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 16, 31, 23, 0, 16, 12, 16, 31, 22], ["+", 31, 16, 31, 23, 0, 16, 12, 16, 17, 85], ["+", 31, 16, 31, 23, 0, 16, 12, 16, 12, 250], ["+", 0, 212, 0, 16, 31, 16, 31, 23, 0, 25]]
8
198
using System; using System.Linq; 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(); } public void Solve() { string[] input = Console.ReadLine().Split(" "); int a...
using System; using System.Linq; 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(); } public void Solve() { string[] input = Console.ReadLine().Split(" "); int a...
[["+", 64, 1, 0, 11, 12, 16, 31, 16, 31, 203], ["+", 64, 1, 0, 11, 12, 16, 31, 16, 17, 48]]
8
244
using System; using System.Linq; using static System.Console; namespace C { internal class Program { public static void Main(string[] args) { var input = ReadLine().Split(' ').Select(int.Parse).ToList(); var degA = input[2] * (360 / 12) + 30 * input[3] / 60; // H+M/60 var degB = input[3] * (360 / 60); ...
using System; using System.Linq; using static System.Console; namespace C { internal class Program { public static void Main(string[] args) { var input = ReadLine().Split(' ').Select(double.Parse).ToList(); var degA = input[2] * (360d / 12) + 30 * input[3] / 60; // H+M/60 var degB = input[3] * (360d / 60...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 31, 203], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 31, 250], ["-", 0, 212, 0, 16, 12, 23, 0, 16, 31, 203], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 31, 250], ["-", 0, 198, 0, 200, 0, 212, 0, 23, 0,...
8
192
using System; namespace test { class MainClass { public static void Main(string[] args) { double PI = 3.14159265358979323846264338327950; string x = Console.ReadLine(); // y[]はchar //切り分け string[] y = x.Split(); // int型に直す int a = int.Parse(y[0]); int b = int.Parse(y[1]); int h = ...
using System; namespace test { class MainClass { public static void Main(string[] args) { double PI = 3.14159265358979323846264338327950; string x = Console.ReadLine(); // y[]はchar //切り分け string[] y = x.Split(); // int型に直す double a = int.Parse(y[0]); double b = int.Parse(y[1]); do...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
239
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) { string line = Console.ReadLine(); string[] strs = line.Split(' '); int A = int.Parse(strs[0]); int B = int.Parse(strs[1])...
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) { string line = Console.ReadLine(); string[] strs = line.Split(' '); int A = int.Parse(strs[0]); int B = int.Parse(strs[1])...
[["-", 0, 195, 8, 196, 0, 57, 0, 42, 0, 20], ["+", 0, 195, 8, 196, 0, 57, 0, 42, 0, 47], ["-", 0, 195, 8, 196, 0, 57, 0, 42, 0, 42], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 205, 203], ["-", 8, 196, 0, 57, 64, 1, 0, 241, 0, 203], ["+", 0, 213, 63, 214, 0, 42, 0, 42, 0, 42]]
8
211
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { var X = Console.ReadLine().Trim().Split().Select(float.Parse).ToArray(); var A = X[0]; var B = X[1]; var H = X[2]; var M = X[3]; var angle = 360 *...
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { var X = Console.ReadLine().Trim().Split().Select(double.Parse).ToArray(); var A = X[0]; var B = X[1]; var H = X[2]; var M = X[3]; var angle = 360 ...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]]
8
165
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static AtCoderTemplate.MyLibrary; namespace AtCoderTemplate { class Program { static void Main(string[] args) { string[] str = Console.ReadL...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static AtCoderTemplate.MyLibrary; namespace AtCoderTemplate { class Program { static void Main(string[] args) { string[] str = Console.ReadL...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 200, 0, 212, 0, 16, 12, 16, 17, 48]]
8
244
using System; namespace Kznner { class Program { static void Main() { string[] inputABHM = Console.ReadLine().Split(' '); int A = int.Parse(inputABHM[0]); int B = int.Parse(inputABHM[1]); int H = int.Parse(inputABHM[2]); int M = int.Parse(inputABHM[3]); double Ax = Math.Sin(TimeToRadianA(H, ...
using System; namespace Kznner { class Program { static void Main() { string[] inputABHM = Console.ReadLine().Split(' '); int A = int.Parse(inputABHM[0]); int B = int.Parse(inputABHM[1]); int H = int.Parse(inputABHM[2]); int M = int.Parse(inputABHM[3]); double Ax = Math.Sin(TimeToRadianA(H, ...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 17, 48]]
8
268
using System; using System.Linq; public class Test { public static void Main() { var x = Console.ReadLine().Split().Select(y => int.Parse(y)).ToArray(); int a = x[0]; int b = x[1]; int h = x[2]; int m = x[3]; double aa = 30 * h + m / 2; double bb = 6 * m; double theta; if (aa >=...
using System; using System.Linq; public class Test { public static void Main() { var x = Console.ReadLine().Split().Select(y => int.Parse(y)).ToArray(); int a = x[0]; int b = x[1]; int h = x[2]; int m = x[3]; double aa = 30 * h + 0.5 * m; double bb = 6 * m; double theta; if (aa ...
[["+", 0, 200, 0, 212, 0, 16, 12, 16, 31, 250], ["+", 0, 200, 0, 212, 0, 16, 12, 16, 17, 48], ["-", 0, 200, 0, 212, 0, 16, 12, 16, 17, 85], ["-", 0, 200, 0, 212, 0, 16, 12, 16, 12, 203]]
8
189
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Numerics; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve()...
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Numerics; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve()...
[["-", 0, 212, 0, 16, 31, 16, 31, 16, 12, 250], ["+", 0, 212, 0, 16, 31, 16, 31, 16, 12, 250]]
8
2,617
using System; using System.Collections.Generic; using System.Globalization; namespace cswork { class Program { public Program() {} Scanner cin; const int MAXIN = 1024; bool[] used = new bool[MAXIN]; int[] perm = new int[MAXIN]; List<int[]> permList = new List<int[]>(); void Omame() { cin = new Sca...
using System; using System.Collections.Generic; using System.Globalization; namespace cswork { class Program { public Program() {} Scanner cin; const int MAXIN = 1024; bool[] used = new bool[MAXIN]; int[] perm = new int[MAXIN]; List<int[]> permList = new List<int[]>(); void Omame() { cin = new Sca...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
555
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics.CodeAnalysis; namespace AtCoder.Contest.B { static class Program { public static void Main(string[] args) { var sw = new StreamWriter(Conso...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics.CodeAnalysis; namespace AtCoder.Contest.B { static class Program { public static void Main(string[] args) { var sw = new StreamWriter(Conso...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
613
using System; namespace ABC168_a { class Program { static void Main(string[] args) { //標準入力文字列を数値に変換 long N = long.Parse(Console.ReadLine()); // 1の位を抽出 long N_1st = N % 10; if (N_1st == 3) { Console.WriteLine("hon"); } else if (N_1st == 0 || N_1st == 1 || N_1st == 6 || N_1st == 8) { ...
using System; namespace ABC168_a { class Program { static void Main(string[] args) { //標準入力文字列を数値に変換 long N = long.Parse(Console.ReadLine()); // 1の位を抽出 long N_1st = N % 10; if (N_1st == 3) { Console.WriteLine("bon"); } else if (N_1st == 0 || N_1st == 1 || N_1st == 6 || N_1st == 8) { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
126
using System; class Program { static void Main(string[] args) {   string sa = Console.ReadLine(); //標準入力 string a = sa.Substring(sa.Length - 1, 1); if (a == "2" || a == "4" || a == "5" || a == "7" || a == "p") { Console.WriteLine("{0}", "hon"); } else if (a == "3") { Console.WriteLine("{0}...
using System; class Program { static void Main(string[] args) {   string sa = Console.ReadLine(); //標準入力 string a = sa.Substring(sa.Length - 1, 1); if (a == "2" || a == "4" || a == "5" || a == "7" || a == "9") { Console.WriteLine("{0}", "hon"); } else if (a == "3") { Console.WriteLine("{0}...
[["-", 0, 57, 15, 16, 12, 16, 12, 5, 0, 222], ["+", 0, 57, 15, 16, 12, 16, 12, 5, 0, 222]]
8
132
using System; namespace q1 { class q2 { static void Main() { int a = int.Parse(Console.ReadLine()); int b = a % 10; if (b == 3) { Console.WriteLine("bon"); } if (b == 0 || b == 1 || b == 6 || b == 8) { Console.WriteLine("pon"); } else { Console.WriteLine("hon"); } } } }...
using System; namespace q1 { class q2 { static void Main() { int a = int.Parse(Console.ReadLine()); int b = a % 10; if (b == 3) { Console.WriteLine("bon"); } else if (b == 0 || b == 1 || b == 6 || b == 8) { Console.WriteLine("pon"); } else { Console.WriteLine("hon"); } } } ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]]
8
97
using System; namespace ConsoleApp108 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); switch (n) { case 2: case 4: case 5: case 7: case 9: Console.WriteLine("hon"); break; case 0: case 1: case 6: case 8: Console....
using System; namespace ConsoleApp108 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); n = n % 10; switch (n) { case 2: case 4: case 5: case 7: case 9: Console.WriteLine("hon"); break; case 0: case 1: case 6: case 8...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
104
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class A_168_Therefore { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class A_168_Therefore { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; ...
[["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
230
using System; using System.Collections.Generic; class Program { static void Main() { String[] arr = Console.ReadLine().Split(); int N; N = int.Parse(arr[0]); if (new List<int> { 2, 4, 5, 7, 9 }.Contains(N % 10)) Console.WriteLine("hon"); else if (new List<int> { 1, 4, 6, 8 }.Contains(N % 10...
using System; using System.Collections.Generic; class Program { static void Main() { String[] arr = Console.ReadLine().Split(); int N; N = int.Parse(arr[0]); if (new List<int> { 2, 4, 5, 7, 9 }.Contains(N % 10)) Console.WriteLine("hon"); else if (new List<int> { 0, 1, 4, 6, 8 }.Contains(N %...
[["+", 15, 213, 63, 214, 205, 230, 10, 229, 0, 203], ["+", 15, 213, 63, 214, 205, 230, 10, 229, 0, 21]]
8
132
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text.RegularExpressions; using System.Threading; namespace ConsoleApp1 { class Program { static void Main(string[] args) { long N = long.Pars...
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text.RegularExpressions; using System.Threading; namespace ConsoleApp1 { class Program { static void Main(string[] args) { long N = long.Pars...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
175
using System; namespace A { class Program { static void Main(string[] args) { var n = Int64.Parse(Console.ReadLine().Trim()); switch (n) { case 3: Console.WriteLine("bon"); break; case 0: case 1: case 6: case 8: Console.WriteLine("pon"); break; default: C...
using System; namespace A { class Program { static void Main(string[] args) { var n = Int64.Parse(Console.ReadLine().Trim()); switch (n % 10) { case 3: Console.WriteLine("bon"); break; case 0: case 1: case 6: case 8: Console.WriteLine("pon"); break; default: ...
[["+", 0, 195, 8, 196, 0, 99, 51, 16, 17, 109], ["+", 0, 195, 8, 196, 0, 99, 51, 16, 12, 203]]
8
96
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 { public static class Program { public static void Main() { var l = new stri...
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 { public static class Program { public static void Main() { var l = new stri...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 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, 22], ["-", 3, 4, 0, 28, 0, 283, 0, 284, 0, 46], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 17, 109], ["-"...
8
2,027
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class345 { static void Main() { int N = int.Parse(Console.ReadLine() [0].ToString()); if (N == 0 || N == 1 || N == 6 || N == 8) Console.WriteLine("pon"); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class345 { static void Main() { int N = int.Parse(Console.ReadLine().Last().ToString()); if (N == 0 || N == 1 || N == 6 || N == 8) Console.WriteLine("pon");...
[["-", 0, 213, 63, 214, 205, 204, 206, 207, 0, 70], ["-", 63, 214, 205, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 213, 63, 214, 205, 204, 206, 207, 0, 73], ["+", 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...
8
116
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc141/tasks/abc141_a public class QuestionA { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc141/tasks/abc141_a public class QuestionA { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( ...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]]
8
617
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static void Main(string[] args) { try { Solve.Answer(); } catch (Exception ex) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static void Main(string[] args) { try { Solve.Answer(); } catch (Exception ex) { ...
[["-", 31, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["-", 15, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31...
8
635
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc141/tasks/abc141_a public class QuestionA { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc141/tasks/abc141_a public class QuestionA { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( ...
[["-", 0, 195, 8, 196, 0, 99, 51, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 99, 51, 16, 12, 203]]
8
178
using System; namespace WelcomeToAtCoder { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); String ret = ""; switch (n) { case 2: case 4: case 5: case 7: case 9: ret = "hon"; break; case 0: case 1: case 6: case 8: ...
using System; namespace WelcomeToAtCoder { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); String ret = ""; n = n % 10; switch (n) { case 2: case 4: case 5: case 7: case 9: ret = "hon"; break; case 0: case 1: ca...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
109
using System; using System.Linq; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); var n = sc.Next(); switch (n[2]) { case '3': Console.WriteLine("bon"); break; case '0': case '1': case '6': case '8': Console.WriteLine("pon"); ...
using System; using System.Linq; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); var n = sc.Next(); switch (n[n.Length - 1]) { case '3': Console.WriteLine("bon"); break; case '0': case '1': case '6': case '8': Console.WriteLi...
[["-", 0, 99, 51, 204, 206, 207, 0, 28, 0, 203], ["+", 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], ["+", 51, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 51, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
439
using System; namespace ABC168_A { class Program { static void Main(string[] args) { int i = int.Parse(Console.ReadLine()); i = i % 10; if (i == 3) { Console.WriteLine("bon"); } else if (i == 0 && i == 1 && i == 6 && i == 8) { Console.WriteLine("pon"); } else { Console.WriteLin...
using System; namespace ABC168_A { class Program { static void Main(string[] args) { int i = int.Parse(Console.ReadLine()); i = i % 10; if (i == 3) { Console.WriteLine("bon"); } else if (i == 0 || i == 1 || i == 6 || i == 8) { Console.WriteLine("pon"); } else { Console.WriteLin...
[["-", 75, 57, 15, 16, 31, 16, 31, 16, 17, 98], ["+", 75, 57, 15, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 98], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 106], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 106]]
8
101
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 n = cin.next(); var s = n[n.Length - 1].ToString...
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 n = cin.next(); var s = n[n.Length - 1].ToString...
[["-", 0, 212, 0, 227, 0, 229, 0, 5, 0, 222], ["+", 0, 212, 0, 227, 0, 229, 0, 5, 0, 222]]
8
697
using System; class p { static void Main() { int N = int.Parse(Console.ReadLine()); if (N == 3) { Console.WriteLine("bon"); return; } else if (N == 0 || N == 1 || N == 6 || N == 8) { Console.WriteLine("pon"); return; } else { Console.WriteLine("hon"); return; } ...
using System; class p { static void Main() { int N = int.Parse(Console.ReadLine()) % 10; if (N == 3) { Console.WriteLine("bon"); return; } else if (N == 0 || N == 1 || N == 6 || N == 8) { Console.WriteLine("pon"); return; } else { Console.WriteLine("hon"); return; ...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
93
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; using System.Numerics; using System.Text.RegularExpressions; using System.Runtime.Serialization.Formatters.Binary; namespace atcorder2 { [Serializable] static class Program { public static long Read() { r...
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; using System.Numerics; using System.Text.RegularExpressions; using System.Runtime.Serialization.Formatters.Binary; namespace atcorder2 { [Serializable] static class Program { public static long Read() { r...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
773
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace AtCoder.D { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace AtCoder.D { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { ...
[["-", 0, 227, 39, 224, 225, 226, 0, 16, 31, 22], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 31, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 31, 22]]
8
640
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { var X = Console.ReadLine().Trim().Split().Select(int.Parse).ToArray(); var G = new List<List<int>>(X[0]); for (var i = 0; i < X[0]; i++) G.Add(new List...
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { var X = Console.ReadLine().Trim().Split().Select(int.Parse).ToArray(); var G = new List<List<int>>(X[0]); for (var i = 0; i < X[0]; i++) G.Add(new List...
[["-", 0, 1, 0, 11, 12, 16, 31, 204, 205, 22], ["-", 0, 11, 12, 16, 31, 204, 206, 207, 0, 70], ["-", 0, 11, 12, 16, 31, 204, 206, 207, 0, 73]]
8
375
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; public static class P { public static void Mai...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; public static class P { public static void Mai...
[["-", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213,...
8
355
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using CS = System.Runtime.CompilerServices; // using System.Diagnostics; using static System.Math; using ll = System.Int64; using static Contest_F.Lib_IO; using static Contest_F.Lib_Minifunc; namespace Cont...
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using CS = System.Runtime.CompilerServices; // using System.Diagnostics; using static System.Math; using ll = System.Int64; using static Contest_F.Lib_IO; using static Contest_F.Lib_Minifunc; namespace Cont...
[["-", 8, 196, 0, 57, 64, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 12, 22]]
8
5,892
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using CS = System.Runtime.CompilerServices; // using System.Diagnostics; using static System.Math; using ll = System.Int64; using static Contest_F.Lib_IO; using static Contest_F.Lib_Minifunc; namespace Cont...
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using CS = System.Runtime.CompilerServices; // using System.Diagnostics; using static System.Math; using ll = System.Int64; using static Contest_F.Lib_IO; using static Contest_F.Lib_Minifunc; namespace Cont...
[["-", 12, 230, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 12, 230, 3, 4, 0, 28, 0, 16, 12, 203]]
8
6,193
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class A_167_Registration { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false };...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class A_167_Registration { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false };...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
191
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace AtCoder.Abc { class A_167_Registration { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenSt...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace AtCoder.Abc { class A_167_Registration { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenSt...
[["+", 15, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 12, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 16, 12, 5, 0, 222]]
8
146
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text.RegularExpressions; using System.Threading; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string S = Console...
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text.RegularExpressions; using System.Threading; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string S = Console...
[["-", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
131
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 { public static class Program { public static void Main() { var s = ReadLine...
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 { public static class Program { public static void Main() { var s = ReadLine...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
1,994
using System; namespace First { class Program { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); if (t.Substring(s.Length) == s) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } } }
using System; namespace First { class Program { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); if (t.Substring(0, s.Length) == s) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } } }
[["+", 15, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 21]]
8
76
using System; using System.Collections.Generic; class main { static void Main(string[] args) { string S = Console.ReadLine(); string T = Console.ReadLine(); if (S.Equals(T.Substring(0, T.Length - 1))) { Console.Write("YES"); } else { Console.Write("NO"); } } }
using System; using System.Collections.Generic; class main { static void Main(string[] args) { string S = Console.ReadLine(); string T = Console.ReadLine(); if (S.Equals(T.Substring(0, T.Length - 1))) { Console.Write("Yes"); } else { Console.Write("No"); } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
86
using System; using System.Collections.Generic; class Program { static void Main() { string S = Console.ReadLine(); string T = Console.ReadLine(); int Sa = S.Length; int Ta = T.Length; int An = Ta - Sa; if (An == 1 && T.Contains(S) == true) { Console.WriteLine("Yes"); } else ...
using System; using System.Collections.Generic; class Program { static void Main() { string S = Console.ReadLine(); string T = Console.ReadLine(); int Sa = S.Length; int Ta = T.Length; int An = Ta - Sa; if (An == 1 && T.Substring(0, Sa) == S) { Console.WriteLine("Yes"); } else ...
[["-", 15, 16, 12, 16, 31, 213, 63, 214, 141, 22], ["+", 15, 16, 12, 16, 31, 213, 63, 214, 141, 22], ["-", 12, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["+", 12, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 15, 16, 12, 16, 31, 213, 3, 4, 0, 21], ["+", 12, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 57, 15, 16, 12, 16, 12, 211, 0, ...
8
96
using System; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { var s = Console.ReadLine().ToCharArray(); var t = Console.ReadLine().ToCharArray(); for (int i = 0; i < s.Length; i++) { if (s[i] == t[i]) continue; Console.WriteLine("No"); } ...
using System; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { var s = Console.ReadLine().ToCharArray(); var t = Console.ReadLine().ToCharArray(); for (int i = 0; i < s.Length; i++) { if (s[i] == t[i]) continue; Console.WriteLine("No"); re...
[["+", 8, 196, 0, 7, 8, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 7, 8, 196, 0, 37, 0, 35]]
8
103
using System; public class Hello { public static void Main() { var s = Console.ReadLine().Trim(); var t = Console.ReadLine().Trim(); var a = s + t[t.Length - 1]; Console.WriteLine(s == a ? "Yes" : "No"); } }
using System; public class Hello { public static void Main() { var s = Console.ReadLine().Trim(); var t = Console.ReadLine().Trim(); var a = s + t[t.Length - 1]; Console.WriteLine(a == t ? "Yes" : "No"); } }
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 22]]
8
73
using System; using System.Collections.Generic; using System.Linq; namespace program { public class ABC167 { public static void Main(string[] args) { var s = Console.ReadLine(); var t = Console.ReadLine(); if (t.Contains(s) && t.Length - s.Length == 1) { Console.WriteLine("Yes"); } else { ...
using System; using System.Collections.Generic; using System.Linq; namespace program { public class ABC167 { public static void Main(string[] args) { var s = Console.ReadLine(); var t = Console.ReadLine(); if (t.IndexOf(s) == 0 && t.Length - s.Length == 1) { Console.WriteLine("Yes"); } else { ...
[["-", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
96
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().Split(' '); string[] string2 = Console.ReadLine().Split(' '); bool ch...
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().Split(' '); string[] string2 = Console.ReadLine().Split(' '); bool ch...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
172
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.AtCoder_Begginer_Contest_167 { class A { static void Main(string[] args) { string S = Console.ReadLine(); string T = Console.ReadLine(); if (!T.Substring(0, T.L...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.AtCoder_Begginer_Contest_167 { class A { static void Main(string[] args) { string S = Console.ReadLine(); string T = Console.ReadLine(); if (!T.Substring(0, T.L...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
130
using System; namespace AtCoder { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); string s = Console.ReadLine(); string t = Console.ReadLine(); string result = t.Contains(s) ?...
using System; namespace AtCoder { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); string s = Console.ReadLine(); string t = Console.ReadLine(); string result = t.StartsWith(s)...
[["-", 0, 212, 0, 41, 15, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 41, 15, 213, 63, 214, 141, 22]]
8
102
using System; using System.Linq; using System.Xml.Schema; class IDONTKNOWCSHARP { public static void Main() { string[] values = GetLines(); int value = 0; int A = int.Parse(values[0]); int B = int.Parse(values[1]); int C = int.Parse(values[2]); int K = int.Parse(values[3]); if (K - A >...
using System; using System.Linq; using System.Xml.Schema; class IDONTKNOWCSHARP { public static void Main() { string[] values = GetLines(); int value = 0; int A = int.Parse(values[0]); int B = int.Parse(values[1]); int C = int.Parse(values[2]); int K = int.Parse(values[3]); if (K - A >...
[["-", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 0, 57, 75, 196, 0, 1, 0, 11, 12, 22], ["-", 64, 196, 0, 57, 75, 196, 0, 1, 0, 35]]
8
197
using System; using System.Threading; namespace ConsoleApp26 { class Program { static void Main(string[] args) { //入力 string line = Console.ReadLine(); string[] array = line.Split(' '); int a = int.Parse(array[0]); int b = int.Parse(array[1]); int c = int.Parse(array[2]); int k = int.Par...
using System; using System.Threading; namespace ConsoleApp26 { class Program { static void Main(string[] args) { //入力 string line = Console.ReadLine(); string[] array = line.Split(' '); int a = int.Parse(array[0]); int b = int.Parse(array[1]); int c = int.Parse(array[2]); int k = int.Par...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33]]
8
156
using System; using System.Collections.Generic; namespace test { class MainClass { public static void Main(string[] args) { //問題167 string[] line = Console.ReadLine().Split(' '); int A = int.Parse(line[0]); int B = int.Parse(line[1]); int C = int.Parse(line[2]); int K = int.Parse(line[3]); ...
using System; using System.Collections.Generic; namespace test { class MainClass { public static void Main(string[] args) { //問題167 string[] line = Console.ReadLine().Split(' '); int A = int.Parse(line[0]); int B = int.Parse(line[1]); int C = int.Parse(line[2]); int K = int.Parse(line[3]); ...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22]]
8
174
using System; using System.Linq; using System.Collections.Generic; namespace AtCoderMake.ABC167 { class ABC167D { static void Main(string[] args) { var nk = Console.ReadLine().Split().Select((x) => long.Parse(x)).ToArray(); var a = Console.ReadLine().Split().Select((x) => int.Pars...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoderMake.ABC167 { class ABC167D { static void Main(string[] args) { var nk = Console.ReadLine().Split().Select((x) => long.Parse(x)).ToArray(); var a = Console.ReadLine().Split().Select((x) => int.Pars...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
284
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder.Contests.ABC167 { /// <summary> /// /// </summary> static class D { static void Main(string[] args) { var n = NextInt(); var k = NextLong(); var aas = ReadIntArray(); var visited = Enumerable.Repea...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder.Contests.ABC167 { /// <summary> /// /// </summary> static class D { static void Main(string[] args) { var n = NextInt(); var k = NextLong(); var aas = ReadIntArray(); var visited = Enumerable.Repea...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
666
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using System.Diagnostics; using ll=System.Int64; using static Contest_D.Lib_IO; using static Contest_D.Lib_Minifunc; public static class Contest_D { public static ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using System.Diagnostics; using ll=System.Int64; using static Contest_D.Lib_IO; using static Contest_D.Lib_Minifunc; public static class Contest_D { public static ...
[["-", 0, 198, 0, 200, 0, 212, 0, 41, 64, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 64, 22]]
8
3,066
using System; using static System.Console; namespace abc167 { class Program { const int keyNum = 998244353; static void Main() { var nmk = ReadLine().Split(' '); var n = int.Parse(nmk[0]); var m = int.Parse(nmk[1]); var k = int.Parse(nmk[2]); WriteLine(CB(n, m, k)); } static int CB(int n, ...
using System; using static System.Console; namespace abc167 { class Program { const int keyNum = 998244353; static void Main() { var nmk = ReadLine().Split(' '); var n = int.Parse(nmk[0]); var m = int.Parse(nmk[1]); var k = int.Parse(nmk[2]); WriteLine(CB(n, m, k)); } static int CB(int n, ...
[["+", 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, 12, 16, 12, 22]]
8
592
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.E { class Program { const long MOD = 998244353; public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStanda...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.E { class Program { const long MOD = 998244353; public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStanda...
[["-", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72]]
8
756
using System; using System.Collections.Generic; using System.Linq; namespace contest_Csharp { class Program { static long power(long a, long b, long modulo) { long result = 1; long buff = a; for (long i = 1; i <= b; i *= 2) { result = result * ((b / i % (2) == 1) ? buff : 1) % modulo; buff = ...
using System; using System.Collections.Generic; using System.Linq; namespace contest_Csharp { class Program { static long power(long a, long b, long modulo) { long result = 1; long buff = a; for (long i = 1; i <= b; i *= 2) { result = result * ((b / i % (2) == 1) ? buff : 1) % modulo; buff = ...
[["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
728
using System; namespace E { class Program { static void Main(string[] args) { var NMK = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = NMK[0]; var M = NMK[1]; var K = NMK[2]; long MOD = 998244353; Combination.combInit(100000000, MOD); long result = 0; for (int i =...
using System; namespace E { class Program { static void Main(string[] args) { var NMK = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = NMK[0]; var M = NMK[1]; var K = NMK[2]; long MOD = 998244353; Combination.combInit(1000000, MOD); long result = 0; for (int i = 0...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
468
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, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
1,485
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_167 { class E { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_167 { class E { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]]
8
1,083
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Abc167F { struct Bracket { public long BraN; public long KetN; } public static void Main() { var n = int.Parse(Console.ReadLine()); long braN = 0; long ketN = 0; long m = 0; var bracket = n...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Abc167F { struct Bracket { public long BraN; public long KetN; } public static void Main() { var n = int.Parse(Console.ReadLine()); long braN = 0; long ketN = 0; long m = 0; var bracket = n...
[["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 33], ["+", 0, 28, 0, 218, 8, 16, 12, 214, 205, 22], ["+", 0, 28, 0, 218, 8, 16, 12, 214, 0, 131], ["+", 0, 28, 0, 218, 8, 16, 12, 214, 141, 22]]
8
317
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_167 { class F { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput())...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_167 { class F { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput())...
[["-", 0, 28, 0, 218, 8, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 218, 8, 16, 31, 204, 205, 22], ["-", 0, 28, 0, 218, 8, 16, 12, 204, 205, 22], ["+", 0, 28, 0, 218, 8, 16, 12, 204, 205, 22], ["-", 75, 196, 0, 37, 0, 16, 31, 204, 205, 22], ["+", 75, 196, 0, 37, 0, 16, 31, 204, 205, 22], ["-", 75, 196, 0, 37, 0, 16, 12, 20...
8
845
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; public static class P { public static void Ma...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; public static class P { public static void Ma...
[["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 33], ["+", 0, 28, 0, 218, 8, 16, 12, 214, 205, 22], ["+", 0, 28, 0, 218, 8, 16, 12, 214, 0, 131], ["+", 0, 28, 0, 218, 8, 16, 12, 214, 141, 22]]
8
361
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // 問題:https://atcoder.jp/contests/abc166/tasks/abc166_a class A_166_A_C { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Con...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // 問題:https://atcoder.jp/contests/abc166/tasks/abc166_a class A_166_A_C { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Con...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]]
8
138
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class A_A_C_166 { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class A_A_C_166 { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
[["-", 8, 196, 0, 57, 15, 16, 12, 5, 0, 222], ["+", 8, 196, 0, 57, 15, 16, 12, 5, 0, 222], ["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["-", 75, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 75, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
134
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string S = Console.ReadLine(); if (S == "ABC") { Console.WriteLine("ARC"); } else { Console.WriteLine("ARC"); } } } }
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string S = Console.ReadLine(); if (S == "ABC") { Console.WriteLine("ARC"); } else { Console.WriteLine("ABC"); } } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
67
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 { public static class Program { public static void Main() { var s = ReadLine...
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 { public static class Program { public static void Main() { var s = ReadLine...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
1,981
using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Security.Cryptography.X509Certificates; namespace hello_world { class Program { static void Main(string[] args) { string s = Console.ReadLine(); if (s == "ABC") Co...
using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Security.Cryptography.X509Certificates; namespace hello_world { class Program { static void Main(string[] args) { string s = Console.ReadLine(); if (s == "ABC") Co...
[["-", 0, 57, 75, 57, 15, 16, 12, 5, 0, 222], ["+", 0, 57, 75, 57, 15, 16, 12, 5, 0, 222], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
96
using System; using System.IO; using System.Text; namespace cswork { class Program { static void Main(string[] args) { string str = Util.ReadFile(); switch (str) { case "ABC": Console.WriteLine("ARC"); break; case "ARC": Console.WriteLine("ABC"); break; } } } class Uti...
using System; using System.IO; using System.Text; namespace cswork { class Program { static void Main(string[] args) { // string str = Util.ReadFile (); string str = Console.ReadLine(); switch (str) { case "ABC": Console.WriteLine("ARC"); break; case "ARC": Console.WriteLine("A...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
122
using System; using System.Collections.Generic; using System.Numerics; using System.Linq; using System.Text; using static System.Math; class MainClass { public static void Main(string[] args) { if (LnStr() == "ABC") print("ARC"); else print("ARC"); } public static void print(object obj) { C...
using System; using System.Collections.Generic; using System.Numerics; using System.Linq; using System.Text; using static System.Math; class MainClass { public static void Main(string[] args) { if (LnStr() == "ABC") print("ARC"); else print("ABC"); } public static void print(object obj) { C...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
787
using System; using System.Collections.Generic; using System.Linq; namespace abc166_b { class Program { static void Main(string[] args) { var inputSunukeAndSweets = Console.ReadLine().Split(' '); var SunukeNum = int.Parse(inputSunukeAndSweets[0]); var sweetsTypeNum = int.Parse(inputSunukeAndSweets[1]); ...
using System; using System.Collections.Generic; using System.Linq; namespace abc166_b { class Program { static void Main(string[] args) { var inputSunukeAndSweets = Console.ReadLine().Split(' '); var SunukeNum = int.Parse(inputSunukeAndSweets[0]); var sweetsTypeNum = int.Parse(inputSunukeAndSweets[1]); ...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22]]
8
183
namespace ConsoleApplication2 { using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main() { var input = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); var n = input[0]; var k = input[1]; var man = new bool[n...
namespace ConsoleApplication2 { using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main() { var input = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); var n = input[0]; var k = input[1]; var man = new bool[n...
[["+", 206, 207, 0, 28, 0, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
207
using System; using System.Linq; using System.Collections.Generic; namespace cs { class Program { static void Main(string[] args) { var pg = new Program(); pg.Execute(); } private void Execute() { var (N, K) = ReadLinesLongList2<long>(); var input = new List<long>(); var count = 0; for (...
using System; using System.Linq; using System.Collections.Generic; namespace cs { class Program { static void Main(string[] args) { var pg = new Program(); pg.Execute(); } private void Execute() { var (N, K) = ReadLinesLongList2<long>(); var input = new List<long>(); var count = 0; for (...
[["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 295], ["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296], ["-", 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, 62]]
8
981
using System; namespace ABC116B { class Program { static void Main(string[] args) { var aa = Console.ReadLine().Split(' '); int a = int.Parse(aa[0]); int b = int.Parse(aa[1]); int c, v; int x = 0; a = a + 1; int[] d = new int[a]; for (int m = a - 1; m >= 0; m--) { d[m] = 1; ...
using System; namespace ABC116B { class Program { static void Main(string[] args) { var aa = Console.ReadLine().Split(' '); int a = int.Parse(aa[0]); int b = int.Parse(aa[1]); int c, v; int x = 0; a = a + 1; int[] d = new int[a]; for (int m = a - 1; m >= 0; m--) { d[m] = 1; ...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
228
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[] a = new int[n + 1]; for (int i = 0; i < k; i++) { int d = int.Parse(Console.ReadLine()); ...
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[] a = new int[n + 1]; for (int i = 0; i < k; i++) { int d = int.Parse(Console.ReadLine()); ...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22]]
8
195
using System; namespace hello_world { 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 cnt = 0; bool[] s = new bool[n]; for (int i = 0; i < k; i++) { int d = int.Parse(Console...
using System; namespace hello_world { 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 cnt = 0; bool[] s = new bool[n]; for (int i = 0; i < k; i++) { int d = int.Parse(Console...
[["-", 31, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 31, 213, 3, 4, 0, 28, 0, 204, 205, 22]]
8
198
using System; using static System.Console; using System.Linq; namespace AC { public class shiokara { static void Main(string[] args) { var data = ReadLine().Split(' ').Select(int.Parse).ToArray(); var tester = new int[100]; for (int i = 0; i < data[1]; i++) { int d = int.Parse(ReadLine()); in...
using System; using static System.Console; using System.Linq; namespace AC { public class shiokara { static void Main(string[] args) { var data = ReadLine().Split(' ').Select(int.Parse).ToArray(); var tester = new int[100]; for (int i = 0; i < data[1]; i++) { int d = int.Parse(ReadLine()); in...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
196
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var inp = Console.ReadLine().Split(' '); bool[] flg = new bool[int.Parse(inp[0])]; for (int i = 0; i < int.Parse(inp[1]); i++) { var inpD = Console.ReadLine().Split(' '); var ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var inp = Console.ReadLine().Split(' '); bool[] flg = new bool[int.Parse(inp[0])]; for (int i = 0; i < int.Parse(inp[1]); i++) { var inpD = Console.ReadLine().Split(' '); var...
[["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
203
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); long result = 0; var a = long.Parse(input[0]); var b = long.Parse(input[1]); var c = long.Parse(input[2]); var k = long.Parse(input[3]); if (k <= a) { result = k * a; ...
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); long result = 0; var a = long.Parse(input[0]); var b = long.Parse(input[1]); var c = long.Parse(input[2]); var k = long.Parse(input[3]); if (k <= a) { result = k; } el...
[["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 75, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 0, 1, 0, 11, 12, 16, 12, 16, 17, 48], ["-", 0, 11, 12, 16, 12, 16, 12, 241, 0, 33], ["-", 0, 11, 12, 16, 12, 16, 12, 241, 0, 203]]
8
147
using System; namespace AtCoder.Question { public class QuestionB { public static void Main(string[] args) { var inputs = Console.ReadLine().Split(' '); var a = int.Parse(inputs[0]); var b = int.Parse(inputs[1]); var c = int.Parse(inputs[2]); var k = int.Parse(inputs[3]); if ...
using System; namespace AtCoder.Question { public class QuestionB { public static void Main(string[] args) { var inputs = Console.ReadLine().Split(' '); var a = int.Parse(inputs[0]); var b = int.Parse(inputs[1]); var c = int.Parse(inputs[2]); var k = int.Parse(inputs[3]); if ...
[["+", 205, 23, 0, 16, 31, 16, 31, 16, 31, 203], ["+", 205, 23, 0, 16, 31, 16, 31, 16, 17, 48], ["+", 63, 214, 205, 23, 0, 16, 31, 16, 17, 72], ["+", 63, 214, 205, 23, 0, 16, 31, 16, 12, 22], ["-", 0, 213, 63, 214, 205, 23, 0, 16, 12, 22], ["+", 0, 213, 63, 214, 205, 23, 0, 16, 12, 22]]
8
155
using System; namespace Sample { class Sample { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int C = int.Parse(input[2]); int K = int.Parse(input[3]); if (A >= K) { Console.WriteLine(K); }...
using System; namespace Sample { class Sample { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int C = int.Parse(input[2]); int K = int.Parse(input[3]); if (A >= K) { Console.WriteLine(K); }...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]]
8
141
using System; namespace abc167_b { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int c = int.Parse(input[2]); int k = int.Parse(input[3]); if (a >= k) { Console.WriteLine(k); ...
using System; namespace abc167_b { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int c = int.Parse(input[2]); int k = int.Parse(input[3]); if (a >= k) { Console.WriteLine(k); ...
[["+", 0, 28, 0, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22]]
8
150
using System; using System.Linq; namespace _167.B { internal class Program { private static void Main(string[] args) { var i = Console.ReadLine().Split().Select(int.Parse).ToList(); var (a, b, c, k) = (i[0], i[1], i[2], i[3]); k -= a; if (k == 0) Console.WriteLine(k); else {...
using System; using System.Linq; namespace _167.B { internal class Program { private static void Main(string[] args) { var i = Console.ReadLine().Split().Select(int.Parse).ToList(); var (a, b, c, k) = (i[0], i[1], i[2], i[3]); k -= a; if (k <= 0) Console.WriteLine(k + a); el...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
137
using System; using System.Linq; using System.Collections; using System.Collections.Generic; public class AtCoder { public static void Main() { var abck = Console.ReadLine().Trim().Split().Select(e => int.Parse(e)).ToArray(); var a = abck[0]; var b = abck[1]; var c = abck[2]; var k = abck...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; public class AtCoder { public static void Main() { var abck = Console.ReadLine().Trim().Split().Select(e => int.Parse(e)).ToArray(); var a = abck[0]; var b = abck[1]; var c = abck[2]; var k = abck...
[["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22]]
8
149
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TOPSIC2 { class Program { static void Main(string[] args) { string[] ABCK = Console.ReadLine().Split(' '); long A = long.Parse(ABCK[0]); long B = long.Parse(ABCK[1]); long C =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TOPSIC2 { class Program { static void Main(string[] args) { string[] ABCK = Console.ReadLine().Split(' '); long A = long.Parse(ABCK[0]); long B = long.Parse(ABCK[1]); long C =...
[["-", 0, 57, 75, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 22]]
8
165