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 agc030_a { class Program { static void Main(string[] args) { var text = Console.ReadLine(); var list = text.Split(' ').ToList(); var a = int.Parse(list[0]); var b = int.Parse(list[1]); if (b <= 5) { Console.WriteLine("0"); } else if (b >= 6 &...
using System; using System.Linq; namespace agc030_a { class Program { static void Main(string[] args) { var text = Console.ReadLine(); var list = text.Split(' ').ToList(); var b = int.Parse(list[0]); var a = int.Parse(list[1]); if (b <= 5) { Console.WriteLine("0"); } else if (b >= 6 &...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22]]
8
133
4
using System; using System.Text; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int r = int.Parse(input[0]); int D = int.Parse(input[1]); int xo = int.Parse(input[2]); int[] xn = new int[11]; xn[0] = xo; for (int i = 0; i < 11; i++) { ...
using System; using System.Text; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int r = int.Parse(input[0]); int D = int.Parse(input[1]); int xo = int.Parse(input[2]); int[] xn = new int[11]; xn[0] = xo; for (int i = 0; i < 10; i++) { ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]]
8
156
4
using System; using System.Text; using System.Collections.Generic; using System.Collections; using static System.Math; using System.Linq; using static System.Array; namespace ConsoleApp2 { class Program { static void Main(string[] args) { // var N = long.Parse(Console.ReadLine()); Solve(); } static strin...
using System; using System.Text; using System.Collections.Generic; using System.Collections; using static System.Math; using System.Linq; using static System.Array; namespace ConsoleApp2 { class Program { static void Main(string[] args) { // var N = long.Parse(Console.ReadLine()); Solve(); } static strin...
[["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22]]
8
535
2
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.InteropServices; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using stat...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.InteropServices; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using stat...
[["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 37, 0, 38]]
8
3,443
6
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template; using Pi = Pair<int, i...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template; using Pi = Pair<int, i...
[["-", 12, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 31, 22]]
8
2,287
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Collections; class Program { static void Main() { int[] hwn = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Collections; class Program { static void Main() { int[] hwn = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18]]
8
775
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.AGC_033 { class B { static void Main(string[] args) { Method(args); } static void Method(string[] args) { int[] hwn = ReadInts(); int h = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.AGC_033 { class B { static void Main(string[] args) { Method(args); } static void Method(string[] args) { int[] hwn = ReadInts(); int h = ...
[["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203]]
8
604
8
using System; using System.Collections.Generic; using System.Linq; namespace Hayadoki20200309A { class Input { /// <summary> /// 1行の入力を取得する /// </summary> /// <returns>文字列</returns> public void String(out string s) { s = Console.ReadLine(); } /// <summary> /// 複数行の入力を取得 /// </summary> /// <returns>文...
using System; using System.Collections.Generic; using System.Linq; namespace Hayadoki20200309A { class Input { /// <summary> /// 1行の入力を取得する /// </summary> /// <returns>文字列</returns> public void String(out string s) { s = Console.ReadLine(); } /// <summary> /// 複数行の入力を取得 /// </summary> /// <returns>文...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
908
2
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int T = int.Parse(input[2]); int count = 0; for (int time = 1; time < T; time++) { if (time % A == 0) { count...
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int T = int.Parse(input[2]); int count = 0; for (int time = 1; time <= T; time++) { if (time % A == 0) { coun...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
117
2
using System; using System.Linq; public class Test { public static void Main() { // your code goes here var c = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); int a = c[0]; int b = c[1]; int t = c[2]; int counter = 0; for (int i = 1; i < t; i++) { if (i % a == 0) ...
using System; using System.Linq; public class Test { public static void Main() { // your code goes here var c = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); int a = c[0]; int b = c[1]; int t = c[2]; int counter = 0; for (int i = 1; i <= t; i++) { if (i % a == 0)...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
119
2
using System; class Program { static void Main(string[] args) { var inputValues = Console.ReadLine().Split(' '); var A = int.Parse(inputValues[0]); var B = int.Parse(inputValues[1]); var T = int.Parse(inputValues[2]); var biscuit = 0; var sec = 1; while (A * sec < T) { biscuit += B...
using System; class Program { static void Main(string[] args) { var inputValues = Console.ReadLine().Split(' '); var A = int.Parse(inputValues[0]); var B = int.Parse(inputValues[1]); var T = int.Parse(inputValues[2]); var biscuit = 0; var sec = 1; while (A * sec <= T) { biscuit += ...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19]]
8
107
2
using System; using System.Threading.Tasks; static class Program { static void Main() { string[] inputs = Console.ReadLine().Split(' '); int A = int.Parse(inputs[0]); int B = int.Parse(inputs[1]); int T = int.Parse(inputs[2]); if (A > T) Console.WriteLine("0"); int sum = 0; for (int...
using System; using System.Threading.Tasks; static class Program { static void Main() { string[] inputs = Console.ReadLine().Split(' '); int A = int.Parse(inputs[0]); int B = int.Parse(inputs[1]); int T = int.Parse(inputs[2]); if (A > T) Console.WriteLine("0"); else { int sum = 0;...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 46]]
8
134
3
using System; class Program { public static void Main(string[] args) { string[] sta = Console.ReadLine().Split(' '); int a = int.Parse(sta[0]); int b = int.Parse(sta[1]); int c = int.Parse(sta[2]); double d = c + 1.5; int e = (int)d / a; int ans = e * b; if (a > c) { ans = 0;...
using System; class Program { public static void Main(string[] args) { string[] sta = Console.ReadLine().Split(' '); int a = int.Parse(sta[0]); int b = int.Parse(sta[1]); int c = int.Parse(sta[2]); double d = c + 0.5; int e = (int)d / a; int ans = e * b; if (a > c) { ans = 0;...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 250], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 250]]
8
119
2
using System; namespace AtCoder { class Program { static void Main(string[] args) { string[] abt = Console.ReadLine().Split(); var a = int.Parse(abt[0]); var b = int.Parse(abt[1]); var t = int.Parse(abt[2]); var ret = 0; for (var i = a; i < t; i += a) ret += b; Console.WriteLine(r...
using System; namespace AtCoder { class Program { static void Main(string[] args) { string[] abt = Console.ReadLine().Split(); var a = int.Parse(abt[0]); var b = int.Parse(abt[1]); var t = int.Parse(abt[2]); var ret = 0; for (var i = a; i <= t; i += a) ret += b; Console.WriteLine(...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
107
2
using System; using System.Collections.Generic; using System.Linq; namespace AtC { class Program { static void Main(string[] args) { var abt = ReadIntArray(); int A = abt[0], B = abt[1], T = abt[2]; Out((int)((T + .5) / A * B)); } static int[] ReadIntArray() { return Console.ReadLine().Split(' '...
using System; using System.Collections.Generic; using System.Linq; namespace AtC { class Program { static void Main(string[] args) { var abt = ReadIntArray(); int A = abt[0], B = abt[1], T = abt[2]; Out((int)((int)((T + .5) / A) * B)); } static int[] ReadIntArray() { return Console.ReadLine().Sp...
[["+", 0, 74, 51, 23, 0, 16, 31, 74, 39, 199], ["+", 0, 74, 51, 23, 0, 16, 31, 74, 0, 25], ["+", 51, 23, 0, 16, 31, 74, 51, 23, 0, 24], ["+", 31, 74, 51, 23, 0, 16, 31, 23, 0, 24], ["+", 51, 23, 0, 16, 31, 74, 51, 23, 0, 25]]
8
272
5
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderCore { public class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] vs = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int[] cs = Console.ReadL...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoderCore { public class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] vs = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int[] cs = Console.ReadL...
[["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 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, 22], ["+", 0, 11, 12, 16, 12, 204, 206, 207, 0, 73]]
8
168
5
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { // 整数の入力 int a = int.Parse(Console.ReadLine()); // スペース区切りの整数の入力 string[] inputv = Console.ReadLine().Split(' '); string[] inputc = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { // 整数の入力 int a = int.Parse(Console.ReadLine()); // スペース区切りの整数の入力 string[] inputv = Console.ReadLine().Split(' '); string[] inputc = ...
[["-", 0, 198, 0, 200, 0, 289, 0, 289, 141, 22], ["+", 0, 198, 0, 200, 0, 289, 0, 289, 141, 22]]
8
173
2
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace atcoder { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int res = 0; int n = int.Parse(input[0]); int k = int.Parse(input[1]); for (int i = k;...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace atcoder { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int res = 0; int n = int.Parse(input[0]); int k = int.Parse(input[1]); for (int i = k;...
[["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]]
8
113
1
namespace diverta2019.A { using System; using System.Collections.Generic; using System.Linq; using static System.Console; public class Program { public static void Main(string[] args) { var l = ReadLineAsInts().ToList(); var n = l[0]; var k = l[0]; WriteLine(Solve(n, k)); } ...
namespace diverta2019.A { using System; using System.Collections.Generic; using System.Linq; using static System.Console; public class Program { public static void Main(string[] args) { var l = ReadLineAsInts().ToList(); var n = l[0]; var k = l[1]; WriteLine(Solve(n, k)); } ...
[["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203]]
8
132
2
using System; using System.Collections.Generic; using System.Linq; public class Solution { public static void Main() { var vals = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var n = vals[0]; var k = vals[1]; Console.WriteLine(k - n + 1); } }
using System; using System.Collections.Generic; using System.Linq; public class Solution { public static void Main() { var vals = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var n = vals[0]; var k = vals[1]; Console.WriteLine(n - k + 1); } }
[["-", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22]]
8
82
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Diverta2019_A { class Program { static void Main(string[] args) { string[] strs = Console.ReadLine().Split(); int n = int.Parse(strs[0]); int k = int.Parse(strs[0]); Console....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Diverta2019_A { class Program { static void Main(string[] args) { string[] strs = Console.ReadLine().Split(); int n = int.Parse(strs[0]); int k = int.Parse(strs[1]); Console....
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
102
2
using System; using System.Linq; namespace diverta2019_b { class Program { static void Main(string[] args) { var RGBN = (Console.ReadLine().Split(' ').Select(x => int.Parse(x))).ToList(); var R = RGBN[0]; var G = RGBN[1]; var B = RGBN[2]; var N = RGBN[3]; var r = 0; for (int i = ...
using System; using System.Linq; namespace diverta2019_b { class Program { static void Main(string[] args) { var RGBN = (Console.ReadLine().Split(' ').Select(x => int.Parse(x))).ToList(); var R = RGBN[0]; var G = RGBN[1]; var B = RGBN[2]; var N = RGBN[3]; var r = 0; for (int i = ...
[["+", 31, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 31, 16, 31, 23, 0, 16, 12, 23, 0, 25]]
8
167
2
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { //出力の都度更新をやめる var sw = new StreamWriter(Console.OpenStandardOutput()) ...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { //出力の都度更新をやめる var sw = new StreamWriter(Console.OpenStandardOutput()) ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
610
4
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 // var s = Console.ReadLine(); long n = long.Parse(Console.ReadLine()); string[] s = new string[n]; for (long i = 0; i < n; i++) ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 // var s = Console.ReadLine(); long n = long.Parse(Console.ReadLine()); string[] s = new string[n]; for (long i = 0; i < n; i++) ...
[["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22]]
8
307
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { // 方針 // int n = rint(); int a = 0; int b = 0...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { // 方針 // int n = rint(); int a = 0; int b = 0...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
1,473
4
using System; using System.Collections.Generic; // list用 using System.Text; // StringBuilder用 using System.Collections; using System.Linq; class Program { static List<int> s = new List<int>(); static List<string> a = new List<string>(); static decimal result; static StringBuilder sb = new StringB...
using System; using System.Collections.Generic; // list用 using System.Text; // StringBuilder用 using System.Collections; using System.Linq; class Program { static List<int> s = new List<int>(); static List<string> a = new List<string>(); static decimal result; static StringBuilder sb = new StringB...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
565
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { cin = new Scanner(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; void calc() { cin = new Scanner(); ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
703
4
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { int N = int.Parse(ReadLine()); int BほにゃA = 0; int BほにゃnotA = 0; int notBほにゃA = ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; namespace AtCodeeeer { class AtCOOOOOOOOOOOder { static void Main(string[] args) { int N = int.Parse(ReadLine()); int BほにゃA = 0; int BほにゃnotA = 0; int notBほにゃA = ...
[["-", 0, 28, 0, 16, 31, 16, 12, 213, 63, 22], ["-", 0, 16, 31, 16, 12, 213, 3, 4, 0, 24], ["-", 31, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 16, 31, 16, 12, 213, 3, 4, 0, 21], ["-", 0, 16, 31, 16, 12, 213, 3, 4, 0, 25], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22]]
8
285
7
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace diverta_B { class Program { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); string[] s = new string[n]; var count = 0; var aback = 0; var bfront ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace diverta_B { class Program { static void Main(string[] args) { var n = long.Parse(Console.ReadLine()); string[] s = new string[n]; var count = 0; var aback = 0; var bfront ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 67], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
302
4
namespace inonoa { class Ino { static void Main() { int n = int.Parse(System.Console.ReadLine()); int ans = 0; int a = 0; int b = 0; int ab = 0; for (int i = 0; i < n; i++) { char[] si = System.Console.ReadLine().ToCharArray(); if (si[0] == 'B') { b++; } if (si[...
namespace inonoa { class Ino { static void Main() { int n = int.Parse(System.Console.ReadLine()); int ans = 0; int a = 0; int b = 0; int ab = 0; for (int i = 0; i < n; i++) { char[] si = System.Console.ReadLine().ToCharArray(); if (si[0] == 'B') { b++; } if (si[...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
264
4
using System; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main() { int count = int.Parse(ReadLine()); stringData[] stringDatas = new stringData[count]; for (int i = 0; i < count; i++) { ...
using System; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main() { int count = int.Parse(ReadLine()); stringData[] stringDatas = new stringData[count]; for (int i = 0; i < count; i++) { ...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
458
4
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using static System.Math; namespace _20190511 { class Program { public static void Main(string[] args) { using (var sc = new SetConsole()) { int count = 0; int n = GetString().ToInt(); ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using static System.Math; namespace _20190511 { class Program { public static void Main(string[] args) { using (var sc = new SetConsole()) { int count = 0; int n = GetString().ToInt(); ...
[["-", 0, 311, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 311, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 311, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 213, 3, 4...
8
773
8
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; static class Program { const int mod = (int)1e9 + 7; static void Main() { Sc sc = new Sc(); int n = sc.I; long ans = 0, a = 0, b = 0, c =...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; static class Program { const int mod = (int)1e9 + 7; static void Main() { Sc sc = new Sc(); int n = sc.I; long ans = 0, a = 0, b = 0, c =...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
739
4
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine()); var ss = new string[n]; for (int i = 0; i < ss.Length; ++i) ss[i] = Console.ReadLine(); int count = 0; int b = 0; int a = 0; in...
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine()); var ss = new string[n]; for (int i = 0; i < ss.Length; ++i) ss[i] = Console.ReadLine(); int count = 0; int b = 0; int a = 0; in...
[["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
285
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DIVERTA2019C { class Program { static int includeOf(string src, string target) { int count = 0; int index = src.IndexOf(target, 0); while (index >= 0) { count++; inde...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DIVERTA2019C { class Program { static int includeOf(string src, string target) { int count = 0; int index = src.IndexOf(target, 0); while (index >= 0) { count++; inde...
[["+", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98]]
8
303
4
using System; using System.Collections.Generic; // list用 using System.Text; // StringBuilder用 using System.Collections; using System.Linq; class Program { static List<int> s = new List<int>(); static List<string> a = new List<string>(); static decimal result; static StringBuilder sb = new StringB...
using System; using System.Collections.Generic; // list用 using System.Text; // StringBuilder用 using System.Collections; using System.Linq; class Program { static List<int> s = new List<int>(); static List<string> a = new List<string>(); static decimal result; static StringBuilder sb = new StringB...
[["-", 12, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 16, 12, 23, 0, 16, 17, 72]]
8
389
2
using System; using System.Collections.Generic; namespace diverta2019_D { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var L = new Dictionary<long, int>(); var sqrt = (int)Math.Ceiling(Math.Sqrt(N)); long ans = N - 1; for (long i = 2; i <= sqrt; i++) ...
using System; using System.Collections.Generic; namespace diverta2019_D { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var L = new Dictionary<long, int>(); var sqrt = (int)Math.Ceiling(Math.Sqrt(N)); long ans = 0; for (long i = 1; i <= sqrt; i++) { ...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
146
6
using System; class Diverta_2019_D { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long sum = 0; long sqrt = (int)Math.Sqrt(N); for (long i = 1; i < sqrt; i++) { long a = (N - i) / i; if ((N - i) % i == 0) sum += a; } Console.WriteLine(sum)...
using System; class Diverta_2019_D { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long sum = 0; long sqrt = (int)Math.Sqrt(N); for (long i = 1; i < sqrt + 1; i++) { long a = (N - i) / i; if ((N - i) % i == 0 && i < a) sum += a; } Console.Wr...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]]
8
100
6
using System; namespace ConsoleApp23 { class Program { static void Main(string[] args) { long x = long.Parse(Console.ReadLine()); long N = (long)System.Math.Sqrt(x); long Ans = 0; // Console.WriteLine(N); for (int n = 1; n <= N; ++n) { if (x % n == 0 && x / n != n) { Ans += x...
using System; namespace ConsoleApp23 { class Program { static void Main(string[] args) { long x = long.Parse(Console.ReadLine()); long N = (long)System.Math.Sqrt(x); long Ans = 0; // Console.WriteLine(N); for (int n = 1; n <= N; ++n) { if (x % n == 0 && x / n - 1 >= N + 1) { ...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["-", 8, 196, 0, 57, 15, 16, 12, 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, 20], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 17, 7...
8
105
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace D { class Program { static void Main(string[] args) { long n = RLong(); int rootN = (int)Math.Sqrt(n); long cnt = 0; for (int r = 1; r <= rootN + 1; r++) { long pq = n - r; long p = pq / r; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace D { class Program { static void Main(string[] args) { long n = RLong(); int rootN = (int)Math.Sqrt(n); long cnt = 0; for (int r = 1; r <= rootN + 1; r++) { long pq = n - r; long p = pq / r; ...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]]
8
429
4
using System; using System.Collections.Generic; using System.Linq; class Program { static long N; public static void Main(string[] args) { N = Input.NextLong(); long ans = 0; for (int i = 1; i < N; i++) { long a = (N - i) / i; if (i > a) break; long a_mod = (N - i) % i; ...
using System; using System.Collections.Generic; using System.Linq; class Program { static long N; public static void Main(string[] args) { N = Input.NextLong(); long ans = 0; for (int i = 1; i < N; i++) { long a = (N - i) / i; if (i >= a) break; long a_mod = (N - i) % i; ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]]
8
400
2
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { ; long n = long.Parse(Console.ReadLine()); long ans = 0; for (long i = 1;; i++) { if (n / i < i) break; if (n % i == 0) ans += n / i - 1; } Console.WriteLine(ans); }...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { ; long n = long.Parse(Console.ReadLine()); long ans = 0; for (long i = 1;; i++) { if (n / i - 1 < i + 1) break; if (n % i == 0) ans += n / i - 1; } Console.WriteLine(a...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203]]
8
93
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.diverta2019 { class D { static void Main(string[] args) { Method(args); } static void Method(string[] args) { long n = ReadLong(); long r...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.diverta2019 { class D { static void Main(string[] args) { Method(args); } static void Method(string[] args) { long n = ReadLong(); long r...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 57, 64, 116, 0, 117], ["-", 0, 7, 8, 196, 0, 57, 64, 116, 0, 35]]
8
317
6
using System; using System.Linq; using System.Collections.Generic; using System.Diagnostics; using Debug = System.Diagnostics.Trace; using SB = System.Text.StringBuilder; using System.Numerics; using static System.Math; namespace Program { public class Solver { Random rnd = new Random(); public void Solve() { v...
using System; using System.Linq; using System.Collections.Generic; using System.Diagnostics; using Debug = System.Diagnostics.Trace; using SB = System.Text.StringBuilder; using System.Numerics; using static System.Math; namespace Program { public class Solver { Random rnd = new Random(); public void Solve() { v...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
1,414
2
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]]
8
835
6
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace Contest { class Program { private int H, W; private char[][] A; private int[] nextY = new int[] { 1, 0, -1, 0 }; private int[] nextX = new int[] { 0, 1, 0, -1 }; public void Solve() { v...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace Contest { class Program { private int H, W; private char[][] A; private int[] nextY = new int[] { 1, 0, -1, 0 }; private int[] nextX = new int[] { 0, 1, 0, -1 }; public void Solve() { v...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]]
8
917
2
using System; using static System.Console; using System.Text; using System.Linq; using static System.Math; using System.Collections.Generic; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Program { public static cp alg; public static int h; public static int w; public static str...
using System; using static System.Console; using System.Text; using System.Linq; using static System.Math; using System.Collections.Generic; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Program { public static cp alg; public static int h; public static int w; public static str...
[["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47]]
8
1,353
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; class Program { static void Main() { int[] HW = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int H = HW[0]; int W = HW[1]...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; class Program { static void Main() { int[] HW = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int H = HW[0]; int W = HW[1]...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20]]
8
792
4
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; class Program { static long mod = 998244353; static void Main(string[] args) { char[] cs = new char[] { ' ' }; // char[] cs = new char[] { ' ', ',' }; // int val = int.Parse(Console.ReadLi...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; class Program { static long mod = 998244353; static void Main(string[] args) { char[] cs = new char[] { ' ' }; // char[] cs = new char[] { ' ', ',' }; // int val = int.Parse(Console.ReadLi...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22]]
8
771
4
using System; using System.Linq; class B { static void Main() { Console.ReadLine(); var h = Console.ReadLine().Split().Select(int.Parse).ToArray(); var t = h[0]; Console.WriteLine(h.Skip(1).Count(x => { var b = x >= t; t = Math.Max(t, x); return b; })); } }
using System; using System.Linq; class B { static void Main() { Console.ReadLine(); var h = Console.ReadLine().Split().Select(int.Parse).ToArray(); var t = h[0]; Console.WriteLine(1 + h.Skip(1).Count(x => { var b = x >= t; t = Math.Max(t, x); return b; })); } }
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]]
8
98
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Console; namespace AtCoder_1 { class Program { static void Main(string[] args) { var n = CinT(); var ab = CinTAr(); int m = 0; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using static System.Console; namespace AtCoder_1 { class Program { static void Main(string[] args) { var n = CinT(); var ab = CinTAr(); int m = 0; ...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
8
759
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC124_B_Great_Ocean_View { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] height = Console.ReadLine().Split(' ').Select((s) =>...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC124_B_Great_Ocean_View { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] height = Console.ReadLine().Split(' ').Select((s) =>...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47]]
8
158
2
using System; namespace ABC124 { class Program { static int Main(string[] args) { Program.ProblemB(); return 0; } static void ProblemB() { string n = Console.ReadLine(); string[] input = Console.ReadLine().Split(' '); int max = 0; int count = 0; for (int i = 0; i < int.Parse(n); i+...
using System; namespace ABC124 { class Program { static int Main(string[] args) { Program.ProblemB(); return 0; } static void ProblemB() { string n = Console.ReadLine(); string[] input = Console.ReadLine().Split(' '); int max = 0; int count = 0; for (int i = 0; i < int.Parse(n); i+...
[["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]]
8
135
2
using System; using System.Text; using System.Collections.Generic; using System.Collections; using System.Linq; class Problem { static void Main() { //--------------------------------input--------------------------------// int n = Convert.ToInt32(Console.ReadLine()); var a = Array.ConvertAll(Console.Read...
using System; using System.Text; using System.Collections.Generic; using System.Collections; using System.Linq; class Problem { static void Main() { //--------------------------------input--------------------------------// int n = Convert.ToInt32(Console.ReadLine()); var a = Array.ConvertAll(Console.Read...
[["-", 0, 7, 8, 57, 15, 16, 12, 204, 205, 22], ["-", 8, 57, 15, 16, 12, 204, 206, 207, 0, 70], ["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 8, 57, 15, 16, 12, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 7, 8, 57, 15, 16, 12, 22]]
8
132
5
using System; namespace Test { class Program { static void Main(string[] args) { var res = 0; var N = int.Parse(Console.ReadLine()); var H = new int[N]; var H_s = Console.ReadLine().Split(' '); for (int i = 0; i < N; i++) { H[i] = int.Parse(H_s[i]); } for (int i = 0; i < N; i++)...
using System; namespace Test { class Program { static void Main(string[] args) { var res = 0; var N = int.Parse(Console.ReadLine()); var H = new int[N]; var H_s = Console.ReadLine().Split(' '); for (int i = 0; i < N; i++) { H[i] = int.Parse(H_s[i]); } for (int i = 0; i < N; i++...
[["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 12, 204, 206, 207, 0, 28, 0, 22]]
8
168
2
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) { Console.ReadLine(); var v = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var count = 1; var ...
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) { Console.ReadLine(); var v = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var count = 1; var ...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 210, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22],...
8
127
8
using System; using static System.Console; public class A { static void Main() { var s = Array.ConvertAll(ReadLine().Split(), int.Parse); var ans = 0; for (int i = 0; i < s.Length; i++) { for (int j = 0; j <= i; j++) { if (i == j) { ans++; break; } if (s[...
using System; using static System.Console; public class B { static void Main() { ReadLine(); var s = Array.ConvertAll(ReadLine().Split(), int.Parse); var ans = 0; for (int i = 0; i < s.Length; i++) { for (int j = 0; j <= i; j++) { if (i == j) { ans++; break; ...
[["-", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
112
6
using System; using System.IO; using System.Linq; class Program { static void Solve() { var N = ReadInt(); var H = ReadInts(); var max = H[0]; var ans = 0; for (var i = 0; i < N - 1; i++) { if (H[i] >= max) { ans++; max = H[i]; } } Console.WriteLine(ans); ...
using System; using System.IO; using System.Linq; class Program { static void Solve() { var N = ReadInt(); var H = ReadInts(); var max = H[0]; var ans = 0; for (var i = 0; i < N; i++) { if (H[i] >= max) { ans++; max = H[i]; } } Console.WriteLine(ans); } ...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
331
2
using System; using System.Collections.Generic; using System.Linq; class Program { static string InputPattern = "Input1"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("4"); WillReturn.Add("6 5 6 8"); // 3 } ...
using System; using System.Collections.Generic; using System.Linq; class Program { static string InputPattern = "InputX"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("4"); WillReturn.Add("6 5 6 8"); // 3 } ...
[["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222]]
8
260
2
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; using System.Collections; namespace debug { class main { static void Main(string[] args) { //問題クラスを展開 ProgramC a = new ProgramC(); a.main(); //実行する } } class ProgramA { public void main() { ...
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; using System.Collections; namespace debug { class main { static void Main(string[] args) { //問題クラスを展開 ProgramC a = new ProgramC(); a.main(); //実行する } } class ProgramA { public void main() { ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
905
4
using System; namespace abc { class C { static void Main() { char[] s = Console.ReadLine().ToCharArray(); int tans = 0; int ans = 0; bool tobe0 = true; for (int i = 0; i < s.Length; i++) { if (tobe0) { if (s[i] == '1') tans++; tobe0 = false; } else { i...
using System; namespace abc { class C { static void Main() { char[] s = Console.ReadLine().ToCharArray(); int tans = 0; int ans = 0; bool tobe0 = true; for (int i = 0; i < s.Length; i++) { if (tobe0) { if (s[i] == '1') tans++; tobe0 = false; } else { i...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
205
4
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace ABC124.C { using static Util; public class Solver : SolverBase { public void Run() { var S = ReadLine(); // 奇数枚目と偶数枚目の 0 の数を数える int o0 = 0; int e0 = 0; for (int i = 0; i < S.L...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace ABC124.C { using static Util; public class Solver : SolverBase { public void Run() { var S = ReadLine(); // 奇数枚目と偶数枚目の 0 の数を数える int o0 = 0; int e0 = 0; for (int i = 0; i < S.L...
[["-", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22]]
8
1,721
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Collections; using System.Linq.Expressions; using Pair = System.Tuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<long>>; using static _20200214.Cin; usi...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Collections; using System.Linq.Expressions; using Pair = System.Tuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<long>>; using static _20200214.Cin; usi...
[["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
2,309
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC124 { class Program { static void Main(string[] args) { // Buttons(); // 8min // GreatOceanView(); // 15min // ColoringColorfully(); // 32min Handstand(); } static voi...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC124 { class Program { static void Main(string[] args) { // Buttons(); // 8min // GreatOceanView(); // 15min // ColoringColorfully(); // 32min Handstand(); } static voi...
[["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29]]
8
656
2
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static AtCoderTemplate.MyExtensions; using static AtCoderTemplate.MyInputOutputs; using static AtCoderTemplate.MyNumericFunctions; namespace AtCoderTemplate { public class Program { public static void Main(string[] arg...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static AtCoderTemplate.MyExtensions; using static AtCoderTemplate.MyInputOutputs; using static AtCoderTemplate.MyNumericFunctions; namespace AtCoderTemplate { public class Program { public static void Main(string[] arg...
[["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["-", 8, 196, 0, 52, 15, 16, 12, 214, 205, 22], ["+", 8, 196, 0, 52, 15, 16, 12, 214, 205, 22]]
8
2,039
4
using System; using System.Collections.Generic; using System.Linq; namespace D___Handstand { class Program { static void Main(string[] args) { var read = Console.ReadLine().Split(' '); var N = int.Parse(read[0]); var K = int.Parse(read[1]); var S = Console.ReadLine(); var switch01 = new List<in...
using System; using System.Collections.Generic; using System.Linq; namespace D___Handstand { class Program { static void Main(string[] args) { var read = Console.ReadLine().Split(' '); var N = int.Parse(read[0]); var K = int.Parse(read[1]); var S = Console.ReadLine(); var switch01 = new List<in...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 0, 28, 0, 41, 15, 16, 12, 252, 0, 104]]
8
258
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class340 { static void Main() { int N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split().Select(int.Parse).ToArray(); var d1 = new int[N]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class340 { static void Main() { int N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split().Select(int.Parse).ToArray(); var d1 = new int[N]; ...
[["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
316
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { static class Program { static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); // var N = ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { static class Program { static void Main() { Console.SetOut( new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }); // var N = ...
[["-", 206, 207, 0, 28, 0, 16, 31, 16, 12, 203], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 12, 203]]
8
1,033
2
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; using System.Collections; namespace debug { class main { static void Main(string[] args) { //問題クラスを展開 ProgramC a = new ProgramC(); a.main(); //実行する } } class ProgramA { public void main() { ...
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; using System.Collections; namespace debug { class main { static void Main(string[] args) { //問題クラスを展開 ProgramC a = new ProgramC(); a.main(); //実行する } } class ProgramA { public void main() { ...
[["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
1,121
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Math; namespace CSharpSpiral { class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = #...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using static System.Math; namespace CSharpSpiral { class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = #...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
995
4
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() { ...
[["-", 0, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
1,366
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { // 方針 // int n = rint(); long[] a = longa(); ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using static System.Console; using static System.Math; public class Hello { static public int mod = 1000000007; public static void Main() { // 方針 // int n = rint(); long[] a = longa(); ...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 12, 203], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 12, 203], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
1,936
6
using System; using System.Linq; public class HelloWorld { static long[] A; static long N; static long[] left; static long[] right; static public void Main() { // N = long.Parse(Console.ReadLine()); A = Console.ReadLine().Split().Select(a => long.Parse(a)).ToArray(); left = new long[N]; ...
using System; using System.Linq; public class HelloWorld { static long[] A; static long N; static long[] left; static long[] right; static public void Main() { // N = long.Parse(Console.ReadLine()); A = Console.ReadLine().Split().Select(a => long.Parse(a)).ToArray(); left = new long[N]; ...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 31, 22], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 37, 0, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 37, 0, 22]]
8
510
6
using System; using System.Linq; class C { static void Main() { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); var l = new int[n]; var r = new int[n]; l[0] = a[0]; r[n - 1] = a[n - 1]; for (int i = 1; i < n; i++) { l[i] = Gcd(...
using System; using System.Linq; class C { static void Main() { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select(int.Parse).ToArray(); var l = new int[n]; var r = new int[n]; l[0] = a[0]; r[n - 1] = a[n - 1]; for (int i = 1; i < n; i++) { l[i] = Gcd(...
[["+", 0, 200, 0, 212, 0, 41, 15, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 19], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 101], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 64, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 102]]
8
272
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Collections; static class Extensions { public static int ToInt(this string s) => int.Parse(s); public static long ToLong(this string s) => long.Pars...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Collections; static class Extensions { public static int ToInt(this string s) => int.Parse(s); public static long ToLong(this string s) => long.Pars...
[["-", 0, 41, 15, 23, 0, 16, 31, 16, 31, 22], ["-", 0, 41, 15, 23, 0, 16, 31, 16, 17, 109], ["-", 8, 306, 0, 41, 75, 23, 0, 41, 64, 22], ["+", 8, 306, 0, 41, 75, 23, 0, 41, 64, 22]]
8
811
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); int[] A = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); int[] A = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); ...
[["+", 75, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32]]
8
630
2
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; using static AtCoder.AtCoderLib; namespace AtCoder { class Program { static void Main(string[] args) { new ABC125().SolveC(new ConsoleInput(Consol...
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; using static AtCoder.AtCoderLib; namespace AtCoder { class Program { static void Main(string[] args) { new ABC125().SolveC(new ConsoleInput(Consol...
[["+", 206, 207, 0, 28, 0, 16, 31, 16, 31, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 17, 33], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
740
4
using System; using System.Linq; class Program { static int Gcd(int a, int b) { if (a < b) { var t = a; a = b; b = t; } if (b == 0) return a; return Gcd(b, a % b); } static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var inArr = new int[N]; ...
using System; using System.Linq; class Program { static int Gcd(int a, int b) { if (a < b) { var t = a; a = b; b = t; } if (b == 0) return a; return Gcd(b, a % b); } static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var inArr = new int[N + 2...
[["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203]]
8
286
6
using System; using static System.Console; using System.Text; using System.Linq; using static System.Math; using System.Collections.Generic; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Program { public static int count = 0; static void Main(string[] args) { var alg = new cp()...
using System; using static System.Console; using System.Text; using System.Linq; using static System.Math; using System.Collections.Generic; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Program { public static int count = 0; static void Main(string[] args) { var alg = new cp()...
[["-", 0, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]]
8
1,188
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { new Program().Solve(); } void Solve() { Scanner cin = new Scanner(); int N = cin.NextInt(); long[] A = cin.ArrayLong(N); long[] gcd ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { new Program().Solve(); } void Solve() { Scanner cin = new Scanner(); int N = cin.NextInt(); long[] A = cin.ArrayLong(N); long[] gcd ...
[["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
730
4
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(); int n = sc.NextInt(); long[] a = new long[n]; for (int i = 0; i < n; i++) a[i] = sc.NextLong(); long[...
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(); int n = sc.NextInt(); long[] a = new long[n]; for (int i = 0; i < n; i++) a[i] = sc.NextLong(); long[...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
460
2
using System; using System.Collections.Generic; using System.Linq; using static System.Console; public static partial class Program { public static void Main() { var n = CRL().ToInt(); var ais = CRL().ArrayInts(); var lgcd = new int[n - 1]; var rgcd = new int[n - 1]; //最初に最初を入れる lgcd[0] = a...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; public static partial class Program { public static void Main() { var n = CRL().ToInt(); var ais = CRL().ArrayInts(); var lgcd = new int[n - 1]; var rgcd = new int[n - 1]; //最初に最初を入れる lgcd[0] = a...
[["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
977
6
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp3 { class Program { static long gcd(long A, long B) { while (B > 0) { var c = A % B; A = B; B = c; } return A; } static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); ...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp3 { class Program { static long gcd(long A, long B) { while (B > 0) { var c = A % B; A = B; B = c; } return A; } static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); ...
[["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
338
4
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace Atcoder { class Pair { public int x; public int y; public Pair(int X, int Y) { x = X; y = Y; } } class Pro...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace Atcoder { class Pair { public int x; public int y; public Pair(int X, int Y) { x = X; y = Y; } } class Pro...
[["+", 0, 11, 12, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 11, 12, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 11, 12, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 16, 12, 213, 3, 4, 0, 25]]
8
6,008
5
using System; using System.Collections.Generic; using System.Text; using System.Numerics; namespace cc { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long ans = 0; List<long> posList = new List<long>(); List<long> negList = new List<long>(); string[] ...
using System; using System.Collections.Generic; using System.Text; using System.Numerics; namespace cc { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); long ans = 0; List<long> posList = new List<long>(); List<long> negList = new List<long>(); string[] ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]]
8
380
1
using System; using System.Collections.Generic; using System.Linq; class Procon { public Procon() {} static void Main(string[] agrs) { new Procon().Do(); } Scanner cin; public void Do() { cin = new Scanner(); int N = cin.nextInt(); long[] A = cin.arrayLong(); int count = 0; long min = 1...
using System; using System.Collections.Generic; using System.Linq; class Procon { public Procon() {} static void Main(string[] agrs) { new Procon().Do(); } Scanner cin; public void Do() { cin = new Scanner(); int N = cin.nextInt(); long[] A = cin.arrayLong(); int count = 0; long min = 1...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203]]
8
597
2
using System; using System.Collections.Generic; using System.Linq; class MainClass { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); List<int> originalValues = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList(); var negativeCount = originalValues.Cou...
using System; using System.Collections.Generic; using System.Linq; class MainClass { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); List<long> originalValues = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList(); int negativeCount = originalValues.C...
[["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 64, 196, 0, 197, 0,...
8
171
10
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC125C { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var numbers = Console.ReadLine().Split().Select(long.Parse).ToList(); var count ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC125C { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var numbers = Console.ReadLine().Split().Select(long.Parse).ToList(); var count ...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 18]]
8
202
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); int[] A = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); long[] A = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).To...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]]
8
510
8
using System; using System.Collections.Generic; using static Exter; using System.Linq; #if DEBUG #else using console = System.Console; #endif public class App { public static void Main(string[] args) { int n = readarr[0]; cout = readarr.Sum(v => Math.Abs(v)) - (preadarr.Count(v => v < 0) % 2 == 0 ...
using System; using System.Collections.Generic; using static Exter; using System.Linq; #if DEBUG #else using console = System.Console; #endif public class App { public static void Main(string[] args) { long n = readarr[0]; cout = readarr.Sum(v => Math.Abs(v)) - (preadarr.Count(v => v < 0) % 2 == 0...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 235, 8, 201, 0, 277, 39, 224, 39, 199], ["+", 0, 235, 8, 201, 0, 277, 39, 224, 39, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 8, 201, 0, 124, 0, 19...
8
533
8
using System; using System.Linq; namespace d { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(int.Parse).ToList(); if (A.Count(x => x < 0) % 2 == 0) { Console.WriteLine(A.Sum(x => Math.Abs(x))); } else { ...
using System; using System.Linq; namespace d { class Program { static void Main(string[] args) { var N = long.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); if (A.Count(x => x < 0) % 2 == 0) { Console.WriteLine(A.Sum(x => Math.Abs(x))); } else { ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
144
6
using System; using System.Linq; using System.Threading.Tasks; static class Program { static void Main() { int nGem = int.Parse(Console.ReadLine()); var values = Console.ReadLine().Split(' ').Select(c => int.Parse(c)).ToArray(); bool isEven = (values.Select(v => v < 0 ? 1 : 0).Sum() % 2 == 0); ...
using System; using System.Linq; using System.Threading.Tasks; static class Program { static void Main() { int nGem = int.Parse(Console.ReadLine()); var values = Console.ReadLine().Split(' ').Select(c => long.Parse(c)); // int nGem = 5; // var values = new long[] { // -1000000000,1000000000,-1000...
[["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 28, 0, 218, 8, 213, 3, 4, 0, 25], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24]]
8
170
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC125_D { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); List<long> numList = Console.ReadLine().Split(' ').Select(i => long.Parse(i...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC125_D { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); List<long> numList = Console.ReadLine().Split(' ').Select(i => long.Parse(i...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
205
2
using System; class Tenka_A { static void Main() { int[] Ar = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int H1 = Ar[0], H2 = Ar[1], H3 = Ar[2]; if ((H1 < H2 && H2 > H3) || (H1 > H2 && H2 < H3)) Console.WriteLine("Yes"); else Console.WriteLine("No"); } }
using System; class Tenka_A { static void Main() { int[] Ar = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int H1 = Ar[0], H2 = Ar[1], H3 = Ar[2]; if ((H1 < H3 && H2 > H3) || (H1 > H3 && H2 < H3)) Console.WriteLine("Yes"); else Console.WriteLine("No"); } }
[["-", 15, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 15, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 12, 22]]
8
104
4
using System; using System.Linq; class Mainp { public static void Main() { var str = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); if (Math.Abs(str[0] - str[1]) >= (Math.Abs(str[0] - str[2]) + Math.Abs(str[1] - str[2]))) Console.WriteLine("NO"); else Console.Writ...
using System; using System.Linq; class Mainp { public static void Main() { var str = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); if (Math.Abs(str[0] - str[1]) >= (Math.Abs(str[0] - str[2]) + Math.Abs(str[1] - str[2]))) Console.WriteLine("Yes"); else Console.Wri...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
120
4
using System; namespace Project { class Program { static void Main() { int[] args = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int a = args[0]; int b = args[1]; int c = args[2]; Console.WriteLine((a < c && c < b) || (b < c && a < c) ? "Yes" : "No"); } } }
using System; namespace Project { class Program { static void Main() { int[] args = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); int a = args[0]; int b = args[1]; int c = args[2]; Console.WriteLine((a < c && c < b) || (b < c && c < a) ? "Yes" : "No"); } } }
[["-", 15, 16, 12, 23, 0, 16, 12, 16, 31, 22], ["-", 15, 16, 12, 23, 0, 16, 12, 16, 17, 18], ["+", 15, 16, 12, 23, 0, 16, 12, 16, 17, 18], ["+", 15, 16, 12, 23, 0, 16, 12, 16, 12, 22]]
8
102
4
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var a = int.Parse(line[0]); var b = int.Parse(line[1]); var c = int.Parse(line[2]); if (a < b && a < c && c < b) Console.WriteLine("Yes"); else if (b > a && b < c && c < ...
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var a = int.Parse(line[0]); var b = int.Parse(line[1]); var c = int.Parse(line[2]); if (a < b && a < c && c < b) Console.WriteLine("Yes"); else if (a > b && b < c && c < ...
[["-", 75, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["-", 75, 57, 15, 16, 31, 16, 31, 16, 17, 47], ["+", 75, 57, 15, 16, 31, 16, 31, 16, 17, 47], ["+", 75, 57, 15, 16, 31, 16, 31, 16, 12, 22]]
8
134
4
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...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 106], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 98]]
8
362
2
using System; namespace Tenka1A { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int C = int.Parse(input[2]); bool flg = false; if (A > B) { if (C > B && C > A) { flg = t...
using System; namespace Tenka1A { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int C = int.Parse(input[2]); bool flg = false; if (A > B) { if (C > B && A > C) { flg = t...
[["-", 64, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 64, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 12, 22]]
8
160
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; class myon { public static void Main(string[] args) { var myon = new myon(); } public myon() { string[] input = Console.ReadLine().Split(' '); int[] intin = new int[3]; for (int i = 0; i < 3; i++) { int...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; class myon { public static void Main(string[] args) { var myon = new myon(); } public myon() { string[] input = Console.ReadLine().Split(' '); int[] intin = new int[3]; for (int i = 0; i < 3; i++) { int...
[["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 18], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 17, 47], ["-", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203]]
8
203
6