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;
public class Hello {
public static void Main() {
var input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int A = input[0];
int B = input[1];
int C = input[2];
var nums = new long[1000];
nums[0] = 0;
nums[1] = A;
for (var i = 2; i < nums.Length; i++) {
... | using System;
public class Hello {
public static void Main() {
var input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int A = input[0];
int B = input[1];
int C = input[2];
var nums = new long[1000];
nums[0] = 0;
for (var i = 1; i < nums.Length; i++) {
nums[i] = i * ... | [["-", 8, 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], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["... | 8 | 155 | 16 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
void calc() {
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
void calc() {
... | [["-", 15, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["+", 31, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["-", 15, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 31, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+"... | 8 | 530 | 8 |
#pragma warning disable
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System;
using System.Collections;
using static System.Math;
using static System.Console;
class E {
static void Main() => new J();
}
class J {
int F() => int.Parse(ReadLine());
int[] G() => ReadLine()
... | #pragma warning disable
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System;
using System.Collections;
using static System.Math;
using static System.Console;
class E {
static void Main() => new J();
}
class J {
int F() => int.Parse(ReadLine());
int[] G() => ReadLine()
... | [["-", 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], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 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 | 394 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace cswork {
class Program {
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Leng... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace cswork {
class Program {
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Leng... | [["+", 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, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 744 | 17 |
using System;
using System.Collections.Generic;
using System.Linq;
class MainClass {
public static void Main(string[] args) {
//入力3
var temp = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var list = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var N = temp[0];
var T = ... | using System;
using System.Collections.Generic;
using System.Linq;
class MainClass {
public static void Main(string[] args) {
//入力3
var temp = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var list = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var N = temp[0];
var T = ... | [["+", 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, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 206 | 17 |
using System;
class P {
static void Main(string[] args) {
var kari = Console.ReadLine().Split(' ');
int ninzu = int.Parse(kari[0]);
int oyu = int.Parse(kari[1]);
var timeS = Console.ReadLine().Split(' ');
int[] time = new int[ninzu];
for (int i = 0; i < ninzu; i++) {
time[i] = int.Parse... | using System;
class P {
static void Main(string[] args) {
var kari = Console.ReadLine().Split(' ');
int ninzu = int.Parse(kari[0]);
int oyu = int.Parse(kari[1]);
var timeS = Console.ReadLine().Split(' ');
int[] time = new int[ninzu];
for (int i = 0; i < ninzu; i++) {
time[i] = int.Parse... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 64, 196, 0, 1, 0, 11, 12, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 23, 0, 16, 12, 204, 205, 22], ["+", 12, 23, 0, 16, 12, 204, 206, 207, 0, 70], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], [... | 8 | 182 | 15 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class AC073C {
#if true
static void Main(string[] args) {
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
Console.WriteLine(funcMain(s1, s2));
#if DEBUG... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class AC073C {
#if true
static void Main(string[] args) {
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
Console.WriteLine(funcMain(s1, s2));
#if DEBUG... | [["-", 8, 201, 0, 195, 8, 196, 0, 210, 39, 199], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 39, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["-", 8, 196, 0, 210, 12, 213, 3, 4, 0, 25], ["-", 0, 195, 8, 196, 0, 210, 8, 196, 0, 45], ["-", 0, 210, 8, 196, 0, 197, 0, 198, ... | 8 | 397 | 30 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class AC073C {
#if true
static void Main(string[] args) {
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
Console.WriteLine(funcMain(s1, s2));
#if DEBUG... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class AC073C {
#if true
static void Main(string[] args) {
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
Console.WriteLine(funcMain(s1, s2));
#if DEBUG... | [["-", 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, 60], ["-", 0, 210, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 25], ["-", 0, 210, 8, 196, 0, 57, 64, 116, 0, 117... | 8 | 397 | 30 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Program {
public void Proc() {
Reader.IsDebug = false;
long[] inpt =
Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray();
int count = (int)inpt[0];
long addTime = inpt[1];
inpt = Re... | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Program {
public void Proc() {
Reader.IsDebug = false;
long[] inpt =
Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray();
int count = (int)inpt[0];
long addTime = inpt[1];
inpt = Re... | [["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 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, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, ... | 8 | 280 | 37 |
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;
public static void Main() {
// w1から3しか重さが違わない
int N = NextInt();
long W = NextLong();
long[] w = new lo... | 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;
public static void Main() {
// w1から3しか重さが違わない
int N = NextInt();
long W = NextLong();
long[] w = new lo... | [["-", 8, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["-", 8, 196, 0, 7, 8, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 7, 8, 7, 15, 16, 12, 22], ["+", 8, 196, 0, 7, 8, 7, 15, 16, 17, 79], ["+", 0, 7, 8, 7, 15, 16, 12, 241, 0, 33], ["+", 0, 7, 8, 7, 15, 16, 12, 241, 0, 203], ["-", 8, 196... | 8 | 730 | 20 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
long n = long.Parse(input[0]);
long w = long.Parse(input[1]);
long[,] ... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
long n = long.Parse(input[0]);
long w = long.Parse(input[1]);
long[,] ... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 31, 22], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 39, 224, 225, 226, 0, 16, 31, 16, 31, 203], ["+", 39, 224, 225, 226, 0, 16, 31, 16, 17, 48], ["+", 39, 224, 225, 22... | 8 | 422 | 38 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Globalization;
using System.IO;
using CodeChallenges;
using System.Diagnostics;
namespace CodeChallenges.Boilerplate.IO {
#region helpers
class FormattedStreamWriter : StreamWriter {
public FormattedStreamWriter(Stream stream) : base... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Globalization;
using System.IO;
using CodeChallenges;
using System.Diagnostics;
namespace CodeChallenges.Boilerplate.IO {
#region helpers
class FormattedStreamWriter : StreamWriter {
public FormattedStreamWriter(Stream stream) : base... | [["-", 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, 195, 8, 196, 0, 7, 8, 7, 0, 88], ["+", 0, 195, 8, 196, 0, 7, 8, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 7, 10, 198, 39, 199... | 8 | 1,502 | 31 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Solve {
public Solve() {}
StringBuilder sb;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
Calc();
Console.Write(sb.ToString());
}
void Calc() {... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Solve {
public Solve() {}
StringBuilder sb;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
Calc();
Console.Write(sb.ToString());
}
void Calc() {... | [["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 24], ["+", 0, 28, 0, 218, 54, 55, 0, 220, 141, 22], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 21], ["+", 0, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 3, 4, 0, 28, 0, 218, 8, 23, 0, 24], ["+", 0, 218, 8, 23, 0, 41, 15, 16, 31, 22], ["+", 0, 218,... | 8 | 642 | 25 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
long W0 = W.Min();
List<long>[] L = new List<long>[4];
for (int i = 0... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
long W0 = W.Min();
List<long>[] L = new List<long>[4];
for (int i = 0... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 15, 16, 12, 214, 205, 204, 205, 22], ["+", 15, 16, 12, 214, 205, 204, 206, 207, 0, 70], ["+", 12, 214, 205, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 214, 205, 204, ... | 8 | 813 | 27 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
static class Program {
const int mod = 1000000007;
static void Main() {
Sc sc = new Sc();
int n = sc.I;
long[][] a = new long [n][];
long c = int.MaxValue, d = 0;
for (int i = 0; i < n; i++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
static class Program {
const int mod = 1000000007;
static void Main() {
Sc sc = new Sc();
int n = sc.I;
long[][] a = new long [n][];
long c = int.MaxValue, d = 0, e = 0;
for (int i = 0; i < n; ... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 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], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+",... | 8 | 747 | 20 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression,
System.Linq.Ex... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression,
System.Linq.Ex... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33],... | 8 | 4,281 | 31 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static IO io = new IO();
static void Main(string[] args) {
io.Read();
int N = io.Int();
List<Item> items = new List<Item>();
for (int i = 0; i < N; ++i) {
io.ReadSplit();
Item item = ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static IO io = new IO();
static void Main(string[] args) {
io.Read();
int N = io.Int();
List<Item> items = new List<Item>();
for (int i = 0; i < N; ++i) {
io.ReadSplit();
Item item = ... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 200, 0, 212, 0, 214, 205, 204, 205, 22], ["-", 0, 212, 0, 214, 205, 204, 206, 207, 0, 70], ["-", 0, 214, 205, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 212, 0, 214, 205, 204, 206, 207, 0, 73], ["+", 0, 198, 0, 200, 0... | 8 | 722 | 13 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp43 {
class Program {
static void Main(string[] args) {
var st = Console.ReadLine().Split(' ').ToArray();
Console.WriteLine(st[0].ToUpper()[0] + st[1].ToUpper()[0] +
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp43 {
class Program {
static void Main(string[] args) {
var st = Console.ReadLine().Split(' ').ToArray();
Console.WriteLine(st[0].ToUpper() [0].ToString() +
... | [["+", 0, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0... | 8 | 107 | 12 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Language {
class Program {
static void Main(string[] args) {
string[] lan = Console.ReadLine().Split(' ');
string a = lan[0];
string b = lan[1];
string c = lan[2];
string... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Language {
class Program {
static void Main(string[] args) {
string[] lan = Console.ReadLine().Split(' ');
string a = lan[0];
string b = lan[1];
string c = lan[2];
string... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+... | 8 | 150 | 16 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string line = Console.ReadLine().ToUpper();
string s1 = line.Split(' ')[0];
string s2 = line.Split(' ')[1];
string s3 = line.Split(' ')[2];
C... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string line = Console.ReadLine().ToUpper();
string s1 = line.Split(' ')[0];
string s2 = line.Split(' ')[1];
string s3 = line.Split(' ')[2];
C... | [["+", 0, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0... | 8 | 117 | 12 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
static void Main... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
static void Main... | [["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 7, 0, 35], ["+", 0, 57, 64, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 7, 15, 16, 17, 18], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 8, 196, 0, 57, 64, 196, 0, 7, 0, 35], ... | 8 | 287 | 10 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace MyProgram {
public class Program {
public static void Main(string[] args) {
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
s1 = s1.PadLeft(s2.Length, '0');
s2 = s2.PadLeft(s1.Lengt... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace MyProgram {
public class Program {
public static void Main(string[] args) {
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
s1 = s1.PadLeft(s2.Length, '0');
s2 = s2.PadLeft(s1.Lengt... | [["-", 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 | 198 | 14 |
using System;
public class Hello {
public static void Main() {
string s = Console.ReadLine();
string t = Console.ReadLine();
if (s.Length > t.Length) {
Console.WriteLine("GREATER");
} else if (s.Length < t.Length) {
Console.WriteLine("LESS");
} else {
for (var i = 0; i < s.Lengt... | using System;
public class Hello {
public static void Main() {
string s = Console.ReadLine();
string t = Console.ReadLine();
if (s.Length > t.Length) {
Console.WriteLine("GREATER");
} else if (s.Length < t.Length) {
Console.WriteLine("LESS");
} else {
for (var i = 0; i < s.Lengt... | [["+", 75, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 75, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 75, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 0... | 8 | 152 | 9 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2 {
class Program {
static void Main(string[] args) {
var a = Console.ReadLine();
var b = Console.ReadLine();
if (a.Length > b.Length)
Console.WriteLine("G... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2 {
class Program {
static void Main(string[] args) {
var a = Console.ReadLine();
var b = Console.ReadLine();
if (a.Length > b.Length)
Console.WriteLine("G... | [["-", 0, 57, 64, 196, 0, 7, 8, 196, 0, 46], ["+", 64, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 64, 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, ... | 8 | 191 | 22 |
using System;
namespace B_002_59 {
internal class Program {
private static void Main(string[] args) { new Logic_B().Start(); }
public class Logic_B {
public void Start() {
var a = Console.ReadLine();
var b = Console.ReadLine();
if (a.Length != b.Length) {
Console.WriteLine(a.Length ... | using System;
namespace B_002_59 {
internal class Program {
private static void Main(string[] args) { new Logic_B().Start(); }
public class Logic_B {
public void Start() {
var a = Console.ReadLine();
var b = Console.ReadLine();
if (a.Length != b.Length) {
Console.WriteLine(a.Length ... | [["-", 75, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 75, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["-", 75, 196, 0, 57, 75, 196, 0, 93, 0, 94], ["+", 75, 196, 0, 57, 75, 196, 0, 37, 0, 38], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 14... | 8 | 175 | 13 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
using System.Numerics;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
// SetOut(new StreamWriter(OpenStandardOutput())... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
using System.Numerics;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
// SetOut(new StreamWriter(OpenStandardOutput())... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 200, 0, 212, 0, 227, 0, 229, 0, 21], ["+", 0, 212, 0, 227, 0, 229, 0, 241, 0, 33], ["+", 0, 212, 0, 227, 0, 229, 0, 241, 0, 203], ["+", 0, 200, 0, 212, 0, 227, 0, 229, 0, 203], ["+", 0, 212, 0, 227, 0, 229, 0, 213, 63, 22], ["+", 0, 227, 0, 229, 0, 213, 3, 4, ... | 8 | 577 | 40 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Program {
static List<long> rep;
static void Main(string[] args) {
//入力を受け取る
var N = long.Parse(Console.ReadLine());
var A = Console.ReadLine().Split().Select(a => long.Parse(a)).ToArray();
var B = new long[... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Program {
static List<long> rep;
static void Main(string[] args) {
//入力を受け取る
var N = long.Parse(Console.ReadLine());
var A = Console.ReadLine().Split().Select(a => long.Parse(a)).ToArray();
var B = new long[... | [["+", 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, 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, 195, 8, 196, 0, 57, 15, 16... | 8 | 459 | 20 |
using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
string[] line = Console.ReadLine().Trim().Split(' ');
var a = Array.ConvertAll(line, long.Parse);
Console.WriteLine(Math.Min(culc0m(a), culc0p(a)));
}
public static long culc0m(long[] a) {... | using System;
public class Hello {
public static void Main() {
var n = int.Parse(Console.ReadLine().Trim());
string[] line = Console.ReadLine().Trim().Split(' ');
var a = Array.ConvertAll(line, long.Parse);
var ret0 = culc0m(a);
var ret1 = culc0p(a);
Console.WriteLine(Math.Min(ret0, ret1));
... | [["+", 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, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25],... | 8 | 403 | 27 |
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("1 -3 1 0");
// 4
}... | 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("1 -3 1 0");
// 4
}... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 31, 22], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 17, 109], ["+", 15, 16, 12, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 1... | 8 | 369 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class MainClass : Scanner {
static void Main() {
var (X, Y) = ReadTuple<long, long>();
if (X <= 1 && Y <= 1) {
WriteLine("Brown");
return;
}
if (X % 2 == 0 || Y % 2 ==... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class MainClass : Scanner {
static void Main() {
var (x, y) = ReadTuple<long, long>();
if (x <= 1 && y <= 1) {
WriteLine("Brown");
} else if (Abs(x - y) <= 1) {
WriteLine(... | [["-", 0, 197, 0, 198, 0, 200, 0, 289, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 289, 141, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 64, 196, 0, 37, 0,... | 8 | 714 | 38 |
using Yorukatsu049.Questions;
using Yorukatsu049.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Yorukatsu049.Questions {
/// <summary>
/// ABC059 D
/// </summary>
public class QuestionF : AtCoderQuestionBase {
public override IEn... | using Yorukatsu049.Questions;
using Yorukatsu049.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Yorukatsu049.Questions {
/// <summary>
/// ABC059 D
/// </summary>
public class QuestionF : AtCoderQuestionBase {
public override IEn... | [["-", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["-", 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, 60], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 31,... | 8 | 530 | 32 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Asakatsu20200313F {
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 Asakatsu20200313F {
class Input {
/// <summary>
/// 1行の入力を取得する
/// </summary>
/// <returns>文字列</returns>
public void String(out string s) { s = Console.ReadLine(); }
/// <summary>
/// 複数行の入力を取得
/// </summary>
/// <returns>文... | [["+", 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], ["+", 31, 213, 3, 4, 0, 28, 0, 16, 31,... | 8 | 898 | 26 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_D {
class D059 {
static HashSet<string> lose = new HashSet<string>();
static HashSet<string> win = new HashSet<string>();
static void Main(string[] args) {
long[] h =
Cons... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_D {
class D059 {
static HashSet<string> lose = new HashSet<string>();
static HashSet<string> win = new HashSet<string>();
static void Main(string[] args) {
long[] h =
Cons... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["-", 15, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["-", 15, 16, 12, 23, 0, 16, 31, 16, 17, 19], ["-", 15, 16, 12, 23, 0, 16, 31, 16, 12, 2... | 8 | 400 | 10 |
using System;
namespace AtCoder {
class Program {
static IO io = new IO();
static void Main(string[] args) {
//入力
io.ReadSplit();
long X = io.Long();
long Y = io.Long();
//計算
string output = Winner(X, Y);
//出力
io.WriteLine(output);
}
static string Winner(long X, long Y) {
... | using System;
namespace AtCoder {
class Program {
static IO io = new IO();
static void Main(string[] args) {
//入力
io.ReadSplit();
long X = io.Long();
long Y = io.Long();
//計算
string output = Winner(X, Y);
//出力
io.WriteLine(output);
}
static string Winner(long X, long Y) {
... | [["-", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["-", 0, 57, 15, 16, 31, 23, 0, 16, 17, 18], ["-", 0, 57, 15, 16, 31, 23, 0, 16, 12, 203], ["-", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], [... | 8 | 444 | 17 |
using System;
using System.Linq;
using System.Collections.Generic;
public class Program {
public static void Main() {
var n = int.Parse(Console.ReadLine());
var xs = Console.ReadLine().Split().Select(x => long.Parse(x)).ToArray();
var sum = new long[2];
var sign = new[] { Math.Sign(1), Math.Sign(-1)... | using System;
using System.Linq;
using System.Collections.Generic;
public class Program {
public static void Main() {
var n = int.Parse(Console.ReadLine());
var xs = Console.ReadLine().Split().Select(x => long.Parse(x)).ToArray();
var adjust = new long[2];
var sum = new long[2];
var sign = new[]... | [["+", 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, 203], ["+", 0, 212, 0, 227, 39, 224,... | 8 | 255 | 40 |
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(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArr... | 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(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArr... | [["+", 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], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200... | 8 | 349 | 38 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
partial class Program {
static long mod = 1000000007;
static void Swap<T>(ref T a, ref T b) {
T temp = a;
a = b;
b = temp;
}
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
partial class Program {
static long mod = 1000000007;
static void Swap<T>(ref T a, ref T b) {
T temp = a;
a = b;
b = temp;
}
... | [["+", 12, 41, 75, 41, 15, 16, 31, 204, 205, 22], ["+", 75, 41, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 75, 41, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 11, 12, 41, 75, 41, 15, 16, 17, 60], ["+", 12, 41, 75, 41, 15, 16, 12, 204, 205, 22], ["+", 75, 41, 15, 16, 12, 204... | 8 | 1,593 | 14 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int cnt = 1;
int status = 0;
for (int i = 0; i <... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int cnt = 1;
int status = 0;
for (int i = 0; i <... | [["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 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, 22], ["+... | 8 | 188 | 29 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using static System.Console;
using static System.Math;
using static CS_Contest.Utils;
using System.Numerics;
using System.Linq.Expressions;
using Nakov.IO;
using static Nakov.IO.Cin;
// using static CS_Contest.Library... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using static System.Console;
using static System.Math;
using static CS_Contest.Utils;
using System.Numerics;
using System.Linq.Expressions;
using Nakov.IO;
using static Nakov.IO.Cin;
// using static CS_Contest.Library... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["+", 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, 214, 205, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 19... | 8 | 1,633 | 26 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace Program {
class MainClass {
// C#7.0/////////////////////////////////////////////////////
int N;
int[] A;
void Solve... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace Program {
class MainClass {
// C#7.0/////////////////////////////////////////////////////
int N;
int[] A;
void Solve... | [["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 227, 0, 228], ["+", 0, 1, 0, 11, 12, 227, 39, 224, 39, 199], ["+", 0, 11, 12, 227, 39, 224, 225, 226, 0, 70], ["+", 0, 11, 12, 227, 39, 224, 225, 226, 0, 22... | 8 | 6,339 | 39 |
using System;
using System.Linq;
using System.Numerics;
using System.Collections;
using System.Collections.Generic;
public class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split().Select(x => int.Parse(x)).ToList();
var aa = new List<int... | using System;
using System.Linq;
using System.Numerics;
using System.Collections;
using System.Collections.Generic;
public class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split().Select(x => int.Parse(x)).ToList();
var aa = new List<int... | [["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 18], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 101], ["+", 0, 200, 0, 212, 0, 41, 64, 241, 0, 33], ["+", 0, 200, 0, 212, 0, 41, 64, 241, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 102], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 75, ... | 8 | 302 | 23 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
long a = long.Parse(Console.ReadLine());
long[] s = Console.ReadLine().Split().Select(long.Parse).ToArray();
bool ren = false;
long ren... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
long a = long.Parse(Console.ReadLine());
long[] s = Console.ReadLine().Split().Select(long.Parse).ToArray();
bool ren = false;
long ren... | [["-", 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], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["-",... | 8 | 268 | 15 |
using System;
using System.Text;
namespace AtCoder {
public class ProblemA {
public static void Main(string[] args) {
string[] line = Console.ReadLine().Split(' ');
int n = int.Parse(line[0]);
int l = int.Parse(line[1]);
int t = int.Parse(line[2]);
int[] ants = new int[n];
long count = 0;
... | using System;
using System.Text;
namespace AtCoder {
public class ProblemA {
public static void Main(string[] args) {
string[] line = Console.ReadLine().Split(' ');
int n = int.Parse(line[0]);
int l = int.Parse(line[1]);
int t = int.Parse(line[2]);
int[] ants = new int[n];
long count = 0;
... | [["-", 12, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["-", 12, 16, 31, 23, 0, 16, 31, 16, 17, 33], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 31, 23, 0, 16, 31, 16, 31, 16, 31, 22], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 17, 33], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 12, 203], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 72]... | 8 | 306 | 8 |
using System;
using System.IO;
using System.Linq;
namespace AGC013 {
class C {
static void Main(string[] args) {
var NLT = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var N = NLT[0];
var L = NLT[1];
var T = NLT[2];
var AntPos = new int[N];
var StdDir = 1;
var XW = C... | using System;
using System.IO;
using System.Linq;
namespace AGC013 {
class C {
static void Main(string[] args) {
var NLT = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var N = NLT[0];
var L = NLT[1];
var T = NLT[2];
var AntPos = new int[N];
var StdDir = 1;
var XW = C... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 12, 241, 0, 33], ["+", 0, 57, 15, 16, 31, 16, 12, 241, 0, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 22]] | 8 | 600 | 7 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999999;
public static void Main(string[] args) {
var p = Input().ToInt();
var a = p[0];
var b = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999999;
public static void Main(string[] args) {
var p = Input().ToInt();
var a = p[0];
var b = ... | [["-", 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, 25], ["-", 0, 57, 15, 16, 12, 213, 63, 214, 205, 22], ["-", 0, 57, 15, 16, 12, 213, 63, 21... | 8 | 327 | 10 |
using System;
using System.Collections.Generic;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string[] dataline = Console.ReadLine().Split(' ');
Array.Sort(dataline);
int a = int.Parse(dataline[0]);
int b = int.Parse(dataline[1]);
int c = int.Parse(dataline[2])... | using System;
using System.Collections.Generic;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string[] dataline = Console.ReadLine().Split(' ');
int a = int.Parse(dataline[0]);
int b = int.Parse(dataline[1]);
int c = int.Parse(dataline[2]);
if ((b - a) == (c - ... | [["-", 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 | 130 | 7 |
using System;
using System.Collections.Generic;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var o = Console.ReadLine().ToCharArray();
var e = Console.ReadLine().ToCharArray();
var temp = new List<char>();
for (int i = 0; i < o.Length; i++) {
temp.Add(o[i]);
temp... | using System;
using System.Collections.Generic;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var o = Console.ReadLine().ToCharArray();
var e = Console.ReadLine().ToCharArray();
var temp = new List<char>();
for (int i = 0; i < o.Length; i++) {
if (o.Length > i)
... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 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, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], [... | 8 | 124 | 16 |
using System;
namespace ABC058_C {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var mojiCnt = new int[n, 26];
for (var i = 0; i < n; i++) {
var s = Console.ReadLine();
for (var j = 0; j < s.Length; j++) {
mojiCnt[j, s[j] - 'a']++;
}
... | using System;
namespace ABC058_C {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var mojiCnt = new int[n, 26];
for (var i = 0; i < n; i++) {
var s = Console.ReadLine();
for (var j = 0; j < s.Length; j++) {
mojiCnt[i, s[j] - 'a']++;
}
... | [["-", 0, 223, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 223, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], [... | 8 | 192 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
//入力
int xMaxInput = int.Parse(Console.ReadLine());
string[] xInputStrings = new string[xMaxInput];
for (int i = 0; i < xMaxInput; ++i) {
xInputStrings[i] = Co... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
//入力
int xMaxInput = int.Parse(Console.ReadLine());
string[] xInputStrings = new string[xMaxInput];
for (int i = 0; i < xMaxInput; ++i) {
xInputStrings[i] = Con... | [["+", 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, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 51,... | 8 | 259 | 21 |
using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC058D_2 {
class Program {
static void Main(string[] args) {
var n = RInt;
var m = RInt;
var x = RLongs;
var y = RLongs;
Mlong sumx = 0;
... | using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC058D_2 {
class Program {
static void Main(string[] args) {
var n = RInt;
var m = RInt;
var x = RLongs;
var y = RLongs;
Mlong sumx = 0;
... | [["+", 0, 1, 0, 11, 12, 41, 15, 16, 17, 106], ["+", 0, 11, 12, 41, 15, 16, 12, 16, 31, 22], ["+", 0, 11, 12, 41, 15, 16, 12, 16, 17, 18], ["+", 0, 11, 12, 41, 15, 16, 12, 16, 12, 203], ["+", 0, 11, 12, 41, 64, 16, 31, 23, 0, 24], ["+", 64, 16, 31, 23, 0, 16, 31, 16, 17, 109], ["+", 64, 16, 31, 23, 0, 16, 31, 16, 12, 22... | 8 | 1,231 | 14 |
using System;
using System.Collections.Generic;
using System.Text;
namespace AtTest.D_Challenge {
class ABC_058 {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
int[] nm = ReadInts();
long[] xs = ReadLongs();
long[]... | using System;
using System.Collections.Generic;
using System.Text;
namespace AtTest.D_Challenge {
class ABC_058 {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
int[] nm = ReadInts();
long[] xs = ReadLongs();
long[]... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["-", 31, 23, 0, 16, 31, 16, 12, 23, 0, 25], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 17, 48], ["-", ... | 8 | 387 | 20 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace sikakukei4_30 {
class Program {
static void Main(string[] args) {
string[] nm = Console.ReadLine().Split(' ');
string[] xtext = Console.ReadLine().Split(' ');
string[] ytext = Con... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace sikakukei4_30 {
class Program {
static void Main(string[] args) {
string[] nm = Console.ReadLine().Split(' ');
string[] xtext = Console.ReadLine().Split(' ');
string[] ytext = Con... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 12, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 109], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 12, 203], ["-", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["... | 8 | 331 | 21 |
using System;
class Program {
static void Main(string[] args) {
string[] input1 = Console.ReadLine().Split(' ');
string[] input2 = Console.ReadLine().Split(' ');
string[] input3 = Console.ReadLine().Split(' ');
Console.WriteLine(new Output().Calu(input1, input2, input3).ToString());
}
public clas... | using System;
class Program {
static void Main(string[] args) {
string[] input1 = Console.ReadLine().Split(' ');
string[] input2 = Console.ReadLine().Split(' ');
string[] input3 = Console.ReadLine().Split(' ');
Console.WriteLine(new Output().Calu(input1, input2, input3).ToString());
}
public clas... | [["-", 0, 235, 8, 201, 0, 263, 0, 251, 0, 259], ["-", 8, 201, 0, 235, 8, 201, 0, 263, 141, 22], ["-", 0, 235, 8, 201, 0, 263, 54, 55, 0, 24], ["-", 0, 235, 8, 201, 0, 263, 54, 55, 0, 25], ["-", 0, 235, 8, 201, 0, 263, 8, 196, 0, 45], ["-", 0, 235, 8, 201, 0, 263, 8, 196, 0, 46], ["+", 0, 235, 8, 201, 0, 124, 0, 251, 0,... | 8 | 236 | 29 |
using System;
using System.Linq;
using System.Collections.Generic;
class P {
static void Main(string[] _) {
_ = Console.ReadLine().Split(' ');
int n = int.Parse(_[0]);
int m = int.Parse(_[1]);
Int64[] x = new Int64[n];
Int64[] y = new Int64[m];
_ = Console.ReadLine().Split(' ');
for (int... | using System;
using System.Linq;
using System.Collections.Generic;
class P {
static void Main(string[] _) {
_ = Console.ReadLine().Split(' ');
int n = int.Parse(_[0]);
int m = int.Parse(_[1]);
Int64[] x = new Int64[n];
Int64[] y = new Int64[m];
_ = Console.ReadLine().Split(' ');
for (int... | [["+", 0, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 109], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 16, 31, 23, 0, 16, 31, 23, 0, 25], ["+", 0, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 17, 109], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 12, 203], ["+... | 8 | 300 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace d {
class Program {
const long MOD = 1000000007;
static void Main(string[] args) {
var nmstr = Console.ReadLine().Split(' ');
var n = int.Parse(nmstr[0]);
var m = int.Parse(nms... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace d {
class Program {
const long MOD = 1000000007;
static void Main(string[] args) {
var nmstr = Console.ReadLine().Split(' ');
var n = int.Parse(nmstr[0]);
var m = int.Parse(nms... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 304 | 8 |
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... | [["+", 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, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 213, 63, 22],... | 8 | 2,521 | 11 |
using System;
using System.IO;
class Program {
static void Main(string[] args) {
var writer =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(writer);
Console.WriteLine(Solve());
Console.Out.Flush();
}
static object Solve() {
var N = long.Parse(Co... | using System;
using System.IO;
class Program {
static void Main(string[] args) {
var writer =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(writer);
Console.WriteLine(Solve());
Console.Out.Flush();
}
static object Solve() {
var N = long.Parse(Co... | [["+", 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], ["-", 0, 7... | 8 | 148 | 12 |
using System;
using System.Collections.Generic;
namespace AGC012A {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long[] a = new long[3 * N];
var target = Console.ReadLine().Split(' ');
List<long> b = new List<long>();
for (int i = 0; i < 3 * N; i++) {
... | using System;
using System.Collections.Generic;
namespace AGC012A {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long[] a = new long[3 * N];
var target = Console.ReadLine().Split(' ');
List<long> b = new List<long>();
for (int i = 0; i < 3 * N; i++) {
... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+",... | 8 | 185 | 25 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using static MyIO;
public class A {
public static void Main() {
int N = GetInt();
var a = new List<long>(3 * N);
for (int i = 0; i < 3 * N; i++)
a.Add(GetLong());
a.Sort();
long ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using static MyIO;
public class A {
public static void Main() {
int N = GetInt();
var a = new List<long>(3 * N);
for (int i = 0; i < 3 * N; i++)
a.Add(GetLong());
a.Sort();
long ... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 48], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 206, 207, 0, 28, 0, 16, 12, 16, 31,... | 8 | 275 | 8 |
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;
Func cin2;
void calc() {
cin = new... | 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;
Func cin2;
void calc() {
cin = new... | [["+", 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], ["+", 206,... | 8 | 755 | 11 |
using System;
class Program {
static void Main(string[] args) {
Console.WriteLine(CardGameforThreeABCEdit());
}
private static long CardGameforThreeABCEdit() {
int N = 0;
long[] A = null;
readData(ref N, ref A);
return playerPower(A);
}
private static long playerPower(long[] a) {
... | using System;
class Program {
static void Main(string[] args) {
Console.WriteLine(CardGameforThreeABCEdit());
}
private static long CardGameforThreeABCEdit() {
long N = 0;
long[] A = null;
readData(ref N, ref A);
return playerPower(N, A);
}
private static long playerPower(long N, long... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 37, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 37, 0, 213, 3, 4, 0, 21], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 141, 22], ["+", 0, 235, 8, 201, 0, 195, 54, 55, 0, 21], ["+", 0, 195, 54, 55, 0, 220, 39, 224, 39, 1... | 8 | 181 | 26 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC {
class Program {
static void Main(string[] args) { AGC012_A(); }
static void AGC012_A() {
var N = int.Parse(Console.ReadLine());
var an = Console.ReadLine()
.Split(' ')
.Select(long.Parse)
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC {
class Program {
static void Main(string[] args) { AGC012_A(); }
static void AGC012_A() {
var N = int.Parse(Console.ReadLine());
var an = Console.ReadLine()
.Split(' ')
.Select(long.Parse)
... | [["+", 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], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 141, 22], [... | 8 | 230 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
class Scanner //標準入力
{
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
return s[i++];
string st = Console.ReadLine();
whi... | using System;
using System.Collections.Generic;
using System.Linq;
class Scanner //標準入力
{
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
return s[i++];
string st = Console.ReadLine();
whi... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 0, 1, 0, 213, 3, 4, 0, 28,... | 8 | 389 | 19 |
using System;
using System.Linq;
class c {
static void Main() {
int n = int.Parse(Console.ReadLine());
var a = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
Console.WriteLine(
a.OrderBy(f => f).Where((f, g) => g >= n && g % 2 == 0).Sum());
}
} | using System;
using System.Linq;
class c {
static void Main() {
int n = int.Parse(Console.ReadLine());
var a = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
Console.WriteLine(
a.OrderBy(f => f).Where((f, g) => n <= g && g % 2 == n % 2).Sum());
}
} | [["-", 0, 28, 0, 218, 8, 16, 31, 16, 31, 22], ["-", 0, 28, 0, 218, 8, 16, 31, 16, 17, 20], ["+", 0, 28, 0, 218, 8, 16, 31, 16, 17, 19], ["+", 0, 28, 0, 218, 8, 16, 31, 16, 12, 22], ["-", 0, 28, 0, 218, 8, 16, 12, 16, 12, 203], ["+", 0, 218, 8, 16, 12, 16, 12, 16, 31, 22], ["+", 0, 218, 8, 16, 12, 16, 12, 16, 17, 109], ... | 8 | 92 | 8 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine()); // long.Parseはstringをlongに変換。
long[] nums = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
long answer =... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine()); // long.Parseはstringをlongに変換。
long[] nums = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
long answer =... | [["+", 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 | 125 | 7 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoder {
class MainClass {
// C#7.0////////////////////
int N;
long[] a;
void Solve() {
io.i(out N);
io.ini(out a, 3 * N);
a.Sort();
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoder {
class MainClass {
// C#7.0////////////////////
int N;
long[] a;
void Solve() {
io.i(out N);
io.ini(out a, 3 * N);
a.Sort();
... | [["+", 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], ["-", 0, 7... | 8 | 2,942 | 17 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.IO;
class _Class {
void _Do() {
int N = _int()[0];
int[] a = _int();
Array.Sort(a);
int c = a.Length / 3;
int d = a.Length / 3 * 2;
long l = 0;
for (int i = c; ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.IO;
class _Class {
void _Do() {
int N = _int()[0];
int[] a = _int();
Array.Sort(a);
Array.Reverse(a);
int m = a.Length / 3 * 2;
long l = 0;
for (int i = 0; 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, 200, 0, 212, 0, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 214, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 1... | 8 | 365 | 28 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression,
System.Linq.Expressions.ParameterExpression,
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression,
System.Linq.Expressions.ParameterExpression,
... | [["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 48], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 203], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 0, 21], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0,... | 8 | 2,966 | 16 |
using System;
using System.Collections.Generic;
using System.Linq;
class P {
static void Main(string[] _) {
decimal r = 0;
int n = int.Parse(Console.ReadLine());
int[] a = new int[3 * n];
_ = Console.ReadLine().Split(' ');
for (int i = 0; i < 3 * n; i++) {
a[i] = int.Parse(_[i]);
}
... | using System;
using System.Collections.Generic;
using System.Linq;
class P {
static void Main(string[] _) {
decimal r = 0;
int n = int.Parse(Console.ReadLine());
int[] a = new int[3 * n];
_ = Console.ReadLine().Split(' ');
for (int i = 0; i < 3 * n; i++) {
a[i] = int.Parse(_[i]);
}
... | [["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 48], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 31, 203], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, ... | 8 | 156 | 11 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Globalization;
using System.Diagnostics;
using static System.Console;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
class Program {
static void Main() {
SetOut(new StreamWriter(OpenStandardOutput())... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Globalization;
using System.Diagnostics;
using static System.Console;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
class Program {
static void Main() {
SetOut(new StreamWriter(OpenStandardOutput())... | [["+", 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], ["+", 0, 1... | 8 | 454 | 30 |
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using System.Diagnostics;
using Enu = System.Linq.Enumerable;
public class Program {
public void Solve() {
int N = Reader.Int();
var A = Reader.IntArray(N * 3);
Array.Sort(A);
long ans = A.Skip(N).T... | using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using System.Diagnostics;
using Enu = System.Linq.Enumerable;
public class Program {
public void Solve() {
int N = Reader.Int();
var A = Reader.IntArray(N * 3);
Array.Sort(A);
long ans = A.Skip(N).W... | [["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 22], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 24], ["+", 0, 28, 0, 218, 54, 55, 0, 220, 141, 22], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 21], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0... | 8 | 610 | 14 |
using System;
namespace abc057 {
public class Program {
public static void Main(string[] args) {
string str = Console.ReadLine();
string[] arr = str.Split(' ');
int a = Convert.ToInt32(arr[0]);
int b = Convert.ToInt32(arr[1]);
if ((a + b) > 24) {
Console.WriteLine((a + b) - 24);
} el... | using System;
namespace abc057 {
public class Program {
public static void Main(string[] args) {
string str = Console.ReadLine();
string[] arr = str.Split(' ');
int a = Convert.ToInt32(arr[0]);
int b = Convert.ToInt32(arr[1]);
if ((a + b) == 24) {
Console.WriteLine(0);
} else if ((a ... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 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, 14... | 8 | 110 | 20 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
class Program {
public static void Main() {
var nm = Console.ReadLine().Split();
int n = int.Parse(nm[0]);
int m = int.Parse(nm[1]);
int[] a = new int[n];
int[] b = new int[n];
int[] c = new int[m];... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
class Program {
public static void Main() {
var nm = Console.ReadLine().Split();
int n = int.Parse(nm[0]);
int m = int.Parse(nm[1]);
int[] a = new int[n];
int[] b = new int[n];
int[] c = new int[m];... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 16, 31, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 204, 206, 207... | 8 | 334 | 33 |
using System;
using System.Linq;
namespace ABC057 {
class B {
static void Main(string[] args) {
var nm = Console.ReadLine().Split().Select(int.Parse).ToArray();
var ab =
Enumerable.Repeat(0, nm[0])
.Select(_ => Console.ReadLine().Split().Select(int.Parse).ToArray())
.ToArray()... | using System;
using System.Linq;
namespace ABC057 {
class B {
static void Main(string[] args) {
var nm = Console.ReadLine().Split().Select(int.Parse).ToArray();
var ab =
Enumerable.Repeat(0, nm[0])
.Select(_ => Console.ReadLine().Split().Select(int.Parse).ToArray())
.ToArray()... | [["-", 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, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 8, 201, 0, 195, 8, 196, 0, ... | 8 | 298 | 18 |
// shakyo
using System;
using System.Collections.Generic;
using System.Linq;
public class Hello {
public static void Main() {
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var N = input[0];
var M = input[1];
var A = new int[N];
var B = new int[N];
var C = new int[M];
... |
using System;
using System.Collections.Generic;
using System.Linq;
public class Hello {
public static void Main() {
var input = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
var N = input[0];
var M = input[1];
var A = new long[N];
var B = new long[N];
var C = new long[M];
v... | [["-", 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, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 3, 4, 0, 28, 0, 16, 12, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 16, 12, 204, 205, 22]] | 8 | 362 | 16 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2 {
class Program {
static void Main(string[] args) {
var x = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int N = x[0];
int M = x[1];
var out1... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2 {
class Program {
static void Main(string[] args) {
var x = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int N = x[0];
int M = x[1];
var out1... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ... | 8 | 343 | 20 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoder {
internal class Program {
static void Main(string[] args) {
var sr = new InputReader(Console.In);
// var sr = new InputReader(new StreamReader(new
// Memor... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoder {
internal class Program {
static void Main(string[] args) {
var sr = new InputReader(Console.In);
// var sr = new InputReader(new StreamReader(new
// Memor... | [["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 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, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22]... | 8 | 692 | 11 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) { Question.Exec(); }
}
public static class Question {
public static void Exec() {
long n = long.Parse(Console.ReadLine());
long min = long.MaxValue;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) { Question.Exec(); }
}
public static class Question {
public static void Exec() {
long n = long.Parse(Console.ReadLine());
long min = n.ToString().Lengt... | [["-", 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], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 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, ... | 8 | 202 | 32 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
class Program {
public static void Main() {
//入力
int n = int.Parse(Console.ReadLine());
//処理
int a = 0, b = 0;
// 1/2乗を整数値で求める
int m = (int)Pow(n, 0.5);
// mから割り切れる数を探して、F(a,b)が最小となる組み合わせを探す
... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
class Program {
public static void Main() {
//入力
long n = long.Parse(Console.ReadLine());
//処理
long a = 0, b = 0;
// nの平方根を求める
long m = (long)Sqrt(n);
// mから割り切れる数を探して、F(a,b)が最小となる組み合わせを探す
f... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["-", 0, 200, 0, 212, 0, 74, ... | 8 | 139 | 16 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using System.Runtime.CompilerServices;
using System.Diagnostics;
using ll=System.Int64;
using static Contest_C.Lib_IO;
using static Contest_C.Lib_Minifunc;
public static class Contest_C
{
public static ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using System.Runtime.CompilerServices;
using System.Diagnostics;
using ll=System.Int64;
using static Contest_C.Lib_IO;
using static Contest_C.Lib_Minifunc;
public static class Contest_C
{
public static ... | [["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["-", 0, 287, 0, 196, 0, 7, 15, 16, 3... | 8 | 2,936 | 16 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Math;
namespace C {
class Program {
static void Main(string[] args) {
Func<long, long, int> f = (x, y) =>
Max(x.ToString().Count(), y.ToString().Count());
var n = long.Parse(Console.ReadLine());
var sqrtN = Sq... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Math;
namespace C {
class Program {
static void Main(string[] args) {
Func<long, long, int> f = (x, y) =>
Max(x.ToString().Count(), y.ToString().Count());
var n = long.Parse(Console.ReadLine());
var sqrtN = Sq... | [["-", 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, 213, 63, 22], ["-", 8, 196, 0, 57, 15, 213, 3, 4, 0, 24], ["-", 0, 57, 15, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 57, 15, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-",... | 8 | 283 | 32 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace abc057 {
class Program {
static void Main(string[] args) {
// var line1 = Console.ReadLine().Split(' ').Select(x =>
// int.Parse(x)).ToArray();
var N = long.Parse(Console.ReadLine());
var M = (int)Math.Sqrt(N);
int ans ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace abc057 {
class Program {
static void Main(string[] args) {
// var line1 = Console.ReadLine().Split(' ').Select(x =>
// int.Parse(x)).ToArray();
var N = long.Parse(Console.ReadLine());
int ans = int.MaxValue;
for (int i ... | [["-", 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, 74, 0, 24], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["-", 0, 212, 0, 74, 51, 213, 63, 214, 2... | 8 | 166 | 22 |
using System.Collections.Generic;
using System.Linq;
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var a = int.Parse(line[1]);
var b = int.Parse(line[2]);
line = Console.ReadLine().Trim().Split(' ')... | using System.Collections.Generic;
using System.Linq;
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var a = int.Parse(line[1]);
var b = int.Parse(line[2]);
line = Console.ReadLine().Trim().Split(' ')... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 37, 0, 38], ["+", 0, 195, 8, 196, 0, 57, 64, 37, 0, 203], ["+", 0, 195, 8, 196, 0, 57, 64, 37, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ... | 8 | 555 | 24 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Text;
public class Program {
public void Proc() {
Reader.IsDebug = false;
int[] inpt =
Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
int itemCount = inpt[0];
... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Text;
public class Program {
public void Proc() {
Reader.IsDebug = false;
int[] inpt =
Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
int itemCount = inpt[0];
... | [["+", 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], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],... | 8 | 536 | 14 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static System.Console;
using static System.Math;
namespace NotFounds {
public class Program {
public static void Main(string[] args... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static System.Console;
using static System.Math;
namespace NotFounds {
public class Program {
public static void Main(string[] args... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 8, 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, 195, 8, 196, 0, 57, 15, 1... | 8 | 877 | 12 |
using System;
namespace ABC_056_A_Csharp_ver {
class Program {
static void Main(string[] args) {
var word = Console.ReadLine().Split(' ');
string a = Console.ReadLine();
string b = Console.ReadLine();
if (a == "H" && b == "H" || a == "D" && b == "D") {
Console.WriteLine("H");
} else if (a =... | using System;
namespace ABC_056_A_Csharp_ver {
class Program {
static void Main(string[] args) {
var word = Console.ReadLine().Split(' ');
string a = (word[0]);
string b = (word[1]);
if (a == "H" && b == "H" || a == "D" && b == "D") {
Console.WriteLine("H");
} else if (a == "D" || b == "D")... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 23, 0, 204, 205, 22], ["+", 0, 212, 0, 23, 0, 204, 206, 207, 0, 70], ["+", 0, 23, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 212, 0, 23, 0, 204, 206... | 8 | 125 | 14 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoder {
class MainClass {
public static void Main(string[] args) { new MainClass().stream(); }
IO io = new IO();
void stream() {
solve();
i... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoder {
class MainClass {
public static void Main(string[] args) { new MainClass().stream(); }
IO io = new IO();
void stream() {
solve();
i... | [["+", 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], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],... | 8 | 819 | 21 |
using System;
class myclass {
public static void Main() {
string str = Console.ReadLine();
string[] stArr = str.Split(' ');
int w = int.Parse(stArr[0]), a = int.Parse(stArr[1]),
b = int.Parse(stArr[2]);
int ans;
if (a + w >= b)
ans = 0;
else
ans = b - (a + w);
Conso... | using System;
class myclass {
public static void Main() {
string str = Console.ReadLine();
string[] stArr = str.Split(' ');
int w = int.Parse(stArr[0]), a = int.Parse(stArr[1]),
b = int.Parse(stArr[2]);
int ans;
// Console.WriteLine("{0},{1},{2}", w, a, b);
if (b + w < a)
ans... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["+... | 8 | 108 | 19 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
class Hello {
public Hello() {}
public static int Main() {
new Hello().calc();
return 0;
}
Scanner cin;
void calc() {
int W = cin.nextInt(), a = cin.nextInt(), b = cin.nextInt();
Co... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
class Program {
public Program() {}
public static int Main() {
new Program().calc();
return 0;
}
Scanner cin;
void calc() {
cin = new Scanner();
int W = cin.nextInt(), a = cin.nextI... | [["-", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["-", 0, 208, 0, 235, 8, 201, 0, 263, 141, 22], ["+", 0, 208, 0, 235, 8, 201, 0, 263, 141, 22], ["-", 0, 1, 0, 213, 63, 214, 205, 230, 39, 22], ["+", 0, 1, 0, 213, 63, 214, 205, 230, 39, 22], ["+", 0, 195, 8, 196, 0, 1, 0, ... | 8 | 274 | 15 |
using System;
class P {
static void Main(string[] _) {
_ = Console.ReadLine().Split(' ');
int w = int.Parse(_[0]);
int a = int.Parse(_[1]);
int b = int.Parse(_[2]);
Console.WriteLine((Math.Max(a, b) - Math.Min(a, b)) - w);
}
}
| using System;
class P {
static void Main(string[] _) {
_ = Console.ReadLine().Split(' ');
int w = int.Parse(_[0]);
int a = int.Parse(_[1]);
int b = int.Parse(_[2]);
int result = (Math.Max(a, b) - Math.Min(a, b)) - w;
Console.WriteLine(result > 0 ? result : 0);
}
}
| [["-", 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, 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, ... | 8 | 99 | 19 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCorder {
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 AtCorder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["+", 0, 212, 0, 74, 51, 23, 0, 16, 17, 33], ["+", 0, 212, 0, 74, 51, 23, 0, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38],... | 8 | 480 | 35 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
int ans = 0;
long jmp = 1;
while (X > 0) {
ans++;
X -= jm... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
int i = 0;
for (i = 1; X > 0; i++) {
X -= i;
}
Console.Writ... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["+", 0, 195, 8, 196, 0, 7, 10, 11, 31, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89... | 8 | 333 | 25 |
using System;
class E {
static void Main() => new J();
}
class J {
int F() => int.Parse(Console.ReadLine());
public J() {
var X = F();
var t = (int)((Math.Sqrt(8.0 * X + 1) - 1) / 2) - 3;
var s = t * (t + 1L) / 2;
while (s < X) {
t++;
s += t;
}
Console.WriteLine(t);
}
} | using System;
class E {
static void Main() => new J();
}
class J {
int F() => int.Parse(Console.ReadLine());
public J() {
var X = F();
var t = Math.Max(0, (int)((Math.Sqrt(8.0 * X + 1) - 1) / 2) - 3);
var s = t * (t + 1L) / 2;
while (s < X) {
t++;
s += t;
}
Console.WriteLine(t... | [["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25]] | 8 | 113 | 7 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using System.Runtime.CompilerServices;
using System.Diagnostics;
using ll=System.Int64;
using static Contest_A.Lib_IO;
using static Contest_A.Lib_Minifunc;
public static class Contest_A
{
public static ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using System.Runtime.CompilerServices;
using System.Diagnostics;
using ll=System.Int64;
using static Contest_A.Lib_IO;
using static Contest_A.Lib_Minifunc;
public static class Contest_A
{
public static ... | [["+", 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, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["+", 15, 16, 12, 16, 31, 16, 31, 204, 20... | 8 | 3,004 | 30 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Algorithm {
class Program {
static void Main(string[] args) {
var l = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = l[0], C = l[1], K = l[2];
var T = new int[N];
for (var i = 0; i < N; i++)
T[i] = int... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Algorithm {
class Program {
static void Main(string[] args) {
var l = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = l[0], C = l[1], K = l[2];
var T = new int[N];
for (var i = 0; i < N; i++)
T[i] = int... | [["-", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, ... | 8 | 241 | 32 |
using System;
namespace AGC011 {
class A {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
int N = int.Parse(input[0]);
int C = int.Parse(input[1]);
int K = int.Parse(input[2]);
int[] T = new int[N];
for (int i = 0; i < T.Length; i++) {
T[i] = int.Parse(... | using System;
namespace AGC011 {
class A {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
int N = int.Parse(input[0]);
int C = int.Parse(input[1]);
int K = int.Parse(input[2]);
int[] T = new int[N];
for (int i = 0; i < T.Length; i++) {
T[i] = int.Parse(... | [["+", 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, 57, 15, 16, 31, 16, 17, 106], ["+", 0, 57, 15, 16, 31, 16, 12, 16, ... | 8 | 207 | 29 |
using System;
using System.Linq;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
#endif
#endregion
var arr = ReadLib.Read... | using System;
using System.Linq;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
#endif
#endregion
var arr = ReadLib.Read... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["-", 8, 196, 0, 197, 0, 198, 39,... | 8 | 415 | 9 |
using System;
using System.Linq;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
#endif
#endregion
var arr = ReadLib.Read... | using System;
using System.Linq;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
#endif
#endregion
var arr = ReadLib.Read... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 85], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["-",... | 8 | 415 | 9 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Atcoder;
using System.Threading.Tasks;
using System.ComponentModel;
public class Hello {
private const int INF = 1000000007;
public static void Main() {
long[] NCK = LongLine();
long N = NCK[0], C = NCK[1], K = NCK[2];
long... | using System;
using System.Collections.Generic;
using System.Linq;
using static Atcoder;
using System.Threading.Tasks;
using System.ComponentModel;
public class Hello {
private const int INF = 1000000007;
public static void Main() {
long[] NCK = LongLine();
long N = NCK[0], C = NCK[1], K = NCK[2];
long... | [["-", 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, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["-", 8, 19... | 8 | 1,146 | 32 |
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var c = int.Parse(line[1]);
var k = int.Parse(line[2]);
var a = new int[n];
for (int i = 0; i < n; i++)
a[i] = int.Parse(Console.ReadLine().Tr... | using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = long.Parse(line[0]);
var c = long.Parse(line[1]);
var k = long.Parse(line[2]);
var a = new int[n];
for (int i = 0; i < n; i++)
a[i] = int.Parse(Console.ReadLine()... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 75, 196, 0, 57, 75, 57, 75, 57, 0, 121], ["-", 75, 196, 0, 57, 75, 57, 75, 57, 0, 24], ["-", 75, 57, 75, 57, 15, 16, 31, 204, 205, 22], ["-", 75, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 15, 16, 31, 204, 206, ... | 8 | 273 | 15 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.