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.Collections.Generic;
using System.Linq;
namespace Atcoder {
class Program {
static void Main(string[] args) {
// var a = Console.ReadLine().Split().Select(s => int.Parse(s)).ToArray();
long x = int.Parse(Console.ReadLine());
long x500;
long mod;
long x5;
long ans;
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Atcoder {
class Program {
static void Main(string[] args) {
// var a = Console.ReadLine().Split().Select(s => int.Parse(s)).ToArray();
long x = int.Parse(Console.ReadLine());
long x500;
long mod;
long x5;
long ans;
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]] | 8 | 109 |
using System;
using System.Collections.Generic;
using System.Numerics;
using System.Linq;
using static System.Math;
class MainClass {
public static void Main(string[] args) {
var x = LnInt();
var a = (x % 500);
var n500 = x / 500;
var n5 = a / 5 * 5;
Console.WriteLine(n500 + n5);
}
public s... | using System;
using System.Collections.Generic;
using System.Numerics;
using System.Linq;
using static System.Math;
class MainClass {
public static void Main(string[] args) {
var x = LnLng();
var a = (x % 500);
var n500 = x / 500 * 1000;
var n5 = a / 5 * 5;
Console.WriteLine(n500 + n5);
}
... | [["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203]] | 8 | 523 |
using System;
namespace AtCoder {
class MainClass {
public static void Main(string[] args) {
int input = int.Parse(Console.ReadLine());
int bigcoin = input % 500;
input = input - 500 * bigcoin;
int smallcoin = input % 5;
Console.WriteLine(1000 * bigcoin + 5 * smallcoin);
}
}
} | using System;
namespace AtCoder {
class MainClass {
public static void Main(string[] args) {
int input = int.Parse(Console.ReadLine());
int bigcoin = input / 500;
input = input - 500 * bigcoin;
int smallcoin = input / 5;
Console.WriteLine(1000 * bigcoin + 5 * smallcoin);
}
}
}
| [["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85]] | 8 | 72 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public static void Main(string[] args) { new B().test(); }
}
public class B {
public void test() {
// 普通の文字列取得
// 英語小文字のみ
long input = CommonRead.ReadLong();
var fiveHundred = 500;
// ... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public static void Main(string[] args) { new B().test(); }
}
public class B {
public void test() {
// 普通の文字列取得
// 英語小文字のみ
long input = CommonRead.ReadLong();
var fiveHundred = 500;
// 5... | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]] | 8 | 550 |
using System.Collections.Generic;
using System.Linq;
public class Hello {
public static void Main() {
hoge();
// System.Console.ReadLine();
}
public static void hoge() {
var kane =
System.Console.ReadLine().Split(' ').Select(long.Parse).ToArray()[0];
long big = kane / 500;
kane = ka... | using System.Collections.Generic;
using System.Linq;
public class Hello {
public static void Main() {
hoge();
// System.Console.ReadLine();
}
public static void hoge() {
var kane =
System.Console.ReadLine().Split(' ').Select(long.Parse).ToArray()[0];
long big = kane / 500;
kane = ka... | [["-", 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, 109], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 111 |
using System;
using System.Collections.Generic;
using System.IO.Pipes;
namespace cswork {
class Program {
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
ret... | using System;
using System.Collections.Generic;
using System.IO.Pipes;
namespace cswork {
class Program {
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
ret... | [["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 499 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder.Contests.ABC160 {
/// <summary>
///
/// </summary>
static class C {
static void Main(string[] args) {
var k = NextInt();
var n = NextInt();
var aas = ReadIntArray();
var zero = k - aas[n - 1] + aas... | using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder.Contests.ABC160 {
/// <summary>
///
/// </summary>
static class C {
static void Main(string[] args) {
var k = NextInt();
var n = NextInt();
var aas = ReadIntArray();
var zero = k - aas[n - 1] + aas... | [["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 29],... | 8 | 578 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_solve {
class Program {
public const ulong mod = 1000000007;
static void Main(string[] args)
{
var kn = Input3();
var a = Input3();
long[] d = new long[kn[1]];
l... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_solve {
class Program {
public const ulong mod = 1000000007;
static void Main(string[] args)
{
var kn = Input3();
var a = Input3();
long[] d = new long[kn[1]];
l... | [["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 12, 204, 205, 22], ["+", 0, 11, 12, 16, 12, 204, 206, 207, 0, 70], ["+", 12, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 12, 16, 12, 204, 206, 207, 0, 73]] | 8 | 410 |
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
namespace abc160 {
class Program {
static void Main(string[] args) {
if (File.Exists("input.txt")) {
Console.SetIn(new StreamReader("input.txt"));
}
solve_abc160C();
}
p... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
namespace abc160 {
class Program {
static void Main(string[] args) {
if (File.Exists("input.txt")) {
Console.SetIn(new StreamReader("input.txt"));
}
solve_abc160C();
}
p... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33]] | 8 | 341 |
using System;
namespace AtCoder {
class MainClass {
public static void Main() {
string[] input1 = Console.ReadLine().Split(' ');
int K = int.Parse(input1[0]);
int N = int.Parse(input1[1]);
string[] input2 = Console.ReadLine().Split(' ');
int[] points = new int[N];
for (int i = 1; i <= N; ... | using System;
namespace AtCoder {
class MainClass {
public static void Main() {
string[] input1 = Console.ReadLine().Split(' ');
int K = int.Parse(input1[0]);
int N = int.Parse(input1[1]);
string[] input2 = Console.ReadLine().Split(' ');
int[] points = new int[N];
for (int i = 1; i <= N; ... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 0, 16, 31, 16, 12, 204, 206, 207, 0, 73], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 200, 0, 212, 0, 16, 12, 204, 205, 22], ["+", 0, 212, 0, 16, 12, 204, 206, 207, 0, 70], ["+", 0, 16, 12, 204, 206, 207, 0, 28... | 8 | 213 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_Training {
public class Program {
static void Main(string[] args) {
var kn = Console.ReadLine().Split(' ');
var k = int.Parse(kn[0]);
var n = int.Parse(kn[1]);
var a = Con... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_Training {
public class Program {
static void Main(string[] args) {
var kn = Console.ReadLine().Split(' ');
var k = int.Parse(kn[0]);
var n = int.Parse(kn[1]);
var a = Con... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 213... | 8 | 177 |
using System;
using System.Linq;
class TSAL {
static void Main(string[] args) {
int tmp;
string[] input = Console.ReadLine().Split(' ');
int k = int.Parse(input[0]);
int n = int.Parse(input[1]);
int[] a =
Console.ReadLine().Split(' ').Select((x) => int.Parse(x)).ToArray();
int max... | using System;
using System.Linq;
class TSAL {
static void Main(string[] args) {
int tmp;
string[] input = Console.ReadLine().Split(' ');
int k = int.Parse(input[0]);
int n = int.Parse(input[1]);
int[] a =
Console.ReadLine().Split(' ').Select((x) => int.Parse(x)).ToArray();
int max... | [["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 72], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72]] | 8 | 176 |
using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
namespace Main {
class Program {
static void Main(string[] args) {
string[] tmp = ReadLine().Split(' ');
int K = int.Parse(tmp[0]);
int N = int.Parse(tmp[1]);
string[] tmp2 = ReadLine().Split(' ');
Li... | using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
namespace Main {
class Program {
static void Main(string[] args) {
string[] tmp = ReadLine().Split(' ');
int K = int.Parse(tmp[0]);
int N = int.Parse(tmp[1]);
string[] tmp2 = ReadLine().Split(' ');
Li... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 218 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
// 湖の距離と家の数
var input = Console.ReadLine().Split(' ');
var numArray = input.Select(x => int.Parse(x)).ToArray();
// 家のそれぞれの距離
var ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
// 湖の距離と家の数
var input = Console.ReadLine().Split(' ');
var numArray = input.Select(x => int.Parse(x)).ToArray();
// 家のそれぞれの距離
var ... | [["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 16, 12, 204, 205, 22], ["+", 0, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 16, 12, 204, 206, 207, 0, 73], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 39, 216,... | 8 | 257 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderCs {
class Program {
static void Main() {
var Arg = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var House =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var Result = ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderCs {
class Program {
static void Main() {
var Arg = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var House =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var Result = ... | [["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 176 |
using System;
using System.IO;
namespace abc160_1 {
class Program {
static void Main(string[] args) {
Console.SetIn(new StreamReader(Console.OpenStandardInput(1000000)));
var first = Console.ReadLine().Trim().Split(' ');
var k = int.Parse(first[0]);
var n = int.Parse(first[1]);
var houses = Consol... | using System;
using System.IO;
namespace abc160_1 {
class Program {
static void Main(string[] args) {
Console.SetIn(new StreamReader(Console.OpenStandardInput(1000000)));
var first = Console.ReadLine().Trim().Split(' ');
var k = int.Parse(first[0]);
var n = int.Parse(first[1]);
var houses = Consol... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22]] | 8 | 206 |
using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var kn = Console.ReadLine().Split(' ');
// 演習の長さ
var k = long.Parse(kn[0]);
// 家の数
var n = long.Parse(kn[1]);
// 家の距離
var a = Console.ReadLine().Split(' ');
var max = 0L;
for (var i = 1; i < ... | using System;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var kn = Console.ReadLine().Split(' ');
// 演習の長さ
var k = long.Parse(kn[0]);
// 家の数
var n = long.Parse(kn[1]);
// 家の距離
var a = Console.ReadLine().Split(' ');
var max = 0L;
for (var i = 1; i < ... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33]] | 8 | 175 |
using System;
using static System.Console;
using System.Linq;
namespace AC {
public class shiokara {
static void Main(string[] args) {
int[] kn = ReadLine().Split(' ').Select(int.Parse).ToArray();
int[] homedis = ReadLine().Split(' ').Select(int.Parse).ToArray();
int[] homedisspc = new int[kn[1]];
... | using System;
using static System.Console;
using System.Linq;
namespace AC {
public class shiokara {
static void Main(string[] args) {
int[] kn = ReadLine().Split(' ').Select(int.Parse).ToArray();
int[] homedis = ReadLine().Split(' ').Select(int.Parse).ToArray();
int[] homedisspc = new int[kn[1]];
... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 24], ["+... | 8 | 183 |
using System;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using System.Text;
class DandA {
static void Main(string[] args) {
int[] kn = ReadLineIntArray();
int[] aArr = ReadLineIntArray();
int wk = 0;
int rtn = 0;
for (int i = 0; i < kn[1] - 1; i++) {
if (... | using System;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using System.Text;
class DandA {
static void Main(string[] args) {
int[] kn = ReadLineIntArray();
int[] aArr = ReadLineIntArray();
int wk = 0;
int rtn = 0;
for (int i = 0; i < kn[1] - 1; i++) {
if (... | [["+", 3, 4, 0, 28, 0, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33]] | 8 | 1,251 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace C {
class Program {
static void Main(string[] args) {
var kn = Console.ReadLine().Split();
var around = int.Parse(kn[0]);
var time = int.Parse(kn[1]);
var data = Console.ReadL... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace C {
class Program {
static void Main(string[] args) {
var kn = Console.ReadLine().Split();
var around = int.Parse(kn[0]);
var time = int.Parse(kn[1]);
var data = Console.ReadL... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33]] | 8 | 221 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace competitive_programming {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int K = int.Parse(input[0]);
int N = int.Parse(input[0]);
int[] position ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace competitive_programming {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int K = int.Parse(input[0]);
int N = int.Parse(input[0]);
int[] position ... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 201 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace c {
class Program {
static void Main(string[] args) {
var _ = Console.ReadLine().Split();
var k = int.Parse(_[0]);
var n = int.Parse(_[1]);
var a = Console.ReadLine().Split().Select(i => int.Parse(i)).ToList();
a.Add(k)... | using System;
using System.Linq;
using System.Collections.Generic;
namespace c {
class Program {
static void Main(string[] args) {
var _ = Console.ReadLine().Split();
var k = int.Parse(_[0]);
var n = int.Parse(_[1]);
var a = Console.ReadLine().Split().Select(i => int.Parse(i)).ToList();
a.Add(k ... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 12, 204, 205, 22], ["+", 0, 28, 0, 16, 12, 204, 206, 207, 0, 70], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 16, 12, 204, 206, 207, 0, 73]] | 8 | 164 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var firstLine = Console.ReadLine()
.Split(' ')
.Select(value => int.Parse(value))
.ToList();
var k =... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var firstLine = Console.ReadLine()
.Split(' ')
.Select(value => int.Parse(value))
.ToList();
var k =... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33]] | 8 | 201 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int x = sc.NextInt();
int y = sc.NextInt();
int z = sc.NextInt();
string answer = z + " " + y + " " + x;
Console.WriteLine(answer);
}... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int x = sc.NextInt();
int y = sc.NextInt();
int z = sc.NextInt();
string answer = z + " " + x + " " + y;
Console.WriteLine(answer);
}... | [["-", 0, 212, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 212, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]] | 8 | 385 |
using System;
using System.Collections.Generic;
using System.Text;
namespace AtCorder1 {
class AtCorder161A {
static void Main() {
string[] line = System.Console.ReadLine().Trim().Split(' ');
var a = int.Parse(line[0]);
var b = int.Parse(line[1]);
var c = int.Parse(line[2]);
var tmp = b;
b ... | using System;
using System.Collections.Generic;
using System.Text;
namespace AtCorder1 {
class AtCorder161A {
static void Main() {
string[] line = System.Console.ReadLine().Trim().Split(' ');
var a = int.Parse(line[0]);
var b = int.Parse(line[1]);
var c = int.Parse(line[2]);
var tmp = b;
b ... | [["-", 31, 16, 31, 16, 31, 16, 12, 252, 0, 104], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["-", 0, 212, 0, 16, 31, 16, 12, 252, 0, 104], ["+", 0, 212, 0, 16, 31, 16, 12, 5, 0, 62]] | 8 | 143 |
using System;
class Program {
static void Main(string[] args) {
// スペース区切りの整数の入力
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
int c = int.Parse(input[2]);
//出力
Console.WriteLine(String.Format("{0}{1}{2}", c, a, b));
}
} | using System;
class Program {
static void Main(string[] args) {
// スペース区切りの整数の入力
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
int c = int.Parse(input[2]);
//出力
Console.WriteLine(String.Format("{0} {1} {2}", c, a, b));
}
} | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 97 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
public class Coder {
public static int[] ReadArray() {
return Array.ConvertAll(Console.ReadLine().Split(' '),
m => Convert.ToInt32(m));
}
public static int ReadInt() { return Convert.ToI... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
public class Coder {
public static int[] ReadArray() {
return Array.ConvertAll(Console.ReadLine().Split(' '),
m => Convert.ToInt32(m));
}
public static int ReadInt() { return Convert.ToI... | [["-", 0, 284, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 284, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 201 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
Console.WriteLine(inputs[2] + " " + inputs[1] + " " + inputs[0]);
}
} | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
Console.WriteLine(inputs[2] + " " + inputs[0] + " " + inputs[1]);
}
} | [["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 78 |
using System;
namespace AtCoderMake._161 {
class ABC161A {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
Console.WriteLine(input[2] + " " + input[0] + " "[1]);
}
}
} | using System;
namespace AtCoderMake._161 {
class ABC161A {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
Console.WriteLine(input[2] + " " + input[0] + " " + input[1]);
}
}
} | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 12, 204, 205, 22]] | 8 | 68 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
class program {
static public int mod = 1000000007;
static void Main() {
var nm = inta();
int n = nm[0], m = nm[1];
var a = inta();
Ar... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
class program {
static public int mod = 1000000007;
static void Main() {
var nm = inta();
int n = nm[0], m = nm[1];
var a = inta();
Ar... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19]] | 8 | 808 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
var input = ReadLine().Split(' ').Select(int.Parse).ToArray();
var n = input[0];
var m = input[1];
var input1 = ReadLine().Split(' ').Select(int.Parse).ToArray();
v... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
var input = ReadLine().Split(' ').Select(int.Parse).ToArray();
var n = input[0];
var m = input[1];
var input1 = ReadLine().Split(' ').Select(int.Parse).ToArray();
d... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 212, 0, 16, 12, 23, 0, 16, 31, 203], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 31, 250]] | 8 | 156 |
using System;
using System.Collections.Generic;
using System.Linq;
class Progaram {
static void Main(string[] args) {
var l = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var n = l[0];
var m = l[1];
var line =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArr... | using System;
using System.Collections.Generic;
using System.Linq;
class Progaram {
static void Main(string[] args) {
var l = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var n = l[0];
var m = l[1];
var line =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArr... | [["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 47], ["-", 0, 28, 0, 218, 8, 16, 12, 16, 31, 22], ["-", 0, 28, 0, 218, 8, 16, 12, 16, 17, 85], ["-", 0, 218, 8, 16, 12, 16, 12, 23, 0, 24], ["+", 0, 218, 8, 16, 31, 16, 31, 16, 17, 48], ["-", 0, 218, 8, 16, 12, 16, 12, 23, 0, 25], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 20], ["+", 3... | 8 | 169 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace cs {
class Program {
static void Main(string[] args) {
var pg = new Program();
pg.Execute();
}
private void Execute() {
var input = ReadLinesLongList;
var ALists = ReadLinesLongList;
var N = (int)input.ElementAt(0)... | using System;
using System.Linq;
using System.Collections.Generic;
namespace cs {
class Program {
static void Main(string[] args) {
var pg = new Program();
pg.Execute();
}
private void Execute() {
var input = ReadLinesLongList;
var ALists = ReadLinesLongList;
var N = (int)input.ElementAt(0)... | [["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 20]] | 8 | 253 |
using System;
using System.Linq;
using static System.Console;
class Program {
static void Main(string[] args) {
var NM = ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var (N, M) = (NM[0], NM[1]);
var A = ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var Asum = A.Sum();
... | using System;
using System.Linq;
using static System.Console;
class Program {
static void Main(string[] args) {
var NM = ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var (N, M) = (NM[0], NM[1]);
var A = ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var Asum = A.Sum();
... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 250]] | 8 | 169 |
using System;
using System.Linq;
namespace Sample {
class Sample {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int N = int.Parse(str[0]);
int M = int.Parse(str[1]);
string[] str2 = Console.ReadLine().Split(' ');
int[] tokuhyo = new int[N];
for (int i = 0; ... | using System;
using System.Linq;
namespace Sample {
class Sample {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int N = int.Parse(str[0]);
int M = int.Parse(str[1]);
string[] str2 = Console.ReadLine().Split(' ');
int[] tokuhyo = new int[N];
for (int i = 0; ... | [["+", 15, 16, 12, 23, 0, 16, 31, 74, 0, 24], ["-", 0, 57, 15, 16, 12, 74, 51, 23, 0, 24]] | 8 | 210 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace abc161_b {
class Program {
static void Main(string[] args) {
string[] nm = Console.ReadLine().Split(" ");
int n = int.Parse(nm[0]);
int m = int.Parse(nm[1]);
string[] ai = Console.ReadLine().Split(" ");
List<int> aiList... | using System;
using System.Collections.Generic;
using System.Linq;
namespace abc161_b {
class Program {
static void Main(string[] args) {
string[] nm = Console.ReadLine().Split(" ");
int n = int.Parse(nm[0]);
int m = int.Parse(nm[1]);
string[] ai = Console.ReadLine().Split(" ");
List<int> aiList... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 208 |
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text.RegularExpressions;
using System.Threading;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
long[] iArray =
... | using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text.RegularExpressions;
using System.Threading;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
long[] iArray =
... | [["+", 8, 196, 0, 57, 15, 16, 31, 74, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 74, 39, 199], ["+", 8, 196, 0, 57, 15, 16, 31, 74, 0, 25], ["+", 0, 57, 15, 16, 12, 16, 12, 74, 0, 24], ["+", 0, 57, 15, 16, 12, 16, 12, 74, 39, 199], ["+", 0, 57, 15, 16, 12, 16, 12, 74, 0, 25]] | 8 | 300 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace atcoder {
class Program {
static void Main(string[] args) {
var nm =
Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray();
var arrays =
Console.ReadLine().Split(' ').Select(num... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace atcoder {
class Program {
static void Main(string[] args) {
var nm =
Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray();
var arrays =
Console.ReadLine().Split(' ').Select(num... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 160 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
int[] arr =
Console.ReadLine().Split(' ').Select(v => int.Parse(v)).ToArray();
IEnumerable<int> arrTwo =
Console.ReadLine().Split(' ').Select(v => int.Parse(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
double[] arr =
Console.ReadLine().Split(' ').Select(v => double.Parse(v)).ToArray();
IEnumerable<double> arrTwo =
Console.ReadLine().Split(' ').Select(v => d... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 195, 8, 196, 0... | 8 | 154 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc161_b {
class Program {
static void Main(string[] args) {
string[] kazu = Console.ReadLine().Split(' ');
int N = int.Parse(kazu[0]);
int M = int.Parse(kazu[1]);
string[] hy... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc161_b {
class Program {
static void Main(string[] args) {
string[] kazu = Console.ReadLine().Split(' ');
int N = int.Parse(kazu[0]);
int M = int.Parse(kazu[1]);
string[] hy... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 241 |
using System;
using System.Linq;
public class Test {
public static void Main() {
var line1 = System.Console.ReadLine();
var line2 = System.Console.ReadLine();
string[] str1 = line1.Split(' ');
//商品の総数
int n = int.Parse(str1[0]);
//選択する人気商品数
int m = int.Parse(str1[1]);
//得票数
string... | using System;
using System.Linq;
public class Test {
public static void Main() {
var line1 = System.Console.ReadLine();
var line2 = System.Console.ReadLine();
string[] str1 = line1.Split(' ');
//商品の総数
int n = int.Parse(str1[0]);
//選択する人気商品数
int m = int.Parse(str1[1]);
//得票数
string... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 15, 16, 12, 23, 0, 16, 31, 74, 0, 24], ["+", 15, 16, 12, 23, 0, 16, 31, 74, 39, 199], ["+", 15, 16, 12, 23, 0, 16, 31, 74, 0, 25]] | 8 | 262 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
namespace Paiza {
public static class Program {
public static void Main(string[] args) {
var m = ReadLine().SplitToIntList()[1];
var data = ReadLine().SplitToIntList().OrderByDescending(a... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
namespace Paiza {
public static class Program {
public static void Main(string[] args) {
var m = ReadLine().SplitToIntList()[1];
var data = ReadLine().SplitToIntList().OrderByDescending(a... | [["+", 0, 212, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 212, 0, 16, 31, 23, 0, 16, 12, 203]] | 8 | 3,887 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace abc161 {
class Program {
static void Main(string[] args) {
var nm = Console.ReadLine().Split().Select(s => int.Parse(s)).ToArray();
var a = Console.ReadLine().Split().Select(s => int.Parse(s)).ToArray();
var border = (a.Sum()) /... | using System;
using System.Collections.Generic;
using System.Linq;
namespace abc161 {
class Program {
static void Main(string[] args) {
var nm = Console.ReadLine().Split().Select(s => int.Parse(s)).ToArray();
var a = Console.ReadLine().Split().Select(s => int.Parse(s)).ToArray();
var border = (float)(a.S... | [["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25], ["+", 0, 212, 0, 16, 31, 74, 51, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 0, 25]] | 8 | 175 |
using System;
using System.Linq;
namespace hello_cs
{
class Program
{
static void Main(string[] args)
{
var blank = " ";
var num = System.Console.ReadLine().Split(blank.ToCharArray());
var n = int.Parse(num[0]);
var m = int.Parse(num[1]);
var vote = Console.ReadLine()
... | using System;
using System.Linq;
namespace hello_cs
{
class Program
{
static void Main(string[] args)
{
var blank = " ";
var num = System.Console.ReadLine().Split(blank.ToCharArray());
var n = int.Parse(num[0]);
var m = int.Parse(num[1]);
var vote = Console.ReadLine()
... | [["+", 0, 218, 8, 16, 12, 16, 31, 74, 0, 24], ["+", 0, 218, 8, 16, 12, 16, 31, 74, 39, 199], ["+", 0, 218, 8, 16, 12, 16, 31, 74, 0, 25], ["+", 0, 218, 8, 16, 12, 16, 12, 74, 0, 24], ["+", 0, 218, 8, 16, 12, 16, 12, 74, 39, 199], ["+", 0, 218, 8, 16, 12, 16, 12, 74, 0, 25]] | 8 | 177 |
using System;
using System.Collections.Generic;
using System.Numerics;
using System.Linq;
using static System.Math;
class MainClass {
public static void Main(string[] args) {
var _ = LnInts();
var N = _[0];
var M = _[1];
var As = LnInts();
var total = 0;
foreach (var i in As) {
total +... | using System;
using System.Collections.Generic;
using System.Numerics;
using System.Linq;
using static System.Math;
class MainClass {
public static void Main(string[] args) {
var _ = LnInts();
var N = _[0];
var M = _[1];
var As = LnInts();
var total = 0;
foreach (var i in As) {
total +... | [["-", 15, 16, 12, 16, 12, 23, 0, 16, 31, 203], ["+", 15, 16, 12, 16, 12, 23, 0, 16, 31, 250]] | 8 | 576 |
using System;
using System.Collections.Generic;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int m = int.Parse(input[1]);
string[] numbers = Console.ReadLine().Split(' ');
int total = 0;
... | using System;
using System.Collections.Generic;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int m = int.Parse(input[1]);
string[] numbers = Console.ReadLine().Split(' ');
long total = 0;
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 250]] | 8 | 200 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace B {
class Program {
static void Main(string[] args) {
// 入力
string[] tmp = Console.ReadLine().Split(' ');
int N = int.Parse(tmp[0]);
int M = int.Parse(tmp[1]);
tmp = Console.ReadLine().Split(' ');
List<int> A = new... | using System;
using System.Collections.Generic;
using System.Linq;
namespace B {
class Program {
static void Main(string[] args) {
// 入力
string[] tmp = Console.ReadLine().Split(' ');
int N = int.Parse(tmp[0]);
int M = int.Parse(tmp[1]);
tmp = Console.ReadLine().Split(' ');
List<int> A = new... | [["-", 15, 16, 12, 16, 12, 23, 0, 16, 31, 203], ["+", 15, 16, 12, 16, 12, 23, 0, 16, 31, 250]] | 8 | 216 |
using System;
class Program {
static void Main(string[] arg) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int m = int.Parse(input[1]);
int[] input2 = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
double sum = 0;
for (int i = 0; i < n; i++) {
... | using System;
class Program {
static void Main(string[] arg) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int m = int.Parse(input[1]);
int[] input2 = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
double sum = 0;
for (int i = 0; i < n; i++) {
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 259 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
public static void Main() {
string[] input = Console.ReadLine().Split();
int N = int.Parse(input[0]);
int M = int.Parse(input[1]);
input = Console.ReadLine().Split();
int[] A = new int[N];
for... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
public static void Main() {
string[] input = Console.ReadLine().Split();
int N = int.Parse(input[0]);
int M = int.Parse(input[1]);
input = Console.ReadLine().Split();
double[] A = new double[N];
... | [["-", 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, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]] | 8 | 199 |
using System;
using System.Collections.Generic;
namespace tst {
class Program {
public static void Main() {
string[] In1 = Console.ReadLine().Split(' ');
int n = int.Parse(In1[0]);
int m = int.Parse(In1[1]);
string[] In2 = Console.ReadLine().Split(' ');
int[] A = new int[n];
int sum = 0;
... | using System;
using System.Collections.Generic;
namespace tst {
class Program {
public static void Main() {
string[] In1 = Console.ReadLine().Split(' ');
int n = int.Parse(In1[0]);
int m = int.Parse(In1[1]);
string[] In2 = Console.ReadLine().Split(' ');
int[] A = new int[n];
int sum = 0;
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 212, 0, 16, 12, 23, 0, 16, 31, 203], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 31, 250]] | 8 | 215 |
class program {
static void Main() {
bool test = true;
string[] line1 = System.Console.ReadLine().Split(' ');
string[] line2 = System.Console.ReadLine().Split(' ');
string hozon;
for (int z = 0; z < int.Parse(line1[0]); z++) {
int max = 0;
int za = 0;
for (int v = z; v < line2.Le... | class program {
static void Main() {
bool test = true;
string[] line1 = System.Console.ReadLine().Split(' ');
string[] line2 = System.Console.ReadLine().Split(' ');
string hozon;
for (int z = 0; z < int.Parse(line1[0]); z++) {
int max = 0;
int za = 0;
for (int v = z; v < line2.Le... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 15, 16, 31, 16, 12, 23, 0, 16, 31, 203], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 31, 250], ["-", 12, 23, 0, 16, 12, 213, 63, 214, 205, 199], ["+", 12, 23, 0, 16, 12, 213, 63, 214, 205, 199], ["-", 0, 57, 15, 16, 12, 213,... | 8 | 309 |
using System;
using System.Collections.Generic;
public class Hello {
public static void Main() {
var input = Console.ReadLine().Split(' ');
var product = Console.ReadLine().Split(' ');
var answer = "";
List<int> voteList = new List<int>();
int total = 0;
for (var i = 0; i < int.Parse(input[0... | using System;
using System.Collections.Generic;
public class Hello {
public static void Main() {
var input = Console.ReadLine().Split(' ');
var product = Console.ReadLine().Split(' ');
var answer = "";
List<int> voteList = new List<int>();
int total = 0;
for (var i = 0; i < int.Parse(input[0... | [["+", 8, 196, 0, 57, 15, 16, 31, 74, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 74, 39, 199], ["+", 8, 196, 0, 57, 15, 16, 31, 74, 0, 25], ["+", 0, 57, 15, 16, 31, 74, 51, 23, 0, 24], ["+", 0, 57, 15, 16, 31, 74, 51, 23, 0, 25], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 250]... | 8 | 201 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderB {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
int m = sc.NextInt();
int[] a = sc.IntArray();
a = a.OrderByDescending(i => i).ToArray();
int sum = a.Sum();
f... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderB {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
int m = sc.NextInt();
int[] a = sc.IntArray();
a = a.OrderByDescending(i => i).ToArray();
int sum = a.Sum();
f... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 250], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]] | 8 | 436 |
using System;
namespace abc161B {
class MainClass {
public static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int N = int.Parse(str[0]);
int M = int.Parse(str[1]);
long[] a = new long[N];
str = Console.ReadLine().Split();
for (int i = 0; i < N; i++) {
a[i] = lo... | using System;
namespace abc161B {
class MainClass {
public static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int N = int.Parse(str[0]);
int M = int.Parse(str[1]);
long[] a = new long[N];
str = Console.ReadLine().Split();
for (int i = 0; i < N; i++) {
a[i] = lo... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 16, 12, 16, 12, 23, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 48], ["-", 0, 57, 15, 16, 12, 16, 12, 23, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+... | 8 | 211 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace CSharpSample01 {
class Program {
static void Main(string[] args) {
var inputNum = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
var N = inputNum[0];
var M = inputNum[1];
var inputNum... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace CSharpSample01 {
class Program {
static void Main(string[] args) {
var inputNum = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
var N = inputNum[0];
var M = inputNum[1];
var inputNum... | [["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 20]] | 8 | 225 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace A {
class Program {
public static void Main(string[] args) {
var n = ReadLineIntSpilit();
var a = ReadLineIntSpilit();
var all = 0;
for (int i = 0; i < a.Length; i++) {
all += a[i];
}
var result = "Yes";
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace A {
class Program {
public static void Main(string[] args) {
var n = ReadLineIntSpilit();
var a = ReadLineIntSpilit();
var all = 0;
for (int i = 0; i < a.Length; i++) {
all += a[i];
}
var result = "Yes";
... | [["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 17, 48], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 12, 250], ["+", 15, 16, 12, 23, 0, 16, 12, 23, 0, 25]] | 8 | 663 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace ABC161 {
public class Solve {
public static void Main(string[] args) { new ABC_B(); }
}
public class ABC_A {
public ABC_A() {
var i = Ex.ReadIntArray();
Ex.Cw($"{i[2]} {i[0]} {i[1]}");
}
}
public class ... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace ABC161 {
public class Solve {
public static void Main(string[] args) { new ABC_B(); }
}
public class ABC_A {
public ABC_A() {
var i = Ex.ReadIntArray();
Ex.Cw($"{i[2]} {i[0]} {i[1]}");
}
}
public class ... | [["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 19]] | 8 | 604 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var numArray = input.Select(x => long.Parse(x)).ToArray();
var input2 =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var numArray = input.Select(x => long.Parse(x)).ToArray();
var input2 =... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 216 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace B_Popular_Vote {
class Program {
static void Main(string[] args) {
string ans = "No";
int count = 0;
string[] str = Console.ReadLine().Split(' ');
int n = int.Parse(str[0]);
int m = int.Parse(st... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace B_Popular_Vote {
class Program {
static void Main(string[] args) {
string ans = "No";
int count = 0;
//入力++++++++++++++++++++++++++++++++++++++++++++++++
string[] str = Console.ReadLine().Split(' '... | [["-", 0, 212, 0, 16, 12, 23, 0, 16, 31, 203], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 31, 250], ["+", 0, 16, 12, 23, 0, 16, 12, 74, 0, 24], ["+", 0, 16, 12, 23, 0, 16, 12, 74, 39, 199], ["+", 0, 16, 12, 23, 0, 16, 12, 74, 0, 25]] | 8 | 226 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace AtCorder {
public static class Program {
static public void Main(string[] args) {
long[] input1 = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
long[] input2 = Console.ReadLine().Split(' ').Select(long... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace AtCorder {
public static class Program {
static public void Main(string[] args) {
long[] input1 = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
long[] input2 = Console.ReadLine().Split(' ').Select(long... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 39, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 39, 199]] | 8 | 218 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
string[] input1 = Console.ReadLine().Split(' ');
string[] input2 = Console.ReadLine().Split(' ');
int n = int.Parse(input1[0]);
int m = int.Parse(input1[1]);
int[] a = Array.ConvertAll(input2, int.Parse);
int an... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
string[] input1 = Console.ReadLine().Split(' ');
string[] input2 = Console.ReadLine().Split(' ');
int n = int.Parse(input1[0]);
int m = int.Parse(input1[1]);
int[] a = Array.ConvertAll(input2, int.Parse);
int an... | [["-", 15, 16, 12, 16, 12, 23, 0, 16, 31, 203], ["+", 15, 16, 12, 16, 12, 23, 0, 16, 31, 250]] | 8 | 179 |
using System;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var nm = Console.ReadLine().Split(' ');
// 商品の数
var n = long.Parse(nm[0]);
// 人気商品の数
var m = long.Parse(nm[1]);
// 得票数
var a = (from x in Console.ReadLine().Split(' ') select long.Pa... | using System;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var nm = Console.ReadLine().Split(' ');
// 商品の数
var n = long.Parse(nm[0]);
// 人気商品の数
var m = long.Parse(nm[1]);
// 得票数
var a = (from x in Console.ReadLine().Split(' ') select long.Pa... | [["-", 0, 212, 0, 16, 12, 23, 0, 16, 31, 203], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 31, 250]] | 8 | 160 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.AtCoder_Begginer_Contest_161 {
class B {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int M = i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.AtCoder_Begginer_Contest_161 {
class B {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int M = i... | [["-", 0, 212, 0, 16, 12, 23, 0, 16, 31, 203], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 31, 250]] | 8 | 192 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace B {
class Program {
static void Main(string[] args) {
var info = Console.ReadLine().Split(' ');
var vote = Console.ReadLine().Split(' ');
var nums = new int[int.Parse(info[0])];
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace B {
class Program {
static void Main(string[] args) {
var info = Console.ReadLine().Split(' ');
var vote = Console.ReadLine().Split(' ');
var nums = new int[int.Parse(info[0])];
... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 235 |
using System;
using System.Collections.Generic;
namespace ABC161b {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine().Split(' ');
int n = int.Parse(s[0]);
int m = int.Parse(s[1]);
var t = Console.ReadLine().Split(' ');
int all = 0;
List<int> list = new List<int>();... | using System;
using System.Collections.Generic;
namespace ABC161b {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine().Split(' ');
int n = int.Parse(s[0]);
int m = int.Parse(s[1]);
var t = Console.ReadLine().Split(' ');
int all = 0;
List<int> list = new List<int>();... | [["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25]] | 8 | 212 |
using System;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using System.Text;
class DandA {
static void Main(string[] args) {
int[] nm = ReadLineIntArray();
int[] aArr = ReadLineIntArray();
int wari = aArr.Sum() / (nm[1] * 4);
if (aArr.Sum() % (nm[1] * 4) != 0) {
... | using System;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using System.Text;
class DandA {
static void Main(string[] args) {
int[] nm = ReadLineIntArray();
int[] aArr = ReadLineIntArray();
int wari = aArr.Sum() / (nm[1] * 4);
if (aArr.Sum() % (nm[1] * 4) != 0) {
... | [["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 12, 23, 0, 16, 12, 204, 205, 22], ["+", 12, 23, 0, 16, 12, 204, 206, 207, 0, 70], ["+", 12, 23, 0, 16, 12, 204, 206, 207, 0, 73]] | 8 | 1,142 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace PaizaTest {
class Program {
static void Main(string[] args) {
var NM = Console.ReadLine().Split().Select(int.Parse).ToList();
var As = Console.ReadLine().Split().Select(int.Parse).ToList();
var sumA = As.Sum();
var borderV... | using System;
using System.Collections.Generic;
using System.Linq;
namespace PaizaTest {
class Program {
static void Main(string[] args) {
var NM = Console.ReadLine().Split().Select(int.Parse).ToList();
var As = Console.ReadLine().Split().Select(int.Parse).ToList();
var sumA = As.Sum();
var borderV... | [["-", 0, 212, 0, 16, 12, 23, 0, 16, 31, 203], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 31, 250]] | 8 | 140 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
public class Program {
public static void Main() {
int[] nm =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int n... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
public class Program {
public static void Main() {
int[] nm =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int n... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 85], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22]] | 8 | 206 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace practice001 {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
string[] input2 = Console.ReadLine().Split(' ');
int allGoods = in... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace practice001 {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
string[] input2 = Console.ReadLine().Split(' ');
int allGoods = in... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 85], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 48], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22]] | 8 | 254 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
// input
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int m = int.Parse(input[1]);
string[] input2 = Console.ReadLine().Split(' ');
var a = new int[n];
for (int i = 0; i < n... |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
// input
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
decimal m = int.Parse(input[1]);
string[] input2 = Console.ReadLine().Split(' ');
var a = new int[n];
for (int i = 0; i... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217]] | 8 | 215 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace q2 {
class Program {
static void Main(string[] args) {
var values1 =
Console.ReadLine().Split(' ').Select(x => Convert.ToInt32(x)).ToArray();
var values2 =
Console.Rea... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace q2 {
class Program {
static void Main(string[] args) {
var values1 =
Console.ReadLine().Split(' ').Select(x => Convert.ToInt32(x)).ToArray();
var values2 =
Console.Rea... | [["-", 0, 210, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 210, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 0, 57, 15, 16, 12, 23, 0, 16, 31, 22], ["-", 0, 57, 15, 16, 12, 23, 0, 16, 17, 85], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 48], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 20], [... | 8 | 200 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp5 {
class Program {
static void Main(string[] args) {
String S = Console.ReadLine();
String[] line = S.Split(' ');
long N = long.Parse(line[0]);
long M = long.Parse... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp5 {
class Program {
static void Main(string[] args) {
String S = Console.ReadLine();
String[] line = S.Split(' ');
long N = long.Parse(line[0]);
long M = long.Parse... | [["-", 15, 16, 12, 16, 12, 23, 0, 16, 31, 203], ["+", 15, 16, 12, 16, 12, 23, 0, 16, 31, 250]] | 8 | 235 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
static class Program {
static int[] ReadInts(this TextReader reader) =>
reader.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
static IEnumerable<int[]> ReadInts(this TextReader reader, int count) {
for (long i ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
static class Program {
static int[] ReadInts(this TextReader reader) =>
reader.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
static IEnumerable<int[]> ReadInts(this TextReader reader, int count) {
for (long i ... | [["-", 0, 212, 0, 16, 12, 23, 0, 16, 31, 203], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 31, 250]] | 8 | 265 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var inp = Console.ReadLine().Split(' ');
var inp2 = Console.ReadLine().Split(' ');
var inp2i = new List<int>();
for (int i = 0; i < int.Parse(inp[0]); i++) {
inp2i.Add(int.Pars... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var inp = Console.ReadLine().Split(' ');
var inp2 = Console.ReadLine().Split(' ');
var inp2i = new List<int>();
for (int i = 0; i < int.Parse(inp[0]); i++) {
inp2i.Add(int.Pars... | [["+", 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]] | 8 | 196 |
using System;
class SS {
static void Main() {
var lines = Console.ReadLine().Split(' ');
int M = int.Parse(lines[0]);
int N = int.Parse(lines[1]);
lines = Console.ReadLine().Split(' ');
int[] goods = new int[M];
int AmountGoods = 0;
for (int i = 0; i < M; i++) {
goods[i] = int.Parse(... | using System;
class SS {
static void Main() {
var lines = Console.ReadLine().Split(' ');
int M = int.Parse(lines[0]);
int N = int.Parse(lines[1]);
lines = Console.ReadLine().Split(' ');
int[] goods = new int[M];
float AmountGoods = 0;
for (int i = 0; i < M; i++) {
goods[i] = int.Pars... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 39, 199], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 0, 25]] | 8 | 196 |
using System;
using System.Collections.Generic;
using System.Linq;
class Ho {
static void Main() {
var zennbu = Console.ReadLine().Split();
var N = int.Parse(zennbu[0]);
var M = int.Parse(zennbu[1]);
var syurui = new List<int>();
var a = Console.ReadLine().Split();
foreach (var n in a) {
... | using System;
using System.Collections.Generic;
using System.Linq;
class Ho {
static void Main() {
var zennbu = Console.ReadLine().Split();
var N = int.Parse(zennbu[0]);
var M = int.Parse(zennbu[1]);
var syurui = new List<int>();
var a = Console.ReadLine().Split();
foreach (var n in a) {
... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 48], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["-", 0, 57, 15, 16, 12, 23, 0, 16, 17, 85], ["-", 0, 57, 15, 16, 12, 23, 0, 16, 12, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 23, 0, 25]] | 8 | 208 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Numerics;
namespace AtCoderWorkspace {
public class Solver {
public void Solve() {
var cin = new Scanner();
var n = cin.nextInt();
var m = cin.nextInt();
var... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Numerics;
namespace AtCoderWorkspace {
public class Solver {
public void Solve() {
var cin = new Scanner();
var n = cin.nextInt();
var m = cin.nextInt();
var... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18]] | 8 | 671 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Abc161B {
public static void Main() {
var nm = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int n = nm[0];
int m = nm[1];
var a = Console... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Abc161B {
public static void Main() {
var nm = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int n = nm[0];
int m = nm[1];
var a = Console... | [["+", 0, 200, 0, 212, 0, 16, 12, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 0, 25], ["+", 0, 212, 0, 16, 12, 74, 51, 23, 0, 24]] | 8 | 177 |
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
namespace abc161 {
class Program {
static void Main(string[] args) {
if (File.Exists("input.txt")) {
Console.SetIn(new StreamReader("input.txt"));
}
solve_abc161B();
}
... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
namespace abc161 {
class Program {
static void Main(string[] args) {
if (File.Exists("input.txt")) {
Console.SetIn(new StreamReader("input.txt"));
}
solve_abc161B();
}
... | [["+", 0, 57, 15, 16, 12, 16, 31, 74, 0, 24], ["+", 0, 57, 15, 16, 12, 16, 31, 74, 39, 199], ["+", 0, 57, 15, 16, 12, 16, 31, 74, 0, 25]] | 8 | 293 |
using System;
using System.Linq;
namespace _161abc {
class Program {
static void Main(string[] args) {
int[] read = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
int[] A = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
int sum = A.Sum();
int count = 0;
for (int i = 0; i < rea... | using System;
using System.Linq;
namespace _161abc {
class Program {
static void Main(string[] args) {
double[] read = Array.ConvertAll(Console.ReadLine().Split(), double.Parse);
double[] A = Array.ConvertAll(Console.ReadLine().Split(), double.Parse);
double sum = A.Sum();
double count = 0;
for (... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 165 |
using System;
using static System.Console;
using System.Linq;
namespace AC {
public class shiokara {
static void Main(string[] args) {
int[] n = ReadLine().Split(' ').Select(int.Parse).ToArray();
int[] a = ReadLine().Split(' ').Select(int.Parse).ToArray();
float can = a.Sum() / (n[1] * 4);
int[] ans... | using System;
using static System.Console;
using System.Linq;
namespace AC {
public class shiokara {
static void Main(string[] args) {
float[] n = ReadLine().Split(' ').Select(float.Parse).ToArray();
float[] a = ReadLine().Split(' ').Select(float.Parse).ToArray();
float can = a.Sum() / (n[1] * 4);
f... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]] | 8 | 152 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var NM = Console.ReadLine().Split(' ').Select(s =>... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var NM = Console.ReadLine().Split(' ').Select(s =>... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 18], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19]] | 8 | 177 |
using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
static void Main(string[] args) {
var r1 = ReadSplit();
var n = r1[0].ToInt();
var m = r1[1].ToInt();
var r2 = ReadSplit... | using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
static void Main(string[] args) {
var r1 = ReadSplit();
var n = r1[0].ToInt();
var m = r1[1].ToInt();
var r2 = ReadSplit... | [["+", 0, 57, 15, 16, 12, 16, 31, 74, 0, 24], ["+", 0, 57, 15, 16, 12, 16, 31, 74, 39, 199], ["+", 0, 57, 15, 16, 12, 16, 31, 74, 0, 25], ["+", 0, 57, 15, 16, 12, 16, 12, 74, 0, 24], ["+", 0, 57, 15, 16, 12, 16, 12, 74, 39, 199], ["+", 0, 57, 15, 16, 12, 16, 12, 74, 0, 25]] | 8 | 418 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace AtCoder.B {
internal static class CR {
public static string GetText() { return Console.ReadLine(); }
public static List<string> GetTexts() {
return Console.ReadLine().Split(' ').ToList();
}
pu... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace AtCoder.B {
internal static class CR {
public static string GetText() { return Console.ReadLine(); }
public static List<string> GetTexts() {
return Console.ReadLine().Split(' ').ToList();
}
pu... | [["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25]] | 8 | 288 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace MyProject {
class Program {
static void Main(string[] args) {
#if Local
var sw = new Stopwatch();
sw.Start();
Console.SetIn(new StreamReader("input.in"));
#endif
var solver = new S... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace MyProject {
class Program {
static void Main(string[] args) {
#if Local
var sw = new Stopwatch();
sw.Start();
Console.SetIn(new StreamReader("input.in"));
#endif
var solver = new S... | [["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 20], ["-", 0, 28, 0, 218, 8, 16, 12, 16, 31, 22], ["-", 0, 28, 0, 218, 8, 16, 12, 16, 17, 85], ["-", 0, 218, 8, 16, 12, 16, 12, 23, 0, 24], ["+", 0, 218, 8, 16, 31, 16, 31, 16, 17, 48], ["-", 0, 218, 8, 16, 12, 16, 12, 23, 0, 25], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 20], ["+", 3... | 8 | 245 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class220 {
static void Main() {
var NM = Console.ReadLine().Split().Select(int.Parse).ToArray();
var A = Console.ReadLine().Split().Select(int.Parse).ToArray();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class220 {
static void Main() {
var NM = Console.ReadLine().Split().Select(int.Parse).ToArray();
var A = Console.ReadLine().Split().Select(int.Parse).ToArray();
... | [["+", 0, 57, 15, 16, 12, 16, 31, 74, 0, 24], ["+", 0, 57, 15, 16, 12, 16, 31, 74, 39, 199], ["+", 0, 57, 15, 16, 12, 16, 31, 74, 0, 25]] | 8 | 172 |
using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
namespace Atcoder_0404 {
class Program {
static void Main(string[] args) {
var NM = GetInput_int();
int _contentCount = NM[0];
int _goodCount = NM[1];
List<int> _points = new List<int>(GetInput_int());
f... | using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
namespace Atcoder_0404 {
class Program {
static void Main(string[] args) {
var NM = GetInput_int();
int _contentCount = NM[0];
int _goodCount = NM[1];
List<int> _points = new List<int>(GetInput_int());
f... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]] | 8 | 392 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderCs {
class Program {
static void Main() {
var Arg = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var M = Arg[1];
var Ranking =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArra... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderCs {
class Program {
static void Main() {
var Arg = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var M = Arg[1];
var Ranking =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArra... | [["-", 0, 28, 0, 23, 0, 41, 15, 16, 17, 18], ["-", 0, 23, 0, 41, 15, 16, 12, 23, 0, 24], ["-", 0, 41, 15, 16, 12, 23, 0, 16, 31, 22], ["-", 0, 41, 15, 16, 12, 23, 0, 16, 17, 85], ["+", 0, 23, 0, 41, 15, 16, 31, 16, 17, 48], ["-", 0, 23, 0, 41, 15, 16, 12, 23, 0, 25], ["+", 0, 28, 0, 23, 0, 41, 15, 16, 17, 18], ["+", 0,... | 8 | 157 |
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() {
int[] nm =
Console.ReadLine().Split(' ').Select(val => i... | 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() {
int[] nm =
Console.ReadLine().Split(' ').Select(val => i... | [["+", 15, 16, 12, 23, 0, 16, 31, 74, 0, 24], ["-", 0, 57, 15, 16, 12, 74, 51, 23, 0, 24], ["+", 15, 16, 12, 23, 0, 16, 12, 74, 0, 24], ["+", 15, 16, 12, 23, 0, 16, 12, 74, 39, 199], ["+", 15, 16, 12, 23, 0, 16, 12, 74, 0, 25]] | 8 | 266 |
using System;
using System.Linq;
namespace ABC161 {
class B {
static void Main(string[] args) {
var a = Console.ReadLine().Split().Select(double.Parse).ToArray();
var n = a[0];
var m = a[1];
var A = Console.ReadLine().Split().Select(double.Parse).ToArray();
double sum = A.Sum();
double count... | using System;
using System.Linq;
namespace ABC161 {
class B {
static void Main(string[] args) {
var a = Console.ReadLine().Split().Select(double.Parse).ToArray();
var n = a[0];
var m = a[1];
var A = Console.ReadLine().Split().Select(double.Parse).ToArray();
double sum = A.Sum();
double count... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]] | 8 | 168 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Security.Cryptography;
using System.Text;
using static System.Math;
us... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Security.Cryptography;
using System.Text;
using static System.Math;
us... | [["-", 15, 16, 12, 16, 12, 23, 0, 16, 31, 203], ["+", 15, 16, 12, 16, 12, 23, 0, 16, 31, 250]] | 8 | 5,475 |
using System;
using System.Linq;
public class Program {
public static void Main() {
var inputs = Console.ReadLine().Split(' ').Select(long.Parse).ToList();
var n = inputs[0];
var k = inputs[1];
var remainder = Math.Abs(n) % k;
var answer = Math.Min(remainder, Math.Abs(remainder - n));
Consol... | using System;
using System.Linq;
public class Program {
public static void Main() {
var inputs = Console.ReadLine().Split(' ').Select(long.Parse).ToList();
var n = inputs[0];
var k = inputs[1];
var remainder = Math.Abs(n) % k;
var answer = Math.Min(remainder, Math.Abs(remainder - k));
Consol... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]] | 8 | 102 |
using System;
class ABCMuriTurai {
static void Main() {
decimal[] Ar =
Array.ConvertAll(Console.ReadLine().Split(' '), decimal.Parse);
decimal N = Ar[0];
decimal K = Ar[1];
Console.WriteLine(Math.Min(N % K, N - (N % K)));
}
} | using System;
class ABCMuriTurai {
static void Main() {
decimal[] Ar =
Array.ConvertAll(Console.ReadLine().Split(' '), decimal.Parse);
decimal N = Ar[0];
decimal K = Ar[1];
Console.WriteLine(Math.Min(N % K, K - (N % K)));
}
} | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22]] | 8 | 79 |
using System;
using System.Collections.Generic;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
long n = long.Parse(input[0]);
long k = long.Parse(input[1]);
long res = n;
if (k < n) {
res = n % k;
res = Math.... | using System;
using System.Collections.Generic;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
long n = long.Parse(input[0]);
long k = long.Parse(input[1]);
long res = n;
if (k < n) {
res = n % k;
}
res = M... | [["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 117 |
using System;
using System.Collections.Generic;
namespace AtCorder1 {
class atcoder {
static void Main(string[] args) {
string[] all = Console.ReadLine().Split(' ');
long N = int.Parse(all[0]);
long K = int.Parse(all[1]);
long mod = N % K;
long mod2 = K - mod;
if (mod < mod2) {
Consol... | using System;
using System.Collections.Generic;
namespace AtCorder1 {
class atcoder {
static void Main(string[] args) {
string[] all = Console.ReadLine().Split(' ');
long N = long.Parse(all[0]);
long K = long.Parse(all[1]);
long mod = N % K;
long mod2 = K - mod;
if (mod < mod2) {
Cons... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]] | 8 | 113 |
using System;
class Program {
public static void Main() {
var input = Console.ReadLine().Split();
long n = int.Parse(input[0]);
long k = int.Parse(input[1]);
long m = n % k;
long ans = Math.Min(m, Math.Abs(m - k));
Console.WriteLine(ans);
}
}
| using System;
class Program {
public static void Main() {
var input = Console.ReadLine().Split();
long n = long.Parse(input[0]);
long k = long.Parse(input[1]);
long m = n % k;
long ans = Math.Min(m, Math.Abs(m - k));
Console.WriteLine(ans);
}
} | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]] | 8 | 87 |
using System;
using System.Collections.Generic;
namespace atcoder {
class Program {
static void Main(string[] args) {
string[] In = Console.ReadLine().Split(' ');
int n = int.Parse(In[0]);
int k = int.Parse(In[1]);
long bef = n % k;
long af = k - bef;
if (bef < af)
Console.WriteLine(bef... | using System;
using System.Collections.Generic;
namespace atcoder {
class Program {
static void Main(string[] args) {
string[] In = Console.ReadLine().Split(' ');
long n = long.Parse(In[0]);
long k = long.Parse(In[1]);
long bef = n % k;
long af = k - bef;
if (bef < af)
Console.WriteLine... | [["-", 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 | 108 |
using System;
using System.Collections.Generic;
public class Hello {
public static void Main() {
var input = Console.ReadLine().Split(' ');
long n = long.Parse(input[0]);
long k = long.Parse(input[1]);
long abs = 0;
long margin = 0;
margin = n % k;
abs = Math.Abs(n - k);
long result... | using System;
using System.Collections.Generic;
public class Hello {
public static void Main() {
var input = Console.ReadLine().Split(' ');
long n = long.Parse(input[0]);
long k = long.Parse(input[1]);
long abs = 0;
long margin = 0;
margin = n % k;
abs = Math.Abs(margin - k);
long r... | [["-", 12, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 31, 22]] | 8 | 112 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using static System.Console;
class Program {
static void Main(string[] args) {
// 整数の入力
// int a = int.Parse(Console.ReadLine());
// スペース区切りの整数の入力
string[] NMK = Console.ReadLine().Split(' ');
double N... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using static System.Console;
class Program {
static void Main(string[] args) {
// 整数の入力
// int a = int.Parse(Console.ReadLine());
// スペース区切りの整数の入力
string[] NMK = Console.ReadLine().Split(' ');
long N =... | [["-", 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 | 131 |
/*******************************************c#
* 20.04.16 AtCoder Beginner Contest 159. E - Dividing Chocolate
*
*
*********************************************/
/*********************************************
問題文
縦 H マス、横 W マスのグリッドに区切られたチョコレートがあります。
上から i 行目、左から j 列目にあるマス (i,j) のチョコレートは、
Si,j が 0 のとき普通のチョコレートであり、... | /*******************************************c#
* 20.04.16 AtCoder Beginner Contest 159. E - Dividing Chocolate
*
*
*********************************************/
/*********************************************
問題文
縦 H マス、横 W マスのグリッドに区切られたチョコレートがあります。
上から i 行目、左から j 列目にあるマス (i,j) のチョコレートは、
Si,j が 0 のとき普通のチョコレートであり、... | [["-", 64, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 64, 196, 0, 57, 64, 196, 0, 126, 0, 127], ["+", 64, 196, 0, 57, 64, 196, 0, 126, 0, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 97, 0, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 97, 0, 102]] | 8 | 1,155 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.