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.Linq; using static System.Math; namespace A { class Program { static void Main(string[] args) { var abcd = Console.ReadLine().Split().Select(int.Parse).ToArray(); if (abcd[2] - abcd[0] <= abcd[3]) { Console.WriteLine("Yes"); } else if (Abs(abcd[0] - abcd[1]) <= abcd[3] &...
using System; using System.Linq; using static System.Math; namespace A { class Program { static void Main(string[] args) { var abcd = Console.ReadLine().Split().Select(int.Parse).ToArray(); if (Abs(abcd[2] - abcd[0]) <= abcd[3]) { Console.WriteLine("Yes"); } else if (Abs(abcd[0] - abcd[1]) <= abcd...
[["+", 8, 196, 0, 57, 15, 16, 31, 213, 63, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 25]]
8
147
3
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { int[] a = Input.ScanIntArray(); if (Math.Abs(a[0] - a[2]) < a[3] || (Math.Abs(a[0] - a[1]) < a[3] && Math.Abs(a[1] - a[2]) < a[3])) Console.WriteLine("Yes"); else ...
using System; using System.Linq; using System.Collections.Generic; namespace program { class Program { static void Main() { int[] a = Input.ScanIntArray(); if (Math.Abs(a[0] - a[2]) <= a[3] || (Math.Abs(a[0] - a[1]) <= a[3] && Math.Abs(a[1] - a[2]) <= a[3])) Console.WriteLine("Yes"); else ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["-", 15, 16, 12, 23, 0, 16, 31, 16, 17, 18], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 17, 19], ["-", 15, 16, 12, 23, 0, 16, 12, 16, 17, 18], ["+", 15, 16, 12, 23, 0, 16, 12, 16, 17, 19]]
8
655
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace At { class Program { static void Main(string[] args) { var s = ReadInts(); if (Math.Abs(s[0] - s[2]) < s[3]) WriteLine("Yes"); else { if (Math...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace At { class Program { static void Main(string[] args) { var s = ReadInts(); if (Math.Abs(s[0] - s[2]) <= s[3]) WriteLine("Yes"); else { if (Mat...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
319
2
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { //[summary]Colorful Transceivers var line = ReadLine(); int a = line[0]; int b = line[1]; int c = line[2]; int d = line[3]; if (Math.Abs(a - b) <= d | ...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { //[summary]Colorful Transceivers var line = ReadLine(); int a = line[0]; int b = line[1]; int c = line[2]; int d = line[3]; if (Math.Abs(a - c) <= d | ...
[["-", 31, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
184
2
using System; using System.Collections; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Runtime.Remoting.Messaging; using System.Security.Cryptography.X509Certificates; using System.Security.Permissions; usin...
using System; using System.Collections; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Runtime.Remoting.Messaging; using System.Security.Cryptography.X509Certificates; using System.Security.Permissions; usin...
[["-", 31, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
3,630
2
using System; namespace ConsoleApp5 { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int b = int.Parse(str[1]); int c = int.Parse(str[2]); int d = int.Parse(str[3]); if (Math.Abs(a - c) <= d || Math.Abs(a - b) <= d &...
using System; namespace ConsoleApp5 { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int a = int.Parse(str[0]); int b = int.Parse(str[1]); int c = int.Parse(str[2]); int d = int.Parse(str[3]); if (Math.Abs(a - c) <= d || Math.Abs(a - b) <= d &...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
150
4
using System; using static System.Math; class Program { static void Main(string[] args) { string[] abcd = Console.ReadLine().Split(' '); int a = int.Parse(abcd[0]); int b = int.Parse(abcd[1]); int c = int.Parse(abcd[2]); int d = int.Parse(abcd[3]); if (Abs(a - c) < d) { Console.WriteLin...
using System; using static System.Math; class Program { static void Main(string[] args) { string[] abcd = Console.ReadLine().Split(' '); int a = int.Parse(abcd[0]); int b = int.Parse(abcd[1]); int c = int.Parse(abcd[2]); int d = int.Parse(abcd[3]); if (Abs(a - c) <= d) { Console.WriteLi...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
162
2
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var abcd = ReadLine().Split().Select(int.Parse).ToArray(); var a = abcd[0]; var b = abcd[1]; var c = abcd[2]; var d = abcd[3]; WriteLine((Math.Abs(a - b) <= d) ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var abcd = ReadLine().Split().Select(int.Parse).ToArray(); var a = abcd[0]; var b = abcd[1]; var c = abcd[2]; var d = abcd[3]; WriteLine((Math.Abs(a - c) <= d) ...
[["-", 31, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
134
4
using System; namespace b { class Program { static void Main(string[] args) { var x = int.Parse(Console.ReadLine()); var maxV = 1; for (var i = 2; i * i <= x; i++) { var y = i * i; while (y <= x) { maxV = Math.Max(maxV, y); y *= y; } } Console.WriteLine(maxV); ...
using System; namespace b { class Program { static void Main(string[] args) { var x = int.Parse(Console.ReadLine()); var maxV = 1; for (var i = 2; i * i <= x; i++) { var y = i * i; while (y <= x) { maxV = Math.Max(maxV, y); y *= i; } } Console.WriteLine(maxV); ...
[["-", 0, 52, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 22]]
8
96
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int x = sc.NextInt(); int answer = 0; for (int b = 1; b <= 1000; b++) { for (int p = 2; p <= 1000; p++) { int tmpAnswer = (int)Mat...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int x = sc.NextInt(); int answer = 0; for (int b = 1; b <= 1000; b++) { for (int p = 2; p <= 1000; p++) { int tmpAnswer = (int)Mat...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47]]
8
423
2
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 0, 7, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 52, 15, 16, 17, 19]]
8
201
4
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Convert; using static System.Math; //using static System.Globalization.CultureInfo; using System.Text; class Program { private static void chmin<T>(ref T num, T val) where T : ICompar...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Convert; using static System.Math; //using static System.Globalization.CultureInfo; using System.Text; class Program { private static void chmin<T>(ref T num, T val) where T : ICompar...
[["-", 0, 7, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 52, 15, 16, 17, 19]]
8
1,704
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Diagnostics; // var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); namespace AtCoderSolve { class Solve { const int mod = 1000000007; static void...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Diagnostics; // var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); namespace AtCoderSolve { class Solve { const int mod = 1000000007; static void...
[["-", 0, 7, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 52, 15, 16, 17, 19]]
8
169
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Collections; static class Extensions { public static int ToInt(this string s) => int.Parse(s); public static long ToLong(this string s) => long.Pars...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Collections; static class Extensions { public static int ToInt(this string s) => int.Parse(s); public static long ToLong(this string s) => long.Pars...
[["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 52, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 22]]
8
373
7
using System; class Program { static void Main(string[] args) { int x = int.Parse(Console.ReadLine()); Console.WriteLine(solve(x)); } static long solve(int x) { long ans = 1; for (int i = 2; i <= 1000; i++) { long tmp = 1; for (int j = 2; j <= 1000; j++) { tmp = tmp * i; ...
using System; class Program { static void Main(string[] args) { int x = int.Parse(Console.ReadLine()); Console.WriteLine(solve(x)); } static long solve(int x) { long ans = 1; for (int i = 2; i <= 1000; i++) { long tmp = i; for (int j = 2; j <= 1000; j++) { tmp = tmp * i; ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22]]
8
121
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Atcoderrrrrr { static void Main(string[] args) { int x = int.Parse(Console.ReadLine()); double ans = 0; for (int b = 1; b <= x; b++) { for (int p = 2; p < 10...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Atcoderrrrrr { static void Main(string[] args) { int x = int.Parse(Console.ReadLine()); double ans = 0; for (int b = 1; b <= x; b++) { for (int p = 2; p < 10...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98]]
8
128
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace atcoder097_B { class Program { static void Main(string[] args) { //入力を受け取る int X = int.Parse(Console.ReadLine()); //最終的に出力する変数 int result = 0; ; // 1000までのべき定数を作成 int[] Beki = new int[350]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace atcoder097_B { class Program { static void Main(string[] args) { //入力を受け取る int X = int.Parse(Console.ReadLine()); //最終的に出力する変数 int result = 0; ; // 1000までのべき定数を作成 int[] Beki = new int[350]; ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]]
8
194
2
using System; using System.Linq; public class Hello { public static void Main() { // Your code here! int X = int.Parse(Console.ReadLine()); int save = 1; if (X == 1) { Console.WriteLine(1); return; } for (int i = 2; i <= Math.Sqrt(X); i++) { int a = i * i; while (a ...
using System; using System.Linq; public class Hello { public static void Main() { // Your code here! int X = int.Parse(Console.ReadLine()); int save = 1; if (X == 1) { Console.WriteLine(1); return; } for (int i = 2; i <= Math.Sqrt(X); i++) { int a = i * i; while (a ...
[["-", 0, 7, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 52, 15, 16, 17, 19]]
8
152
2
using System; using System.Linq; namespace AtCoderBeginnerContest097 { class ABC097B { static void Main(string[] args) { int X = int.Parse(Console.ReadLine()); int N = (int)Math.Sqrt(X); int max = 0; for (int i = 2; i <= N; i++) { int M = (int)Math.Log((double)X + 0.1, (double)i); int l =...
using System; using System.Linq; namespace AtCoderBeginnerContest097 { class ABC097B { static void Main(string[] args) { int X = int.Parse(Console.ReadLine()); int N = (int)Math.Sqrt(X); int max = 1; for (int i = 2; i <= N; i++) { int M = (int)Math.Log((double)X + 0.1, (double)i); int l =...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
136
2
using System; class Problem02 { static void Main(string[] args) { string t = Console.ReadLine(); int X = int.Parse(t); for (int i = X; i >= 1; i--) { if (beki(i) == true) { Console.WriteLine(i); break; } } } static bool beki(int x) { if (x == 1) return true; ...
using System; class Problem02 { static void Main(string[] args) { string t = Console.ReadLine(); int X = int.Parse(t); for (int i = X; i >= 1; i--) { if (beki(i) == true) { Console.WriteLine(i); break; } } } static bool beki(int x) { if (x == 1) return true; ...
[["-", 8, 196, 0, 57, 75, 57, 64, 37, 0, 38], ["-", 0, 57, 75, 57, 64, 37, 0, 211, 0, 147], ["+", 8, 196, 0, 57, 75, 57, 64, 93, 0, 94]]
8
168
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC097B { class Program { static void Main(string[] args) { var X = int.Parse(Console.ReadLine()); int ans = 1; for (int i = 2; i < X; i++) { if (i * i > X) break; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC097B { class Program { static void Main(string[] args) { var X = int.Parse(Console.ReadLine()); int ans = 1; for (int i = 2; i < X; i++) { if (i * i > X) break; ...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
152
2
using System; using System.Collections.Generic; using System.Linq; using static Atcoder; using System.Threading.Tasks; using System.ComponentModel; public class Hello { public static void Main() { int X = intRead(); int max = 0; int t = 0; for (int i = 2; i < 1000; i++) { for (int j = 2; j < 1...
using System; using System.Collections.Generic; using System.Linq; using static Atcoder; using System.Threading.Tasks; using System.ComponentModel; public class Hello { public static void Main() { int X = intRead(); int max = 0; int t = 0; for (int i = 1; i < 1000; i++) { for (int j = 2; j < 1...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
377
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; using static Atcoder.IO; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandar...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; using static Atcoder.IO; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandar...
[["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
583
2
// A Dynamic Programming based // C# program to find minimum // number operations to // convert str1 to str2 using System; using System.Collections.Generic; using System.Linq; class GFG { public static void Main() { var st = Console.ReadLine(); var n = int.Parse(Console.ReadLine()); // var t = Console.Re...
// A Dynamic Programming based // C# program to find minimum // number operations to // convert str1 to str2 using System; using System.Collections.Generic; using System.Linq; class GFG { public static void Main() { var st = Console.ReadLine(); var n = int.Parse(Console.ReadLine()); // var t = Console.Re...
[["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22]]
8
194
2
using System; using System.Collections.Generic; using System.Linq; class AtCoder { static void Main(string[] args) { Scanner cin = new Scanner(); string s = Console.ReadLine(); int K = cin.Int(); List<string> x = new List<string>(); for (int i = 1; i <= K; i++) { for (int j = 0; j < s.Leng...
using System; using System.Collections.Generic; using System.Linq; class AtCoder { static void Main(string[] args) { Scanner cin = new Scanner(); string s = Console.ReadLine(); int K = cin.Int(); List<string> x = new List<string>(); for (int i = 1; i <= K; i++) { for (int j = 0; j < s.Leng...
[["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131]]
8
655
4
using System; using System.Collections.Generic; using System.Linq; namespace _97C { class Program { static void Main(string[] args) { var str = Console.ReadLine(); int k = int.Parse(Console.ReadLine()); List<string> list = new List<string>(); HashSet<string> hash = new HashSet<string>(); for (in...
using System; using System.Collections.Generic; using System.Linq; namespace _97C { class Program { static void Main(string[] args) { var str = Console.ReadLine(); int k = int.Parse(Console.ReadLine()); List<string> list = new List<string>(); HashSet<string> hash = new HashSet<string>(); for (in...
[["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
161
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 Hello { static public int mod = 1000000007; public static void Main() { // 方針 // int n = rint(); int[] a = inta(); in...
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 Hello { static public int mod = 1000000007; public static void Main() { // 方針 // int n = rint(); int[] a = inta(); in...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
8
1,447
2
using System; using System.Collections.Generic; using System.Linq; public class Prog { public void run() { int N = int.Parse(Console.ReadLine()); int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] srt = new int[N]; input.CopyTo(srt, 0); Array.Sort(srt); int bef = srt[...
using System; using System.Collections.Generic; using System.Linq; public class Prog { public void run() { int N = int.Parse(Console.ReadLine()); int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[] srt = new int[N]; input.CopyTo(srt, 0); Array.Sort(srt); int bef = srt[...
[["-", 0, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
193
2
using Asakatsu20200503.Questions; using Asakatsu20200503.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Asakatsu20200503.Questions { /// <summary> /// ABC094 /// </summary> public class QuestionD : AtCoderQuestionBase { public ov...
using Asakatsu20200503.Questions; using Asakatsu20200503.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Asakatsu20200503.Questions { /// <summary> /// ABC094 /// </summary> public class QuestionD : AtCoderQuestionBase { public ov...
[["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]]
8
556
6
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); Array.Sort(a); var max = a[n - 1]; var center = max / ...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); Array.Sort(a); var max = a[n - 1]; var center = max / ...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 250], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199]]
8
189
4
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 #e...
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 #e...
[["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73]]
8
1,707
3
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var array = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var nums = new List<Number>(); for (int i = 0; i < N; i++) ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var array = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var nums = new List<Number>(); for (int i = 0; i < N; i++) ...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 60], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 47]]
8
249
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public static void Main(string[] args) { string line = Console.ReadLine(); if (line.Contains("a") && line.Contains("b") && line.Contains("c")) Console.W...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public const long Giri = 1000000007; public static void Main(string[] args) { string line = Console.ReadLine(); if (line.Contains("a") && line.Contains("b") && line.Contains("c")) Console.W...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]]
8
200
1
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var hasA = false; var hasB = false; var hasC = false; foreach (var item in S) { switch (item) { case 'A': h...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp { class Program { static void Main(string[] args) { var S = Console.ReadLine(); var hasA = false; var hasB = false; var hasC = false; foreach (var item in S) { switch (item) { case 'a': h...
[["-", 8, 254, 0, 239, 0, 264, 0, 252, 0, 253], ["+", 8, 254, 0, 239, 0, 264, 0, 252, 0, 253]]
8
125
6
using System; using System.Linq; class Program { static void Main() { // int[] input = Array.ConvertAll(Console.ReadLine().Split(),int.Parse); // int input=int.Parse(Console.ReadLine()); string a = Console.ReadLine(); Console.WriteLine( a.Contains("a") && a.Contains("b") && a.Contains("c") ? "...
using System; using System.Linq; class Program { static void Main() { // int[] input = Array.ConvertAll(Console.ReadLine().Split(),int.Parse); // int input=int.Parse(Console.ReadLine()); string a = Console.ReadLine(); Console.WriteLine( a.Contains("a") && a.Contains("b") && a.Contains("c") ? "...
[["-", 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
76
4
using System; using System.IO; class Program { static void Main(string[] args) { string S = Console.ReadLine(); if (S[0] != S[1] && S[1] != S[2] && S[2] != S[0]) { Console.WriteLine("YES"); } else { Console.WriteLine("NO"); } } }
using System; using System.IO; class Program { static void Main(string[] args) { string S = Console.ReadLine(); if (S[0] != S[1] && S[1] != S[2] && S[2] != S[0]) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
87
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int a = sc.NextInt(); int b = sc.NextInt(); int k = sc.NextInt(); List<int> answers = new List<int>(); for (int i = a; i <= b && i <= a...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int a = sc.NextInt(); int b = sc.NextInt(); int k = sc.NextInt(); List<int> answers = new List<int>(); for (int i = a; i <= b && i <= a...
[["+", 0, 7, 15, 16, 12, 16, 12, 16, 17, 33], ["+", 0, 7, 15, 16, 12, 16, 12, 16, 12, 203], ["+", 0, 7, 15, 16, 12, 16, 12, 16, 17, 72]]
8
468
4
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 72], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
302
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() { // 方針 // var n = inta(); var list = new List<int>...
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() { // 方針 // var n = inta(); var list = new List<int>...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
1,353
6
using System; class p { static void Main() { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int K = int.Parse(input[2]); if (K * 2 < B - A) { for (int i = A; i < A + K; i++) { Console.WriteLine(i); } for (int i =...
using System; class p { static void Main() { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int K = int.Parse(input[2]); if (K * 2 <= B - A) { for (int i = A; i < A + K; i++) { Console.WriteLine(i); } for (int i ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
163
2
using System.Linq; using System; using System.IO; class Program { static void Main(string[] args) { var line = Console.ReadLine().Split(' '); var a = int.Parse(line[0]); var b = int.Parse(line[1]); var k = int.Parse(line[2]); var sw = new StreamWriter(Console.OpenStandardOutput()) { Auto...
using System.Linq; using System; using System.IO; class Program { static void Main(string[] args) { var line = Console.ReadLine().Split(' '); var a = int.Parse(line[0]); var b = int.Parse(line[1]); var k = int.Parse(line[2]); var sw = new StreamWriter(Console.OpenStandardOutput()) { Auto...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]]
8
193
2
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static AtCoderTemplate.MyExtensions; using static AtCoderTemplate.MyInputOutputs; using static AtCoderTemplate.MyNumericFunctions; namespace AtCoderTemplate { public class Program { public static void Main(string[] arg...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static AtCoderTemplate.MyExtensions; using static AtCoderTemplate.MyInputOutputs; using static AtCoderTemplate.MyNumericFunctions; namespace AtCoderTemplate { public class Program { public static void Main(string[] arg...
[["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131]]
8
1,846
4
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray(); var list = new SortedSet<int>(); for (int i = 0; i < s[2]; i++) { list.Add(s[0] + i); list.Add(s[1] - i); ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray(); var list = new SortedSet<int>(); for (int i = 0; i < s[2]; i++) { list.Add(s[0] + i); list.Add(s[1] - i); ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
142
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace MyProgram { public class Program { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int K = int.Pars...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace MyProgram { public class Program { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int K = int.Pars...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47]]
8
208
4
using System; namespace AtCoder.ABC093 { class b { static void Main(string[] args) { var line = Console.ReadLine().Trim(); var spl = line.Split(' '); var A = int.Parse(spl[0]); var B = int.Parse(spl[1]); var K = int.Parse(spl[2]); if (B - A + 1 <= K) { for (var i = A; ...
using System; namespace AtCoder.ABC093 { class b { static void Main(string[] args) { var line = Console.ReadLine().Trim(); var spl = line.Split(' '); var A = int.Parse(spl[0]); var B = int.Parse(spl[1]); var K = int.Parse(spl[2]); if (B - A + 1 <= K * 2) { for (var i =...
[["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 48], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
178
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_ABC089_A { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int a = int.Parse(s[0]); int b = int.Parse(s[1]); int k = int...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder_ABC089_A { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int a = int.Parse(s[0]); int b = int.Parse(s[1]); int k = int...
[["+", 15, 16, 12, 23, 0, 16, 31, 16, 17, 48], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 12, 203]]
8
197
2
using System; class Program { static void Main(string[] args) { // 整数の入力 string s = Console.ReadLine(); string[] sl = s.Split(' '); int A = int.Parse(sl[0]); int B = int.Parse(sl[1]); int K = int.Parse(sl[2]); for (int i = A; i <= B; i++) { if (i == A + K) { if (i < B - K + 1...
using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); string[] sl = s.Split(' '); int A = int.Parse(sl[0]); int B = int.Parse(sl[1]); int K = int.Parse(sl[2]); for (int i = A; i <= B; i++) { if (i == A + K) { if (i < B - K + 1) i...
[["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
8
134
2
using System; class Program { static void Main(string[] args) { // スペース区切りの整数の入力 int a, b, k; string[] input = Console.ReadLine().Split(' '); a = int.Parse(input[0]); b = int.Parse(input[1]); k = int.Parse(input[2]); for (int i = 0; i < k; i++) { Console.WriteLine(a + i); if (...
using System; class Program { static void Main(string[] args) { // スペース区切りの整数の入力 int a, b, k; string[] input = Console.ReadLine().Split(' '); a = int.Parse(input[0]); b = int.Parse(input[1]); k = int.Parse(input[2]); for (int i = 0; i < k; i++) { Console.WriteLine(a + i); if (...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47]]
8
154
2
// using System; using System.Linq; using System.Collections.Generic; public class Hello { public static void Main() { var line = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var H = line[0]; var W = line[1]; var S = new string[H]; for (var i = 0; i < H; i++) { S[i] = Console....
using System; using System.Linq; using System.Collections.Generic; public class Hello { public static void Main() { var line = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var H = line[0]; var W = line[1]; var S = new string[H]; for (var i = 0; i < H; i++) { S[i] = Console.Rea...
[["-", 31, 16, 31, 16, 31, 16, 12, 252, 0, 253], ["+", 31, 16, 31, 16, 31, 16, 12, 252, 0, 253], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
236
6
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int H = int.Parse(str[0]); int W = int.Parse(str[1]); int[,] S = new int[H, W]; for (var i = 0; i < H; i++) { string t = Console.ReadLine(); f...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int H = int.Parse(str[0]); int W = int.Parse(str[1]); int[,] S = new int[H, W]; for (var i = 0; i < H; i++) { string t = Console.ReadLine(); f...
[["-", 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
368
4
using System; using System.Text.RegularExpressions; using System.Numerics; using System.Linq; using System.Collections.Generic; namespace ConsoleApp2 { class Program { static void Main(string[] args) { List<int> values = new List<int>(); string str = Console.ReadLine(); //標準入力 string[] str2 = str.Split(...
using System; using System.Text.RegularExpressions; using System.Numerics; using System.Linq; using System.Collections.Generic; namespace ConsoleApp2 { class Program { static void Main(string[] args) { List<int> values = new List<int>(); string str = Console.ReadLine(); //標準入力 string[] str2 = str.Split(...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 31, 22]]
8
326
6
using System; namespace Template { class Program { static void Main(string[] args) { // 整数の入力 // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); int h = int.Parse(input[0]); int w = int.Parse(input[1]); string[] s = new string[h]; for (int i0 = 0; i0 < h; i0++) { s[i0...
using System; namespace Template { class Program { static void Main(string[] args) { // 整数の入力 // スペース区切りの整数の入力 string[] input = Console.ReadLine().Split(' '); int h = int.Parse(input[0]); int w = int.Parse(input[1]); string[] s = new string[h]; for (int i0 = 0; i0 < h; i0++) { s[i0...
[["+", 12, 23, 0, 16, 31, 16, 12, 16, 17, 33], ["+", 12, 23, 0, 16, 31, 16, 12, 16, 12, 203]]
8
258
4
using System; using System.Linq; namespace atcoder_Beginner_Contest096_Question3 { class Program { static void Main(string[] args) { bool possible = true; var input1 = Console.ReadLine().Split().Select(int.Parse).ToArray(); char[][] paint = new char[input1[0]][]; for (int i = 0; i < input1[1]; i++) {...
using System; using System.Linq; namespace atcoder_Beginner_Contest096_Question3 { class Program { static void Main(string[] args) { bool possible = true; var input1 = Console.ReadLine().Split().Select(int.Parse).ToArray(); char[][] paint = new char[input1[0]][]; for (int i = 0; i < input1[0]; i++) {...
[["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
289
10
using System; using System.Linq; namespace AtCoder { public class ABC096C { public static void Main(string[] args) { string[] lineArgs = Console.ReadLine().Split(' '); int H = int.Parse(lineArgs[0]); int W = int.Parse(lineArgs[1]); bool[][] target = new bool [H][]; for (int index = 0; index < H;...
using System; using System.Linq; namespace AtCoder { public class ABC096C { public static void Main(string[] args) { string[] lineArgs = Console.ReadLine().Split(' '); int H = int.Parse(lineArgs[0]); int W = int.Parse(lineArgs[1]); bool[][] target = new bool [H][]; for (int index = 0; index < H;...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
315
4
using System.Collections.Generic; using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var d = new Dictionary<long, long>(); string[] line = Console.ReadLine().Trim().Split(' '); var a = Array.ConvertAll(line, long.Parse); var w = 0L; d[...
using System.Collections.Generic; using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var d = new Dictionary<long, long>(); string[] line = Console.ReadLine().Trim().Split(' '); var a = Array.ConvertAll(line, long.Parse); var w = 0L; d[...
[["+", 12, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 31, 23, 0, 25]]
8
257
2
using System; using System.Linq; using System.Diagnostics; using System.Collections.Generic; using static System.Math; class P { static void Main() { int n = int.Parse(Console.ReadLine()); char[][] map = Enumerable.Repeat(0, n) .Select(_ => Console.ReadLine().ToArray()) ...
using System; using System.Linq; using System.Diagnostics; using System.Collections.Generic; using static System.Math; class P { static void Main() { int n = int.Parse(Console.ReadLine()); char[][] map = Enumerable.Repeat(0, n) .Select(_ => Console.ReadLine().ToArray()) ...
[["-", 0, 28, 0, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33], ["-", 0, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["-", 0, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0...
8
428
8
using System; namespace AtCorder { class Program { static void Main(string[] args) { var input = Console.ReadLine(); var count = 0; if (input[0] == 'c') { count++; } if (input[1] == 'c') { count++; } if (input[2] == 'c') { count++; } var result = count == 0 ?...
using System; namespace AtCorder { class Program { static void Main(string[] args) { var input = Console.ReadLine(); var count = 0; if (input[0] == 'o') { count++; } if (input[1] == 'o') { count++; } if (input[2] == 'o') { count++; } var result = count == 0 ?...
[["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253]]
8
106
6
using System; namespace A___Something_on_It { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var sum = 700; for (var i = 0; i < 3; i++) { if (s.Substring(i, 1) == "〇") { sum += 100; } } Console.WriteLine(sum); } } }
using System; namespace A___Something_on_It { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var sum = 700; for (var i = 0; i < 3; i++) { if (s.Substring(i, 1) == "o") { sum += 100; } } Console.WriteLine(sum); } } }
[["-", 8, 196, 0, 57, 15, 16, 12, 5, 0, 222], ["+", 8, 196, 0, 57, 15, 16, 12, 5, 0, 222]]
8
80
2
using System; class Program { static void Main(string[] args) { string input = Console.ReadLine(); int cnt = 0; if (input[0] == 'o') cnt++; if (input[1] == 'o') cnt++; if (input[2] == 'o') cnt++; Console.WriteLine(500 + cnt * 100); } }
using System; class Program { static void Main(string[] args) { string input = Console.ReadLine(); int cnt = 0; if (input[0] == 'o') cnt++; if (input[1] == 'o') cnt++; if (input[2] == 'o') cnt++; Console.WriteLine(700 + cnt * 100); } }
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203]]
8
85
2
using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int count = 700; for (int i = 0; i < 3; i++) { if (s[i] == '○') count += 100; } Console.WriteLine(count); } }
using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int count = 700; for (int i = 0; i < 3; i++) { if (s[i] == 'o') count += 100; } Console.WriteLine(count); } }
[["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253]]
8
70
2
using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int count = 0; for (int i = 0; i < 3; i++) { if (s[0] == 'o') count++; } Console.WriteLine("{0}", 700 + count * 100); } }
using System; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int count = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'o') count++; } Console.WriteLine("{0}", 700 + count * 100); } }
[["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22]]
8
77
2
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; using static util; using P = pair<int, int>; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpressi...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; using static util; using P = pair<int, int>; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpressi...
[["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 203]]
8
4,223
2
using System; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(" "); var N = int.Parse(input[0]); double X = int.Parse(input[1]); var min = Math.Pow(10, 5); var count = 0; for (var i = 0; i < N; i++) { var m = int.Parse(Console.ReadLine()); i...
using System; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(" "); var N = int.Parse(input[0]); double X = int.Parse(input[1]); var min = Math.Pow(10, 5); var count = 0; for (var i = 0; i < N; i++) { var m = int.Parse(Console.ReadLine()); i...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20]]
8
146
2
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
[["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22]]
8
225
4
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { MainStream(); } static void MainStream() { Scan sc = new Scan(); write wr = new write(); int[] n_x = sc.intarr; int n = n_x[0]; int x = n_x[1]; int[] ms ...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { MainStream(); } static void MainStream() { Scan sc = new Scan(); write wr = new write(); int[] n_x = sc.intarr; int n = n_x[0]; int x = n_x[1]; int[] ms ...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
352
2
using System; using System.Linq; class Program { static void Main(string[] args) { int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray(); Array.Sort(s); Console.WriteLine(solve(s[0], s[1], s[2])); } static int solve(int a, int b, int c) { // a < b < c int count = 0; if ((c - b) % 2...
using System; using System.Linq; class Program { static void Main(string[] args) { int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray(); Array.Sort(s); Console.WriteLine(solve(s[0], s[1], s[2])); } static int solve(int a, int b, int c) { // a < b < c int count = 0; if ((c - b) % 2...
[["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
239
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { Solve(); } static void Solve() { Scan sc = new Scan(); write wr = new write(); var s = sc.intarr; int a = s[0]; int b = s[1];...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { Solve(); } static void Solve() { Scan sc = new Scan(); write wr = new write(); var s = sc.intarr; int a = s[0]; int b = s[1];...
[["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 23, 0, 16, 12, 23, 0, 25]]
8
263
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class ABC { static void Main(string[] args) { int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray(); int ans = 0; int max = Math.Max(n[0], Math.Max(n[1], n[2]...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class ABC { static void Main(string[] args) { int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray(); int ans = 0; int max = Math.Max(n[0], Math.Max(n[1], n[2]...
[["+", 31, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 31, 16, 31, 16, 31, 16, 12, 23, 0, 25], ["-", 0, 57, 75, 1, 0, 11, 12, 16, 17, 72], ["-", 0, 57, 75, 1, 0, 11, 12, 16, 12, 203]]
8
226
6
using System; class Program { static void Main() { int[] nums = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int answer = 0; int[] numDivides = new int[3]; for (int i = 0; i < 3; i++) numDivides[i] = nums[i] % 2; if (numDivides[0] != numDivides[1] && numDivides[0] != numDivi...
using System; class Program { static void Main() { int[] nums = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int answer = 0; int[] numDivides = new int[3]; for (int i = 0; i < 3; i++) numDivides[i] = nums[i] % 2; if (numDivides[0] != numDivides[1] && numDivides[0] != numDivi...
[["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203]]
8
247
2
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) {   int a = 0; // a = int.Parse(Console.ReadLine()); //標準入力 string[] str = Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の List<string> lt = new List<string>(str); List<int...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) {   int a = 0; // a = int.Parse(Console.ReadLine()); //標準入力 string[] str = Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の List<string> lt = new List<string>(str); List<int...
[["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
181
3
using System; using System.Linq; class Program { static void Main() { var count = 0; var i = "2 6 3".Split(' ').Select(x => int.Parse(x)).ToList(); var odd = i.Where(x => x % 2 == 1).Count(); var max = i.Max(); var min = i.Min(); i.RemoveAt(i.IndexOf(max)); i.RemoveAt(i.IndexOf(min)); ...
using System; using System.Linq; class Program { static void Main() { var count = 0; var i = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList(); var odd = i.Where(x => x % 2 == 1).Count(); var max = i.Max(); var min = i.Min(); i.RemoveAt(i.IndexOf(max)); i.RemoveAt(i.IndexOf...
[["-", 63, 214, 205, 213, 63, 214, 205, 5, 0, 62], ["-", 63, 214, 205, 213, 63, 214, 205, 5, 0, 222], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 20...
8
253
8
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var a = Array.ConvertAll(line, int.Parse); Array.Sort(a); var ret = a[2] - a[1]; var w = a[1] - a[0]; if (w % 2 == 0) ret += w / 2; else ret += (w - 1) / 2 + 1;...
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var a = Array.ConvertAll(line, int.Parse); Array.Sort(a); var ret = a[2] - a[1]; var w = a[1] - a[0]; if (w % 2 == 0) ret += w / 2; else ret += (w - 1) / 2 + 2;...
[["-", 0, 57, 75, 1, 0, 11, 12, 16, 12, 203], ["+", 0, 57, 75, 1, 0, 11, 12, 16, 12, 203]]
8
119
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using static Template; using static System.Console; using static System.Convert; using static System.Math; using Pi = Pair<int, int>; class Solver { Scanner sc = new Scanner()...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using static Template; using static System.Console; using static System.Convert; using static System.Math; using Pi = Pair<int, int>; class Solver { Scanner sc = new Scanner()...
[["-", 0, 198, 0, 200, 0, 212, 0, 74, 51, 250], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 51, 250]]
8
1,630
2
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; using static MyIO; public class D { public static void Main() => (new Solver()).Solve(); } public class Solver { public void Solve() { int Q = GetInt(); long[] A = new long[Q]; long[] B = ne...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; using static MyIO; public class D { public static void Main() => (new Solver()).Solve(); } public class Solver { public void Solve() { int Q = GetInt(); long[] A = new long[Q]; long[] B = ne...
[["-", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 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, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 51, 250]]
8
649
5
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var array = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var M = array.Max(); if (3 * M - array.Sum() % 2 == 0) { Console.WriteLine((3 * M - array.Sum()...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var array = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var M = array.Max(); if ((3 * M - array.Sum()) % 2 == 0) { Console.WriteLine((3 * M - array.Sum...
[["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 12, 213, 3, 4, 0, 25]]
8
132
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
[["+", 0, 212, 0, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 212, 0, 74, 51, 23, 0, 16, 12, 203]]
8
1,170
2
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCorders { public class Program { static void Main(string[] args) { string s = Console.Read...
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCorders { public class Program { static void Main(string[] args) { string s = Console.Read...
[["-", 31, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 31, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
300
2
using System; using System.Collections.Generic; using System.Linq; using console = System.Console; namespace AtCoderTemplate { public class App { public static void Main(string[] args) { var p = console.ReadLine(); if (p.Count() == 26 || true) { var q = p.Skip(1).Zip(p, (a, b) => a - b); var r = p...
using System; using System.Collections.Generic; using System.Linq; using console = System.Console; namespace AtCoderTemplate { public class App { public static void Main(string[] args) { var p = console.ReadLine(); if (p.Count() == 26) { var q = p.Skip(1).Zip(p, (a, b) => a - b); var r = p.Count()...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 8, 196, 0, 57, 15, 16, 12, 211, 0, 146]]
8
237
2
using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main(string[] args) { var str = ReadLine(); HashSet<char> charHash = new HashSet<char>(); bool end = false; var current = 'a'; foreach (var item in str) { charHash.Add(item); } ...
using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main(string[] args) { var str = ReadLine(); HashSet<char> charHash = new HashSet<char>(); bool end = false; var current = 'a'; foreach (var item in str) { charHash.Add(item); } ...
[["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
293
2
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var S = ReadLine(); var u = new bool[26]; for (int i = 0; i < 26; i++) { u[i] = S.Contains((char)('a' + i)); } if (S.Length != 26) { for (int i = 0; i ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var S = ReadLine(); var u = new bool[26]; for (int i = 0; i < 26; i++) { u[i] = S.Contains((char)('a' + i)); } if (S.Length != 26) { for (int i = 0; i ...
[["-", 0, 57, 75, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 57, 75, 196, 0, 7, 15, 16, 17, 20]]
8
245
2
using System; using System.Text; using System.Linq; using System.Collections.Generic; class Program { const long mod = 1000000007; // public static int[] max; static void Main(string[] args) { char[] cs = new char[] { ' ', ',' }; // int val = int.Parse(Console.ReadLine()); // int[] vals = parseAry...
using System; using System.Text; using System.Linq; using System.Collections.Generic; class Program { const long mod = 1000000007; // public static int[] max; static void Main(string[] args) { char[] cs = new char[] { ' ', ',' }; // int val = int.Parse(Console.ReadLine()); // int[] vals = parseAry...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]]
8
530
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AGC022A { class Program { static void Main(string[] args) { string S = Console.ReadLine(); int num = S.Length; string ans = ""; bool ok = false; string[] alph = ne...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AGC022A { class Program { static void Main(string[] args) { string S = Console.ReadLine(); int num = S.Length; string ans = ""; bool ok = false; string[] alph = ne...
[["-", 12, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["+", 12, 16, 31, 213, 3, 4, 0, 28, 0, 22]]
8
631
2
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; static class Program { const int mod = (int)1e9 + 7; static void Main() { Sc sc = new Sc(); int n = sc.I; int[] a = sc.Ia; int[] b = ...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; static class Program { const int mod = (int)1e9 + 7; static void Main() { Sc sc = new Sc(); int n = sc.I; int[] a = sc.Ia; int[] b = ...
[["-", 0, 227, 39, 224, 225, 226, 0, 16, 31, 22], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22]]
8
1,547
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AGC022C { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] inputA = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArr...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AGC022C { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] inputA = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArr...
[["-", 0, 57, 64, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 7, 15, 16, 12, 203]]
8
742
2
using System; using System.Linq; using System.Collections.Generic; using Debug = System.Diagnostics.Debug; using SB = System.Text.StringBuilder; using Number = System.Int64; using System.Numerics; using static System.Math; namespace Program { public class Solver { Random rnd = new Random(0); public void Solve() { ...
using System; using System.Linq; using System.Collections.Generic; using Debug = System.Diagnostics.Debug; using SB = System.Text.StringBuilder; using Number = System.Int64; using System.Numerics; using static System.Math; namespace Program { public class Solver { Random rnd = new Random(0); public void Solve() { ...
[["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
1,295
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; long mod = 1000...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Globalization; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; long mod = 1000...
[["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
1,319
4
using System; class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); int b = int.Parse(Console.ReadLine()); int c = int.Parse(Console.ReadLine()); int d = int.Parse(Console.ReadLine()); Console.WriteLine(Math.Max(a, b) + Math.Max(c, d)); } }
using System; class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); int b = int.Parse(Console.ReadLine()); int c = int.Parse(Console.ReadLine()); int d = int.Parse(Console.ReadLine()); Console.WriteLine(Math.Min(a, b) + Math.Min(c, d)); } }
[["-", 0, 28, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 31, 213, 63, 214, 141, 22], ["-", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22]]
8
97
4
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var a = new int[4]; for (int i = 0; i < 4; i++) { a[i] = int.Parse(ReadLine()); } WriteLine(Math.Max(a[0], a[1]) + Math.Max(a[2], a[3])); } }
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var a = new int[4]; for (int i = 0; i < 4; i++) { a[i] = int.Parse(ReadLine()); } WriteLine(Math.Min(a[0], a[1]) + Math.Min(a[2], a[3])); } }
[["-", 0, 28, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 31, 213, 63, 214, 141, 22], ["-", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22]]
8
104
4
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Security.Cryptography.X509Certificates; using System.Text.RegularExpressions; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine(...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Security.Cryptography.X509Certificates; using System.Text.RegularExpressions; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine(...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
191
2
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { MainStream(); } static void MainStream() { Scan sc = new Scan(); write wr = new write(); int n = sc.intarr[0]; int[] d_x = sc.intarr; int d = d_x[0]; int...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { MainStream(); } static void MainStream() { Scan sc = new Scan(); write wr = new write(); int n = sc.intarr[0]; int[] d_x = sc.intarr; int d = d_x[0]; int...
[["+", 0, 7, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]]
8
340
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Math; namespace AtCoderProject { class Program { static void Main(string[] args) { var N = ReadLineInt(); var in2 = ReadLineIntArray(); int D = in2[0]; int X = in2[1...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Math; namespace AtCoderProject { class Program { static void Main(string[] args) { var N = ReadLineInt(); var in2 = ReadLineIntArray(); int D = in2[0]; int X = in2[1...
[["+", 3, 4, 0, 28, 0, 218, 8, 16, 31, 203], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 72]]
8
253
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B___Bitter_Alchemy { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var N = input[0]; var X = input[1]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B___Bitter_Alchemy { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var N = input[0]; var X = input[1]; ...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
175
2
using System; class Program { static void Main(string[] args) { int[] input = GetInt(' '); int N = input[0]; int X = input[1]; int[] m = new int[N]; int sum = 0; int cnt = N; for (int i = 0; i < N; i++) { int inp = GetInt(); m[i] = inp; sum += inp; } Array.Sort(m...
using System; class Program { static void Main(string[] args) { int[] input = GetInt(' '); int N = input[0]; int X = input[1]; int[] m = new int[N]; int sum = 0; int cnt = N; for (int i = 0; i < N; i++) { int inp = GetInt(); m[i] = inp; sum += inp; } Array.Sort(m...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
302
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Linq; using System.Collections.Generic; namespace VirtualAtCorder { class Program { static void Main(string[] args) { string[] a = Console.ReadLine().Split(' '); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Linq; using System.Collections.Generic; namespace VirtualAtCorder { class Program { static void Main(string[] args) { string[] a = Console.ReadLine().Split(' '); ...
[["-", 0, 210, 8, 196, 0, 57, 15, 241, 0, 111], ["-", 8, 196, 0, 57, 15, 241, 0, 213, 63, 22], ["-", 0, 57, 15, 241, 0, 213, 3, 4, 0, 24], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 31, 203], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 57, 15, 241, 0, 213, 3, 4, 0, 25]]
8
320
6
using System; using System.Collections.Generic; namespace cswork { class Program { public Program() {} Scanner cin; void Omame() { cin = new Scanner(); int a = cin.nextInt(); int b = cin.nextInt(); int c = cin.nextInt(); int x = cin.nextInt(); int y = cin.nextInt(); int ans = int...
using System; using System.Collections.Generic; namespace cswork { class Program { public Program() {} Scanner cin; void Omame() { cin = new Scanner(); int a = cin.nextInt(); int b = cin.nextInt(); int c = cin.nextInt(); int x = cin.nextInt(); int y = cin.nextInt(); int ans = int...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
345
2
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 48], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
306
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int a = sc.NextInt(); int b = sc.NextInt(); int c = sc.NextInt(); int x = sc.NextInt(); int y = sc.NextInt(); int answer = int.MaxVa...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int a = sc.NextInt(); int b = sc.NextInt(); int c = sc.NextInt(); int x = sc.NextInt(); int y = sc.NextInt(); long answer = long.Max...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 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, 197, 0, 19...
8
525
8
using System; using System.Collections.Generic; namespace MyProgram { class AtCoder { static void Main() { int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int A = input[0]; int B = input[1]; int C = input[2]; int X = input[3]; int Y = input[4]; int min_price = A ...
using System; using System.Collections.Generic; namespace MyProgram { class AtCoder { static void Main() { int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int A = input[0]; int B = input[1]; int C = input[2]; int X = input[3]; int Y = input[4]; int min_price = A ...
[["-", 15, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 15, 16, 12, 213, 3, 4, 0, 28, 0, 22]]
8
179
4
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var r = Console.ReadLine().Split().Select(int.Parse).ToArray(); var A = r[0]; var B = r[1]; va...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var r = Console.ReadLine().Split().Select(int.Parse).ToArray(); var A = r[0]; var B = r[1]; va...
[["-", 31, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["+", 31, 16, 31, 213, 3, 4, 0, 28, 0, 22]]
8
215
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AtCoder { static class Program { static void Main() { //ここから var vs = IO.ReadLineToLongList(); var A = vs[0]; var B = vs[1]; var C = vs[2]; var ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AtCoder { static class Program { static void Main() { //ここから var vs = IO.ReadLineToLongList(); var A = vs[0]; var B = vs[1]; var C = vs[2]; var ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
668
2