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 |
|---|---|---|---|---|
using System;
using System.Linq;
namespace ABC085_D___Katana_Thrower {
class Program {
static void Main(string[] args) {
var NH = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var N = NH[0];
var H = NH[1];
var attack = new int[N];
var throwing = new int[N];
for (int i = 0; i < ... | using System;
using System.Linq;
namespace ABC085_D___Katana_Thrower {
class Program {
static void Main(string[] args) {
var NH = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var N = NH[0];
var H = NH[1];
var attack = new int[N];
var throwing = new int[N];
for (int i = 0; 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, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 237 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
using System.Threading.Tasks;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
S... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
using System.Threading.Tasks;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
S... | [["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25]] | 8 | 609 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Solver {
Scanner sc = new Scanner();
public void Solve() {
var N = sc.nextInt();
var H = sc.nextLong();
var a = new int[N];
var b = new int[N];
for (int i = 0; i < N; i++) {
a[i] = sc.ne... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Solver {
Scanner sc = new Scanner();
public void Solve() {
var N = sc.nextInt();
var H = sc.nextLong();
var a = new int[N];
var b = new int[N];
for (int i = 0; i < N; i++) {
a[i] = sc.ne... | [["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 8, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 200, 0, 212, 0, 213, 63, ... | 8 | 581 |
using System;
class Program {
static void Main() {
long[] s = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
long[][] arr = new long[s[0]][];
long a = 0, b = 0;
for (int i = 0; i < s[0]; i++) {
arr[i] = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
a = Math.Max(a, ar... | using System;
class Program {
static void Main() {
long[] s = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
long[][] arr = new long[s[0]][];
long a = 0, b = 0;
for (int i = 0; i < s[0]; i++) {
arr[i] = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
a = Math.Max(a, ar... | [["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 98], ["+", 0, 7, 15, 16, 12, 16, 31, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 47], ["+", 8, 196, 0, 7, 15, 16, 12, 16,... | 8 | 295 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ARC85_D {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine().Split(' ');
int n = int.Parse(s[0]);
long h = long.Parse(s[1]);
long amax = 0;
long ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ARC85_D {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine().Split(' ');
int n = int.Parse(s[0]);
long h = long.Parse(s[1]);
long amax = 0;
long ... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],... | 8 | 314 |
using System.Linq;
using System.Collections.Generic;
using System;
public class Katana {
public long a { get; set; }
public long b { get; set; }
}
public class Hello {
public static void Main() {
var katanas = new List<Katana>();
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Pars... | using System.Linq;
using System.Collections.Generic;
using System;
public class Katana {
public long a { get; set; }
public long b { get; set; }
}
public class Hello {
public static void Main() {
var katanas = new List<Katana>();
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Pars... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 210, 12, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 21... | 8 | 256 |
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
long[] inpt =
Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray();
int katanaCount = (int)inpt[0];
this.HP = inpt[1];
this.KatanaLi... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
long[] inpt =
Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray();
int katanaCount = (int)inpt[0];
this.HP = inpt[1];
this.KatanaLi... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], [... | 8 | 729 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var M = sc.ReadInt();
var ans = 24 + 24 % (M == 0 ? 24 : M);
Console.WriteLine(ans);
}
static Scanner sc = new Scanner();
}
class Scanner {
string[] S = new string[0];
int Index ... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var M = sc.ReadInt();
var ans = 24 + (24 - M);
Console.WriteLine(ans);
}
static Scanner sc = new Scanner();
}
class Scanner {
string[] S = new string[0];
int Index = 0;
char[] ... | [["-", 0, 200, 0, 212, 0, 16, 12, 16, 31, 203], ["-", 0, 200, 0, 212, 0, 16, 12, 16, 17, 109], ["-", 12, 16, 12, 23, 0, 41, 15, 16, 31, 22], ["-", 12, 16, 12, 23, 0, 41, 15, 16, 17, 60], ["-", 12, 16, 12, 23, 0, 41, 15, 16, 12, 203], ["-", 0, 16, 12, 16, 12, 23, 0, 41, 0, 101], ["-", 0, 16, 12, 16, 12, 23, 0, 41, 0, 10... | 8 | 1,034 |
using System;
class Program {
static void Main(string[] args) {
String[] tmp = Console.ReadLine().Split(' ');
try {
int A = int.Parse(tmp[0]);
int B = int.Parse(tmp[1]);
String[] S = Console.ReadLine().Split('-');
String S_a = S[0];
String S_b = S[1];
int check = int.Pars... | using System;
class Program {
static void Main(string[] args) {
String[] tmp = Console.ReadLine().Split(' ');
try {
int A = int.Parse(tmp[0]);
int B = int.Parse(tmp[1]);
String[] S = Console.ReadLine().Split('-');
String S_a = S[0];
String S_b = S[1];
int check = int.Pars... | [["+", 8, 196, 0, 246, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 246, 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, 246, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 246, 8, 196, 0, 57, 15, 16, 12... | 8 | 144 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp11 {
class Program {
static void Main(string[] args) {
int[] AB = Console.ReadLine().Split().Select(int.Parse).ToArray();
string S = Console.ReadLine();
string ans = "Yes";
if (AB[0] + AB[1] + 1 == S.Length) {
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp11 {
class Program {
static void Main(string[] args) {
int[] AB = Console.ReadLine().Split().Select(int.Parse).ToArray();
string S = Console.ReadLine();
string ans = "Yes";
if (AB[0] + AB[1] + 1 == S.Length) {
... | [["+", 64, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 64, 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, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17... | 8 | 244 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush();
}
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush();
}
... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 200, 0, 212, 0, 16, 12, 204, 205, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 200, 0, 212, 0, 16, 12, 204, 205, 22], ["-", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22... | 8 | 1,246 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
// var s = Console.ReadLine();
var n = int.Parse(Console.ReadLine());
int[] c = new int[n - 1];
int[] s = new int[n - 1];
int... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
// var s = Console.ReadLine();
var n = int.Parse(Console.ReadLine());
int[] c = new int[n - 1];
int[] s = new int[n - 1];
int... | [["+", 12, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 31, 204, 205, 22], ["+", 31, 23, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 31, 23, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 23, 0, 16, 12, 23, 0, ... | 8 | 345 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999999;
public class Station {
public int Start { get; set; }
public int Cycle { get; set; }
public int Cost { get; se... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999999;
public class Station {
public int Start { get; set; }
public int Cycle { get; set; }
public int Cost { get; se... | [["+", 64, 196, 0, 1, 0, 11, 12, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 214, 205, 204, 205, 22], ["+", 0, 16, 31, 214, 205, 204, 206, 207, 0, 70], ["+", 31, 214, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 16, 31, 214, 205, 204, 206, 207, 0, 73], ["+", 0, 11, 12, 23, 0, 16, 31, 214, 0, 131], ["+", 0, 11, 12, 23, 0, 16, 3... | 8 | 471 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var csf = ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var csf = ... | [["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 12, 16, 31, 16, 12, 214, 205, 204, 205, 22], ["+", 31, 16, 12, 214, 205, 204, 206, 207, 0, 70], ["+", 12, 214, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 31, 16, 12, 214, 205, 204, 206, 207, 0, 73], ["+", 0, 11, 12, 16, 31, 16, 12, 214, 0, 131], ["+", 0, 11, 12, 16, 31, ... | 8 | 322 |
using System;
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var A = Console.ReadLine().Split(' ');
var min = 0;
int[] AA = new int[210];
int[] count = new int[210];
for (int i = 0; i < N; ++i) {
AA[i] = int.Parse(A[i]);
while (AA[i] % 2 ... | using System;
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var A = Console.ReadLine().Split(' ');
var min = 1000;
int[] AA = new int[210];
int[] count = new int[210];
for (int i = 0; i < N; ++i) {
AA[i] = int.Parse(A[i]);
while (AA[i] %... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 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, 204, 205, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ... | 8 | 171 |
using System;
class Program {
static void Main() {
int divideNum = int.Parse(Console.ReadLine()); //割られる数
int[] numbers = new int[divideNum];
int divideCount = 0; //割った回数
int divideSource = 2; //割る数
string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
for (int ... | using System;
class Program {
static void Main() {
int breakb = 0;
int divideNum = int.Parse(Console.ReadLine()); //割られる数
int[] numbers = new int[divideNum];
int divideCount = 0; //割った回数
int divideSource = 2; //割る数
string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数... | [["+", 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], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, ... | 8 | 160 |
using System;
namespace ConsoleApp6 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string[] s = Console.ReadLine().Split();
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = int.Parse(s[i]);
}
int cnt = 0;
int m = 0;
while ... | using System;
namespace ConsoleApp6 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string[] s = Console.ReadLine().Split();
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = int.Parse(s[i]);
}
int cnt = 0;
int m = 0;
while ... | [["-", 8, 196, 0, 57, 64, 196, 0, 210, 0, 266], ["-", 8, 196, 0, 57, 64, 196, 0, 210, 0, 24], ["-", 8, 196, 0, 57, 64, 196, 0, 210, 39, 199], ["-", 8, 196, 0, 57, 64, 196, 0, 210, 31, 22], ["-", 8, 196, 0, 57, 64, 196, 0, 210, 0, 267], ["-", 8, 196, 0, 57, 64, 196, 0, 210, 12, 22], ["-", 8, 196, 0, 57, 64, 196, 0, 210,... | 8 | 174 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace TestApp {
class Program {
static void Main(string[] args) {
Console.ReadLine();
var str = Console.ReadLine()
.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)
.Select(x => int.Parse(x.T... | using System;
using System.Collections.Generic;
using System.Linq;
namespace TestApp {
class Program {
static void Main(string[] args) {
Console.ReadLine();
var str = Console.ReadLine()
.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)
.Select(x => int.Parse(x.T... | [["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["-", 0, 210, 8, 196, 0, 57, 64, 93, 0, 94], ["-", 0, 210, 8, 196, 0, 57, 64, 93, 0, 35], ["+", 0, 210, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 8, 196, 0, 1, 0, 11, 12, 211, 0, 146], ["+", 64, 196, 0, 1, 0, 11, 12, 211, 0, 147]... | 8 | 160 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var K = sc.ReadInt();
var A = sc.ReadIntArray(N);
var group = A.GroupBy(x => x).ToArray();
if (K - group.Length >= 0) {
Console.WriteLine(K - group.Leng... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var K = sc.ReadInt();
var A = sc.ReadIntArray(N);
var group = A.GroupBy(x => x).ToArray();
if (group.Length <= K) {
Console.WriteLine(0);
} else {
... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22],... | 8 | 1,131 |
using System;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
int n = int.Parse(input[0]);
int k = int.Parse(input[1]);
int[] nums = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int[] howmany = new int[200000]... | using System;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
int n = int.Parse(input[0]);
int k = int.Parse(input[1]);
int[] nums = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int[] howmany = new int[200001]... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 195, 8, 196, 0, 7, 15, ... | 8 | 171 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC080A {
class Program {
static void Main(string[] args) {
int n, a, b, p1, p2, x;
var word = Console.ReadLine().Split(' ');
n = int.Parse(word[0]);
a = int.Parse(word[1]);... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC080A {
class Program {
static void Main(string[] args) {
int n, a, b, p1, p2, x;
var word = Console.ReadLine().Split(' ');
n = int.Parse(word[0]);
a = int.Parse(word[1]);... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ... | 8 | 162 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC080A {
class Program {
static void Main(string[] args) {
int n, a, b, p1, p2, x;
var word = Console.ReadLine().Split(' ');
n = int.Parse(word[0]);
a = int.Parse(word[1]);... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC080A {
class Program {
static void Main(string[] args) {
int n, a, b, p1, p2, x;
var word = Console.ReadLine().Split(' ');
n = int.Parse(word[0]);
a = int.Parse(word[1]);... | [["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+... | 8 | 138 |
#pragma warning disable
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using System.Collections;
static class MainClass {
public static void Main() {
var... | #pragma warning disable
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using System.Collections;
static class MainClass {
public static void Main() {
var... | [["-", 75, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 75, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 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, 196, 0, 1, 0, 213, 63, 214, 141, ... | 8 | 1,263 |
using System;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int a = int.Parse(input[1]);
int b = int.Parse(input[2]);
if (a * n <= b)
Console.WriteLine("Yes");
else
Console.WriteLine("No");
}
} | using System;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int a = int.Parse(input[1]);
int b = int.Parse(input[2]);
if (a * n <= b)
Console.WriteLine("{0}", a * n);
else
Console.WriteLine("{0}", b)... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 57, 64, 1, 0, 213, 3, 4, 0, 21], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 0, 57, 75, 1, 0, 213, 3, 4, 0, 21], ["+", 75, 1, 0, 213, 3... | 8 | 102 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
int sum = 0;
while (n > 0) {
sum += n % 10;
n /= 10;
}
Console.WriteLine(n % sum == 0 ? "Yes" : "No")... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
int x = n;
int sum = 0;
while (x > 0) {
sum += x % 10;
x /= 10;
}
Console.WriteLine(n % sum == 0 ... | [["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 31... | 8 | 385 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
void calc() {
cin = new Scanner();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
void calc() {
cin = new Scanner();
... | [["+", 3, 4, 0, 28, 0, 74, 51, 23, 0, 24], ["+", 51, 23, 0, 16, 31, 16, 31, 214, 205, 22], ["+", 51, 23, 0, 16, 31, 16, 31, 214, 0, 131], ["+", 51, 23, 0, 16, 31, 16, 31, 214, 141, 22], ["+", 0, 74, 51, 23, 0, 16, 31, 16, 17, 33], ["+", 0, 28, 0, 74, 51, 23, 0, 16, 17, 33], ["+", 0, 28, 0, 74, 51, 23, 0, 16, 12, 203], ... | 8 | 580 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var dump = Console.ReadLine();
var A = Console.ReadLine()
.Split(' ')
.Select(x => Convert.ToInt32(x))
.O... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var dump = Console.ReadLine();
var tmp = Console.ReadLine()
.Split(' ')
.Select(x => Convert.ToInt32(x))
... | [["-", 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, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, ... | 8 | 200 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
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;
}
static void Main() {
Console.SetOut(
new StreamWriter(Cons... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
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;
}
static void Main() {
Console.SetOut(
new StreamWriter(Cons... | [["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 1,936 |
using System;
using System.Collections.Generic;
public class Test {
public static int goodSequence(int[] arr) {
int count = 0;
Dictionary<int, int> goodSeq = new Dictionary<int, int>();
for (int i = 0; i < arr.Length; i++) {
if (goodSeq.ContainsKey(arr[i]))
goodSeq[arr[i]]++;
else
... | using System;
using System.Collections.Generic;
public class Test {
public static int goodSequence(int[] arr) {
int count = 0;
Dictionary<int, int> goodSeq = new Dictionary<int, int>();
for (int i = 0; i < arr.Length; i++) {
if (goodSeq.ContainsKey(arr[i]))
goodSeq[arr[i]]++;
else
... | [["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 95], ["+", 0, 210, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 210, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 214, 205, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 214, 0, 131], ["+", 0, 57, 75, 57, 15, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17,... | 8 | 227 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
namespace ARC087C {
public class Program {
void Solve(StreamScanner ss, StreamWriter sw) {
//---------------------------------
var N = ss.Next(int.Parse);
var A = ss.Next(int.Parse, N);
var dic = new Dictionary<int, ... | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
namespace ARC087C {
public class Program {
void Solve(StreamScanner ss, StreamWriter sw) {
//---------------------------------
var N = ss.Next(int.Parse);
var A = ss.Next(int.Parse, N);
var dic = new Dictionary<int, ... | [["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 109], ["+", 0, 28, 0, 218, 8, 41, 15, 16, 17, 20], ["+", 0, 218, 8, 41, 15, 16, 12, 214, 205, 22], ["+", 0, 218, 8, 41, 15, 16, 12, 214, 0, 131], ["+", 0, 218, 8, 41, 15, 16, 12, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 41, 0, 101], ["+", 0, 218, 8, 41, 64, 16, 31, 214, 205, 2... | 8 | 462 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static _20200218.Cin;
using static _20200218.Util;
using Pair = _20200218.VTuple<long, long>;
using Graph =
System.Collections.Generic.List<System.Collections.Generic.List<long>>;
using System.Text;
namespace _202002... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static _20200218.Cin;
using static _20200218.Util;
using Pair = _20200218.VTuple<long, long>;
using Graph =
System.Collections.Generic.List<System.Collections.Generic.List<long>>;
using System.Text;
namespace _202002... | [["-", 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, 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, 1... | 8 | 3,842 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
using Pair = System.Tuple<int, int>;
using Edge = System.Tuple<int, int, long>;
// using static System.Globalization.CultureInfo;
class Program {
static void Main(str... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
using Pair = System.Tuple<int, int>;
using Edge = System.Tuple<int, int, long>;
// using static System.Globalization.CultureInfo;
class Program {
static void Main(str... | [["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 214, 205, 204, 205, 22], ["+", 15, 16, 31, 214, 205, 204, 206, 207, 0, 70], ["+", 31, 214, 205, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 214, 205, 204, 206, 207, 0, 73], ["+", 75, 196, 0, 57, 15,... | 8 | 670 |
using System;
using System.Collections.Generic;
using System.Linq;
using Debug = System.Diagnostics.Debug;
using System.Numerics;
using static System.Math;
using Number = System.Int64;
namespace Program {
public class Solver {
public void Solve() {
var s = rs;
var a = new List<int>() { 0 };
var u = ri;
... | using System;
using System.Collections.Generic;
using System.Linq;
using Debug = System.Diagnostics.Debug;
using System.Numerics;
using static System.Math;
using Number = System.Int64;
namespace Program {
public class Solver {
public void Solve() {
var s = rs;
var a = new List<int>() { 0 };
var u = ri;
... | [["-", 8, 196, 0, 210, 8, 196, 0, 210, 12, 22], ["+", 8, 196, 0, 210, 8, 196, 0, 210, 12, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 8, 196, 0, 210, 8, 196, 0, 1, 0, 35], ["+", 8, ... | 8 | 1,195 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string a = Console.ReadLine();
int num = int.Parse(a);
int flag = 0;
if (num % 100 == 1) {
flag+... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string a = Console.ReadLine();
int num = int.Parse(a);
int flag = 0;
if (num % 10 == 1) {
flag++... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25]] | 8 | 118 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Atcoder {
public class Class1 {
static void Main(string[] args) {
int count = 0;
var i = (Console.ReadLine()).Split(' ');
foreach (var item in i) {
if (item == "1") {
count++;
}... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Atcoder {
public class Class1 {
static void Main(string[] args) {
int count = 0;
var a = Console.ReadLine();
foreach (var item in a) {
if (item == '1') {
count++;
}
}
Co... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 212, 0, 213, 63, 214, 205, 23, 0, 24], ["-", 63, 214, 205, 23, 0, 213, 3, 4, 0, 25], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3,... | 8 | 94 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
char[] input = Console.ReadLine().ToCharArray();
int answer = 0;
foreach (char num in input) {
if (Convert.ToInt32(num.ToString()) == 1) {... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
char[] input = Console.ReadLine().ToCharArray();
int answer = 0;
foreach (char num in input) {
if (Convert.ToInt32(num.ToString()) == 1) {... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 89 |
using System;
namespace AtCoder {
class A_PlacingMarbles_081 {
public static void Main() {
var input = Console.ReadLine();
var count = 0;
if (input[0] == 1) {
++count;
}
if (input[1] == 1) {
++count;
}
if (input[2] == 1) {
++count;
}
Console.WriteLine(count);
}... | using System;
namespace AtCoder {
class A_PlacingMarbles_081 {
public static void Main() {
var input = Console.ReadLine().ToCharArray();
var count = 0;
if (input[0] == '1') {
++count;
}
if (input[1] == '1') {
++count;
}
if (input[2] == '1') {
++count;
}
Console.W... | [["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 12, 252, 0, 104]] | 8 | 82 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
public class Program {
public static void Main() {
Console.WriteLine(Console.ReadLine()
.Split(' ')
.Select(i => int.Parse(i))
.ToArray()
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
public class Program {
public static void Main() {
Console.WriteLine(Console.ReadLine()
.ToCharArray()
.Select(i => int.Parse(i.ToString()))
... | [["-", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 205, 213, 3, 4, 0, 28, 0, 252, 0, 104], ["-", 205, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3... | 8 | 73 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder03 {
class Program {
static void Main(string[] args) {
var a = Console.ReadLine().Split(' ').Select(int.Parse);
var count = 0;
while (a.All(IsEven)) {
count++;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder03 {
class Program {
static void Main(string[] args) {
Console.ReadLine();
var a = Console.ReadLine().Split(' ').Select(int.Parse);
var count = 0;
while (a.All(IsEven))... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 122 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC081 {
class ProblemB {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[] A = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
in... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC081 {
class ProblemB {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[] A = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
in... | [["+", 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 | 169 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class QuestionD {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Co... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class QuestionD {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Co... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["-", 0... | 8 | 215 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
// https://atcoder.jp/contests/abc081/tasks/abc081_b
class Abc_081_B {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Consol... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
// https://atcoder.jp/contests/abc081/tasks/abc081_b
class Abc_081_B {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Consol... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 64, 196, 0, 1, 0, 11, 12, 211, 0, 147], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24],... | 8 | 228 |
using System;
using System.Collections.Generic;
using static System.Console;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
int total = int.Parse(ReadLine());
string input = ReadLine();
string[] array = input.S... | using System;
using System.Collections.Generic;
using static System.Console;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
long total = long.Parse(ReadLine());
string input = ReadLine();
string[] array = input... | [["-", 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], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, ... | 8 | 228 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class Question3 {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Co... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class Question3 {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Co... | [["+", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 141, 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, 2... | 8 | 180 |
public class B {
public static void Main() {
string[] s = System.Console.ReadLine().Split();
int[] num = new int[s.Length];
for (int i = 0; i < num.Length; i++) {
num[i] = int.Parse(s[i]);
}
int count = 0;
bool isOdd = false;
while (true) {
for (int i = 0; i < num.Length; i++) ... | public class B {
public static void Main() {
System.Console.ReadLine();
string[] s = System.Console.ReadLine().Split();
int[] num = new int[s.Length];
for (int i = 0; i < num.Length; i++) {
num[i] = int.Parse(s[i]);
}
int count = 0;
bool isOdd = false;
while (true) {
for (i... | [["+", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 141, 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, 2... | 8 | 177 |
using System;
class Program {
static void Main(string[] args) {
// 整数の入力
int N = int.Parse(Console.ReadLine());
// スペース区切りの整数の入力
string[] input = Console.ReadLine().Split(' ');
int count = 0;
var inputInt = new int[N];
for (int i = 0; i < N; i++) {
inputInt[i] = int.Parse(input[i]... | using System;
class Program {
static void Main(string[] args) {
// 整数の入力
int N = int.Parse(Console.ReadLine());
// スペース区切りの整数の入力
string[] input = Console.ReadLine().Split(' ');
int count = 0;
var inputInt = new int[N];
for (int i = 0; i < N; i++) {
inputInt[i] = int.Parse(input[i]... | [["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 15, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+", ... | 8 | 175 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
public class Program {
public static void Main(string[] args) {
Program p = new Program();
var n = int.Parse(System.Console.ReadLine());
int[] aList =
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
public class Program {
public int counter { get; set; }
public static void Main(string[] args) {
Program p = new Program();
var n = int.Parse(System.Console.... | [["+", 8, 201, 0, 235, 8, 201, 0, 277, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 277, 141, 22], ["+", 0, 235, 8, 201, 0, 277, 278, 279, 0, 45], ["+", 8, 201, 0, 277, 278, 279, 0, 280, 141, 281], ["+", 8, 201, 0, 277, 278, 279, 0, 280, 0, 35], ["+", 8, 201, 0, 277, 278, 279, 0, 280, 141, 282], ["+", 0, 235, 8, 201, 0, ... | 8 | 289 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC081B_ShiftOnly {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] input =
Console.ReadLine().Split(' ').Select(x => int.Parse(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC081B_ShiftOnly {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] input =
Console.ReadLine().Split(' ').Select(x => int.Parse(... | [["-", 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, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["... | 8 | 168 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 241, 0, 29]... | 8 | 491 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
// 整数の入力
var a = Console.ReadLine().Split().Select(x => int.Parse(x));
int ans = 0;
while (a.All(x => x % 2 == 0)) {
a = a.Select(x => x / 2);
ans++;
}
Console.WriteLine(ans);
}
} | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
// 整数の入力
var n = Console.ReadLine();
var a = Console.ReadLine().Split().Select(x => int.Parse(x));
int ans = 0;
while (a.All(x => x % 2 == 0)) {
a = a.Select(x => x / 2);
ans++;
}
Console.WriteL... | [["+", 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, 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, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4,... | 8 | 94 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
class Myon {
public Myon() {}
public static int Main() {
cin = new Scanner();
new Myon().calc();
return 0;
}
static Scanner cin;
// メンバ変数---... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
class Myon {
public Myon() {}
public static int Main() {
cin = new Scanner();
new Myon().calc();
return 0;
}
static Scanner cin;
// メンバ変数---... | [["+", 0, 11, 12, 16, 31, 214, 205, 204, 205, 22], ["+", 12, 16, 31, 214, 205, 204, 206, 207, 0, 70], ["+", 31, 214, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 16, 31, 214, 205, 204, 206, 207, 0, 73], ["+", 0, 1, 0, 11, 12, 16, 31, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 16, 31, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 11... | 8 | 726 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static AtCoderTemplate.MyExtensions;
using static AtCoderTemplate.MyInputOutputs;
using static AtCoderTemplate.MyNumericFunctions;
namespace AtCoderTemplate {
public class Program {
public static void Main(string[] arg... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static AtCoderTemplate.MyExtensions;
using static AtCoderTemplate.MyInputOutputs;
using static AtCoderTemplate.MyNumericFunctions;
namespace AtCoderTemplate {
public class Program {
public static void Main(string[] arg... | [["+", 0, 218, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 218, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 109], ["+", 75, 57, 15, 16, 31, 16, 12, 204, 205, 22], ["+", 15, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["+", 31, 16, 12, 204, 206, 207, 0, 2... | 8 | 1,893 |
using System;
using System.Diagnostics;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine()) - 1;
var c = new int[n];
var s = new int[n];
var f = new int[n];
for (int i = 0; i < n; i++) {
string[] cin = Console.ReadL... | using System;
using System.Diagnostics;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine()) - 1;
var c = new int[n];
var s = new int[n];
var f = new int[n];
for (int i = 0; i < n; i++) {
string[] cin = Console.ReadL... | [["-", 8, 196, 0, 57, 75, 1, 0, 11, 31, 22], ["-", 0, 57, 75, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["+", 75, 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, 12, 204, 205, 2... | 8 | 241 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var num = ToInt32(ReadLine());
var csf = new int [num - 1][];
for (var i = 0; i < num - 1; i++)
cs... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var num = ToInt32(ReadLine());
var csf = new int [num - 1][];
for (var i = 0; i < num - 1; i++)
cs... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 0, 57, 64, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 1, 0, 11, 12, 204, 205, 204, 205, 22], ["+", 0, 11, 12, 204, 205, 204, 206, 207, 0, 70], ["+", 12, 204, 205, 204, 206, 207, 0, 28, 0, ... | 8 | 223 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
static void Main(string[] args) {
SolveA();
// SolveB();
// SolveC();
// SolveD();
}
private const long MOD = 1000000007;
static void SolveA() {
int n = ReadAndParseIn... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
static void Main(string[] args) {
SolveA();
// SolveB();
// SolveC();
// SolveD();
}
private const long MOD = 1000000007;
static void SolveA() {
int n = ReadAndParseIn... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ... | 8 | 578 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
static void Main(string[] args) {
SolveA();
// SolveB();
// SolveC();
// SolveD();
}
private const long MOD = 1000000007;
static void SolveA() {
int n = ReadAndParseIn... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
static void Main(string[] args) {
SolveA();
// SolveB();
// SolveC();
// SolveD();
}
private const long MOD = 1000000007;
static void SolveA() {
int n = ReadAndParseIn... | [["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["-", 12, 16, 31, 23, 0, 16, 12, 204, 205, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 204, 205, 22], ["+... | 8 | 578 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Linq;
using System.Diagnostics;
using System.Globalization;
using static System.Console;
using static System.Math;
namespace abc84_c {
class Program {
static void Main(string[] args) {
int n... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Linq;
using System.Diagnostics;
using System.Globalization;
using static System.Console;
using static System.Math;
namespace abc84_c {
class Program {
static void Main(string[] args) {
int n... | [["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 75, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["-", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 31, 204, 206, 207, 0, 28, 0, 16... | 8 | 365 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication6 {
class Program {
static int n;
static Dictionary<Tuple<int, long>, long> N =
new Dictionary<Tuple<int, long>, long>();
static List<long[]> list;
static void ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication6 {
class Program {
static int n;
static Dictionary<Tuple<int, long>, long> N =
new Dictionary<Tuple<int, long>, long>();
static List<long[]> list;
static void ... | [["-", 0, 200, 0, 212, 0, 41, 75, 16, 31, 22], ["+", 0, 41, 75, 16, 31, 204, 205, 204, 205, 22], ["+", 75, 16, 31, 204, 205, 204, 206, 207, 0, 70], ["+", 31, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 75, 16, 31, 204, 205, 204, 206, 207, 0, 73], ["+", 0, 41, 75, 16, 31, 204, 206, 207, 0, 70], ["+", 75, 16, 31, 204, ... | 8 | 416 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999;
public static void Main(string[] args) {
var q = Console.ReadLine().ToInt();
int k = 100010;
var primes = new bo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public const long DpInf = 99999999999;
public static void Main(string[] args) {
var q = Console.ReadLine().ToInt();
int k = 100010;
var primes = new bo... | [["+", 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], ["+", 8, 196, 0, 1, 0, 11, 12, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], [... | 8 | 470 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using static System.Console;
using static System.Math;
using System.Numerics;
using System.Security.Cryptography.X509Certificates;
using static CS_Contest.Utils;
using static Nakov.IO.Cin;
// using static CS_Contest.L... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using static System.Console;
using static System.Math;
using System.Numerics;
using System.Security.Cryptography.X509Certificates;
using static CS_Contest.Utils;
using static Nakov.IO.Cin;
// using static CS_Contest.L... | [["+", 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, 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, 2... | 8 | 1,436 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
private const int MODULO = 1000000007;
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
private const int MODULO = 1000000007;
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() ... | [["+", 0, 235, 8, 201, 0, 124, 0, 251, 0, 154], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 235, 8, 201, 0, 124, 0, 35], ["-", 0, 212, 0, 227, 39, 224, 225, 2... | 8 | 494 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public class Prime {
int n;
// Sieve of Eratosthenes
BitArray sieve;
public Prime(int _n) {
n = _n;
sieve = new BitArray(n + 1);
var end = (int)(Math.Sqrt(n) + 0.1);
for (int i = 2; i <= end; i++) {
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public class Prime {
int n;
// Sieve of Eratosthenes
BitArray sieve;
public Prime(int _n) {
n = _n;
sieve = new BitArray(n + 1);
var end = (int)(Math.Sqrt(n) + 0.1);
for (int i = 2; i <= end; i++) {
... | [["+", 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, 203], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["+", 0, 213, 3, 4, 0, 28, 0, 211, 0, 146], ["+", 8, ... | 8 | 396 |
using System;
class Program {
static void Main(string[] args) {
int a = int.Parse(Console.ReadLine());
// スペース区切りの整数の入力
string[] input = Console.ReadLine().Split(' ');
int b = int.Parse(input[0]);
int c = int.Parse(input[1]);
int d = int.Parse(input[2]);
int e = int.Parse(input[3]);
if... | using System;
class Program {
static void Main(string[] args) {
// スペース区切りの整数の入力
string[] input = Console.ReadLine().Split(' ');
int b = int.Parse(input[0]);
int c = int.Parse(input[1]);
int d = int.Parse(input[2]);
int e = int.Parse(input[3]);
if (b + c == d + e) {
Console.WriteLine... | [["-", 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, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, ... | 8 | 160 |
using System;
public class Program {
public static void Main() {
string n = Console.ReadLine();
int N = int.Parse(n);
string a = Console.ReadLine();
int A = int.Parse(a);
string b = Console.ReadLine();
int B = int.Parse(b);
Console.WriteLine(SomeSum(A, B, N));
}
public static int S... | using System;
public class Program {
public static void Main() {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int A = int.Parse(input[1]);
int B = int.Parse(input[2]);
Console.WriteLine(SomeSum(A, B, N));
}
public static int SomeSum(int A, int B, int N) {
... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, ... | 8 | 263 |
using System;
using System.Linq;
public class Hello {
public static void Main() {
//使わないのはコメントアウトしないとエラー
var num = NumInput();
// var text = StringInput();
int res = 0;
for (int i = 0; i <= num[0]; i++) {
var sum = (i / 10) + (i % 10);
if (sum >= num[1] && sum <= num[2])
re... | using System;
using System.Linq;
public class Hello {
public static void Main() {
//使わないのはコメントアウトしないとエラー
var num = NumInput();
// var text = StringInput();
int res = 0;
for (int i = 0; i <= num[0]; i++) {
var sum = 0;
var n = i;
while (n > 0) {
sum += n % 10;
... | [["-", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 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, 212, 0, 16, 31, 23, 0, 16, 17, 8... | 8 | 204 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
namespace PastQuestions {
class Program {
static void Main(string[] args) {
new Program().Solve(new Input(Console.In));
}
public void Solve(Input input) {
var n = input.ReadInt;
var a = input.ReadInt;
var b = inp... | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
namespace PastQuestions {
class Program {
static void Main(string[] args) {
new Program().Solve(new Input(Console.In));
}
public void Solve(Input input) {
var n = input.ReadInt;
var a = input.ReadInt;
var b = inp... | [["-", 8, 196, 0, 197, 0, 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], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 8, 196, 0, 57, 64, 1, 0, 223, 0, 2... | 8 | 383 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC083B {
class Program {
static void Main(string[] args) {
int[] input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int n = input[0];
int a = inp... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC083B {
class Program {
static void Main(string[] args) {
int[] input =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int n = input[0];
int a = inp... | [["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]] | 8 | 244 |
using System;
using System.Linq;
namespace Program {
class test {
static void Main() {
int ans1 = 0;
int ans2 = 0;
string[] s = Console.ReadLine().Split();
int[] intArray = s.Select(int.Parse).ToArray();
for (int i = 1; i <= intArray[0]; i++) {
if (i >= 10) {
var aaa = i % 10;
... | using System;
using System.Linq;
namespace Program {
class test {
static void Main() {
int ans1 = 0;
int ans2 = 0;
string[] s = Console.ReadLine().Split();
int[] intArray = s.Select(int.Parse).ToArray();
for (int i = 1; i <= intArray[0]; i++) {
ans1 = 0;
if (i >= 10 && i < 100) {
... | [["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196,... | 8 | 362 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC083B {
class Program {
static void Main(string[] args) {
int[] input =
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int N = input[0];
int A = inpu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC083B {
class Program {
static void Main(string[] args) {
int[] input =
Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int N = input[0];
int A = inpu... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 252 |
using System;
using System.Linq;
namespace agc083_c {
class Program {
static void Main(string[] args) {
long[] inputLongArray =
Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray();
long x = inputLongArray[0];
long y = inputLongArray[1];
long cnt = 0;
while (x < y) {
c... | using System;
using System.Linq;
namespace agc083_c {
class Program {
static void Main(string[] args) {
long[] inputLongArray =
Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray();
long x = inputLongArray[0];
long y = inputLongArray[1];
long cnt = 0;
while (x <= y) {
... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19], ["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 52,... | 8 | 104 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Contest.C {
class Program {
public static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }... | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Contest.C {
class Program {
public static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }... | [["+", 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, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0... | 8 | 485 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public class MyProgram {
public static void Main() {
long[] n =
Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray();
long X = n[0];
long Y = n[1];
int cnt = 0;
int A = 1;
whil... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public class MyProgram {
public static void Main() {
long[] n =
Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray();
long X = n[0];
long Y = n[1];
int cnt = 0;
while (X <= Y) {
... | [["-", 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], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 1... | 8 | 119 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace Contest {
class Scanner {
private string[] line = new string[0];
private int index = 0;
public string Next() {
if (line.Length <= index) {
line = Console.ReadLi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace Contest {
class Scanner {
private string[] line = new string[0];
private int index = 0;
public string Next() {
if (line.Length <= index) {
line = Console.ReadLi... | [["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 108], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["-", 0, 57, 15, 16, 31, 16, 12, 23, 0, 24], ["-", 15, 16, 31, 16, 12, 23, 0, 16, 31, 203], ["-", 15, ... | 8 | 336 |
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var x = long.Parse(line[0]);
var y = long.Parse(line[1]);
var a = y / x;
var count = 1;
while (true) {
if (a <= y)
count++;
else {
Console.WriteLine... | using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var x = long.Parse(line[0]);
var y = long.Parse(line[1]);
var count = 0;
while (true) {
if (x <= y)
count++;
else {
Console.WriteLine(count);
br... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0,... | 8 | 109 |
using System;
using System.Collections.Generic;
using System.Text;
namespace AtTest.D_Challenge {
class ABC_083 {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
string s = Read();
var sequenceList = new List<int>();
... | using System;
using System.Collections.Generic;
using System.Text;
namespace AtTest.D_Challenge {
class ABC_083 {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
string s = Read();
var sequenceList = new List<int>();
... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 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], [... | 8 | 483 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace Contest {
class Scanner {
private string[] line = new string[0];
private int index = 0;
public string Next() {
if (line.Length <= index) {
line = Console.ReadLi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace Contest {
class Scanner {
private string[] line = new string[0];
private int index = 0;
public string Next() {
if (line.Length <= index) {
line = Console.ReadLi... | [["+", 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 | 411 |
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
string inpt = Reader.ReadLine();
List<string> list = new List<string>();
int idx = 0;
int ans = 0;
for (int i = 1; i < inpt.Length; i++) {
if (... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
string inpt = Reader.ReadLine();
List<string> list = new List<string>();
int idx = 0;
int ans = 0;
for (int i = 1; i < inpt.Length; i++) {
if (... | [["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["-", 15, 16, 31, 16, 31, 16, 31, 214, 205, 22], ["-", 15, 16, 31, 16, 31, 16, 31, 214, 0, 131], ["-", 15, 16, 31, 16, 31, 16, 31, 214, 141, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 109], ["-", 0, 57, 15, 16, 31, 16, 31, 16... | 8 | 372 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace A {
class Program {
public static void Main(string[] args) {
var a = ReadLineIntSpilit();
Console.WriteLine((a[0] + a[1]) / 2);
ReadLine();
}
public static string ReadLine()... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace A {
class Program {
public static void Main(string[] args) {
var a = ReadLineIntSpilit();
var result = Math.Ceiling(((float)a[0] + a[1]) / 2);
Console.WriteLine(result);
ReadL... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 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, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, ... | 8 | 184 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
//入力
// int n = 100;
/*
long n = long.Parse(Console.ReadLine());
long[] input = new long[5];
for(int a = 0; a < 5; a++)
{
i... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
//入力
// int n = 100;
/*
long n = long.Parse(Console.ReadLine());
long[] input = new long[5];
for(int a = 0; a < 5; a++)
{
i... | [["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25], ["-", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 3, 4, 0... | 8 | 94 |
using System;
using System.Linq;
namespace B {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
var t = Console.ReadLine();
var output = a(s, t) ? "Yes" : "No";
Console.WriteLine(output);
}
static bool a(string s, string t) {
var s_sorted = s.OrderBy(c => c).ToA... | using System;
using System.Linq;
namespace B {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
var t = Console.ReadLine();
var output = a(s, t) ? "Yes" : "No";
Console.WriteLine(output);
}
static bool a(string s, string t) {
var s_sorted = s.OrderBy(c => c).ToA... | [["-", 0, 195, 8, 196, 0, 37, 0, 211, 0, 146], ["+", 8, 196, 0, 37, 0, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 37, 0, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 37, 0, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 17, 18], ["+", 8, 196, 0, 37, 0, 16, 12, 214, 205, 22], ["+", 8, 196, 0, 37, 0, 16, 12, 214, 0, 1... | 8 | 176 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
public static bool f = false, t = true;
static void Main(string[] args) {
string a = Console.ReadLine();
string b = Console.ReadLine();
string a1 = "", b1 = "";
List<char> d1 = new List<char> {};
List<char> d2 = n... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
public static bool f = false, t = true;
static void Main(string[] args) {
string a = Console.ReadLine();
string b = Console.ReadLine();
string a1 = "", b1 = "";
List<char> d1 = new List<char> {};
List<char> d2 = n... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22]] | 8 | 622 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var A = sc.ReadIntArray(N);
var g = A.GroupBy(a => a);
int ans = 0;
foreach (var item in g) {
if (item.Key > item.Count()) {
ans += item.Count()... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var A = sc.ReadIntArray(N);
var g = A.GroupBy(a => a);
int ans = 0;
foreach (var item in g) {
if (item.Key > item.Count()) {
ans += item.Count()... | [["-", 0, 1, 0, 11, 12, 16, 31, 214, 141, 22], ["-", 75, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 0, 11, 12, 16, 12, 213, 63, 214, 205, 22], ["-", 0, 11, 12, 16, 12, 213, 63, 214, 0, 131], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 1, 0, 11, 12, 16, 12, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 16, 12, 214, 0, 1... | 8 | 1,090 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
namespace AtCodeeeer {
class AtCOOOOOOOOOOOder {
static void Main(string[] args) {
int n = int.Parse(ReadLine());
long[] s = ReadLine().Split(' ').Select(long.Parse).ToArray();
Array... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
namespace AtCodeeeer {
class AtCOOOOOOOOOOOder {
static void Main(string[] args) {
int n = int.Parse(ReadLine());
long[] s = ReadLine().Split(' ').Select(long.Parse).ToArray();
Array... | [["+", 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 | 224 |
using System;
using System.Linq;
using System.Collections.Generic;
class Cmondai {
static void Main() {
var N = Int64.Parse(Console.ReadLine());
var a = Console.ReadLine()
.Split(' ')
.Select(x => Int64.Parse(x))
.OrderBy(x => x)
.ToArray();
... | using System;
using System.Linq;
using System.Collections.Generic;
class Cmondai {
static void Main() {
var N = Int64.Parse(Console.ReadLine());
var a = Console.ReadLine()
.Split(' ')
.Select(x => Int64.Parse(x))
.OrderBy(x => x)
.ToArray();
... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 18], ["+", 75, 196, 0, 57, 15, 16, 12, 204, 205, 22], ["+", 0, 57, 15, 16, 12, 204, 206, 207, 0, 70], ["+", 12, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["+", 206, 207, 0, 28, 0, 204, 206, 2... | 8 | 259 |
using System;
using System.Linq;
namespace AtCoder {
class program {
static void Main(string[] args) {
int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = n[0];
int M = n[1];
Console.WriteLine(M * (100 * (N - M) + 1900 * M));
Console.ReadLine();
}
}
}
| using System;
using System.Linq;
namespace AtCoder {
class program {
static void Main(string[] args) {
int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = n[0];
int M = n[1];
Console.WriteLine((int)Math.Pow(2, M) * (100 * (N - M) + 1900 * M));
Console.ReadLine();
}
}
}
| [["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25], ["+", 0, 16, 31, 74, 51, 213, 63, 214, 205, 22], ["+", 0, 16, 31, 74, 51, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 74, 51, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 74, 51, 213, 3, 4, 0, 24], [... | 8 | 96 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int n = Cin.Ni();
int m = Cin.Ni();
int ans = m * 950 + ((n - m) * 100);
Console.WriteLine(ans);
}
}
public struct Parts {
public int Size;
public int Count;
public Parts(int size, int count) {
Size = size... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int n = Cin.Ni();
int m = Cin.Ni();
int ans = (m * 1900 + ((n - m) * 100)) * (int)Math.Pow(2, m);
Console.WriteLine(ans);
}
}
public struct Parts {
public int Size;
public int Count;
public Parts(int size, in... | [["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 12, 203], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 12, 203], ["+", 0, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 0, 24], [... | 8 | 262 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
class Simple {
int N, Z, W;
int[] a;
void Solve() {
// input
N = io.Int;
Z = io.Int;
W = io.Int;
a = new in... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
class Simple {
int N, Z, W;
int[] a;
void Solve() {
// input
N = io.Int;
Z = io.Int;
W = io.Int;
a = new in... | [["+", 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 | 428 |
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... | [["+", 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 | 1,532 |
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 m = long.Parse(input[1]);
long one... | 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 m = long.Parse(input[1]);
long one... | [["-", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["-", 0, 212, 0, 16, 31, 23, 0, 16, 17, 48], ["-", 0, 212, 0, 16, 31, 23, 0, 16, 12, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["-", 0, 16, 12, 23, 0, 16, 31, 16, 31, 203], ["... | 8 | 146 |
using System;
namespace ARC085_D___ABS {
class Program {
static void Main(string[] args) {
var NZW = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
var Ai = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
Console.WriteLine(Math.Max(Math.Abs(Ai[Ai.Length - 1] - Ai[Ai.Length - 2]... | using System;
namespace ARC085_D___ABS {
class Program {
static void Main(string[] args) {
var NZW = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
var Ai = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
Console.WriteLine(
NZW[0] != 1 ? Math.Max(Math.Abs(Ai[Ai.Length -... | [["+", 0, 28, 0, 41, 15, 16, 31, 204, 205, 22], ["+", 0, 41, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 41, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 79], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101... | 8 | 124 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp66 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
Console.WriteLine((int)Math.Sqrt(N));
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp66 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
Console.WriteLine((int)Math.Sqrt(N) * (int)Math.Sqrt(N));
}
}
}
| [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 3, 4, 0, 28, 0, 16, 12, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 12, 74, 0, 25], ["+", 0, 16, 12, 74, 51, 213, 63, 214, 205, 22], ["+", 0, 16, 12, 74, 51, 213, 63, 214, 0, 131], ["+", 0, 16, 12, 74, 51, 213, 63, 214, 141, 22], ["... | 8 | 75 |
using System;
namespace debug {
class Program {
static void Main(string[] args) {
ProgramC a = new ProgramC();
a.main();
}
}
// ABC077
class ProgramA {
public void main() {
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
if (s1[0] == s2[2] && s1[1] == s2[1] && s1[2] == s2[0]... | using System;
namespace debug {
class Program {
static void Main(string[] args) {
ProgramC a = new ProgramC();
a.main();
}
}
// ABC077
class ProgramA {
public void main() {
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
if (s1[0] == s2[2] && s1[1] == s2[1] && s1[2] == s2[0]... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 75, 196, 0, 1, 0, 11, 12, 241, 0, 3... | 8 | 918 |
using System;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Collections.Generic;
class Program {
private static int[] a;
private static int[] b;
private static int[] c;
static void Main() {
int n = int.Parse(Console.ReadLine());
a = Console.ReadLine().Split().Select(s => -... | using System;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Collections.Generic;
class Program {
private static int[] a;
private static int[] b;
private static int[] c;
static void Main() {
int n = int.Parse(Console.ReadLine());
a = Console.ReadLine().Split().Select(s => -... | [["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 16, 31, 16, 12, 204, 205, 22], ["+", 15, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["+", 12, 204, 206, 207, 0, 28, 0, 16, ... | 8 | 307 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_C {
class C077 {
//ヒストグラムから累積和を作成
// dicCountは昇順ソートされている必要.
static Dictionary<T, long> SumTable<T>(Dictionary<T, long> dicCount) {
Dictionary<T, long> dic = new Dictionary<T, lon... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_C {
class C077 {
//ヒストグラムから累積和を作成
// dicCountは昇順ソートされている必要.
static Dictionary<T, long> SumTable<T>(Dictionary<T, long> dicCount) {
Dictionary<T, long> dic = new Dictionary<T, lon... | [["-", 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, 258], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 197, 0, 198, 39, 232, 234, 232, 234, 22], ["-", 0, 197, 0, 198, 39, 232, 23... | 8 | 750 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Common;
public static class Common {
public static int BinSearchIndex(int v, int[] list) {
if (v > list.Last()) {
return list.Length;
}
int minRange = 0;
int maxRange = list.Count() - 1;
while (minRange != maxR... | using System;
using System.Collections.Generic;
using System.Linq;
using static Common;
public static class Common {
public static int BinSearchIndex(int v, int[] list) {
v = v + 1;
if (v > list.Last()) {
return list.Length;
}
int minRange = 0;
int maxRange = list.Count() - 1;
while (m... | [["+", 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, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 5... | 8 | 414 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Algorithm {
class Program {
const int ShopCount = 10;
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var openTimes = new int [N][];
var prices = new int [N][];
for (var i = 0; i < N; i++)
op... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Algorithm {
class Program {
const int ShopCount = 10;
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var openTimes = new int [N][];
var prices = new int [N][];
for (var i = 0; i < N; i++)
op... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["+", 0, 200, 0, 212, 0, 241, 0, 23, 0, 24], ["+", 0, 212, 0, 241, 0, 23, 0, 214, 205, 199], ["+", 0, 212, 0, 241, 0, 23, 0, 214, 0, 131], ["+", 0, 212, 0, 241, 0, 23, 0, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 241, 0, 23, 0, ... | 8 | 276 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Linq;
using System.Diagnostics;
using System.Globalization;
using static System.Console;
using static System.Math;
namespace abc80_c {
class Program {
static void Main(string[] args) {
int n... | using System;
using System.Linq;
using static System.Console;
using static System.Math;
namespace abc80_c {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[][] f = new int [n][];
int[][] p = new int [n][];
for (int i = 0; i < n; i++) {
int[] tmp = R... | [["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["-", 36, 36, 0, 208,... | 8 | 331 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStand... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStand... | [["+", 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 | 527 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace competitive_programming {
class Program {
static void Main(string[] args) {
var main = new Program();
main.solve();
}
void solve() {
nums =
Console.ReadLine().Select(val => int.Parse(val.To... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace competitive_programming {
class Program {
static void Main(string[] args) {
var main = new Program();
main.solve();
}
void solve() {
nums =
Console.ReadLine().Select(val => int.Parse(val.To... | [["+", 15, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["-", 0, 57, 15, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 57, 15, 213, 3, 4, 0, 28, 0, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]... | 8 | 329 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.IO.Pipes;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCorders {
public class Program {
static void Main(string[] args) {
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.IO.Pipes;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCorders {
public class Program {
static void Main(string[] args) {
... | [["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 64, 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], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8... | 8 | 318 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.