buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
change_count
int64
0
100
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics.Contracts; using System.IO; using System.Linq; using System.Numerics; using System.Xml.Schema; using System.Threading; using System.Diagnostics.CodeAnalysis; using System.Security.Cryptography; namespace AtCoder { pub...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics.Contracts; using System.IO; using System.Linq; using System.Numerics; using System.Xml.Schema; using System.Threading; using System.Diagnostics.CodeAnalysis; using System.Security.Cryptography; namespace AtCoder { pub...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 7, 15, 16, 31, 16, 31, 22], ["+", 0, 7, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 31,...
8
1,906
39
using System; using System.Collections.Generic; namespace D2019PC { class C { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); List<long> list = new List<long>(); for (long i = 1; i < Math.Sqrt(N); i++) { if (N % i == 0) { list.Add((N / i) - 1); } } ...
using System; using System.Collections.Generic; namespace D2019PC { class C { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); List<long> list = new List<long>(); for (long i = 1; i < Math.Sqrt(N); i++) { if (N % i == 0) { list.Add((N / i) - 1); } } ...
[["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 12, 20...
8
126
8
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var max = Math.Sqrt(N); var sum = 0L; // N = m * r + r = r(m+1) // r <= m であることに注意する for (long r = (long)max; r >= 1; r--) { var A...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var max = Math.Sqrt(N); var sum = 0L; // N = m * r + r = r(m+1) // r <= m であることに注意する for (long r = (long)max; r >= 1; r--) { if (N...
[["-", 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, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 197, 0, ...
8
121
22
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace diverta_D { class Program { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); long otpt = 0; var z = Math.Sqrt((n)); long m = (long)(Math.Floor(z)); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace diverta_D { class Program { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); long otpt = 0; var z = Math.Sqrt((n)); long m = (long)(Math.Ceiling(z)); ...
[["-", 0, 74, 51, 23, 0, 213, 63, 214, 141, 22], ["+", 0, 74, 51, 23, 0, 213, 63, 214, 141, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 21...
8
183
10
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Hello { public static void Main() { long N = NextLong(); // Nの約数列挙 List<long> A = new List<long>(); long ans = 0; long M = (long)Math.Ceiling(Math.Sqrt(N)); for (long i = 1; i < M; i++) if...
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Hello { public static void Main() { long N = NextLong(); // Nの約数列挙 List<long> A = new List<long>(); long ans = 0; long M = (long)Math.Ceiling(Math.Sqrt(N)); for (long i = 1; i < M; i++) if...
[["-", 8, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 7, 8, 57, 64, 196, 0, 197, 0, 35], ["+", 0, 7, 8, 57, 64, 196, 0, 57, 0, 121],...
8
404
19
using System; using System.Collections.Generic; public class CSharp { public static void Main() { Kyopuro chokudai = new Kyopuro(); chokudai.AtCoder(); } } public class Kyopuro { public void AtCoder() { string[] input; input = Console.ReadLine().Split(' '); long n; n = long.Parse(input[...
using System; using System.Collections.Generic; public class CSharp { public static void Main() { Kyopuro chokudai = new Kyopuro(); chokudai.AtCoder(); } } public class Kyopuro { public void AtCoder() { string[] input; input = Console.ReadLine().Split(' '); long n; n = long.Parse(input[...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 31, 22], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 17, 85], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, ...
8
151
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace AtCoder { class Program { private static string Read() { return Console.ReadLine(); } private static int ReadInt() { return int.Parse(Read()); } private static long ReadLong() { return long.P...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace AtCoder { class Program { private static string Read() { return Console.ReadLine(); } private static int ReadInt() { return int.Parse(Read()); } private static long ReadLong() { return long.P...
[["-", 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, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 18], ["-", 0, 212, 0, 230, 39, 236, 2...
8
279
13
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(); long n = sc.L; long ans = 0; double d = M...
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(); long n = sc.L; long ans = 0; double d = ...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 31, 22], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 17, 85], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, ...
8
613
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; public class Program { public static readonly int Mod = 1000000007; public static void Main(string[] args) { long N = Scanner.Long; long ans = 0; for (long i =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; public class Program { public static readonly int Mod = 1000000007; public static void Main(string[] args) { long N = Scanner.Long; long ans = 0; for (long i =...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 64, 196, 0, 1, 0, 11, 12, 23, 0, 24], ["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 8, 196, 0, 57, 64, 196, 0, 197, 0, 35...
8
3,126
15
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long[] A = new long[N]; long[] S = new long[N + 1]; long[] S0 = new long[N + 1]; long mod = 1000000007; string[] str = Console.ReadLine().Split(); for (v...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long[] A = new long[N]; long[] S = new long[N + 1]; long[] S0 = new long[N + 1]; long mod = 1000000007; string[] str = Console.ReadLine().Split(); for (v...
[["-", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35],...
8
586
11
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Z { static void Main() => new K(); } class K { int[] G => ReadLine().Split().Select(int.Parse).ToArray(); static T[] MakeArray<T>(int n, Func<int, T> f) { var a = new T[n]; for (var i = 0; i < n; i++) ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Z { static void Main() => new K(); } class K { int[] G => ReadLine().Split().Select(int.Parse).ToArray(); static T[] MakeArray<T>(int n, Func<int, T> f) { var a = new T[n]; for (var i = 0; i < n; i++) ...
[["-", 0, 204, 206, 207, 0, 28, 0, 241, 0, 33], ["-", 0, 204, 206, 207, 0, 28, 0, 241, 0, 203], ["+", 0, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["+", 206, 207, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 206, 207, 0, 28, 0, 204, 206, 207, 0, 73], ["-", 0, 263, 8, 196, 0, 57, 75...
8
835
6
using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; using System.Numerics; using System.Threading.Tasks; using System.Text.RegularExpressions; using Debug = System.Diagnostics.Debug; using System.Runtime.CompilerServices; using static System.M...
using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; using System.Numerics; using System.Threading.Tasks; using System.Text.RegularExpressions; using Debug = System.Diagnostics.Debug; using System.Runtime.CompilerServices; using static System.M...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 22], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 70], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 31, 203], ["-", 0, 227, 39, 224, 225, 226...
8
889
38
using System; using System.Collections.Generic; using System.Linq; namespace agc033_a { class MainClass { public static void Main(string[] args) { var ins = new Problem(); ins.solve(); } } class Problem { public void solve() { Func<int[]> read = () => Console.ReadLine().Split().Select(int.Pa...
using System; using System.Collections.Generic; using System.Linq; namespace agc033_a { class MainClass { public static void Main(string[] args) { var ins = new Problem(); ins.solve(); } } class Problem { public void solve() { Func<int[]> read = () => Console.ReadLine().Split().Select(int.Pa...
[["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 21], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203]...
8
509
9
using System; using System.Collections.Generic; using System.Linq; using System.IO; using SB = System.Text.StringBuilder; // using System.Threading.Tasks; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; using System.Numerics; using static...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using SB = System.Text.StringBuilder; // using System.Threading.Tasks; // using System.Text.RegularExpressions; // using System.Globalization; // using System.Diagnostics; using static System.Console; using System.Numerics; using static...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 70], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["-", 0, 212, 0, 227, 39, 224, ...
8
1,343
33
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AGC033A7 { class Program { static int black = 0; static int[] dp; static int max; public struct pos { public int x; public int y; } public static List<pos> C_list = new List...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AGC033A8OLD { class Program { static int black = 0; static int[] dp; static int max; // static int ans = 0; public struct pos { public int x; public int y; } public static...
[["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 206, 207, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 12, 22], ["-", 0, 28, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 12, 22]]
8
643
30
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AGC033A8OLD { class Program { static int black = 0; static int[] dp; static int max; static int ans = 0; public struct pos { public int x; public int y; } public static Li...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AGC033A8OLD { class Program { static int black = 0; static int[] dp; static int max; static int ans = 0; public struct pos { public int x; public int y; } public static Li...
[["-", 206, 207, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 12, 22], ["-", 0, 28, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 12, 22]]
8
724
36
using System; using System.Collections.Generic; using System.Linq; public static partial class Program { public static void Main() { var hw = CRL().ArrayInts(); var h = hw[0]; var w = hw[1]; var map = new int[h, w]; for (int i = 0; i < h; i++) { var str = CRL(); for (int j = 0; j < w;...
using System; using System.Collections.Generic; using System.Linq; public static partial class Program { public static void Main() { var hw = CRL().ArrayInts(); var h = hw[0]; var w = hw[1]; var map = new int[h, w]; for (int i = 0; i < h; i++) { var str = CRL(); for (int j = 0; j < w;...
[["-", 15, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["-", 15, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31...
8
898
8
using System; using System.Linq; using System.Collections.Generic; class Mondai { static void Main() { var hw = Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray(); ; var H = hw[0]; var W = hw[1]; var isBlack = new bool[H, W]; var que = new Queue<int[]>(); for (int...
using System; using System.Linq; using System.Collections.Generic; class Mondai { static void Main() { var hw = Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray(); ; var H = hw[0]; var W = hw[1]; var isBlack = new bool[H, W]; var que = new Queue<int[]>(); for (int...
[["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 57, 15, 16, 12, 204, 206, 207, 0, 21], ["+", 0, 57, 15, 16, 12, 204, 206, 207, 0, 21], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 1, 0, 11, 31, 204, 206, 207, 0, 21], ["+", 0, 1, 0, 11, 31, 204, 206, 2...
8
387
8
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; private const long INFINITY = 9223372036854775807; private struct Pair { public int x, y; public Pair(int xx, int yy) { x = xx; y = yy; } } pr...
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; private const long INFINITY = 9223372036854775807; private struct Pair { public int x, y; public Pair(int xx, int yy) { x = xx; y = yy; } } pr...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0,...
8
845
45
using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; using System.Linq; using static System.Math; class Program { static int n; static int k; static string s; static RSQ1 rsq; static bool f; //先頭が立っているか static void Main() { string[] input = Console.ReadLine().Sp...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; using System.Linq; using static System.Math; class Program { static int n; static int k; static string s; static RSQ1 rsq; static bool f; //先頭が立っているか static void Main() { string[] input = Console.ReadLine().Sp...
[["-", 8, 196, 0, 7, 15, 16, 31, 16, 17, 72], ["-", 0, 7, 15, 16, 31, 16, 12, 16, 31, 203], ["-", 0, 7, 15, 16, 31, 16, 12, 16, 17, 48], ["-", 0, 7, 15, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 213, 63, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28,...
8
638
9
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Beg124D { class Program { public static int N; static void Main(string[] args) { var read = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); N = read[0]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Beg124D { class Program { public static int N; static void Main(string[] args) { var read = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); N = read[0]; ...
[["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 15, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 15, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["+", 15, 16, 31, 16, 12, 213, 3, 4, 0, 24], ["+", 15, 16, 31, 16, 12, 213, 3, 4, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 1...
8
1,177
28
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; private const long INFINITY = 9223372036854775807; private struct Pair { public int x, y; } public static void Main() { int N = NextInt(); int K = NextInt...
using System; using System.Collections.Generic; using System.Linq; using static Input; public class Prog { private const int INF = 1000000007; private const long INFINITY = 9223372036854775807; private struct Pair { public int x, y; } public static void Main() { int N = NextInt(); int K = NextInt...
[["+", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 223, 0, 29],...
8
683
38
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } ...
[["-", 0, 210, 8, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 210, 8, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 210, 8, 196, 0, 1, 0, 35], ["+", 0, 210, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 210, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 24], ["+", 0,...
8
684
14
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program4 { static void Main(string[] args) { var nk = Console.ReadLine().Split(' '); var s = Console.ReadLine(); List<KeyValuePair<int, int>> numlist = new Li...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program4 { static void Main(string[] args) { var nk = Console.ReadLine().Split(' '); var s = Console.ReadLine(); List<KeyValuePair<int, int>> numlist = new Li...
[["+", 75, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 75, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 12, 22], ["+", 75, 196, 0, 57, 75, 196, 0, 57, 0, 25], ["+", 0, 57, 75, 196, 0, 57, 64, 196, 0, 4...
8
411
12
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace AtCoder124 { class Program { public static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int K = int.Parse(s[1]); string S = Console.ReadLine(); ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace AtCoder124 { class Program { public static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int K = int.Parse(s[1]); string S = Console.ReadLine(); ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 3...
8
476
31
using System; using System.Collections.Generic; using System.Linq; public class AtCoder { public static int[] ReadArray() { return Array.ConvertAll(Console.ReadLine().Split(' '), m => Convert.ToInt32(m)); } public static int ReadInt() { return Convert.ToInt32(Console.ReadLine())...
using System; using System.Collections.Generic; using System.Linq; public class AtCoder { public static int[] ReadArray() { return Array.ConvertAll(Console.ReadLine().Split(' '), m => Convert.ToInt32(m)); } public static int ReadInt() { return Convert.ToInt32(Console.ReadLine())...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 0, 57, ...
8
323
20
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { D(); } public static void D() { Scanner cin = new Scanner(); int n = cin.NextInt(); int k = cin.NextInt(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCorder { public class Program { static void Main(string[] args) { D(); } public static void D() { Scanner cin = new Scanner(); int n = cin.NextInt(); int k = cin.NextInt(); ...
[["-", 0, 57, 75, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 7, 15, 16, 17, 19], ["+", 31, 16, 31, 16, 12, 204, 206, 207, 0, 73], ["+", 0, 212, 0, 16, 31, 16, 31, 16, 17, 33], ["+", 0, 16, 31, 16, 31, 16, 12, 204, 205, 22], ["+", 31, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["+", 12, 204, 206, 207, 0, 28, 0, 16...
8
716
18
using System; using System.Collections.Generic; namespace CSsample { class Program { static void Main(string[] args) { string input = Console.ReadLine(); var x = input.Split(); int N = int.Parse(x[0]); int K = int.Parse(x[1]); string S = Console.ReadLine(); var ind = new List<int>(); var ...
using System; using System.Collections.Generic; namespace CSsample { class Program { static void Main(string[] args) { string input = Console.ReadLine(); var x = input.Split(); int N = int.Parse(x[0]); int K = int.Parse(x[1]); string S = Console.ReadLine(); var ind = new List<int>(); var ...
[["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["-", 64, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 57, 64, 196, 0, 57, 15, 1...
8
367
20
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; using Pair = System.Tuple<int, int>; using Edge = System.Tuple<int, int, long>; // using Debug; // using static System.Globalization.CultureInfo; class Program { stat...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Convert; using static System.Math; using Pair = System.Tuple<int, int>; using Edge = System.Tuple<int, int, long>; // using Debug; // using static System.Globalization.CultureInfo; class Program { stat...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 204, 2...
8
723
19
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_124 { class D { static void Main(string[] args) { Method(args); } static void Method(string[] args) { int[] nk = ReadInts(); int n = n...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_124 { class D { static void Main(string[] args) { Method(args); } static void Method(string[] args) { int[] nk = ReadInts(); int n = n...
[["-", 206, 207, 0, 28, 0, 16, 31, 214, 205, 22], ["-", 206, 207, 0, 28, 0, 16, 31, 214, 0, 131], ["-", 206, 207, 0, 28, 0, 16, 31, 214, 141, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 85], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 31,...
8
552
12
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[] a = new int[5]; for (int i = 0; i < a.Length; ++i) // a.Length は配列 a の長さ。これの例では5。 { a[i] = int...
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[] a = new int[5]; for (int i = 0; i < a.Length; ++i) // a.Length は配列 a の長さ。これの例では5。 { a[i] = int.Parse(Console.ReadLine()); } int k = int.Parse(Console.ReadLine()); int check = 0; f...
[["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, ...
8
208
28
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc123_a { 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()); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc123_a { 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()); ...
[["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 98], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 106], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 106], ["-", 8, 196, 0, 57, 15, 16, 31, 16,...
8
221
18
using System; using System.Linq; public class Program { public static void Main() { var xs = Console.In.ReadToEnd().Split().Select(int.Parse).ToArray(); int k = xs[xs.Length - 1]; int min = xs[0]; int max = xs[xs.Length - 2]; Console.WriteLine(max - min <= k ? "Yay!" : ":("); } }
using System; using System.Linq; class Program { static void Main() { var xs = Console.In.ReadToEnd() .Trim('\n') .Split() .Select(n => int.Parse(n)) .ToArray(); int k = xs[xs.Length - 1]; int min = xs[0]; int max = xs[xs.Length - 2...
[["-", 36, 36, 0, 208, 0, 235, 0, 251, 0, 259], ["-", 0, 235, 8, 201, 0, 195, 0, 251, 0, 259], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 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], ["+", 205, 213, 3, 4...
8
98
14
using System; namespace abc123 { class A { 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()); int e = int.Parse(Console.ReadLine()); int k = int.Parse(Con...
using System; namespace abc123 { class A { 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()); int e = int.Parse(Console.ReadLine()); int k = int.Parse(Con...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["-", 0,...
8
137
11
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main() { //入力 // int n = 100; int[] input = new int[5]; for (int a = 0; a < 5; a++) { input[a] = int.Parse(Console.ReadLine()); } int max ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main() { //入力 // int n = 100; int[] input = new int[5]; for (int a = 0; a < 5; a++) { input[a] = int.Parse(Console.ReadLine()); } int max ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 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], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214...
8
191
13
using System; namespace ConsoleApplication1 { 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()); int e = int.Parse(Console.ReadLine()); in...
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()); int e = int.Parse(Console.ReadLine()); int k = int.Parse(Console.ReadLine(...
[["-", 36, 36, 36, 36, 0, 208, 0, 209, 0, 256], ["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 36, 36, 0, 208, 0, 209, 8, 201, 0, 45], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 205, 22], ["-", 0, 57, 15, 16, 31, 213, 63, 214,...
8
210
9
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 { class Program { static void Main(string[] args) { var a...
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 { class Program { static void Main(string[] args) { var a...
[["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 22], ["-", 205, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["-", 205, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 205, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 213, 63, 22],...
8
1,066
11
using System; using System.Collections.Generic; using System.Linq; class ABC123B { public static void Main() { var a = int.Parse(Console.ReadLine()); Console.ReadLine(); Console.ReadLine(); Console.ReadLine(); var e = int.Parse(Console.ReadLine()); var k = int.Parse(Console.ReadLine()); i...
using System; using System.Collections.Generic; using System.Linq; class ABC123B { public static void Main() { var a = int.Parse(Console.ReadLine()); Console.ReadLine(); Console.ReadLine(); Console.ReadLine(); var e = int.Parse(Console.ReadLine()); var k = int.Parse(Console.ReadLine()); i...
[["-", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["-", 15, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 31, 22], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["-", 15, 16, 31, 23, 0, 16, 31, 23, 0, 25], ["-", 0, 57, 15, 16, 31, 23, 0, 16, 17, 140], ["-", 0, 57, 15, 16, 31, 23, 0, 16, 12, 203], ["...
8
124
14
using System; using System.Collections; using System.Collections.Generic; class FiveAntennas { static void Main(string[] args) { var antena = new int[5]; for (int i = 0; i < 5; i++) { antena[i] = int.Parse(Console.ReadLine()); } var k = int.Parse(Console.ReadLine()); bool isYes = true; ...
using System; using System.Collections; using System.Collections.Generic; class FiveAntennas { static void Main(string[] args) { var antena = new int[5]; for (int i = 0; i < 5; i++) { antena[i] = int.Parse(Console.ReadLine()); } var k = int.Parse(Console.ReadLine()); bool isYes = true; ...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 25], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 45], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["+", 0, 7,...
8
159
24
using System; namespace abc123A { class MainClass { public static void Main(string[] args) { int a = Int32.Parse(Console.ReadLine()); int b = Int32.Parse(Console.ReadLine()); int c = Int32.Parse(Console.ReadLine()); int d = Int32.Parse(Console.ReadLine()); int e = Int32.Parse(Console.ReadLine());...
using System; namespace abc123A { class MainClass { public static void Main(string[] args) { int a = Int32.Parse(Console.ReadLine()); int b = Int32.Parse(Console.ReadLine()); int c = Int32.Parse(Console.ReadLine()); int d = Int32.Parse(Console.ReadLine()); int e = Int32.Parse(Console.ReadLine());...
[["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 31, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 16, 31, 16, 12, 16, ...
8
238
20
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string input = Console.ReadLine(); int a = int.Parse(input); input = Console.ReadLine(); int b = int.Parse(input); input = Console.ReadLine(); int c = int.Parse(input); inp...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string input = Console.ReadLine(); int a = int.Parse(input); input = Console.ReadLine(); int b = int.Parse(input); input = Console.ReadLine(); int c = int.Parse(input); inp...
[["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 31, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 15, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 16, 31, 16, 12, 16, ...
8
285
22
using System; using System.IO; using System.Linq; class Program { static void Solve() { var max = int.MaxValue; var min = 0; for (var i = 0; i < 5; i++) { var a = ReadInt(); if (a > max) max = a; if (a < min) min = a; } var k = ReadInt(); Console.WriteLine...
using System; using System.IO; using System.Linq; class Program { static void Solve() { var max = 0; var min = 123; for (var i = 0; i < 5; i++) { var antenna = ReadInt(); if (antenna > max) max = antenna; if (antenna < min) min = antenna; } var k = ReadInt(); ...
[["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, ...
8
339
16
using System; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } public void Solve(ConsoleInput cin) {...
using System; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console.In, ' ')); } public void Solve(ConsoleInput cin) {...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 2...
8
537
36
using System; class ABC_123_A { 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()); int e = int.Parse(Console.ReadLine()); int k = int.Parse(Console.ReadLi...
using System; class ABC_123_A { 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()); int e = int.Parse(Console.ReadLine()); int k = int.Parse(Console.ReadLi...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]]
8
254
20
using System; using System.Collections.Generic; namespace AtCoder_ { class Program { static void Main(string[] args) { int[] array = { 0, 0, 0, 0, 0 }; array[0] = int.Parse(Console.ReadLine()); array[1] = int.Parse(Console.ReadLine()); array[2] = int.Parse(Console.ReadLine()); array[3] = int.Pars...
using System; using System.Collections.Generic; namespace AtCoder_ { class Program { static void Main(string[] args) { int[] array = { 0, 0, 0, 0, 0 }; array[0] = int.Parse(Console.ReadLine()); array[1] = int.Parse(Console.ReadLine()); array[2] = int.Parse(Console.ReadLine()); array[3] = int.Pars...
[["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-"...
8
211
27
using System; using System.Collections.Generic; public class B { public static void Main() { long[] time = new long[5]; for (int i = 0; i < 5; i++) time[i] = Int64.Parse(Console.ReadLine()); long muda = 9; long result = 0; for (int i = 0; i < 5; i++) { if ((time[i] % 10) == 0) { ...
using System; using System.Collections.Generic; public class B { public static void Main() { long[] time = new long[5]; for (int i = 0; i < 5; i++) time[i] = Int64.Parse(Console.ReadLine()); long muda = 9; long result = 0; bool just = true; for (int i = 0; i < 5; i++) { if ((time...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 3...
8
163
14
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderB { static void Main() { var sc = new Scanner(); int[] n = new int[] { sc.NextInt(), sc.NextInt(), sc.NextInt(), sc.NextInt(), sc.NextInt() }; int answer = 0; int minM...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderB { static void Main() { var sc = new Scanner(); int[] n = new int[] { sc.NextInt(), sc.NextInt(), sc.NextInt(), sc.NextInt(), sc.NextInt() }; int answer = 0; int minM...
[["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, ...
8
457
19
using System; using System.Collections.Generic; using System.Numerics; using System.Linq; namespace AtCoderTemplate { class Program { static void Main(string[] args) { var a = Scanner.rescanint(5); var b = a.Where(x => x[0] % 10 == 0).ToArray(); var c = a.Where(x => x[0] % 10 != 0) .Order...
using System; using System.Collections.Generic; using System.Numerics; using System.Linq; namespace AtCoderTemplate { class Program { static void Main(string[] args) { var a = Scanner.rescanint(5); var b = a.Where(x => x[0] % 10 == 0).ToArray(); var c = a.Where(x => x[0] % 10 != 0) .Order...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12...
8
415
16
using System; namespace ABC123 { class B { static void Main(string[] args) { int res = 0; int max = 10; int ll = 0; int l = 0; for (int i = 0; i < 5; i++) { ll = int.Parse(Console.ReadLine()); l = ll % 10; if (0 < l) { max = Math.Min(max, l); } res += ll + (...
using System; namespace ABC123 { class B { static void Main(string[] args) { int res = 0; int max = 10; int ll = 0; int l = 0; for (int i = 0; i < 5; i++) { ll = int.Parse(Console.ReadLine()); l = ll % 10; if (0 < l) { max = Math.Min(max, l); res += ll + (10 - l...
[["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 19...
8
119
9
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { public class Program { static void Main(string[] args) { int[] dishes = new int[5]; for (int i = 0; i < 5; i++) { dishes[i] = int.Parse(Console.ReadLine()); } int ans = 0; int min = 0;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { public class Program { static void Main(string[] args) { int[] dishes = new int[5]; for (int i = 0; i < 5; i++) { dishes[i] = int.Parse(Console.ReadLine()); } int ans = 0; int min = 0;...
[["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["...
8
173
12
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, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 3...
8
406
17
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var line = new List<int>(); for (int i = 0; i < 5; i++) { line.Add(int.Parse(Console.ReadLine())); } v...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var line = new List<int>(); for (int i = 0; i < 5; i++) { line.Add(int.Parse(Console.ReadLine())); } i...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214...
8
263
36
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using static System.Math; class Program { public static void Main(string[] args) { var v = Enumerable.Range(0, 5) .Select(_ => int.Parse(Console.ReadLine())) .Select(x => new { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using static System.Math; class Program { public static void Main(string[] args) { var v = Enumerable.Range(0, 5) .Select(_ => int.Parse(Console.ReadLine())) .Select(x => new { ...
[["+", 0, 41, 75, 23, 0, 16, 12, 16, 17, 109], ["+", 0, 41, 75, 23, 0, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 210, 12, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 218,...
8
196
11
using System; using System.Linq; public class Program { public static void Main() { int[] dishes = new int[5]; for (var i = 0; i < 5; i++) { dishes[i] = int.Parse(Console.ReadLine()); } var min = 0; for (var i = 1; i < 5; i++) { if (dishes[min] % 11 > dishes[i] % 11) { min...
using System; using System.Linq; public class Program { public static void Main() { int[] dishes = new int[5]; for (var i = 0; i < 5; i++) { dishes[i] = int.Parse(Console.ReadLine()); } var min = 0; for (var i = 1; i < 5; i++) { if (dishes[i] % 10 != 0 && dishes[min] % 10 > dishe...
[["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 31, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, ...
8
171
31
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp6 { class Program { static void Main(string[] args) { int[] a = new int[5]; int dup = 0; int sum = 0; for (int i = 0; i < 5; ++i) { a[i] = int.Parse(Console....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp6 { class Program { static void Main(string[] args) { int[] a = new int[5]; int dup = 0; int sum = 0; for (int i = 0; i < 5; ++i) { a[i] = int.Parse(Console....
[["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 7, 8...
8
260
10
using System; using System.Diagnostics; using System.Collections.Generic; using System.Linq; class Program { static void Main() { List<int> wait = new List<int>(); int ans = 0; for (int i = 0; i < 5; i++) { int cin = int.Parse(Console.ReadLine()); ans += cin; if (cin % 10 != 0) { ...
using System; using System.Diagnostics; using System.Collections.Generic; using System.Linq; class Program { static void Main() { List<int> wait = new List<int>(); int ans = 0; for (int i = 0; i < 5; i++) { int cin = int.Parse(Console.ReadLine()); ans += cin; if (cin % 10 != 0) { ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12...
8
126
16
using System.Linq; using static System.Math; using System; public class Hello { public static void Main() { var a = new int[5]; var b = new int[5]; for (int i = 0; i < 5; i++) { a[i] = int.Parse(Console.ReadLine().Trim()); b[i] = a[i] % 10; } var t = 100; for (int i = 0; i < 5; i+...
using System.Linq; using System; public class Hello { public static void Main() { var a = new int[5]; var b = new int[5]; for (int i = 0; i < 5; i++) { a[i] = int.Parse(Console.ReadLine().Trim()); b[i] = a[i] % 10; } var t = 100; var ti = 0; for (int i = 0; i < 5; i++) { ...
[["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 115], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 8, 196, 0, 197, 0, 198, ...
8
222
34
namespace ABC123_B { using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var _list = new List<int>(); for (int i = 0; i < 5; i++) { _list.Add(ReadInput()); } var nlist = _list.Where(x => x % 10 != 0).To...
namespace ABC123_B { using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var _list = new List<int>(); for (int i = 0; i < 5; i++) { _list.Add(ReadInput()); } var nodivd = _list.Where(x => x % 10 != 0).T...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 0, 28, 0, 218, 8, 16, 31, 16, 31, 22], ["+", 0, 28, 0, 218, 8, 16, 31, 16, 31, 22], ["-", 0, 28, 0, 218, 8, 16, 12, 16, 31,...
8
219
16
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main() { //入力 // int n = 100; int[] input = new int[5]; for (int a = 0; a < 5; a++) { input[a] = int.Parse(Console.ReadLine()); } // int[]...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main() { //入力 // int n = 100; int[] input = new int[5]; for (int a = 0; a < 5; a++) { input[a] = int.Parse(Console.ReadLine()); } // 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], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22],...
8
231
16
using System; namespace AtCoderABC123B { class Program { static void Main(string[] args) { double[] dishTime = new double[5]; for (int i = 0; i < 5; i++) { string[] line = Console.ReadLine().Split(' '); dishTime[i] = double.Parse(line[0]); } double sum = 0; double min = 123; forea...
using System; namespace AtCoderABC123B { class Program { static void Main(string[] args) { double[] dishTime = new double[5]; for (int i = 0; i < 5; i++) { string[] line = Console.ReadLine().Split(' '); dishTime[i] = double.Parse(line[0]); } double sum = 0; double max = 0; foreach...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 210, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 210, 8, 196, 0, 57, 15, 16, ...
8
164
12
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { List<int> list = new List<int>(); List<int> list2 = new List<int>(); for (var i = 0; i < 5; i++) { var a = int.Parse(Console.ReadLine()); if (a % 10 == 0) { list.Add(a)...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { List<int> list = new List<int>(); List<int> list2 = new List<int>(); for (var i = 0; i < 5; i++) { var a = int.Parse(Console.ReadLine()); if (a % 10 == 0) { list.Add(a)...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12...
8
215
10
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AtCoder { class Program { static void Main() { //ここから List<int> vs = new List<int>(); for (int i = 0; i < 5; i++) { vs.Add(IO.ReadLineToInt()); } ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AtCoder { class Program { static void Main() { //ここから List<int> vs = new List<int>(); for (int i = 0; i < 5; i++) { vs.Add(IO.ReadLineToInt()); } ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12...
8
698
10
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp { class Program { static int N = 0; static void Main(string[] args) { var a = new List<int>(); for (int i = 0; i < 5; i++) { a.Add(int.Parse(Console.ReadLine())); } var sum = 0; for (int i = 0; i < a...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp { class Program { static int N = 0; static void Main(string[] args) { var a = new List<int>(); for (int i = 0; i < 5; i++) { a.Add(int.Parse(Console.ReadLine())); } var sum = 0; for (int i = 0; i < a...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 33], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25]...
8
247
9
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace B { class Program { static void Main(string[] args) { int[] cookingTimes = new int[5]; for (int i = 0; i < cookingTimes.Length; i++) { cookingTimes[i] = RInt(); } int min = int.MaxValue; foreac...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace B { class Program { static void Main(string[] args) { int[] cookingTimes = new int[5]; for (int i = 0; i < cookingTimes.Length; i++) { cookingTimes[i] = RInt(); } int min = int.MaxValue; foreac...
[["-", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["-", 0, 210, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+...
8
620
22
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 long GCD(long x, long y) { if (y == 0) return x; return GCD...
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 long GCD(long x, long y) { if (y == 0) return x; return GCD...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24...
8
456
39
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace AtCoderABC123 { class Program { public static void Main(string[] args) { int[] p = new int[5]; p[0] = int.Parse(Console.ReadLine()); p[1] = int.Parse(Console.ReadLine()); p[2] = int.Parse(Console.Re...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace AtCoderABC123 { class Program { public static void Main(string[] args) { int[] p = new int[5]; p[0] = int.Parse(Console.ReadLine()); p[1] = int.Parse(Console.ReadLine()); p[2] = int.Parse(Console.Re...
[["+", 0, 1, 0, 11, 12, 41, 15, 23, 0, 24], ["+", 0, 11, 12, 41, 15, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 41, 15, 23, 0, 16, 17, 60], ["+", 12, 41, 15, 23, 0, 16, 12, 241, 0, 33], ["+", 12, 41, 15, 23, 0, 16, 12, 241, 0, 203], ["+", 0, 1, 0, 11, 12, 41, 15, 23, 0, 25], ["+", 8, 196, 0, 1, 0, 11, 12, 41, 0, 101], ["+", ...
8
249
9
using System; namespace Atcoder { class ABC122_A { static void Main(string[] args) { int b = int.Parse(Console.ReadLine()); switch (b) { case 'A': Console.Write('T'); break; case 'T': Console.Write('A'); break; case 'C': Console.Write('G'); break; case 'G':...
using System; namespace Atcoder { class ABC122_A { static void Main(string[] args) { string str = Console.ReadLine(); char b = str[0]; switch (b) { case 'A': Console.Write('T'); break; case 'T': Console.Write('A'); break; case 'C': Console.Write('G'); break...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213,...
8
106
17
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0034 { class Program { static void Main(string[] args) { var str = Console.ReadLine(); int Cnt = 0; int result = 0; for (int i = 0; i < str.Length; i++) { if (str....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atc_0034 { class Program { static void Main(string[] args) { var str = Console.ReadLine(); int Cnt = 0; int result = 0; for (int i = 0; i < str.Length; i++) { if (str....
[["+", 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, 19], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45],...
8
168
12
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static AtCoderTemplate.MyLibrary; namespace AtCoderTemplate { class Program { static void Main(string[] args) { string S = Console.ReadLine(...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static AtCoderTemplate.MyLibrary; namespace AtCoderTemplate { class Program { static void Main(string[] args) { string S = Console.ReadLine(...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 205, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 141, 22], [...
8
203
19
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; class Program { static void Main(string[] args) { var s = Console.ReadLine().ToCharArray(); var mojis = new char[] { 'A', 'C', 'G', 'T' }; var ls = new List<int>(); var count = 0; for (var i = 0...
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; class Program { static void Main(string[] args) { var s = Console.ReadLine().ToCharArray(); var mojis = new List<char>() { 'A', 'C', 'G', 'T' }; var ls = new List<int>(); var count = 0; for (var...
[["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 18], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 70], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 73], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 47], ["+", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 230, ...
8
149
14
using System; class Program { static void Main(string[] args) { char[] s = Console.ReadLine().ToCharArray(); int count = 0; int max = 0; for (int i = 0; i < s.Length; i++) { if (s[i] == 'A' || s[i] == 'C' || s[i] == 'G' || s[i] == 'T') count++; else { if (count > max) ...
using System; class Program { static void Main(string[] args) { char[] s = Console.ReadLine().ToCharArray(); int count = 0; int max = 0; for (int i = 0; i < s.Length; i++) { if (s[i] == 'A' || s[i] == 'C' || s[i] == 'G' || s[i] == 'T') count++; else { if (count > max) ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], [...
8
126
10
using System; using System.Linq; namespace atcoder { class Program { static void Main(string[] args) { var S = Console.ReadLine(); Console.WriteLine(ACGT(S)); } static int ACGT(string S) { var include = new[] { 'A', 'C', 'G', 'T' }; var len = 0; var count = 0; for (var i = 0; i < S.Lengt...
using System; using System.Linq; namespace atcoder { class Program { static void Main(string[] args) { var S = Console.ReadLine(); Console.WriteLine(ACGT(S)); } static int ACGT(string S) { var include = new[] { 'A', 'C', 'G', 'T' }; var len = 0; var count = 0; for (var i = 0; i < S.Lengt...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0...
8
145
11
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.B { static class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = ...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.B { static class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = ...
[["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 46], ["-", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["-", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["-", 75, ...
8
553
10
using System; using System.Collections.Generic; namespace cswork { class Program { public Program() {} Scanner cin; void Omame() { cin = new Scanner(); string s = cin.next(); int ans = 0; int tmp = 0; for (int i = 0; i < s.Length; i++) { string ss = s[i].ToString(); if (ss.E...
using System; using System.Collections.Generic; namespace cswork { class Program { public Program() {} Scanner cin; void Omame() { cin = new Scanner(); string s = cin.next(); int ans = 0; int tmp = 0; for (int i = 0; i < s.Length; i++) { string ss = s[i].ToString(); if (ss.E...
[["+", 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, 18], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45],...
8
342
12
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var max = 0; for (var i = 0; i < s.Length; i++) { for (var j = i; j < s.Length; j++) { if (s[j] != 'A' && ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var max = 0; for (var i = 0; i < s.Length; i++) { var isAcgt = true; for (var j = i; j < s.Length; j++) { ...
[["+", 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, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32]...
8
151
30
using System; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { string str = Console.ReadLine(); int temp = 0; int max = 0; for (int i = 0; i < str.Length; i++) { if (str[i] == 'A' || str[i] == 'G' || str[i] == 'C' || str[i] == 'T') { temp++; ...
using System; using System.Linq; namespace Practice { class Program { static void Main(string[] args) { string str = Console.ReadLine(); int temp = 0; int max = 0; for (int i = 0; i < str.Length; i++) { if (str[i] == 'A' || str[i] == 'G' || str[i] == 'C' || str[i] == 'T') { temp++; ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], [...
8
131
10
using System; using System.Collections.Generic; using System.Linq; public static class Program { public static void Main(string[] args) { var s = Console.ReadLine().Select(x => x.ToString()).ToArray(); string[] vals = { "A", "C", "G", "T" }; var result = 0; var cnt = 0; for (int i = 0; i < s.Leng...
using System; using System.Collections.Generic; using System.Linq; public static class Program { public static void Main(string[] args) { var s = Console.ReadLine().Select(x => x.ToString()).ToArray(); string[] vals = { "A", "C", "G", "T" }; var result = 0; var cnt = 0; for (int i = 0; i < s.Leng...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 41, 15, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 41, 15, 16, 17, 47], ["+", 0, 1, 0, 11, 12, 41, 15, 16, 12, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 41, 0, 101], ["+", 8, 196, 0, 1, 0, 11, 12, 41, 64, 22], ["+", 8, 196...
8
147
10
using System; using System.Collections.Generic; using System.Linq; namespace kyoupuro { class MainClass { public static void Main() { MainClass mainClass = new MainClass(); mainClass.Start(); } public void Start() { var line = Console.ReadLine(); var tmp = new Char[4] { 'A', 'T', 'G', 'C' }; ...
using System; using System.Collections.Generic; using System.Linq; namespace kyoupuro { class MainClass { public static void Main() { MainClass mainClass = new MainClass(); mainClass.Start(); } public void Start() { var line = Console.ReadLine(); var tmp = new Char[4] { 'A', 'T', 'G', 'C' }; ...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0...
8
298
11
using System; using System.Collections.Generic; using System.Linq; namespace B___ATCoder { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var a = 0; var b = new List<int> { 0 }; for (var i = 0; i < s.Length; i++) { if (s[i] == 'A' || s[i] == 'C' || s[i] == 'G' || ...
using System; using System.Collections.Generic; using System.Linq; namespace B___ATCoder { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var a = 0; var b = new List<int> { 0 }; for (var i = 0; i < s.Length; i++) { if (s[i] == 'A' || s[i] == 'C' || s[i] == 'G' || ...
[["+", 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, 60], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 205, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 141...
8
154
21
using System; using System.Linq; using System.Collections.Generic; using System.IO; class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } public static void Main() { var sw ...
using System; using System.Linq; using System.Collections.Generic; using System.IO; class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } public static void Main() { var sw ...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
228
7
using System; class Program { static void Main(string[] args) { string S = Console.ReadLine(); int maxLength = 0; int currLength = 0; for (int i = 0; i < S.Length; i++) { if ((S[i] == 'A') || (S[i] == 'C') || (S[i] == 'G') || (S[i] == 'T')) { currLength++; } else { maxLengt...
using System; class Program { static void Main(string[] args) { string S = Console.ReadLine(); int maxLength = 0; int currLength = 0; for (int i = 0; i < S.Length; i++) { if ((S[i] == 'A') || (S[i] == 'C') || (S[i] == 'G') || (S[i] == 'T')) { currLength++; } else { maxLengt...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 41, 15, 23, 0, 24], ["+", 0, 11, 12, 41, 15, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 41, 15, 23, 0, 16, 17, 18], ["+", 0, 11, 12, 41, 15, 23, 0, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 41, 15, 23, 0, 25], ["+", 8, 19...
8
132
12
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var S = Console.ReadLine().Select(x => x.ToString()).ToArray(); List<int> list = new List<int>(); int count = 0; foreach (string s in S) { if (s == "A" |...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var S = Console.ReadLine().Select(x => x.ToString()).ToArray(); List<int> list = new List<int>(); int count = 0; foreach (string s in S) { if (s == "A" |...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
171
7
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp2 { using static System.Console; using static System.Math; class Program { static void Main(string[] args) { S = ReadLine(); Solve(); } static string S; static void Solve() { var longest = 0; var current =...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp2 { using static System.Console; using static System.Math; class Program { static void Main(string[] args) { S = ReadLine(); Solve(); } static string S; static void Solve() { var longest = 0; var current =...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], [...
8
127
10
using System; namespace abc122_b { class Program { static void Main(string[] args) { int count = 0; int max = 0; string array = Console.ReadLine(); for (int i = 0; i < array.Length; i++) { char ch = array[i]; Console.WriteLine(ch); if (ch == 'A' || ch == 'C' || ch == 'G' || ch == ...
using System; namespace abc122_b { class Program { static void Main(string[] args) { int count = 0; int max = 0; string array = Console.ReadLine(); for (int i = 0; i < array.Length; i++) { char ch = array[i]; if (ch == 'A' || ch == 'C' || ch == 'G' || ch == 'T') { count += 1; ...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]]
8
144
7
using System; using System.Linq; public class Program { public static void Main(string[] args) { string input = Console.ReadLine(); int max = 0; int stock = 0; foreach (char i in input) if (i == 'A' || i == 'C' || i == 'T' || i == 'G') { stock++; } else { if (max < stock)...
using System; using System.Linq; public class Program { public static void Main(string[] args) { string input = Console.ReadLine(); int max = 0; int stock = 0; foreach (char i in input) { if (i == 'A' || i == 'C' || i == 'T' || i == 'G') { stock++; } else { if (max < stoc...
[["+", 0, 195, 8, 196, 0, 210, 8, 196, 0, 45], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 0, 210, 8, 196, 0, 57, 75, 196, 0, 46], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 24], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 18], ...
8
108
14
using System; using System.Linq; using System.Collections.Generic; using System.Text; namespace Program { public class ABC122B { static public void Main(string[] args) { var S = NextString; var ans = 0; var tmp = 0; var ACGT = "ACGT"; ...
using System; using System.Linq; using System.Collections.Generic; using System.Text; namespace Program { public class ABC122B { static public void Main(string[] args) { var S = NextString; var ans = 0; var tmp = 0; var ACGT = "ACGT"; ...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
1,813
7
using System; using System.Text.RegularExpressions; using System.Linq; class abc122_B { static void Main(string[] args) { var input = Console.ReadLine(); var regex = new Regex(@"([ATCG]+)", RegexOptions.Compiled); var matches = regex.Match(input); var result = matches.Captures.Cast<Capture>() ...
using System; using System.Text.RegularExpressions; using System.Linq; class abc122_B { static void Main(string[] args) { var input = Console.ReadLine(); var regex = new Regex(@"([ATCG]+)", RegexOptions.Compiled); var matches = regex.Matches(input); var result = matches.Cast<Match>() ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 63, 214, 205, 213, 63, 214, 141, 236, 141, 22], ["+", 205, 213, 63, 214, 141, 236, 237, 238, 0, 18], ["+", 205, 213, 63, 214, 141, 236, 237, 238, 0, 22], ["+", 20...
8
101
16
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static ABC122.Util; namespace ABC122 { class Program { static void Main(string[] args) { // DoubleHelix(); // 5min AtCoder(); } static void AtCoder() { string agct = "AGCT"; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static ABC122.Util; namespace ABC122 { class Program { static void Main(string[] args) { // DoubleHelix(); // 5min AtCoder(); } static void AtCoder() { string agct = "AGCT"; ...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0...
8
1,123
11
using System; using System.Collections.Generic; using System.Linq; namespace AtC { class Program { static void Main(string[] args) { var S = ReadString(); var list = new List<int>(); int count = 0; var acgt = new[] { 'A', 'C', 'G', 'T' }; foreach (var c in S) { if (acgt.Contains(c)) ...
using System; using System.Collections.Generic; using System.Linq; namespace AtC { class Program { static void Main(string[] args) { var S = ReadString(); var list = new List<int>(); int count = 0; var acgt = new char[] { 'A', 'C', 'G', 'T' }; foreach (var c in S) { if (acgt.Contains(c)) ...
[["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+",...
8
282
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var sc = new Scanner(); string s = sc.NextString(); string acgt = "ACGT"; int max = 0; int head = 0; int count = 0; while ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var sc = new Scanner(); string s = sc.NextString(); string acgt = "ACGT"; int max = 0; int head = 0; int count = 0; while ...
[["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
260
7
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var S = Console.ReadLine(); var hash = new HashSet<char> { 'A', 'C', 'G', 'T' }; int max = 0; for (int i = 0; i < S.Length; i++) { int len = 0; for (int j = i; j < S.Length...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var S = Console.ReadLine(); var hash = new HashSet<char> { 'A', 'C', 'G', 'T' }; int max = 0; for (int i = 0; i < S.Length; i++) { int len = 0; for (int j = i; j < S.Length...
[["+", 0, 7, 8, 196, 0, 57, 15, 241, 0, 111], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["-", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["-", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["-", 0, ...
8
153
12
using System; class AtCoder { static void Main(string[] args) { var input = Console.ReadLine().ToUpper(); var atcg = new char[] { 'A', 'T', 'C', 'G' }; int count = 0; int max = 0; foreach (var chr in input) { switch (chr) { case 'A': case 'T': case 'C': case 'G': ...
using System; class AtCoder { static void Main(string[] args) { var input = Console.ReadLine().ToUpper(); var atcg = new char[] { 'A', 'T', 'C', 'G' }; int count = 0; int max = 0; foreach (var chr in input) { switch (chr) { case 'A': case 'T': case 'C': case 'G': ...
[["-", 0, 99, 8, 254, 0, 239, 0, 93, 0, 94], ["-", 0, 99, 8, 254, 0, 239, 0, 93, 0, 35], ["-", 0, 99, 8, 254, 0, 239, 0, 265, 0, 162], ["-", 0, 99, 8, 254, 0, 239, 0, 265, 0, 102], ["+", 0, 99, 8, 254, 0, 239, 0, 1, 0, 35], ["+", 0, 99, 8, 254, 0, 239, 0, 93, 0, 94], ["+", 0, 99, 8, 254, 0, 239, 0, 265, 0, 162], ["+", ...
8
135
8
using System; using System.Collections.Generic; namespace ConsoleApplication1 { internal class Program { public static void Main(string[] args) { HashSet<string> strSet = new HashSet<string>() { "A", "C", "G", "T" }; var input = Console.ReadLine().ToCharArray(); int count = 0; for (int i = 0; i < in...
using System; using System.Collections.Generic; namespace ConsoleApplication1 { internal class Program { public static void Main(string[] args) { HashSet<string> strSet = new HashSet<string>() { "A", "C", "G", "T" }; var input = Console.ReadLine().ToCharArray(); int count = 0; for (int i = 0; i < in...
[["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 64, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75,...
8
161
9
using System; using System.Collections.Generic; using System.Linq; using console = System.Console; namespace AtCoderTemplate { public class App { public static void Main(string[] args) { string s = "0"; Console.WriteLine(console.ReadLine() .ToCharArray() .Se...
using System; using System.Collections.Generic; using System.Linq; using console = System.Console; namespace AtCoderTemplate { public class App { public static void Main(string[] args) { string s = "0"; Console.WriteLine( console.ReadLine() .ToCharArray() .Select(c => "ACGT".Co...
[["-", 3, 4, 0, 28, 0, 218, 8, 196, 0, 45], ["-", 0, 28, 0, 218, 8, 196, 0, 1, 0, 35], ["-", 0, 28, 0, 218, 8, 196, 0, 37, 0, 38], ["-", 0, 28, 0, 218, 8, 196, 0, 37, 0, 22], ["-", 0, 28, 0, 218, 8, 196, 0, 37, 0, 35], ["-", 3, 4, 0, 28, 0, 218, 8, 196, 0, 46], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 2...
8
119
12
using System; using System.Collections.Generic; using System.Linq; using console = System.Console; namespace AtCoderTemplate { public class App { public static void Main(string[] args) { string s = "0"; Console.WriteLine(console.ReadLine() .ToCharArray() .Se...
using System; using System.Collections.Generic; using System.Linq; using console = System.Console; namespace AtCoderTemplate { public class App { public static void Main(string[] args) { string s = "0"; Console.WriteLine(console.ReadLine() .ToCharArray() .Se...
[["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 0, 131], ["+", 0, 28, 0, 218, 8, 213, 6...
8
119
12
using System; using System.Collections; using System.Collections.Generic; using System.Linq; class Myon { static void Main(string[] args) { var myon = new Myon(); } public Myon() { int[] time = new int[5]; for (int i = 0; i < 5; i++) { time[i] = int.Parse(Console.ReadLine()); } int[] amari ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; class Myon { static void Main(string[] args) { var myon = new Myon(); } public Myon() { int[] time = new int[5]; for (int i = 0; i < 5; i++) { time[i] = int.Parse(Console.ReadLine()); } int[] amari ...
[["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 0...
8
200
21
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace kyoupuro { class MainClass { public static void Main() { MainClass mainClass = new MainClass(); mainClass.Start(); } public void Start() { int sum = 0, mod = 100; for (int i = 0; i ...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace kyoupuro { class MainClass { public static void Main() { MainClass mainClass = new MainClass(); mainClass.Start(); } public void Start() { int sum = 0, mod = 100; for (int i = 0; i ...
[["-", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["-", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["-", 8, 196, 0, 57, 64, 1, 0, 11, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22]...
8
258
14
using System; using System.Collections; using System.Collections.Generic; class Program { static int Solve(List<int> p) { if (p.Count == 1) return p[0]; else { int m = int.MaxValue; for (int i = 0; i < p.Count; i++) { List<int> f = new List<int>(); for (int j = 0; j < p.Coun...
using System; using System.Collections; using System.Collections.Generic; class Program { static int Solve(List<int> p) { if (p.Count == 1) return p[0]; else { int m = int.MaxValue; for (int i = 0; i < p.Count; i++) { List<int> f = new List<int>(); for (int j = 0; j < p.Coun...
[["+", 75, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 75, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 31, 16,...
8
263
31
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { #region library static int n = 0; static int r = 0; static int c = 0; static string s = ""; static string[] ss; static long sum = 0; static long cnt = 0; static long max = -1; static long min = 2147483...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { #region library static int n = 0; static int r = 0; static int c = 0; static string s = ""; static string[] ss; static long sum = 0; static long cnt = 0; static long max = -1; static long min = 2147483...
[["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 1, 0, 11, 12, 16, 12, 204, 205, 22], ["+", 0, 11, 12, 16, 12, 204, 206, 207, 0, 70], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 12, 16, 12, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0,...
8
1,484
22
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...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 15, 16, 31, 16, 12, 213, 63, 214, 205, 22], ["+", 15, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 15, 16, 31, 16, 12, 213, 63, 2...
8
324
28