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
change_count
int64
0
100
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, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20]]
8
339
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace Atcoder { public class CPair<T, U> : IComparable where T : IComparable<T> { public readonly T Item1; public readon...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace Atcoder { public class CPair<T, U> : IComparable where T : IComparable<T> { public readonly T Item1; public readon...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
8
10,785
2
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 var s = Console.ReadLine(); var t = Console.ReadLine(); var dic = new Dictionary<string, int>() {}; for (int i = 0; i < s.Length...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 var s = Console.ReadLine(); var t = Console.ReadLine(); var dic = new Dictionary<string, int>() {}; for (int i = 0; i < s.Length...
[["-", 3, 4, 0, 28, 0, 218, 8, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 214, 141, 22]]
8
394
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static Asakatsu20200318D.Input; namespace Asakatsu20200318D { static class Input { /// <summary> /// 1行の入力をTに応じてリストに変換する関数を返す /// </summary> static Func<string, List<T>> Cast<T>() => _ => _.Split(' ').Select(Convert<T>(...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static Asakatsu20200318D.Input; namespace Asakatsu20200318D { static class Input { /// <summary> /// 1行の入力をTに応じてリストに変換する関数を返す /// </summary> static Func<string, List<T>> Cast<T>() => _ => _.Split(' ').Select(Convert<T>(...
[["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 12, 41, 75, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 41, 75, 204, 206, 207, 0, 28, 0, 22]]
8
1,620
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { static class Program { static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); // var S = ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { static class Program { static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); // var S = ...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
1,051
2
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace ABC076 { class C { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); bool isMatch = true; List<string> sList = new List<string>(); var...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace ABC076 { class C { static void Main(string[] args) { string s = Console.ReadLine(); string t = Console.ReadLine(); bool isMatch = true; List<string> sList = new List<string>(); var...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
293
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Numerics; using System.Text.RegularExpressions; class Myon { // chokudaiさんのコードをコピペ static Scanner cin; public Myon() {} public static int Mai...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Numerics; using System.Text.RegularExpressions; class Myon { // chokudaiさんのコードをコピペ static Scanner cin; public Myon() {} public static int Mai...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
1,894
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var S = Console.ReadLine().ToCharArray(); var T = Console.ReadLine(); var answer = new List<string>(); for (int i = 0; i < S.Length - T.Length; i++) { var tmpS = S.ToList().ToAr...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var S = Console.ReadLine().ToCharArray(); var T = Console.ReadLine(); var answer = new List<string>(); for (int i = 0; i <= S.Length - T.Length; i++) { var tmpS = S.ToList().ToA...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
235
2
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; public static void Main() { string S = NextString(); S = new string(S.Reverse().ToArray()); string ans = ""; string T = NextString(); T = new string(T.R...
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; public static void Main() { string S = NextString(); S = new string(S.Reverse().ToArray()); string ans = ""; string T = NextString(); T = new string(T.R...
[["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 111], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 22]]
8
595
5
using System; using System.Linq; using System.Collections.Generic; public class Program { public static void Main() { var s = string.Join("", Console.ReadLine().Reverse()); var t = string.Join("", Console.ReadLine().Reverse()); var a = ""; var can = false; for (var i = 0; i < s.Length - t.Length;...
using System; using System.Linq; using System.Collections.Generic; public class Program { public static void Main() { var s = string.Join("", Console.ReadLine().Reverse()); var t = string.Join("", Console.ReadLine().Reverse()); var a = ""; var can = false; for (var i = 0; i < s.Length - t.Length ...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
241
2
using System; using System.Linq; //リストの使用 using System.Collections.Generic; class Program { static void Main() { int answer = 0; string s = Console.ReadLine(); char[] ss = s.ToCharArray(); string tt = Console.ReadLine(); for (int i = ss.Length; i > tt.Length - 1; i--) { for (int j = 0; j < ...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; class Program { static void Main() { int answer = 0; string s = Console.ReadLine(); char[] ss = s.ToCharArray(); string tt = Console.ReadLine(); for (int i = ss.Length - 1; i >= tt.Length - 1; i--) { for (int j = 0;...
[["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 22], ["-", 12, 204, 206, 207, 0, 28, 0, 16,...
8
256
8
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Program { internal static void Main(string[] args) { var S = ReadLine(); var T = ReadLine(); if (S.Contains(T)) { WriteLine(S.Replace('?', 'a')); return; } var Srev = string.Join(""...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; class Program { internal static void Main(string[] args) { var S = ReadLine(); var T = ReadLine(); if (S.Contains(T)) { WriteLine(S.Replace('?', 'a')); return; } var Srev = string.Join(""...
[["+", 0, 7, 15, 16, 12, 16, 12, 23, 0, 24], ["+", 0, 7, 15, 16, 12, 16, 12, 23, 0, 25]]
8
313
2
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Text; namespace Program { class MainClass { //////////////////////////////////////////////////////////// string S, T; void Solve() { ...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Text; namespace Program { class MainClass { //////////////////////////////////////////////////////////// string S, T; void Solve() { ...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]]
8
9,273
2
using System; namespace A { class Program { static void Main(string[] args) { Console.WriteLine(Console.ReadLine().Contains("AC") ? "YES" : "NO"); #if DEBUG Console.ReadLine(); #endif } } }
using System; namespace A { class Program { static void Main(string[] args) { Console.WriteLine(Console.ReadLine().Contains("AC") ? "Yes" : "No"); #if DEBUG Console.ReadKey(); #endif } } }
[["-", 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, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22]]
8
59
6
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { public Solve() {} StringBuilder sb; ReadData re; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); re = new ReadData(); Calc(); Console.W...
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { public Solve() {} StringBuilder sb; ReadData re; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); re = new ReadData(); Calc(); Console.W...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 15, 16, 12, 16, 31, 214, 205, 22], ["+", 0, 7, 15, 16, 12, 16, 31, 214, 0, 131], ["+", 0, 7, 15, 16, 12, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
1,736
6
using System; using System.Collections.Generic; using System.Linq; class Program { public static bool f = false, t = true; static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); long[] a = Read.longs(); long ans = (long)Math.Pow(3, 10); long h = 1; for (int i = 0; i < a.Lengt...
using System; using System.Collections.Generic; using System.Linq; class Program { public static bool f = false, t = true; static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); long[] a = Read.longs(); long ans = (long)Math.Pow(3, n); long h = 1; for (int i = 0; i < a.Length...
[["-", 0, 74, 51, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 74, 51, 213, 3, 4, 0, 28, 0, 22]]
8
441
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var S = sc.ReadStr(); var ans = 0; var l = 0; var r = S.Length - 1; while (l >= r) { if (S[l] == S[r]) { l++; r--; } else if (S[l] == 'x') { ans...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var S = sc.ReadStr(); var ans = 0; var l = 0; var r = S.Length - 1; while (l <= r) { if (S[l] == S[r]) { l++; r--; } else if (S[l] == 'x') { ans...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
962
2
namespace AtCoder.ABC.CCFQ2017 { using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.IO; using AtCoder.ABC.IO; public class Quest { public object Solve(Parser parser) { var s = parser.ScanLine().ToArray(); var left = 0; var right =...
namespace AtCoder.ABC.CCFQ2017 { using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.IO; using AtCoder.ABC.IO; public class Quest { public object Solve(Parser parser) { var s = parser.ScanLine().ToArray(); var left = 0; var right =...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18]]
8
1,076
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { List<char> L = new List<char>(); List<int> Lidx = new List<int>(); fo...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { List<char> L = new List<char>(); List<int> Lidx = new List<int>(); fo...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
629
4
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Xml.Schema; namespace AtCoder { public class Solver { private readonly IInputReader _inputReader; private readonly IOutputWriter _outputWriter; public Solver(IInputReader inputReader, IOutp...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Xml.Schema; namespace AtCoder { public class Solver { private readonly IInputReader _inputReader; private readonly IOutputWriter _outputWriter; public Solver(IInputReader inputReader, IOutp...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 95]]
8
1,429
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B { class Program { static void Main(string[] args) { long[] L = new long[100]; L[0] = 2; L[1] = 1; for (int i = 2; i < 86; i++) { L[i] = L[i - 1] + L[i - 2]; } ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B { class Program { static void Main(string[] args) { long[] L = new long[100]; L[0] = 2; L[1] = 1; for (int i = 2; i < 89; i++) { L[i] = L[i - 1] + L[i - 2]; } ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]]
8
125
2
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace FertiLib.Contest.C { static class Program { public static void Solve(Scanner cin) { var a = cin.ReadString().Select(x => int.Parse(x.ToString())).ToArray(); for (int i = 0; i < 1; i++)...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace FertiLib.Contest.C { static class Program { public static void Solve(Scanner cin) { var a = cin.ReadString().Select(x => int.Parse(x.ToString())).ToArray(); for (int i = 0; i < 2; i++)...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203]]
8
2,854
6
using System; using System.Linq; namespace Library {} namespace AtCoder { using Library; class ABC079_C { static bool Solve(int n, string Str, long sum, long[] input) { if (n == 3) { if (sum == 7) Console.WriteLine(Str + "=7"); return true; } else { return Solve(n + 1, Str + "+" + ...
using System; using System.Linq; namespace Library {} namespace AtCoder { using Library; class ABC079_C { static bool Solve(int n, string Str, long sum, long[] input) { if (n == 3) { if (sum == 7) { Console.WriteLine(Str + "=7"); return true; } else return false; } else ...
[["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 95], ["+", 0, 57, 64, 196, 0, 57, 75, 37, 0, 38], ["+", 64, 196, 0, 57, 75, 37, 0, 211, 0, 147]]
8
208
6
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { var ABCD = Console.ReadLine(); for (var i = 0; i < 8; i++) { int ...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static void Main(string[] args) { var ABCD = Console.ReadLine(); for (var i = 0; i < 8; i++) { int ...
[["+", 0, 16, 12, 23, 0, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 16, 12, 23, 0, 16, 17, 33], ["+", 12, 23, 0, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 16, 12, 23, 0, 16, 12, 23, 0, 25]]
8
223
4
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 string abcd = Console.ReadLine(); int a = int.Parse(abcd[0].ToString()); int c = int.Parse(abcd[1].ToString()); int b = int.Parse...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 string abcd = Console.ReadLine(); int a = int.Parse(abcd[0].ToString()); int b = int.Parse(abcd[1].ToString()); int c = int.Parse...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22]]
8
467
4
using System; namespace C___Train_Ticket { class Program { static void Main(string[] args) { var input = Console.ReadLine(); var a = int.Parse(input[0].ToString()); var b = int.Parse(input[1].ToString()); var c = int.Parse(input[2].ToString()); var d = int.Parse(input[3].ToString()); if (a + ...
using System; namespace C___Train_Ticket { class Program { static void Main(string[] args) { var input = Console.ReadLine(); var a = int.Parse(input[0].ToString()); var b = int.Parse(input[1].ToString()); var c = int.Parse(input[2].ToString()); var d = int.Parse(input[3].ToString()); if (a + ...
[["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296], ["+", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296]]
8
394
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static string S; static void INPUT() { S = NextString(); } static void OUT() { var t = S.ToCharArray().Select(__ => __ - ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Input; using static Util; class Program { static string S; static void INPUT() { S = NextString(); } static void OUT() { var t = S.ToCharArray().Select(__ => __ - ...
[["+", 31, 16, 31, 23, 0, 16, 12, 16, 17, 33], ["+", 31, 16, 31, 23, 0, 16, 12, 16, 12, 203]]
8
599
4
using System; namespace AtCoder { class Program { static void Main(string[] args) { string str = Console.ReadLine(); int a = int.Parse(str.Substring(0, 1)); int b = int.Parse(str.Substring(1, 1)); int c = int.Parse(str.Substring(2, 1)); int d = int.Parse(str.Substring(3, 1)); string op1 = "...
using System; namespace AtCoder { class Program { static void Main(string[] args) { string str = Console.ReadLine(); int a = int.Parse(str.Substring(0, 1)); int b = int.Parse(str.Substring(1, 1)); int c = int.Parse(str.Substring(2, 1)); int d = int.Parse(str.Substring(3, 1)); string op1 = "...
[["+", 75, 196, 0, 1, 0, 11, 12, 16, 31, 203], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 48]]
8
281
2
using System; namespace ABC079_C_Train_Ticket { internal class Program { public static void Main(string[] args) { string input = Console.ReadLine(); int a = int.Parse(input.Substring(0, 1)); int b = int.Parse(input.Substring(1, 1)); int c = int.Parse(input.Substring(2, 1)); int d = int.Parse(inpu...
using System; namespace ABC079_C_Train_Ticket { internal class Program { public static void Main(string[] args) { string input = Console.ReadLine(); int a = int.Parse(input.Substring(0, 1)); int b = int.Parse(input.Substring(1, 1)); int c = int.Parse(input.Substring(2, 1)); int d = int.Parse(inpu...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 222]]
8
472
2
using System; using System.Linq; namespace ABC079 { class C { static void Main(string[] args) { var length = 4; var s = Console.ReadLine(); var ABCD = s.Select(c => int.Parse(c.ToString())).ToArray(); var bits = (1 << (length - 1)); for (int i = 0; i < bits; i++) { var sum = ABCD[0]; ...
using System; using System.Linq; namespace ABC079 { class C { static void Main(string[] args) { var length = 4; var s = Console.ReadLine(); var ABCD = s.Select(c => int.Parse(c.ToString())).ToArray(); var bits = (1 << (length - 1)); for (int i = 0; i < bits; i++) { var sum = ABCD[0]; ...
[["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 62], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
260
6
using System; namespace ABC097_C { class Program { static void Main(string[] args) { var N = Console.ReadLine(); var A = int.Parse(N[0].ToString()); var B = int.Parse(N[1].ToString()); var C = int.Parse(N[2].ToString()); var D = int.Parse(N[3].ToString()); var s = ""; if (A + B + C + D ==...
using System; namespace ABC097_C { class Program { static void Main(string[] args) { var N = Console.ReadLine(); var A = int.Parse(N[0].ToString()); var B = int.Parse(N[1].ToString()); var C = int.Parse(N[2].ToString()); var D = int.Parse(N[3].ToString()); var s = ""; if (A + B + C + D ==...
[["-", 12, 16, 31, 16, 31, 16, 12, 5, 0, 222], ["+", 12, 16, 31, 16, 31, 16, 12, 5, 0, 222]]
8
416
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC79 { class Program { static void Main(string[] args) { var a = Console.ReadLine().Select(c => (int)Char.GetNumericValue(c)).ToArray(); if (a[0] ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC79 { class Program { static void Main(string[] args) { var a = Console.ReadLine().Select(c => (int)Char.GetNumericValue(c)).ToArray(); if (a[0] ...
[["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296], ["+", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296]]
8
566
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C { class Program { static IEnumerable<int> func(int a, int b) { yield return a + b; yield return a - b; } static void Main(string[] args) { var A = Console.ReadLine().Select...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C { class Program { static IEnumerable<int> func(int a, int b) { yield return a + b; yield return a - b; } static void Main(string[] args) { var A = Console.ReadLine().Select...
[["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 72], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 33], ["-", 75, 57, 15, 16, 31, 16, 31, 16, 17, 72], ["+", 75, 57, 15, 16, 31, 16, 31, 16, 17, 33], ["-", 75, 57, 75, 57, 15, 16, 31, 16, 17, 33], ["+", 75, 57, 75, 57, 15, 16, 31, 16, 17, 72], ["-", 0, 213, 3, 4, 0, 28, 0, 283, 0,...
8
604
12
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.D { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var inputs = Read...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.D { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var inputs = Read...
[["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203]]
8
484
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static Yorukatsu20200409D.Input; namespace Yorukatsu20200409D { static class Input { private static Func<string, T[]> Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray(); private static Func<string, T> Convert<T>...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static Yorukatsu20200409D.Input; namespace Yorukatsu20200409D { static class Input { private static Func<string, T[]> Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray(); private static Func<string, T> Convert<T>...
[["-", 205, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 205, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 205, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 22]]
8
1,929
4
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...
[["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 20]]
8
2,350
2
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Linq.Expressions; using static System.Console; using static System.Math; class Simple { int H, W; int[,] c, A; void Solve() { // input H = io.Int; W =...
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Linq.Expressions; using static System.Console; using static System.Math; class Simple { int H, W; int[,] c, A; void Solve() { // input H = io.Int; W =...
[["+", 0, 200, 0, 212, 0, 230, 3, 4, 0, 21], ["+", 0, 230, 3, 4, 0, 28, 0, 211, 0, 147]]
8
971
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Contest { class Scanner { private string[] line = new string[0]; private int index = 0; public string Next() { if (line.Length <= index) { line = Console.ReadLine().Split(' '); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Contest { class Scanner { private string[] line = new string[0]; private int index = 0; public string Next() { if (line.Length <= index) { line = Console.ReadLine().Split(' '); ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]]
8
328
1
using System; using System.Collections.Generic; using System.Linq; #if !DEBUG using System.IO; #endif public class Program { public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); #endif #en...
using System; using System.Collections.Generic; using System.Linq; #if !DEBUG using System.IO; #endif public class Program { public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); #endif #en...
[["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
1,544
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ziyuutyou { class Program { static void Main(string[] args) { var str = Console.ReadLine().Split(' '); if (0 < str[0].CompareTo(str[1])) { Console.WriteLine(">"); } else if (0 > str[0].CompareTo(str[2])...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ziyuutyou { class Program { static void Main(string[] args) { var str = Console.ReadLine().Split(' '); if (0 < str[0].CompareTo(str[1])) { Console.WriteLine(">"); } else if (0 > str[0].CompareTo(str[1])...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
124
2
using System; using System.Linq; class Program { static void Main() { char[] input = Array.ConvertAll(Console.ReadLine().Split(), char.Parse); // int input=int.Parse(Console.ReadLine()); // string a = Console.ReadLine(); string ans; if (input[0] < input[1]) { ans = "<"; } else if (input[...
using System; using System.Linq; class Program { static void Main() { char[] input = Array.ConvertAll(Console.ReadLine().Split(), char.Parse); // int input=int.Parse(Console.ReadLine()); // string a = Console.ReadLine(); string ans; if (input[0] < input[1]) { ans = "<"; } else if (input[...
[["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
111
4
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int x = int.Parse(input[0]); int y = int.Parse(input[1]); int z = int.Parse(input[2]); Console.WriteLine((x - 1) / (y + z)); } }
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int x = int.Parse(input[0]); int y = int.Parse(input[1]); int z = int.Parse(input[2]); Console.WriteLine((x - z) / (y + z)); } }
[["-", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 22]]
8
101
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { static class Program { static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); // int X; ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { static class Program { static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); // int X; ...
[["-", 0, 212, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 33]]
8
887
2
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var XYZ = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); Console.WriteLine((XYZ[0] - 1) / (XYZ[1] + XYZ[2])); } } }
using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var XYZ = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); Console.WriteLine((XYZ[0] - XYZ[2]) / (XYZ[1] + XYZ[2])); } } }
[["-", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 16, 31, 23, 0, 16, 12, 204, 205, 22], ["+", 31, 23, 0, 16, 12, 204, 206, 207, 0, 70], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 23, 0, 16, 12, 204, 206, 207, 0, 73]]
8
85
5
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); r...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); r...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
527
2
using System; using System.Collections.Generic; using System.Linq; class Program { public static bool f = false, t = true; static void Main(string[] args) { int[] a = Read.ints(); Console.WriteLine((a[0] - a[1]) / (a[1] + a[2])); } public static long gcd(long a, long b) { while (true) { if (a ...
using System; using System.Collections.Generic; using System.Linq; class Program { public static bool f = false, t = true; static void Main(string[] args) { int[] a = Read.ints(); Console.WriteLine((a[0] - a[2]) / (a[1] + a[2])); } public static long gcd(long a, long b) { while (true) { if (a ...
[["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
392
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ACB75A { class Program { static void Main(string[] args) { int a, b, c; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[0]); c = int....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ACB75A { class Program { static void Main(string[] args) { int a, b, c; var word = Console.ReadLine().Split(' '); a = int.Parse(word[0]); b = int.Parse(word[1]); c = int....
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
158
4
using System; using static System.Console; using System.Collections.Generic; using System.Linq; namespace Atcoder { class Program { static void Main(string[] args) { var a = ReadLine().Split(' ').Select(int.Parse).ToList(); WriteLine(a[0] == a[1] ? a[2] : (a[0] == a[2] ? a[1] : a[2])); } } }
using System; using static System.Console; using System.Collections.Generic; using System.Linq; namespace Atcoder { class Program { static void Main(string[] args) { var a = ReadLine().Split(' ').Select(int.Parse).ToList(); WriteLine(a[0] == a[1] ? a[2] : (a[0] == a[2] ? a[1] : a[0])); } } }
[["-", 0, 41, 75, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 41, 75, 204, 206, 207, 0, 28, 0, 203]]
8
105
2
using System; using System.Linq; namespace ABC075_A { class Program { static void Main(string[] args) { var n = Console.ReadLine().Split().Select(int.Parse).ToArray(); Console.WriteLine(n[0] == n[1] ? n[2] : n[0] == n[2] ? n[1] : n[2]); } } }
using System; using System.Linq; namespace ABC075_A { class Program { static void Main(string[] args) { var n = Console.ReadLine().Split().Select(int.Parse).ToArray(); Console.WriteLine(n[0] == n[1] ? n[2] : n[0] == n[2] ? n[1] : n[0]); } } }
[["-", 75, 41, 75, 204, 206, 207, 0, 28, 0, 203], ["+", 75, 41, 75, 204, 206, 207, 0, 28, 0, 203]]
8
91
2
using System; using System.Collections.Generic; using System.Linq; namespace atcoder { class Program { static void Main(string[] args) { var allSet = Console.ReadLine().Split(' ').Select(p => int.Parse(p)).ToList(); if (allSet[0] == allSet[1]) Console.WriteLine(allSet[2]); if (allSet[2] ==...
using System; using System.Collections.Generic; using System.Linq; namespace atcoder { class Program { static void Main(string[] args) { var allSet = Console.ReadLine().Split(' ').Select(p => int.Parse(p)).ToList(); if (allSet[0] == allSet[1]) Console.WriteLine(allSet[2]); else if (allSet[...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]]
8
121
1
using System; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int h = sc.NextInt(); int w = sc.NextInt(); char[][] s = new char [h][]; for (int i = 0; i < h; i++) { s[i] = sc.Next().ToCharArray(); } int[] dy = new int[8] { 1, 1, 1, 0, 0, -1,...
using System; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int h = sc.NextInt(); int w = sc.NextInt(); char[][] s = new char [h][]; for (int i = 0; i < h; i++) { s[i] = sc.Next().ToCharArray(); } int[] dy = new int[8] { 1, 1, 1, 0, 0, -1,...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22]]
8
661
2
using System; using System.Collections.Generic; namespace ConsoleApp4 { class Program { static void Main(string[] args) { int H = 0, W = 0; string[] inputStr = Console.ReadLine().Split(' '); H = int.Parse(inputStr[0]); W = int.Parse(inputStr[1]); char[,] HW = new char[H, W]; for (int i = 0...
using System; using System.Collections.Generic; namespace ConsoleApp4 { class Program { static void Main(string[] args) { int H = 0, W = 0; string[] inputStr = Console.ReadLine().Split(' '); H = int.Parse(inputStr[0]); W = int.Parse(inputStr[1]); char[,] HW = new char[H, W]; for (int i = 0...
[["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 20], ["-", 64, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 20]]
8
514
12
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Practice { class Program { static void Main(string[] args) { SolveA(); // SolveB(); // SolveC(); // SolveD(); } private const long MOD = 1000000007; static void SolveA() { var o = ReadAndParseInt...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Practice { class Program { static void Main(string[] args) { SolveA(); // SolveB(); // SolveC(); // SolveD(); } private const long MOD = 1000000007; static void SolveA() { var o = ReadAndParseInt...
[["+", 0, 1, 0, 11, 12, 74, 51, 23, 0, 24], ["+", 12, 74, 51, 23, 0, 16, 31, 252, 0, 104], ["+", 12, 74, 51, 23, 0, 16, 31, 252, 0, 253], ["+", 0, 11, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 74, 51, 23, 0, 25]]
8
688
6
using System; class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 int h = int.Parse(input[0]); int w = int.Parse(input[1]); string result = ""; string[] masu = new string[h]; for (int i = 0; i < h; i++) { masu[i] = Con...
using System; class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 int h = int.Parse(input[0]); int w = int.Parse(input[1]); string result = ""; string[] masu = new string[h]; for (int i = 0; i < h; i++) { masu[i] = Con...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
254
4
using System; using System.Collections.Generic; using System.Linq; class Program { public static bool f = false, t = true; static void Main(string[] args) { int[] n = ints(); char[,] a = new char[n[0], n[1]]; for (int i = 0; i < n[0]; i++) { string s = Console.ReadLine(); for (int j = 0; j <...
using System; using System.Collections.Generic; using System.Linq; class Program { public static bool f = false, t = true; static void Main(string[] args) { int[] n = ints(); char[,] a = new char[n[0], n[1]]; for (int i = 0; i < n[0]; i++) { string s = Console.ReadLine(); for (int j = 0; j <...
[["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203]]
8
691
6
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) { #region C問題 // var data = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); // var t = data[0]; // var ...
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 line1 = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); var N = line1[0]; var M = line1[1]; var a = ...
[["-", 8, 201, 0, 235, 8, 201, 0, 195, 8, 196], ["-", 0, 235, 8, 201, 0, 195, 8, 196, 0, 333], ["-", 8, 201, 0, 195, 8, 196, 0, 333, 0, 334], ["-", 0, 195, 8, 196, 0, 333, 0, 334, 0, 169], ["-", 8, 196, 0, 333, 0, 334, 0, 169, 0, 169], ["-", 0, 333, 0, 334, 0, 169, 0, 169, 0, 169], ["-", 0, 334, 0, 169, 0, 169, 0, 169,...
8
1,085
7
using System; namespace ABC075C { class Program { static int INFTY = 0x30000000; static void Main(string[] args) { string[] bufs = Console.ReadLine().Split(' '); int N = int.Parse(bufs[0]); int M = int.Parse(bufs[1]); int[] a = new int[M]; int[] b = new int[M]; int[,] cost = new int[N, N...
using System; namespace ABC075C { class Program { static int INFTY = 0x30000000; static void Main(string[] args) { string[] bufs = Console.ReadLine().Split(' '); int N = int.Parse(bufs[0]); int M = int.Parse(bufs[1]); int[] a = new int[M]; int[] b = new int[M]; int[,] cost = new int[N, N...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
469
2
using System; using System.Linq; public class Problem_C { public static void Main() { var inputs = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int N = inputs[0], M = inputs[1]; var from = new int[N]; var to = new int[N]; var matrix = new int[N, N]; for (var i = 0; i < M; i++) { ...
using System; using System.Linq; public class Problem_C { public static void Main() { var inputs = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int N = inputs[0], M = inputs[1]; var from = new int[M]; var to = new int[M]; var matrix = new int[N, N]; for (var i = 0; i < M; i++) { ...
[["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
379
6
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { long min = long.MaxValue; for (int i = 0; i < N; i++) { for (int j ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST { static void Main() { Sol mySol = new Sol(); mySol.Solve(); } } class Sol { public void Solve() { long min = long.MaxValue; for (int i = 0; i < N; i++) { for (int j ...
[["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
712
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); string s = sc.Next(); string answer = s.Substring(0, s.Length - 7); Console.WriteLine(answer); } class Scanner { private string[] _lin...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); string s = sc.Next(); string answer = s.Substring(0, s.Length - 8); Console.WriteLine(answer); } class Scanner { private string[] _lin...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
366
2
using System; public class Hello { public static void Main() { var s = Console.ReadLine(); var l = s.LastIndexOf("FESTIVAL"); Console.WriteLine(s.Substring(0, l + 1)); } }
using System; public class Hello { public static void Main() { var s = Console.ReadLine(); var l = s.LastIndexOf("FESTIVAL"); Console.WriteLine(s.Substring(0, l)); } }
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
53
2
using System; class Program { static void Main() { var s = Console.ReadLine(); Console.WriteLine(s.Substring(0, s.IndexOf("FESTIVAL"))); } }
using System; class Program { static void Main() { var s = Console.ReadLine(); Console.WriteLine(s.Substring(0, s.LastIndexOf("FESTIVAL"))); } }
[["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]]
8
44
2
using System; namespace ConsoleApp2 { class Program { static void Main(string[] args) { string str = args[0]; int len = str.Length; Console.WriteLine(str.Substring(0, len - 8)); } } }
using System; namespace ConsoleApp2 { class Program { static void Main(string[] args) { string str = Console.ReadLine(); int len = str.Length; Console.WriteLine(str.Substring(0, len - 8)); } } }
[["-", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, ...
8
53
9
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { public Solve() {} StringBuilder sb; ReadData re; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); re = new ReadData(); Calc(); Console.W...
using System; using System.Text; using System.Collections.Generic; using System.Linq; class Solve { public Solve() {} StringBuilder sb; ReadData re; public static int Main() { new Solve().Run(); return 0; } void Run() { sb = new StringBuilder(); re = new ReadData(); Calc(); Console.W...
[["-", 8, 196, 0, 7, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 12, 203]]
8
1,713
2
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 // var s = Console.ReadLine(); var n = long.Parse(Console.ReadLine()); long[] d = Console.ReadLine().Split().Select(long.Parse).ToArr...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 // var s = Console.ReadLine(); var n = long.Parse(Console.ReadLine()); long[] d = Console.ReadLine().Split().Select(long.Parse).ToArr...
[["-", 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], ["-", 75, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 75, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
277
6
using System.Collections.Generic; using System; public class Hello { public static void Main() { var d = new Dictionary<int, int>(); var d2 = new Dictionary<int, int>(); Console.ReadLine(); string[] line = Console.ReadLine().Trim().Split(' '); setDict(d, line); Console.ReadLine(); string[...
using System.Collections.Generic; using System; public class Hello { public static void Main() { var d = new Dictionary<int, int>(); var d2 = new Dictionary<int, int>(); Console.ReadLine(); string[] line = Console.ReadLine().Trim().Split(' '); setDict(d, line); Console.ReadLine(); string[...
[["-", 8, 57, 15, 241, 0, 213, 63, 214, 205, 22], ["+", 8, 57, 15, 241, 0, 213, 63, 214, 205, 22]]
8
278
2
using System; using System.Collections.Generic; using System.Linq; namespace atcoder { class Program { static void Main(string[] args) { var all = int.Parse(Console.ReadLine()); var allSet = Console.ReadLine().Split(' ').Select(p => int.Parse(p)).ToList(); var need = int.Parse(Console.ReadLine())...
using System; using System.Collections.Generic; using System.Linq; namespace atcoder { class Program { static void Main(string[] args) { var all = int.Parse(Console.ReadLine()); var allSet = Console.ReadLine().Split(' ').Select(p => int.Parse(p)).ToList(); var need = int.Parse(Console.ReadLine())...
[["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]]
8
236
2
using System; class Program { static void Main(string[] args) { int n; int sum = 100000; n = int.Parse(Console.ReadLine()); int[] a = new int[n]; int[] b = new int[n]; for (int i = 0; i < n; i++) { string[] s = Console.ReadLine().Split(' '); a[i] = int.Parse(s[0]); b[i] =...
using System; class Program { static void Main(string[] args) { int n; int sum = 0; n = int.Parse(Console.ReadLine()); int[] a = new int[n]; int[] b = new int[n]; for (int i = 0; i < n; i++) { string[] s = Console.ReadLine().Split(' '); a[i] = int.Parse(s[0]); b[i] = int....
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
144
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main() { int a, b, c; int hito = 0; c = int.Parse(Console.ReadLine()); for (int i = 0; i < c; i++) { string[] str = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main() { int a, b, c; int hito = 0; c = int.Parse(Console.ReadLine()); for (int i = 0; i < c; i++) { string[] str = ...
[["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22]]
8
158
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC073_C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var A = new List<long>(); for (int i = 0; i < N; i++) { A.Add(long.Parse(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC073_C { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var A = new List<long>(); for (int i = 0; i < N; i++) { A.Add(long.Parse(...
[["+", 64, 196, 0, 57, 75, 196, 0, 93, 0, 94], ["+", 64, 196, 0, 57, 75, 196, 0, 93, 0, 35]]
8
265
2
using System; using System.Reflection; using System.Linq.Expressions; using System.Linq; using System.IO; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace AtCoder { public class Program { static int[] getKeys(char delimiter) { var Keys = Console.ReadLine().Split(' '); ...
using System; using System.Reflection; using System.Linq.Expressions; using System.Linq; using System.IO; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace AtCoder { public class Program { static int[] getKeys(char delimiter) { var Keys = Console.ReadLine().Split(' '); ...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203]]
8
563
6
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace ConsoleApplication { class Program { static void Main() { new Solution().answer(); } } class Solution { string N, M; string[] M_split ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace ConsoleApplication { class Program { static void Main() { new Solution().answer(); } } class Solution { string N, M; string[] M_split ...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 75, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 46]]
8
259
6
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using System.Runtime.CompilerServices; using static MyUtil; class MyUtil { public static void AssertEquals<T>(T expected, T actual, [CallerLineNumber] int lno = 0) where T : ICom...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using System.Runtime.CompilerServices; using static MyUtil; class MyUtil { public static void AssertEquals<T>(T expected, T actual, [CallerLineNumber] int lno = 0) where T : ICom...
[["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 23, 0, 16, 31, 203], ["+", 0, 200, 0, 212, 0, 23, 0, 16, 17, 151], ["+", 0, 200, 0, 212, 0, 23, 0, 16, 12...
8
912
8
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static string[] input = Console.ReadLine().Split(' '); static long n = long.Parse(input[0]); static long m = long.Parse(input[1]); static int r = int.Parse(input[2]); static long[,] mo...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static string[] input = Console.ReadLine().Split(' '); static long n = long.Parse(input[0]); static long m = long.Parse(input[1]); static int r = int.Parse(input[2]); static long[,] mo...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 31, 22]]
8
619
4
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Globalization; using System.Diagnostics; using static System.Console; using Pair = System.Collections.Generic.KeyValuePair<int, int>; // using System.Numerics; class Program { static void Main() { // SetOut(new Strea...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Globalization; using System.Diagnostics; using static System.Console; using Pair = System.Collections.Generic.KeyValuePair<int, int>; // using System.Numerics; class Program { static void Main() { // SetOut(new Strea...
[["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
810
2
using System; using System.Linq; class Program { static void Main() { int[] input = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray(); // int a=int.Parse(Console.ReadLine()); // string a = Console.ReadLine(); Console.WriteLine(Math.Min(input[0] - input[1], 0)); Console.ReadLi...
using System; using System.Linq; class Program { static void Main() { int[] input = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray(); // int a=int.Parse(Console.ReadLine()); // string a = Console.ReadLine(); Console.WriteLine(Math.Max(input[0] - input[1], 0)); Console.ReadLi...
[["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]]
8
80
2
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Console; using static System.Math; class Simple { int X, t; void Solve() { // input X = io.Int; t = io.Int; // cal var ans = X - t; // ret WriteLine(ans); }...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Console; using static System.Math; class Simple { int X, t; void Solve() { // input X = io.Int; t = io.Int; // cal var ans = Max(X - t, 0); // ret WriteLine(a...
[["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25]]
8
341
5
using System; using System.Text; namespace AtCorder { class Program { static void Main(string[] args) { var s = "fukuokayamaguchi"; var length = s.Length; var sb = new StringBuilder(); for (var i = 0; i < length; i++) { if (i % 2 != 0) { continue; } sb.Append(s[i]); } ...
using System; using System.Text; namespace AtCorder { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var length = s.Length; var sb = new StringBuilder(); for (var i = 0; i < length; i++) { if (i % 2 != 0) { continue; } sb.Append(s[i]); } ...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 62], ["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 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, 200, 0, 212, 0, 213, 3, 4, 0, 2...
8
98
8
using System; using System.Collections.Generic; using System.Linq; using static System.Math; class s_Atcoder { public static void Main() { string s = Console.ReadLine(); char[] c = s.ToCharArray(); for (int i = 0; i < s.Length; i++) { if (i % 2 == 1) { Console.Write(c[i]); } } ...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; class s_Atcoder { public static void Main() { string s = Console.ReadLine(); char[] c = s.ToCharArray(); for (int i = 0; i < s.Length; i++) { if (i % 2 == 0) { Console.Write(c[i]); } } ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203]]
8
99
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Convert; using static System.Console; using static System.Math; class MainClass { static void Main(string[] args) { Answer(); } public static void Answer() { var str = Console.ReadLine(); var ans3 = "";...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Convert; using static System.Console; using static System.Math; class MainClass { static void Main(string[] args) { Answer(); } public static void Answer() { var str = Console.ReadLine(); var ans3 = "";...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
115
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.ExceptionServices; using System.Runtime.InteropServices; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { Question.Exec(); } } public static class Question { public stat...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.ExceptionServices; using System.Runtime.InteropServices; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { Question.Exec(); } } public static class Question { public stat...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]]
8
237
2
using System; using System.Linq; namespace _072c { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int[] s = new int[a.Max() + 2]; foreach (int i in a) { if (i != 0) { s[i - 1]++;...
using System; using System.Linq; namespace _072c { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int[] s = new int[a.Max() + 2]; foreach (int i in a) { if (i != 0) { s[i - 1]++;...
[["+", 0, 210, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 210, 8, 196, 0, 57, 64, 196, 0, 46]]
8
132
2
using System; using System.Collections; using System.Collections.Generic; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { var read = Console.ReadLine(); var split = read.Split(' '); int a = int.Parse(split[0]); int b = int.Parse(split[1]); long answer = 0; an...
using System; using System.Collections; using System.Collections.Generic; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { var read = Console.ReadLine(); var split = read.Split(' '); int a = int.Parse(split[0]); int b = int.Parse(split[1]); long answer = 0; an...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25]]
8
117
6
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; using static System.Console; // using System.Numerics; using static System.Math; class Program { static void Main() { // SetOut(new StreamWriter(OpenStandar...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; using static System.Console; // using System.Numerics; using static System.Math; class Program { static void Main() { // SetOut(new StreamWriter(OpenStandar...
[["-", 8, 196, 0, 57, 15, 16, 12, 204, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 204, 205, 22], ["-", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22]]
8
652
4
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { List<string> s1 = Console.ReadLine().ToList().ConvertAll(x => x.ToString()); List<string> s2 = Console.ReadLine().ToList().ConvertAll(x => x.ToString()); // Console.WriteLine(string.Join(" ...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { List<string> s1 = Console.ReadLine().ToList().ConvertAll(x => x.ToString()); List<string> s2 = Console.ReadLine().ToList().ConvertAll(x => x.ToString()); // Console.WriteLine(string.Join(" ...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
139
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Student { class Program { static void Main(string[] args) { Test4(); Console.ReadKey(); } private static void Test4() { string str = Console.ReadLine(); string str2 = Cons...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Student { class Program { static void Main(string[] args) { Test4(); Console.ReadKey(); } private static void Test4() { string str = Console.ReadLine(); string str2 = Cons...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
146
4
using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using System.Numerics; using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var a = Console.ReadLine().Reverse(); var b = Console.ReadLine(); Console.WriteLine(a.Seque...
using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using System.Numerics; using System; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var a = Console.ReadLine().Reverse(); var b = Console.ReadLine(); Console.WriteLine(a.Seque...
[["-", 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
93
4
using System; using System.Linq; namespace A___Rotation { class Program { static void Main(string[] args) { var C1 = Console.ReadLine(); var C2 = Console.ReadLine(); Console.WriteLine( string.Compare(C1, string.Join("", C2.Reverse())) == 0 ? "Yes" : "No"); } } }
using System; using System.Linq; namespace A___Rotation { class Program { static void Main(string[] args) { var C1 = Console.ReadLine(); var C2 = Console.ReadLine(); Console.WriteLine( string.Compare(C1, string.Join("", C2.Reverse())) == 0 ? "YES" : "NO"); } } }
[["-", 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
81
4
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main() { //入力 // int[] input = Console.ReadLine().Split().Select(i => // int.Parse(i)).ToArray(); string input= Console.ReadLine(); string[] input = new...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main() { //入力 // int[] input = Console.ReadLine().Split().Select(i => // int.Parse(i)).ToArray(); string input= Console.ReadLine(); string[] input = new...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79]]
8
142
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Practice { class Program { static void Main(string[] args) { SolveA(); // SolveB(); // SolveC(); // SolveD(); } private const long MOD = 1000000007; static void SolveA() { string c0 = Console.Rea...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Practice { class Program { static void Main(string[] args) { SolveA(); // SolveB(); // SolveC(); // SolveD(); } private const long MOD = 1000000007; static void SolveA() { string c0 = Console.Rea...
[["-", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 64, 5, 0, 222], ["-", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222], ["+", 0, 200, 0, 212, 0, 41, 75, 5, 0, 222]]
8
442
4
using System; using System.Linq; class prog { static void Main() { string s1 = Console.ReadLine(); string s2 = Console.ReadLine(); Console.WriteLine( s1[0] == s2[2] && s1[1] == s2[1] && s1[2] == s2[0] ? "Yes" : "No"); } }
using System; using System.Linq; class prog { static void Main() { string s1 = Console.ReadLine(); string s2 = Console.ReadLine(); Console.WriteLine( s1[0] == s2[2] && s1[1] == s2[1] && s1[2] == s2[0] ? "YES" : "NO"); } }
[["-", 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
80
4
using System; public class Hello { public static void Main() { string A = Console.ReadLine(); string B = Console.ReadLine(); if ((A.Substring(0, 1) == B.Substring(2, 1)) && (A.Substring(1, 1) == B.Substring(1, 1)) && (A.Substring(2, 1) == B.Substring(0, 1))) { Console.WriteLine("Yes"...
using System; public class Hello { public static void Main() { string A = Console.ReadLine(); string B = Console.ReadLine(); if ((A.Substring(0, 1) == B.Substring(2, 1)) && (A.Substring(1, 1) == B.Substring(1, 1)) && (A.Substring(2, 1) == B.Substring(0, 1))) { Console.WriteLine("YES"...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
119
4
using System; public class Example { public static void Main() { string a = Console.ReadLine(); char[] c = Console.ReadLine().ToCharArray(); Array.Reverse(c); if (a == new string(c)) System.Console.WriteLine("OK"); else System.Console.WriteLine("NG"); } }
using System; public class Example { public static void Main() { string a = Console.ReadLine(); char[] c = Console.ReadLine().ToCharArray(); Array.Reverse(c); if (a == new string(c)) System.Console.WriteLine("YES"); else System.Console.WriteLine("NO"); } }
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
80
4
using System; class B { static void Main() { int N = int.Parse(Console.ReadLine()); int ans = 0; for (int i = 0; i < 40000; i++) { if (i * i == N) ans = i; } Console.WriteLine(ans); } }
using System; class B { static void Main() { int N = int.Parse(Console.ReadLine()); int ans = 0; for (int i = 0; i < 40000; i++) { if (i * i <= N) ans = i * i; } Console.WriteLine(ans); } }
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 31, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 48]]
8
68
4
using System; using System.Linq; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int n = sc.NextInt(); int i = 1; for (; i * i < n; i++) { } Console.WriteLine((i - 1) * (i - 1)); } public static void Main(string[] args) => new Program().Solve();...
using System; using System.Linq; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int n = sc.NextInt(); int i = 1; for (; i * i <= n; i++) { } Console.WriteLine((i - 1) * (i - 1)); } public static void Main(string[] args) => new Program().Solve()...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
406
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int n = sc.NextInt(); int answer = 0; for (int i = 0; i * i < n; i++) { if (i * i <= n) { answer = i * i; } } Conso...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int n = sc.NextInt(); int answer = 0; for (int i = 0; i * i <= n; i++) { if (i * i <= n) { answer = i * i; } } Cons...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
389
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; public static void Main() { // 方針 // long n = rlong(); for (int i = 1; i < n;...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Solve { static public int mod = 1000000007; public static void Main() { // 方針 // long n = rlong(); for (int i = 1; true; ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 211, 0, 146]]
8
2,123
4
using System; namespace ABC077_B { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); long m = 0; for (long i = 1; i * i < N; i++) m = i; Console.WriteLine(m * m); } } }
using System; namespace ABC077_B { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); long m = 0; for (long i = 1; i * i <= N; i++) m = i; Console.WriteLine(m * m); } } }
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
70
2
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Text; namespace Program { class MainClass { //////////////////////////////////////////////////////////// string S, T; void Solve() { ...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Text; namespace Program { class MainClass { //////////////////////////////////////////////////////////// string S, T; void Solve() { ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
9,044
2
using System; public class Hello { public static void Main() { int N = int.Parse(Console.ReadLine()); int X = 1; while (X * X < N) { X++; } Console.WriteLine((X - 1) * (X - 1)); } }
using System; public class Hello { public static void Main() { long N = long.Parse(Console.ReadLine()); long X = 1; while (X * X <= N) { X++; } Console.WriteLine((X - 1) * (X - 1)); } }
[["-", 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, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
65
8