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; namespace ABC054 { class C { static bool[,] graph; static void Main(string[] args) { int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = input[0]; int M = input[1]; graph = new bool[N, N]; for (int i = 0; i < N; i++) { input = Co...
using System; using System.Linq; namespace ABC054 { class C { static bool[,] graph; static void Main(string[] args) { int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = input[0]; int M = input[1]; graph = new bool[N, N]; for (int i = 0; i < M; i++) { input = Co...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
324
2
using System; using System.Linq; namespace ABC054_C_CS_ { class Program { static int N, M; static bool[,] graph; //隣接行列 static bool[] visited; //一度訪れたかどうか static int Dfs(int v, int N, bool[] visited) { bool allVisited = true; //すべての頂点に訪れたかどうかのフラグ for (var i = 0; i < N; i++) { // 1津でも訪ねてないとfalseを返す ...
using System; using System.Linq; namespace ABC054_C_CS_ { class Program { static int N, M; static bool[,] graph; //隣接行列 static bool[] visited; //一度訪れたかどうか static int Dfs(int v, int N, bool[] visited) { bool allVisited = true; //すべての頂点に訪れたかどうかのフラグ for (var i = 0; i < N; i++) { // 1津でも訪ねてないとfalseを返す ...
[["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203]]
8
346
4
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) { int[] NM = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); Node[] nodes = new Node[NM[0]]; for (int i = 0; i...
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) { int[] NM = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); Node[] nodes = new Node[NM[0]]; for (int i = 0; i...
[["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
609
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; class Simple { int N, M; // int[] a, b; bool[,] G; void Solve() { // input N = io.Int; M = io.Int; G = new boo...
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; class Simple { int N, M; // int[] a, b; bool[,] G; void Solve() { // input N = io.Int; M = io.Int; G = new boo...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
517
2
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC054D { class Program { static void Main(string[] args) { int N = RInt; int Ma = RInt; int Mb = RInt; List<int> canda = new List<int>(); Lis...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC054D { class Program { static void Main(string[] args) { int N = RInt; int Ma = RInt; int Mb = RInt; List<int> canda = new List<int>(); Lis...
[["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 203], ["-", 0, 1, 0, 11, 12, 214, 205, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 214, 205, 204, 205, 22]]
8
1,853
8
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; using System.Numerics; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } st...
using System; using System.Linq; using System.Collections.Generic; using static System.Console; using System.Text; using System.IO; using static System.Math; using System.Numerics; namespace AtCoder { class Program { static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); } st...
[["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
627
2
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; class Program { static void Main(string[] args) { var nm = Array.ConvertAll(ReadLine().Split(' '), int.Parse); var abc = new int[nm[0]][]; for (var i = 0;...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; class Program { static void Main(string[] args) { var nm = Array.ConvertAll(ReadLine().Split(' '), int.Parse); var abc = new int[nm[0]][]; for (var i = 0;...
[["+", 0, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 72]]
8
515
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AGC010a { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); long[] a = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long su...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AGC010a { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); long[] a = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long su...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
129
4
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 AAddtion { public static void Main(string[] args) { new AAddtion().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class AAddtion { public static void Main(string[] args) { new AAddtion().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 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
477
4
using System; using System.Linq; // using th // using if(from==0){}; namespace agc010_a { class Program { static void Main(string[] args) { long kinokosuu = 0; long gunokosu = 0; // long kiwomatomeyou=0; long s = Int64.Parse(Console.ReadLine()); long[] a = Console.ReadLine().Split().Select(long...
using System; using System.Linq; // using th // using if(from==0){}; namespace agc010_a { class Program { static void Main(string[] args) { long kinokosuu = 0; long gunokosu = 0; // long kiwomatomeyou=0; long s = Int64.Parse(Console.ReadLine()); long[] a = Console.ReadLine().Split().Select(long...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
154
4
using System; using System.Linq; namespace AGC010_B___Boxes { class Program { static void Main(string[] args) { Console.WriteLine(solver() ? "YES" : "NO"); } static bool solver() { var N = long.Parse(Console.ReadLine()); var A = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var di...
using System; using System.Linq; namespace AGC010_B___Boxes { class Program { static void Main(string[] args) { Console.WriteLine(solver() ? "YES" : "NO"); } static bool solver() { var N = long.Parse(Console.ReadLine()); var A = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var di...
[["+", 12, 23, 0, 16, 31, 16, 12, 23, 0, 25], ["-", 31, 16, 12, 23, 0, 16, 12, 23, 0, 25]]
8
244
2
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using static System.Console; using static System.Math; //using CS_Contest.Graph; using CS_Contest.Loop; using CS_Contest.Utils; using static Nakov.IO.Cin; using static CS_Contest.IO.IO; using static CS_Contest...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using static System.Console; using static System.Math; //using CS_Contest.Graph; using CS_Contest.Loop; using CS_Contest.Utils; using static Nakov.IO.Cin; using static CS_Contest.IO.IO; using static CS_Contest...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]]
8
1,793
4
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { int n = int.Parse(Console.ReadLine()); long[] nums = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); Console.WriteLine(Answer(nums) ? "First" : "...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { int n = int.Parse(Console.ReadLine()); long[] nums = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); Console.WriteLine(Answer(nums) ? "First" : "...
[["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 106], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 47], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 17, 60], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
328
6
using System; namespace ConsoleApplication1 { public class Runes { static int Main(string[] args) { string s = Console.ReadLine(); int i = Convert.ToInt32(s); if (i < 1000) Console.WriteLine("ABC"); else Console.WriteLine("ARC"); return 0; } } }
using System; namespace ConsoleApplication1 { public class Runes { static int Main(string[] args) { string s = Console.ReadLine(); int i = Convert.ToInt32(s); if (i < 1200) Console.WriteLine("ABC"); else Console.WriteLine("ARC"); return 0; } } }
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]]
8
70
2
using System; public class Hello { public static void Main() { string s = Console.ReadLine(); int slen = s.Length; int A = 0; int Z = 0; for (int i = 0; i < slen; i++) { if (s[i] == 'A' && A == 0) { A = i; } else if (s[i] == 'Z') { Z = i; } else { //特に何...
using System; public class Hello { public static void Main() { string s = Console.ReadLine(); int slen = s.Length; int A = -1; int Z = 0; for (int i = 0; i < slen; i++) { if (s[i] == 'A' && A == -1) { A = i; } else if (s[i] == 'Z') { Z = i; } else { //特...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 12, 241, 0, 33], ["+", 0, 57, 15, 16, 12, 16, 12, 241, 0, 203]]
8
114
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int aIdx = s.IndexOf('A'); int zIdx = s.IndexOf('Z'); Console.WriteLine(zIdx - aIdx + 1); } } stati...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { string s = Console.ReadLine(); int aIdx = s.IndexOf('A'); int zIdx = s.LastIndexOf('Z'); Console.WriteLine(zIdx - aIdx + 1); } } s...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
395
2
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace hogeeeee { class hogehoge { static void Main(string[] args) { string s = Console.ReadLine(); int APlace = 0; int ZPlace = 0; for (int i = 0; i < s.Length; i++) { if (s[i] == 'A' && APlace == 0...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace hogeeeee { class hogehoge { static void Main(string[] args) { string s = Console.ReadLine(); int APlace = -1; int ZPlace = 0; for (int i = 0; i < s.Length; i++) { if (s[i] == 'A' && APlace == ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 12, 241, 0, 33], ["+", 0, 57, 15, 16, 12, 16, 12, 241, 0, 203]]
8
126
6
using System; using System.Linq; public class Program { public static void Main() { string s = Console.ReadLine(); int firstA = 0, lastZ = 0; for (int i = 0; i < s.Length; i++) { if (s[i] == 'Z') lastZ = i; } for (int i = s.Length - 1; i > 0; i--) { if (s[i] == 'A') fi...
using System; using System.Linq; public class Program { public static void Main() { string s = Console.ReadLine(); int firstA = 0, lastZ = 0; for (int i = 0; i < s.Length; i++) { if (s[i] == 'Z') lastZ = i; } for (int i = s.Length - 1; i >= 0; i--) { if (s[i] == 'A') f...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20]]
8
118
2
using System; using static System.Console; using static System.Math; public class Hello { public static void Main() { string input = ReadLine(); int a = 0; int b = 0; for (int i = 0; i < input.Length; ++i) { if (input[i] == 'A' && a == 0) { a = i; } if (input[i] == 'Z') { ...
using System; using static System.Console; using static System.Math; public class Hello { public static void Main() { string input = ReadLine(); int a = -1; int b = 0; for (int i = 0; i < input.Length; ++i) { if (input[i] == 'A' && a == -1) { a = i; } if (input[i] == 'Z') { ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 12, 241, 0, 33], ["+", 0, 57, 15, 16, 12, 16, 12, 241, 0, 203]]
8
110
6
using System; namespace Sample101 { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int start = 0, end = 0; for (int i = 0; i < s.Length; ++i) { if (start == 0 && s[i] == 'A') { start = i; } if (s[i] == 'Z') { end = i; } } C...
using System; namespace Sample101 { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int start = -1, end = 0; for (int i = 0; i < s.Length; ++i) { if (start == -1 && s[i] == 'A') { start = i; } if (s[i] == 'Z') { end = i; } } ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 12, 241, 0, 33], ["+", 0, 57, 15, 16, 31, 16, 12, 241, 0, 203]]
8
107
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicode001 { class Program { static void Main() { Program pg = new Program(); string word = Console.ReadLine(); int a = word.Select((content, index) => ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicode001 { class Program { static void Main() { Program pg = new Program(); string word = Console.ReadLine(); int a = word.Select((content, index) => ...
[["-", 0, 28, 0, 218, 8, 16, 12, 252, 0, 253], ["+", 0, 28, 0, 218, 8, 16, 12, 252, 0, 253]]
8
192
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long x = sc.NextLong(); long answer = 0; answer += x / 11 * 2; long mod = x % 11; if (mod > 0) { answer += mod > 5 ? 2 : 1; } ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long x = sc.NextLong(); long answer = 0; answer += x / 11 * 2; long mod = x % 11; if (mod > 0) { answer += mod > 6 ? 2 : 1; } ...
[["-", 0, 1, 0, 11, 12, 41, 15, 16, 12, 203], ["+", 0, 1, 0, 11, 12, 41, 15, 16, 12, 203]]
8
388
2
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 var x = decimal.Parse(Console.ReadLine()); decimal ans = Math.Ceiling(x / 11) * 2; if (x % 11 < 6 && x % 11 != 0) { ans -= 1; ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 var x = decimal.Parse(Console.ReadLine()); decimal ans = Math.Ceiling(x / 11) * 2; if (x % 11 < 7 && x % 11 != 0) { ans -= 1; ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
96
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp110 { class Program { static void Main(string[] args) { long x = long.Parse(Console.ReadLine()); long katamari_11 = 0; katamari_11 = (long)Math.Ceiling((double)x / 11)...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp110 { class Program { static void Main(string[] args) { long x = long.Parse(Console.ReadLine()); long katamari_11 = 0; katamari_11 = (long)Math.Ceiling((double)x / 11)...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
123
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 x = long.Parse(Console.ReadLine()); dou...
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 x = long.Parse(Console.ReadLine()); dou...
[["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25]]
8
129
6
using System; using System.Collections; using System.Collections.Generic; using System.Text; using static MyIO; public class C { public static void Main() { long x = GetLong(); long q = x / 11; long rest = x - 11 * q; Console.WriteLine(2 * q + (rest + 4) / 5); } } public static class MyIO { priv...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using static MyIO; public class C { public static void Main() { long x = GetLong(); long q = x / 11; long rest = x - 11 * q; Console.WriteLine(2 * q + (rest + 5) / 6); } } public static class MyIO { priv...
[["-", 0, 16, 12, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 16, 12, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 12, 203]]
8
223
4
using System; class P { static void Main() { long a = long.Parse(Console.ReadLine()), b = a / 11, c = a % 11; Console.WriteLine(b * 2 + (c > 6 ? 2 : 1)); } }
using System; class P { static void Main() { long a = long.Parse(Console.ReadLine()), b = a / 11, c = a % 11; Console.WriteLine(b * 2 + (c == 0 ? 0 : c > 6 ? 2 : 1)); } }
[["+", 0, 16, 12, 23, 0, 41, 15, 16, 17, 60], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 12, 203], ["+", 0, 28, 0, 16, 12, 23, 0, 41, 0, 101], ["+", 0, 28, 0, 16, 12, 23, 0, 41, 64, 203], ["+", 0, 28, 0, 16, 12, 23, 0, 41, 0, 102], ["+", 12, 23, 0, 41, 75, 41, 15, 16, 31, 22]]
8
59
6
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; using static System.Console; class Solver { Scanner sc = new Scanner(); public void Solve() { long x = sc.nextLong(); long div = x / 11; long mod = x % 11; long ans = div * 2; if (mod == 0) { } else ...
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; using static System.Console; class Solver { Scanner sc = new Scanner(); public void Solve() { long x = sc.nextLong(); long div = x / 11; long mod = x % 11; long ans = div * 2; if (mod == 0) { } else ...
[["-", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203]]
8
487
2
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { long n = long.Parse(Console.ReadLine()); Console.WriteLine((n / 11) * 2 + (n % 11 == 0 ? 0 : (n % 11 <= 5 ? 1 : 2))); } }
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { long n = long.Parse(Console.ReadLine()); Console.WriteLine((n / 11) * 2 + (n % 11 == 0 ? 0 : (n % 11 <= 6 ? 1 : 2))); } }
[["-", 0, 41, 75, 23, 0, 41, 15, 16, 12, 203], ["+", 0, 41, 75, 23, 0, 41, 15, 16, 12, 203]]
8
75
2
using System; class ajinori { static void Main() { var x = double.Parse(Console.ReadLine()); var a = (int)x / 11 * 2; if (x % 11 > 0) a++; if (x % 11 > 6) a++; Console.WriteLine(a + "\n"); } }
using System; class ajinori { static void Main() { var x = long.Parse(Console.ReadLine()); var a = x / 11 * 2; if (x % 11 > 0) a++; if (x % 11 > 6) a++; Console.WriteLine(a + "\n"); } }
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 212, 0, 16, 31, 16, 31, 74, 0, 24], ["-", 0, 212, 0, 16, 31, 16, 31, 74, 39, 199], ["-", 0, 212, 0, 16, 31, 16, 31, 74, 0, 25]]
8
73
5
using System; using System.Collections.Generic; class Program { static string InputPattern = "InputX"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("7"); // 2 } else if (InputPattern == "Input2") { WillRetur...
using System; using System.Collections.Generic; class Program { static string InputPattern = "InputX"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("7"); // 2 } else if (InputPattern == "Input2") { WillRetur...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 203]]
8
203
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; namespace ABC053 { public class Don { public Don() {} private Reader r = new Reader(); public void Solve() { long N = r.nextLong(); int mod = (int)N % 11; long ret = (N -...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; namespace ABC053 { public class Don { public Don() {} private Reader r = new Reader(); public void Solve() { long N = r.nextLong(); long mod = N % 11; long ret = (N - mod...
[["-", 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, 16, 31, 74, 0, 24], ["-", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["-", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25]]
8
309
5
using System; public class XYADG { public static void Main() { string read = Console.ReadLine(); long x = long.Parse(read); long rotate = (x / 11) * 2; if (x % 11 <= 6) { if (x != 0) { rotate++; } } else { rotate += 2; } Console.WriteLine(rotate); } }
using System; public class XYADG { public static void Main() { string read = Console.ReadLine(); long x = long.Parse(read); long rotate = (x / 11) * 2; if (x % 11 <= 6) { if (x % 11 != 0) { rotate++; } } else { rotate += 2; } Console.WriteLine(rotate); } }
[["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
81
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long n = sc.NextLong(); long[] a = sc.LongArray(); Dictionary<long, long> dic = new Dictionary<long, long>(); foreach (var num in a) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long n = sc.NextLong(); long[] a = sc.LongArray(); Dictionary<long, long> dic = new Dictionary<long, long>(); foreach (var num in a) { ...
[["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
502
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner sc = new Scaner(); write wr = new write();...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { const int MOD = 1000000007; const int INF = 1 << 30; static void Main(string[] args) { Solve(); } static void Solve() { Scaner sc = new Scaner(); write wr = new write();...
[["-", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["-", 3, 4, 0, 28, 0, 41, 75, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 75, 22]]
8
939
4
using System; using System.Collections.Generic; using System.Text; namespace AtTest.D_Challenge { class ABC_053 { static void Main(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { int n = ReadInt(); int[] array = ReadInts(); Array.Sor...
using System; using System.Collections.Generic; using System.Text; namespace AtTest.D_Challenge { class ABC_053 { static void Main(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { int n = ReadInt(); int[] array = ReadInts(); Array.Sor...
[["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
385
5
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BeginnerContest053 { class Program { static void Main(string[] args) { // var input = Console.ReadLine(); // Console.WriteLine(int.Parse(input) < 1200 ? "ABC" : "ARC"); // var f...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BeginnerContest053 { class Program { static void Main(string[] args) { // var input = Console.ReadLine(); // Console.WriteLine(int.Parse(input) < 1200 ? "ABC" : "ARC"); // var f...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60]]
8
212
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; class Prog { public Prog() {} public static int Main() { new Prog().calc(); return 0; } Scanner cin; public void calc() { cin = new Scanner(); int N = cin.nextInt...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; class Prog { public Prog() {} public static int Main() { new Prog().calc(); return 0; } Scanner cin; public void calc() { cin = new Scanner(); int N = cin.nextInt...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
367
2
using Yorukatsu028.Questions; using Yorukatsu028.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu028.Questions { /// <summary> /// ARC068 C /// </summary> public class QuestionC : AtCoderQuestionBase { public override IEn...
using Yorukatsu028.Questions; using Yorukatsu028.Extensions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Yorukatsu028.Questions { /// <summary> /// ARC068 C /// </summary> public class QuestionC : AtCoderQuestionBase { public override IEn...
[["-", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203]]
8
522
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } static void Solve() { ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } static void Solve() { ...
[["+", 8, 201, 0, 195, 8, 196, 0, 287, 0, 292], ["+", 0, 195, 8, 196, 0, 287, 0, 196, 0, 45], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 287, 0, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 287, 0, 196, 0, 46]]
8
1,100
5
using System; using System.Collections.Generic; using System.Linq; class Progaram { static void Main(string[] args) { var x = long.Parse(Console.ReadLine()); long ans; long y = x / 11 * 2; long f = 11 % 2; if (f == 0) ans = y; else if (f > 6) ans = y + 2; else ans = y + ...
using System; using System.Collections.Generic; using System.Linq; class Progaram { static void Main(string[] args) { var x = long.Parse(Console.ReadLine()); long ans; long y = x / 11 * 2; long f = x % 11; if (f == 0) ans = y; else if (f > 6) ans = y + 2; else ans = y + ...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]]
8
100
4
using System; using System.Linq; namespace ARC068 { class C { static void Main(string[] args) { long x = long.Parse(Console.ReadLine()); long a = x / 11; long b = x % 11; if (a == 0 && b <= 6) { Console.WriteLine(1); return; } else if (a == 0 && 6 < b) { Console.WriteLine(2); ...
using System; using System.Linq; namespace ARC068 { class C { static void Main(string[] args) { long x = long.Parse(Console.ReadLine()); long a = x / 11; long b = x % 11; if (a == 0 && b <= 6) { Console.WriteLine(1); return; } else if (a == 0 && 6 < b) { Console.WriteLine(2); ...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19]]
8
177
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; #if !DEBUG using System.IO; #endif public class Program { public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var sw = new StreamWriter(Console.OpenStan...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; #if !DEBUG using System.IO; #endif public class Program { public static void Main() { #region SetAutoFlushIsFalse #if !DEBUG var sw = new StreamWriter(Console.OpenStan...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 31, 203], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 31, 203], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 12, 203], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 12, 203]]
8
3,012
6
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpression, ...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpression, ...
[["+", 12, 16, 31, 23, 0, 16, 31, 16, 17, 109], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 12, 203]]
8
2,934
2
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>; class Program { static void Main() { SetOut(new StreamWriter(OpenStandardOutput())...
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>; class Program { static void Main() { SetOut(new StreamWriter(OpenStandardOutput())...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 203]]
8
431
2
using System; using System.Collections.Generic; using System.Text; using System.Linq; class Program { public void Proc() { Reader.IsDebug = false; long inpt = long.Parse(Reader.ReadLine()); long ans = (inpt / 11) * 2; if (inpt % 11 > 6) { ans++; } else if (inpt % 11 > 0) { ans++; ...
using System; using System.Collections.Generic; using System.Text; using System.Linq; class Program { public void Proc() { Reader.IsDebug = false; long inpt = long.Parse(Reader.ReadLine()); long ans = (inpt / 11) * 2; if (inpt % 11 > 6) { ans += 2; } else if (inpt % 11 > 0) { ans++;...
[["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203]]
8
202
3
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 ans = N / 11 * 2; long left = ans % 11; if (left != 0) { i...
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 ans = N / 11 * 2; long left = N % 11; if (left != 0) { if ...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22]]
8
342
2
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpression, ...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; using Binary = System.Func<System.Linq.Expressions.ParameterExpression, System.Linq.Expressions.ParameterExpression, ...
[["+", 0, 28, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 28, 0, 16, 12, 16, 31, 23, 0, 25]]
8
2,946
4
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(...
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(...
[["-", 0, 1, 0, 11, 12, 23, 0, 16, 12, 203], ["+", 0, 1, 0, 11, 12, 23, 0, 16, 12, 203]]
8
2,494
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() { Dictionary<int, int> di = new Dictionary<int, int>(); for (int i = 0; i < ...
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() { Dictionary<int, int> di = new Dictionary<int, int>(); for (int i = 0; i < ...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 31, 203], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 17, 48]]
8
436
4
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; namespace atcorder2 { class Program { public static long Read() { return long.Parse(ReadLine()); } public static long[] Reads() { return ReadLine().Split().Select(long.Parse).ToArray(); } publ...
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; namespace atcorder2 { class Program { public static long Read() { return long.Parse(ReadLine()); } public static long[] Reads() { return ReadLine().Split().Select(long.Parse).ToArray(); } publ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20]]
8
384
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var AB = sc.ReadTupLongArray(N); long ans = 0; for (int i = N - 1; i >= 0; i--) { var a = AB[i].Item1; var b = AB[i].Item2; a += ans; if (...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var AB = sc.ReadTupLongArray(N); long ans = 0; for (int i = N - 1; i >= 0; i--) { var a = AB[i].Item1; var b = AB[i].Item2; a += ans; if (...
[["-", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 22]]
8
1,102
4
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Competitive { internal class Solution { public int N; public List<List<int>> D; public void Run() { // Input N = Input.ReadInt(); D = new List<List<int>>(); for (int i = 0; i < N; i++) { D.Add(ne...
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Competitive { internal class Solution { public int N; public List<List<int>> D; public void Run() { // Input N = Input.ReadInt(); D = new List<List<int>>(); for (int i = 0; i < N; i++) { D.Add(ne...
[["+", 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, 25]]
8
547
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var abcd = ReadIntArray(); Console.WriteLine(Math.Max(abcd[0] + abcd[1], abcd[2] * abcd[3])); ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var abcd = ReadIntArray(); Console.WriteLine(Math.Max(abcd[0] * abcd[1], abcd[2] * abcd[3])); ...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48]]
8
264
2
using System; public class Program { public static void Main(string[] args) { var sArray = Console.ReadLine().Split(' '); var a = int.Parse(sArray[0]); var b = int.Parse(sArray[1]); var c = int.Parse(sArray[2]); var d = int.Parse(sArray[3]); if (a * b > c * d || a * b == c * d) { C...
using System; public class Program { public static void Main(string[] args) { var sArray = Console.ReadLine().Split(' '); var a = int.Parse(sArray[0]); var b = int.Parse(sArray[1]); var c = int.Parse(sArray[2]); var d = int.Parse(sArray[3]); if (a * b > c * d || a * b == c * d) { C...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
139
4
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { String input = Console.ReadLine(); String[] nums = input.Split(' '); int[] a = new int[4]; for (int i = 0; i < 4; i++) { a[i] = int.Parse(nums[i]); } int rect1 = a[0] * a[1]; int rect2 = a[2] * ...
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { String input = Console.ReadLine(); String[] nums = input.Split(' '); int[] a = new int[4]; for (int i = 0; i < 4; i++) { a[i] = int.Parse(nums[i]); } int rect1 = a[0] * a[1]; int rect2 = a[2] * ...
[["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
138
2
using System; public class TR { public static void Main() { string[] read = new string[4]; read = Console.ReadLine().Split(' '); int A = int.Parse(read[0]); int B = int.Parse(read[1]); int C = int.Parse(read[0]); int D = int.Parse(read[1]); int S1 = A * B; int S2 = C * D; if (S1 >=...
using System; public class TR { public static void Main() { string[] read = new string[4]; read = Console.ReadLine().Split(' '); int A = int.Parse(read[0]); int B = int.Parse(read[1]); int C = int.Parse(read[2]); int D = int.Parse(read[3]); int S1 = A * B; int S2 = C * D; if (S1 >=...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
133
4
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var S = sc.ReadStr(); var x = 0; var ans = 0; for (int i = 0; i < N; i++) { if (S[i] == 'I') x++; else x--; ans = Math.Max(a...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var S = sc.ReadStr(); var x = 0; var ans = 0; for (int i = 0; i < N; i++) { if (S[i] == 'I') x++; else x--; ans = Math.Max(a...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
623
2
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Text; public class Program { public void Proc() { Reader.IsDebug = false; string[] inpt = Reader.ReadLine().Split(' '); long ans = 0; if (inpt[1].Equals("+")) { ans = long.Parse...
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Text; public class Program { public void Proc() { Reader.IsDebug = false; string[] inpt = Reader.ReadLine().Split(' '); long ans = 0; if (inpt[1].Equals("+")) { ans = long.Parse...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
247
4
using System; using System.Collections.Generic; using System.Linq; public class Program { static Dictionary<int, List<int>> nodes; public static void Main() { Console.ReadLine(); var tArr = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); var m = int.Parse(Console.ReadLine())...
using System; using System.Collections.Generic; using System.Linq; public class Program { static Dictionary<int, List<int>> nodes; public static void Main() { Console.ReadLine(); var tArr = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); var m = int.Parse(Console.ReadLine())...
[["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
174
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main() { Console.ReadLine(); string[] arrStrOriginalTime = Console.ReadLine().Split(' '); int intDrinkCount = int.Parse(Console.ReadLine()); List<string> lst...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main() { Console.ReadLine(); string[] arrStrOriginalTime = Console.ReadLine().Split(' '); int intDrinkCount = int.Parse(Console.ReadLine()); List<string> lst...
[["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 72], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72]]
8
242
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC049A { class Program { static void Main(string[] args) { var c = Console.ReadLine(); var a = new string[] { "a", "e", "i", "o", "u" }; for (var i = 0; i < 5; i++) { if (a...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC049A { class Program { static void Main(string[] args) { var c = Console.ReadLine(); var a = new string[] { "a", "e", "i", "o", "u" }; for (var i = 0; i < 5; i++) { if (a...
[["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]]
8
129
2
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; class Program { static void Main(string[] args) { var c = sc.ReadStr()[0]; if (c == 'a' || c == 'i' || c == 'e' || c == 'u' || c == '0') { Console.WriteLine("vowel"); } else { Console.Writ...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; class Program { static void Main(string[] args) { var c = sc.ReadStr()[0]; if (c == 'a' || c == 'i' || c == 'e' || c == 'u' || c == 'o') { Console.WriteLine("vowel"); } else { Console.Writ...
[["-", 0, 57, 15, 16, 12, 16, 12, 252, 0, 253], ["+", 0, 57, 15, 16, 12, 16, 12, 252, 0, 253]]
8
617
2
using System; using System.Linq; class p { static void Main() { string s = Console.ReadLine(); Console.WriteLine(s == "a" || s == "i" || s == "u" || s == "e" || s == "o" ? "Yes" : "No"); } }
using System; using System.Linq; class p { static void Main() { string s = Console.ReadLine(); Console.WriteLine(s == "a" || s == "i" || s == "u" || s == "e" || s == "o" ? "vowel" : "consonant"); } }
[["-", 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
71
4
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; using static ConsoleApplication.Utils; namespace ConsoleApplication { public class Program { public static void Main(string[] args) { var c = ReadLine().First();...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; using static ConsoleApplication.Utils; namespace ConsoleApplication { public class Program { public static void Main(string[] args) { var c = ReadLine().First();...
[["+", 0, 99, 8, 254, 0, 239, 0, 264, 0, 173], ["+", 8, 254, 0, 239, 0, 264, 0, 252, 0, 104], ["+", 8, 254, 0, 239, 0, 264, 0, 252, 0, 253], ["+", 0, 99, 8, 254, 0, 239, 0, 264, 0, 102]]
8
619
5
using System; using System.Collections.Generic; using System.Linq; using static AtCoder.Io; namespace AtCoder { class Program { static void Main() { var hw = ReadString(); var h = hw[0]; for (int i = 0; i < h; i++) { var c = ReadString(); Console.WriteLine(c); Console.WriteLine(c); ...
using System; using System.Collections.Generic; using System.Linq; using static AtCoder.Io; namespace AtCoder { class Program { static void Main() { var hw = ReadIntArray(); var h = hw[0]; for (int i = 0; i < h; i++) { var c = ReadString(); Console.WriteLine(c); Console.WriteLine(c); ...
[["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22]]
8
251
2
using System; using System.Linq; public class Hello { public static void Main() { int[] x = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int H = x[0]; int W = x[1]; for (int i = 0; i < W; i++) { string str = Console.ReadLine(); Console.WriteLine(str); Console.WriteLi...
using System; using System.Linq; public class Hello { public static void Main() { int[] x = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int H = x[0]; int W = x[1]; for (int i = 0; i < H; i++) { string str = Console.ReadLine(); Console.WriteLine(str); Console.WriteLi...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]]
8
105
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Practice { class Program { static void Main(string[] args) { Solve(); } private const long MOD = 1000000007; static void Solve() { var o = ReadAndParseIntArr(); int h = o[0]; int w = o[1]; var c = new...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Practice { class Program { static void Main(string[] args) { Solve(); } private const long MOD = 1000000007; static void Solve() { var o = ReadAndParseIntArr(); int h = o[0]; int w = o[1]; var c = new...
[["-", 206, 207, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["-", 206, 207, 0, 28, 0, 16, 31, 23, 0, 25]]
8
456
4
using System; using System.IO; using System.Linq; using System.Collections.Generic; public class Hello { public static void Main() { //出力を早くする Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); var wh = Console.ReadLine().Split().Select(int.Parse).ToArray(); ...
using System; using System.IO; using System.Linq; using System.Collections.Generic; public class Hello { public static void Main() { //出力を早くする Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); var hw = Console.ReadLine().Split().Select(int.Parse).ToArray(); ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22]]
8
150
10
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Text; public class Program { public void Proc() { int[] inpt = Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); int rowCount = inpt[0]; StringBuilder ans = new S...
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Text; public class Program { public void Proc() { Reader.IsDebug = false; int[] inpt = Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray(); int rowCount = inpt[0]; ...
[["+", 8, 196, 0, 1, 0, 11, 31, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 11, 31, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 11, 31, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 211, 0, 147], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
248
6
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) { int[] input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); for (int i = 0; i < input[1]; ++i) { ...
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) { int[] input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); for (int i = 0; i < input[0]; ++i) { ...
[["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
116
6
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) { int[] input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); for (int i = 0; i < input[1]; ++i) { ...
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) { int[] input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); string str; for (int i = 0; i < i...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199]]
8
116
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; namespace AIZUproject07 { class Program { // static string T; /*static void Main() { int count = 0; bool flag = false; string In = Console.Re...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; namespace AIZUproject07 { class Program { // static string T; /*static void Main() { int count = 0; bool flag = false; string In = Console.Re...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98]]
8
201
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // 0<=x,y,z<=K // X+Y+Z=S var Array = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); int K = Array[0]; int S = Array[1]; int Count = 0; int z = 0; for (...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // 0<=x,y,z<=K // X+Y+Z=S var Array = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); int K = Array[0]; int S = Array[1]; int Count = 0; int z = 0; for (...
[["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22]]
8
149
2
using System; using System.Collections.Generic; // using System.Linq; class Program { // static List<string> list; static void Main(string[] args) { // 入力フェーズ string[] input = Console.ReadLine().Split(' '); int K = int.Parse(input[0]); int S = int.Parse(input[1]); long pattern = 0; for (int...
using System; using System.Collections.Generic; // using System.Linq; class Program { // static List<string> list; static void Main(string[] args) { // 入力フェーズ string[] input = Console.ReadLine().Split(' '); int K = int.Parse(input[0]); int S = int.Parse(input[1]); long pattern = 0; for (int...
[["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
188
2
using System; namespace AtCoder { class B_SumofThreeIntegers_051 { public static void Main() { string[] input = Console.ReadLine().Split(' '); var K = int.Parse(input[0]); var S = int.Parse(input[1]); var count = 0; for (var x = 0; x <= K; ++x) { if (S < x) { break; } ...
using System; namespace AtCoder { class B_SumofThreeIntegers_051 { public static void Main() { string[] input = Console.ReadLine().Split(' '); var K = int.Parse(input[0]); var S = int.Parse(input[1]); var count = 0; for (var x = 0; x <= K; ++x) { if (S < x) { break; } ...
[["-", 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, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]]
8
153
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp4 { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var counter = 0; for (int i ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp4 { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var counter = 0; for (int i ...
[["-", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
156
2
using System; using System.Linq; public class Program { public static void Main() { var list = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList(); var K = list[0]; var S = list[1]; var ans = 0; for (int x = 0; x <= K; x++) { for (int y = 0; y <= K; y++) { int z = S - x...
using System; using System.Linq; public class Program { public static void Main() { var list = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList(); var K = list[0]; var S = list[1]; var ans = 0; for (int x = 0; x <= K; x++) { for (int y = 0; y <= K; y++) { int z = S - ...
[["-", 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, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]]
8
135
4
using System; using System.Linq; using System.Collections.Generic; using Debug = System.Diagnostics.Debug; using StringBuilder = System.Text.StringBuilder; using System.Numerics; // using Point = System.Numerics.Complex; using Number = System.Int64; namespace Program { public class Solver { public void Solve() { ...
using System; using System.Linq; using System.Collections.Generic; using Debug = System.Diagnostics.Debug; using StringBuilder = System.Text.StringBuilder; using System.Numerics; // using Point = System.Numerics.Complex; using Number = System.Int64; namespace Program { public class Solver { public void Solve() { ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 7, 8, 57, 15, 16, 12, 16, 17, 19], ["+", 8, 7, 8, 57, 15, 16, 12, 16, 17, 20]]
8
2,397
6
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC051D_2 { class Program { static void Main(string[] args) { var N = RInt; var M = RInt; WarshallFloyd wf = new WarshallFloyd(N); Edge[] edges = ...
using System; using System.Collections.Generic; using static Assistant.Input; using static Assistant.Debug; using System.Linq; using Assistant; namespace ABC051D_2 { class Program { static void Main(string[] args) { var N = RInt; var M = RInt; WarshallFloyd wf = new WarshallFloyd(N); Edge[] edges = ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 57, 64, 1, 0, 223, 0,...
8
1,634
8
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using static System.Math; using static System.Array; using static AtCoder.IO_ShortCut; using static AtCoder.Tool; using static AtCoder.ModInt; namespace AtCoder { class AC { const int MOD = 10...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using static System.Math; using static System.Array; using static AtCoder.IO_ShortCut; using static AtCoder.Tool; using static AtCoder.ModInt; namespace AtCoder { class AC { const int MOD = 10...
[["-", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
1,934
4
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; using static AtCoder.Tool; namespace AtCoder { class AC { const int MOD = 1000000007; const int INF = int.MaxValue / 2; const long SINF = long.MaxValue / 2; ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using static System.Math; using static System.Array; using static AtCoder.Tool; namespace AtCoder { class AC { const int MOD = 1000000007; const int INF = int.MaxValue / 2; const long SINF = long.MaxValue / 2; ...
[["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22]]
8
664
6
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; // using static System.Globalization.CultureInfo; class Program { struct P { public int index; public List<int> ad; public Dictionary<int, int> weights; ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; // using static System.Globalization.CultureInfo; class Program { struct P { public int index; public List<int> ad; public Dictionary<int, int> weights; ...
[["-", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
761
4
using System; using System.Collections.Generic; using System.Linq; class Node { public List<Edge> edges; public int cost; } class Edge { public Node node1; public Node node2; public int cost; } class Procon { public Procon() {} static void Main(string[] agrs) { new Procon().Do(); } Scanner cin; p...
using System; using System.Collections.Generic; using System.Linq; class Node { public List<Edge> edges; public int cost; } class Edge { public Node node1; public Node node2; public int cost; } class Procon { public Procon() {} static void Main(string[] agrs) { new Procon().Do(); } Scanner cin; p...
[["-", 31, 214, 205, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 214, 205, 204, 206, 207, 0, 28, 0, 22]]
8
997
2
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Competitive { // libs ---------- internal class Solution { public int N, M; public Graph G; public void Run() { // Input { var line = Input.ReadIntArray(); N = line[0]; M = line[1]; } ...
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Competitive { // libs ---------- internal class Solution { public int N, M; public Graph G; public void Run() { // Input { var line = Input.ReadIntArray(); N = line[0]; M = line[1]; } ...
[["-", 0, 28, 0, 230, 3, 4, 0, 28, 0, 203], ["+", 0, 28, 0, 230, 3, 4, 0, 28, 0, 22], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46]]
8
1,604
4
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; class Simple { int N, M; int[] a, b, c; void Solve() { // input N = io.Int; M = io.Int; a = new int[M]; b = ...
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; class Simple { int N, M; int[] a, b, c; void Solve() { // input N = io.Int; M = io.Int; a = new int[M]; b = ...
[["-", 8, 196, 0, 1, 0, 223, 0, 204, 205, 22], ["-", 0, 1, 0, 223, 0, 204, 206, 207, 0, 70], ["-", 0, 223, 0, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 1, 0, 223, 0, 204, 206, 207, 0, 73], ["-", 0, 7, 8, 196, 0, 1, 0, 223, 0, 68], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]]
8
694
6
//#pragma warning disable using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System; using System.Numerics; using System.Threading.Tasks; using static System.Math; using static System.Console; class Z { static void Main() => new K(); } class K { ...
//#pragma warning disable using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System; using System.Numerics; using System.Threading.Tasks; using static System.Math; using static System.Console; class Z { static void Main() => new K(); } class K { ...
[["-", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22]]
8
1,096
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication14 { enum qResult { REJECT, ENQUEUED, HIT } class Node { public Dictionary<int, int> fLen = new Dictionary<int, int>(); public HashSet<int> Checked = new HashSet<int>(); } class LocalQueue { Queue<...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication14 { enum qResult { REJECT, ENQUEUED, HIT } class Node { public Dictionary<int, int> fLen = new Dictionary<int, int>(); public HashSet<int> Checked = new HashSet<int>(); } class LocalQueue { Queue<...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
845
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, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38]]
8
1,132
4
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var X = sc.ReadLong(); var Y = sc.ReadLong(); long ans = 0; if (X < Y) { ans = Math.Abs(Math.Abs(Y) - Math.Abs(X)); if (X * Y < -1) ans++; } else { ans = ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var X = sc.ReadLong(); var Y = sc.ReadLong(); long ans = 0; if (X < Y) { ans = Math.Abs(Math.Abs(Y) - Math.Abs(X)); if (X * Y < -1) ans++; } else { ans = ...
[["-", 75, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["-", 75, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 17, 98], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["-", 75, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 47]]
8
653
6
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int x = l[0], y = l[1]; var count = 0; if (x < y) { if (x >= 0) count = y - x; ...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int x = l[0], y = l[1]; var count = 0; if (x < y) { if (x >= 0) count = y - x; ...
[["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 33], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
174
6
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; class Program { static void Main(string[] args) { var xy = Array.ConvertAll(ReadLine().Split(' '), int.Parse); var result = 0; if (xy[0] < xy[1]) { ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; class Program { static void Main(string[] args) { var xy = Array.ConvertAll(ReadLine().Split(' '), int.Parse); var result = 0; if (xy[0] < xy[1]) { ...
[["-", 64, 1, 0, 11, 12, 41, 15, 16, 17, 18], ["+", 64, 1, 0, 11, 12, 41, 15, 16, 17, 19], ["-", 75, 1, 0, 11, 12, 41, 15, 16, 17, 18], ["+", 75, 1, 0, 11, 12, 41, 15, 16, 17, 19]]
8
268
4
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 long x = long.Parse(input[0]); long y = long.Parse(input[1]); long ans...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; using System.Text; //テキストの高速出力に必要 class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 long x = long.Parse(input[0]); long y = long.Parse(input[1]); long ans...
[["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 19]]
8
158
2
using System.Linq; using System; public class Hello { public const long INF = 99999999999999; public static void Main() { var ret = new long[4]; for (int i = 0; i < 4; i++) ret[i] = INF; string[] line = Console.ReadLine().Trim().Split(' '); var x = long.Parse(line[0]); var y = long.Parse(...
using System.Linq; using System; public class Hello { public const long INF = 99999999999999999; public static void Main() { var ret = new long[4]; for (int i = 0; i < 4; i++) ret[i] = INF; string[] line = Console.ReadLine().Trim().Split(' '); var x = long.Parse(line[0]); var y = long.Par...
[["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 37, 0, 41, 15, 16, 17, 18], ["+", 8, 196, 0, 37, 0, 41, 15, 16, 17, 19]]
8
199
4
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int res = 0; if (a[0] < 0 && a[1] < 0) { if (a[0] > a[1]) { res = a[0] - a[1] + 2; } else { res = a[1] - a[0]; ...
using System; using System.Linq; using System.Collections.Generic; class P { static void Main() { int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int res = 0; if (a[0] < 0 && a[1] < 0) { if (a[0] > a[1]) { res = a[0] - a[1] + 2; } else { res = a[1] - a[0]; ...
[["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 20], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 47], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 20], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 17, 47]]
8
242
4
using System; using System.Linq; namespace agc008_a { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); int min = 2147483647; if (x[0] <= x[1]) { min = Math.Min(min, x[1] - x[0]); } if (x[0] * -1 <= x[1]) { min = Math.M...
using System; using System.Linq; namespace agc008_a { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); int min = 2147483647; if (x[0] <= x[1]) { min = Math.Min(min, x[1] - x[0]); } if (x[0] * -1 <= x[1]) { min = Math.M...
[["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
221
6
using System; using System.Collections.Generic; using System.Text; using System.Linq; class Program { public void Proc() { Reader.IsDebug = false; long[] inpt = Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray(); long abs1 = Math.Abs(inpt[0]); long abs2 = Math.Abs(inpt[1]); ...
using System; using System.Collections.Generic; using System.Text; using System.Linq; class Program { public void Proc() { Reader.IsDebug = false; long[] inpt = Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray(); long abs1 = Math.Abs(inpt[0]); long abs2 = Math.Abs(inpt[1]); ...
[["+", 75, 57, 64, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 57, 75, 57, 75, 57, 64, 196, 0, 46], ["-", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 258]]
8
377
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AGC008 { public class A { private void Run() { var input = Console.ReadLine().Trim().Split(); var x = long.Parse(input[0]); var y = long.Parse(input[1]); long res = Math.Abs(Math.Abs(x) - Math.Abs(y)); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AGC008 { public class A { private void Run() { var input = Console.ReadLine().Trim().Split(); var x = long.Parse(input[0]); var y = long.Parse(input[1]); long res = Math.Abs(Math.Abs(x) - Math.Abs(y)); ...
[["-", 75, 196, 0, 57, 15, 16, 31, 241, 0, 33], ["-", 75, 196, 0, 57, 15, 16, 31, 241, 0, 22], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203]]
8
243
5
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { AGC008.B(); } class AGC008 { public static void A() { var X = Read.Int(); var Y = Read.Int(); var AX = Math.Abs(X); var AY = Math.Abs(Y); if (A...
using System; using System.Linq; using System.Collections.Generic; namespace Contest { class Program { static void Main(string[] args) { AGC008.B(); } class AGC008 { public static void A() { var X = Read.Int(); var Y = Read.Int(); var AX = Math.Abs(X); var AY = Math.Abs(Y); if (A...
[["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 22]]
8
1,540
6
using System; using System.Linq; //リストの使用 using System.Collections.Generic; class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 long n = long.Parse(input[0]); long k = long.Parse(input[1]); long[] nums = Array.ConvertAll(Console.Rea...
using System; using System.Linq; //リストの使用 using System.Collections.Generic; class Program { static void Main() { string[] input = Console.ReadLine().Split( ' '); // Splitで区切り文字を指定して複数個受け取る。 long n = long.Parse(input[0]); long k = long.Parse(input[1]); long[] nums = Array.ConvertAll(Console.Rea...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
380
2