buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k | change_count int64 0 100 |
|---|---|---|---|---|---|
using System;
class ABC_132_D {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int K = int.Parse(input[1]);
PascalsTriangle pascal = new PascalsTriangle(2000);
for (int i = 1; i < K + 1; i++) {
long a = pascal.ncr(N - K + 1, ... | using System;
class ABC_132_D {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int K = int.Parse(input[1]);
PascalsTriangle pascal = new PascalsTriangle(2010);
for (int i = 1; i < K + 1; i++) {
long a = pascal.ncr(N - K + 1, ... | [["-", 0, 212, 0, 230, 3, 4, 0, 28, 0, 203], ["+", 0, 212, 0, 230, 3, 4, 0, 28, 0, 203]] | 8 | 328 | 2 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using Extensions;
using static System.Math;
using static Extensions.MathExtension;
using static Extensions.ConsoleInputExtension;
using static Extensions.ConsoleOutputExtension;
class Solver {
publ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using Extensions;
using static System.Math;
using static Extensions.MathExtension;
using static Extensions.ConsoleInputExtension;
using static Extensions.ConsoleOutputExtension;
class Solver {
publ... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 1,980 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_132 {
class E {
static void Main(string[] args) { Method(args); }
static void Method(string[] args) {
int[] nm = ReadInts();
int n = n... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_132 {
class E {
static void Main(string[] args) { Method(args); }
static void Method(string[] args) {
int[] nm = ReadInts();
int n = n... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]] | 8 | 1,054 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using static System.Console;
using static System.Convert;
using static System.Math;
using static Template;
using Pi = Pair<int, i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using static System.Console;
using static System.Convert;
using static System.Math;
using static Template;
using Pi = Pair<int, i... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 2,471 | 2 |
using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
class Solve {
const int mod = 1000000007;
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
var A = Console.ReadLine().Split().Select(int.P... | using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
class Solve {
const int mod = 1000000007;
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
var A = Console.ReadLine().Split().Select(int.P... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 238 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
namespace AtCoder_Beginner_Contest_135 {
class Program {
static public int[] Sarray() {
return ReadLine().Split().Select(int.Parse).ToArray();
}
static public List<int> Slist() {... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
namespace AtCoder_Beginner_Contest_135 {
class Program {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
static public List<long> Slist(... | [["-", 0, 235, 8, 201, 0, 195, 39, 224, 39, 199], ["+", 0, 235, 8, 201, 0, 195, 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, 201, 0, 195, 39, 236, 237, 238, 0, 199], ["+", 8, 201, 0, 195, 39, 236, 237, 238, 0, 199], ["-", 0, 197, 0, 198, 0, ... | 8 | 265 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
static class CCitySavers {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var aList =
Console.ReadLine().Split(' ').Select(y => int.Par... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
static class CCitySavers {
static void Main(string[] args) {
var n = long.Parse(Console.ReadLine());
var aList =
Console.ReadLine().Split(' ').Select(y => long.P... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 7, 8, 196, 0, 19... | 8 | 246 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Kanazawa {
public static class Kaga {
public static void Main() {
var n = Cint();
var a = CintA();
var b = CintA();
var count = 0;
Loop(n, i => {
if (b[i] >= a[i]) {
count += a[i];
b[i] -= a[i];
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Kanazawa {
public static class Kaga {
public static void Main() {
var n = Cint();
var a = CintA();
var b = CintA();
var count = 0L;
Loop(n, i => {
if (b[i] >= a[i]) {
count += a[i];
b[i] -= a[i];
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 486 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// using ProCon.Util;
namespace ProCon {
class Program {
static void Main(string[] args) { AC135B(); }
static void AC135B() {
// https://atcoder.jp/contests/abc135/tasks
var n = int.Parse(C... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// using ProCon.Util;
namespace ProCon {
class Program {
static void Main(string[] args) { AC135B(); }
static void AC135B() {
// https://atcoder.jp/contests/abc135/tasks
var n = int.Parse(C... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]] | 8 | 317 | 4 |
using System;
using System.Linq;
namespace abc135_c {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var A = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
var B = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
var a1 = A... | using System;
using System.Linq;
namespace abc135_c {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList();
var B = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList();
var a1 =... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 64, 196, 0, 197, 0, 198, 39, 216, 0, 217]] | 8 | 274 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Math;
namespace C {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
var b = Console.ReadLine().Split().Select(int... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Math;
namespace C {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split().Select(long.Parse).ToArray();
var b = Console.ReadLine().Split().Select(lo... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 214 | 6 |
using System;
using System.Linq;
namespace CSharp {
class Program {
public static void Main() {
var N = int.Parse(Console.ReadLine());
var A = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var B = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var result = 0;
for (int i ... | using System;
using System.Linq;
namespace CSharp {
class Program {
public static void Main() {
var N = int.Parse(Console.ReadLine());
var A = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
var B = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
var result = 0L;
for (int... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 260 | 6 |
using System;
using System.Linq;
namespace ConsoleApp6 {
class Program {
static void Main(string[] args) {
Console.ReadLine();
var A = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var B = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int ans = 0;
for (in... | using System;
using System.Linq;
namespace ConsoleApp6 {
class Program {
static void Main(string[] args) {
Console.ReadLine();
var A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
var B = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
long ans = 0;
for ... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 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, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 7, 8, 196, 0, 197, 0, ... | 8 | 204 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace AtCoder {
static class Program {
static void Main() {
//ここから
int N = IO.ReadLineToInt();
var A = IO.ReadLineToIntList();
var B = IO.ReadLineToIntList();... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace AtCoder {
static class Program {
static void Main() {
//ここから
int N = IO.ReadLineToInt();
var A = IO.ReadLineToIntList();
var B = IO.ReadLineToIntList();... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 706 | 2 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
static long[] a;
static long N;
static long K;
static void Main(string[] args) {
//入力を受け取る
int N = int.Parse(Console.ReadLine());
int[] A = Console.ReadLine().Sp... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
static long[] a;
static long N;
static long K;
static void Main(string[] args) {
//入力を受け取る
int N = int.Parse(Console.ReadLine());
int[] A = Console.ReadLine().Sp... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 256 | 2 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]] | 8 | 583 | 6 |
using System;
class Program {
static void Main() {
int N = int.Parse(Console.ReadLine());
string[] A_ = Console.ReadLine().Split(' ');
string[] B = Console.ReadLine().Split(' ');
// A の方は int にしておく
int[] A = new int[N + 1];
for (int i = 0; i < N + 1; i++) {
A[i] = int.Parse(A_[i]);
... | using System;
class Program {
static void Main() {
int N = int.Parse(Console.ReadLine());
string[] A_ = Console.ReadLine().Split(' ');
string[] B = Console.ReadLine().Split(' ');
// A の方は int にしておく
long[] A = new long[N + 1];
for (int i = 0; i < N + 1; i++) {
A[i] = long.Parse(A_[i]);
... | [["-", 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], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 19... | 8 | 240 | 12 |
using System;
namespace pro {
class MainClass {
public static void Main() {
int n = int.Parse(Console.ReadLine());
string[] str0 = Console.ReadLine().Split(' ');
string[] str1 = Console.ReadLine().Split(' ');
int[] a = new int[n + 1];
int[] b = new int[n];
for (int i = 0; i < n + 1; i++) {
... | using System;
namespace pro {
class MainClass {
public static void Main() {
int n = int.Parse(Console.ReadLine());
string[] str0 = Console.ReadLine().Split(' ');
string[] str1 = Console.ReadLine().Split(' ');
int[] a = new int[n + 1];
int[] b = new int[n];
for (int i = 0; i < n + 1; i++) {
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 282 | 2 |
using System;
using System.Linq;
namespace ABC135 {
class C {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string[] input = Console.ReadLine().Split(' ');
int[] A = new int[N + 1];
for (int i = 0; i < N + 1; i++) {
A[i] = int.Parse(input[i]);
}
input = Cons... | using System;
using System.Linq;
namespace ABC135 {
class C {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string[] input = Console.ReadLine().Split(' ');
int[] A = new int[N + 1];
for (int i = 0; i < N + 1; i++) {
A[i] = int.Parse(input[i]);
}
input = Cons... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 432 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoderPre {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
var A = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var B = A... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoderPre {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
var A = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var B = A... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18]] | 8 | 260 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
public static void Main() {
var N = long.Parse(Console.ReadLine());
var A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
var B = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
public static void Main() {
var N = long.Parse(Console.ReadLine());
var A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
var B = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
... | [["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 75, 196, 0, 1, 0, 11, 12, 241, 0, 72], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 107]] | 8 | 239 | 3 |
using System;
class Program {
public static void Main() {
// スペース区切りの整数の入力
int n = int.Parse(Console.ReadLine());
int[] a =
Array.ConvertAll(Console.ReadLine().Split(' '), i => int.Parse(i));
int[] b =
Array.ConvertAll(Console.ReadLine().Split(' '), i => int.Parse(i));
long sum =... | using System;
class Program {
public static void Main() {
// スペース区切りの整数の入力
int n = int.Parse(Console.ReadLine());
int[] a =
Array.ConvertAll(Console.ReadLine().Split(' '), i => int.Parse(i));
int[] b =
Array.ConvertAll(Console.ReadLine().Split(' '), i => int.Parse(i));
long sum =... | [["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 64, 196, 0, 1, 0, 11, 12, 241, 0, 72], ["-", 0, 1, 0, 11, 12, 241, 0, 204, 205, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22]] | 8 | 220 | 5 |
using System;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] arr = Console.ReadLine()
.Trim()
.Split(' ')
.Select(tmp => int.Parse(tmp))
.ToA... | using System;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] arr = Console.ReadLine()
.Trim()
.Split(' ')
.Select(tmp => int.Parse(tmp))
.ToA... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 248 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp24 {
class Program {
static void Main(string[] args) {
//入力
int N = int.Parse(Console.ReadLine());
int[] A = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToAr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp24 {
class Program {
static void Main(string[] args) {
//入力
int N = int.Parse(Console.ReadLine());
int[] A = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToAr... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["-", 64, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["+", 64, 196, 0, 57, 75, 57, 15, 16, 17, 20]] | 8 | 287 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
int N;
N = int.Parse(Console.ReadLine()); //標準入力
int[] A = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int[] B = Console.ReadLine().Split(' ').Select(int.Parse).ToArray... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
int N;
N = int.Parse(Console.ReadLine()); //標準入力
int[] A = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int[] B = Console.ReadLine().Split(' ').Select(int.Parse).ToArray... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 227 | 2 |
#if true
//#if false
#define UTAKA_DEBUG
#endif
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using static System.Math;
namespace UtakaApp {
public class Program {
public const string ContestName = "abc135";
public const string Pro... | #if true
//#if false
#define UTAKA_DEBUG
#endif
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using static System.Math;
namespace UtakaApp {
public class Program {
public const string ContestName = "abc135";
public const string Pro... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 1,159 | 2 |
using System;
using System.Linq;
class C {
static void Main() {
Console.ReadLine();
var a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var b = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var x = 0;
for (var i = 0; i < b.Length; i++) {
var m = Math.Min(a[i], b... | using System;
using System.Linq;
class C {
static void Main() {
Console.ReadLine();
var a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var b = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var x = 0L;
for (var i = 0; i < b.Length; i++) {
var m = Math.Min(a[i], ... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 171 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Contest {
public static void Main() {
/*
int n = a[0];
int[][] e = new int[n][];
for(int i=0; i<n; i++) e[i] =
Array.ConvertAll(Console.ReadLine().Split(' '), new
... | using System;
using System.Collections.Generic;
using System.Linq;
public class Contest {
public static void Main() {
/*
int n = a[0];
int[][] e = new int[n][];
for(int i=0; i<n; i++) e[i] =
Array.ConvertAll(Console.ReadLine().Split(' '), new
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 874 | 2 |
using System;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string[] str1 = Console.ReadLine().Split(' ');
int[] a = new int[n + 1];
for (int i = 0; i < n + 1; i++) {
a[i] = int.Parse(str1[i]);
}
string[] str2 = Console.ReadLine().Split(' ');... | using System;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string[] str1 = Console.ReadLine().Split(' ');
int[] a = new int[n + 1];
for (int i = 0; i < n + 1; i++) {
a[i] = int.Parse(str1[i]);
}
string[] str2 = Console.ReadLine().Split(' ');... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 268 | 2 |
using System;
namespace AtCoderABC135C {
class Program {
static void Main(string[] args) {
int ans = 0;
int N = int.Parse(Console.ReadLine());
string[] s = Console.ReadLine().Split(' ');
int[] A = new int[N + 1];
for (int i = 0; i < N + 1; i++) {
A[i] = int.Parse(s[i]);
}
s = C... | using System;
namespace AtCoderABC135C {
class Program {
static void Main(string[] args) {
long ans = 0;
int N = int.Parse(Console.ReadLine());
string[] s = Console.ReadLine().Split(' ');
int[] A = new int[N + 1];
for (int i = 0; i < N + 1; i++) {
A[i] = int.Parse(s[i]);
}
s = ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 265 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder {
class Program {
static void Main(string[] args) { MainStream(); }
static void MainStream() {
Scan sc = new Scan();
write wr = new write();
int n = sc.intarr[0];
int[] a = sc.intarr;
int[] b = sc.intarr;
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder {
class Program {
static void Main(string[] args) { MainStream(); }
static void MainStream() {
Scan sc = new Scan();
write wr = new write();
int n = sc.intarr[0];
int[] a = sc.intarr;
int[] b = sc.intarr;
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 408 | 4 |
using System;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string m = Console.ReadLine();
string y = Console.ReadLine();
string[] monster = m.Split(' ');
string[] yusha = y.Split(' ');
int[] monsterList =... | using System;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string m = Console.ReadLine();
string y = Console.ReadLine();
string[] monster = m.Split(' ');
string[] yusha = y.Split(' ');
int[] monsterList =... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 75, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 0, 57, 64, 196, 0, 1, 0, ... | 8 | 256 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
public struct Pair {
public int x, y;
public Pair(int x, int y) {
this.x = x;
this.y = y;
}
}
public static void Solve() {
int N = NextInt();
int[] A = LineInt();
int[] B... | using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
public struct Pair {
public int x, y;
public Pair(int x, int y) {
this.x = x;
this.y = y;
}
}
public static void Solve() {
int N = NextInt();
long[] A = LineLong();
long[... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 7, 8, 196, 0, 197, 0, ... | 8 | 1,460 | 12 |
using System;
class atcoder {
public static void Main() {
int cnt = 0;
int left = 0;
int n = int.Parse(Console.ReadLine());
string[] a = Console.ReadLine().Split(' ');
string[] b = Console.ReadLine().Split(' ');
for (int i = 0; i < n; i++) {
int b1 = int.Parse(b[i]);
int a1 = int.P... | using System;
class atcoder {
public static void Main() {
long cnt = 0;
int left = 0;
int n = int.Parse(Console.ReadLine());
string[] a = Console.ReadLine().Split(' ');
string[] b = Console.ReadLine().Split(' ');
for (int i = 0; i < n; i++) {
int b1 = int.Parse(b[i]);
int a1 = int.... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 25]] | 8 | 201 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var N = Int32.Parse(Console.ReadLine());
var A =
Console.ReadLine().Split(' ').Select(__ => Int32.Parse(__)).ToArray();
var B =
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
var N = Int32.Parse(Console.ReadLine());
var A =
Console.ReadLine().Split(' ').Select(__ => Int32.Parse(__)).ToArray();
var B =
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 223 | 2 |
using System;
public class Hello {
public static void Main() {
// Your code here!
int n = int.Parse(System.Console.ReadLine());
string[] s = System.Console.ReadLine().Split(' ');
string[] s2 = System.Console.ReadLine().Split(' ');
int[] a = new int[n + 1];
int[] b = new int[n];
for (int i ... | using System;
public class Hello {
public static void Main() {
// Your code here!
long n = int.Parse(System.Console.ReadLine());
string[] s = System.Console.ReadLine().Split(' ');
string[] s2 = System.Console.ReadLine().Split(' ');
long[] a = new long[n + 1];
long[] b = new long[n];
for (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, 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 | 343 | 12 |
using System;
using System.Linq;
using static System.Console;
class Program {
static void Main(string[] args) {
int N = int.Parse(ReadLine());
string[] strA = ReadLine().Split(' ');
string[] strB = ReadLine().Split(' ');
int[] A = strA.Select(int.Parse).ToArray();
int[] B = strB.Select(int.Parse).... | using System;
using System.Linq;
using static System.Console;
class Program {
static void Main(string[] args) {
int N = int.Parse(ReadLine());
string[] strA = ReadLine().Split(' ');
string[] strB = ReadLine().Split(' ');
int[] A = strA.Select(int.Parse).ToArray();
int[] B = strB.Select(int.Parse).... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 232 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ABC135 {
class Program3 {
static void Main() {
var N = int.Parse(Console.ReadLine());
var str = Console.ReadLine();
var A = str.Split(' ').Select(int.Parse).ToArray();
str = Console.ReadLine();
var B =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ABC135 {
class Program3 {
static void Main() {
var N = int.Parse(Console.ReadLine());
var str = Console.ReadLine();
var A = str.Split(' ').Select(int.Parse).ToArray();
str = Console.ReadLine();
var B =... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22]] | 8 | 237 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Welcome_to_AtCoder {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var monsterArray =
Console.ReadLine().Split().Select(_ => int.Parse(_)).ToArray();
var heroArray =
Con... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Welcome_to_AtCoder {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var monsterArray =
Console.ReadLine().Split().Select(_ => decimal.Parse(_)).ToArray();
var heroArray =
... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 250]] | 8 | 222 | 6 |
#if DEBUG
using Microsoft.VisualStudio.TestTools.UnitTesting;
#endif
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Numerics; // cannot be used in GCJ
using System.Text;
using System.Threading.Tasks;
namespace Contest {
public class Program {
public static I... | #if DEBUG
using Microsoft.VisualStudio.TestTools.UnitTesting;
#endif
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Numerics; // cannot be used in GCJ
using System.Text;
using System.Threading.Tasks;
namespace Contest {
public class Program {
public static I... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 54, 55, 0, 220, 39, 236, 237, 238, 0, 199], ["+", 54, 55, 0, 220, 39, 236, 237, 238, 0, 199], ["-", 0, 197, 0, 198, 0, ... | 8 | 2,055 | 12 |
using System;
using System.Linq;
namespace atcoder135 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] ct = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] h = Console.ReadLine().Split().Select(int.Parse).ToArray();
int sm = 0;
for (in... | using System;
using System.Linq;
namespace atcoder135 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] ct = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] h = Console.ReadLine().Split().Select(int.Parse).ToArray();
long sm = 0;
for (i... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 216 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
void Solve() {
var N = int.Parse(Console.ReadLine());
var A = Console.ReadLine().Split();
var B = Console.ReadLine().Split();
var AA = new int[N + 1];
var BB = new in... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
void Solve() {
var N = int.Parse(Console.ReadLine());
var A = Console.ReadLine().Split();
var B = Console.ReadLine().Split();
var AA = new int[N + 1];
var BB = new in... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 284 | 2 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
class AtCoder {
const int MOD = 1000000007;
public void Slove() {
var n = int.Parse(Console.ReadLine());
var mons = Console.ReadLine().Split().Select(int.Parse).ToArray();
var unit = Console.Rea... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
class AtCoder {
const int MOD = 1000000007;
public void Slove() {
var n = int.Parse(Console.ReadLine());
var mons = Console.ReadLine().Split().Select(int.Parse).ToArray();
var unit = Console.Rea... | [["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 230 | 2 |
using System;
class ABC_135_C {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string[] input = Console.ReadLine().Split(' ');
int[] A = new int[N + 1];
for (int i = 0; i < N + 1; i++) {
A[i] = int.Parse(input[i]);
}
string[] input2 = Console.ReadLine().Split... | using System;
class ABC_135_C {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string[] input = Console.ReadLine().Split(' ');
int[] A = new int[N + 1];
for (int i = 0; i < N + 1; i++) {
A[i] = int.Parse(input[i]);
}
string[] input2 = Console.ReadLine().Split... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 324 | 2 |
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 Sobaya {
static void Main() {
new Sobaya().calc();
return;
}
Scanner cin;
void cal... | 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 Sobaya {
static void Main() {
new Sobaya().calc();
return;
}
Scanner cin;
void cal... | [["-", 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], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 656 | 12 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var S = sc.ReadStr();
var dp = new long[13];
dp[0] = 1;
long k = 1;
for (int i = S.Length - 1; i >= 0; i--) {
var nextDP = new long[13];
if (S[i] == '?') {
for... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var S = sc.ReadStr();
var dp = new long[13];
dp[0] = 1;
long k = 1;
for (int i = S.Length - 1; i >= 0; i--) {
var nextDP = new long[13];
if (S[i] == '?') {
for... | [["-", 0, 7, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203]] | 8 | 3,320 | 2 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
var ca = S.ToCharArray();
Array.Reverse(ca);
int M = 13;
int N =... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
var ca = S.ToCharArray();
Array.Reverse(ca);
int M = 13;
int N =... | [["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22]] | 8 | 1,220 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Convert;
using static System.Math;
//using static System.Globalization.CultureInfo;
using System.Text;
class Program
{
private static void chmin<T>(ref T num, T val) where T : ICompar... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Convert;
using static System.Math;
//using static System.Globalization.CultureInfo;
using System.Text;
class Program
{
private static void chmin<T>(ref T num, T val) where T : ICompar... | [["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]] | 8 | 979 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using SB = System.Text.StringBuilder;
// using System.Threading.Tasks;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
using System.Numerics;
using static... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using SB = System.Text.StringBuilder;
// using System.Threading.Tasks;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
using System.Numerics;
using static... | [["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 60], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 11, 12, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 16, 31, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 60], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]] | 8 | 1,784 | 7 |
using System;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
using static System.Math;
using System.Numerics;
static class Program {
const int mod = (int)1e9 + 7;
static void Main() {
... | using System;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
using static System.Math;
using System.Numerics;
static class Program {
const int mod = (int)1e9 + 7;
static void Main() {
... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 37, 0, 38]] | 8 | 2,832 | 4 |
using System;
using CompLib.Mathematics;
using CompLib.Util;
public class Program {
private int N, M;
private ModInt[] F;
public void Solve() {
var sc = new Scanner();
F = new ModInt[1000001];
F[0] = 1;
for (int i = 1; i <= 1000000; i++) {
F[i] = F[i - 1] * i;
}
N = sc.NextInt();... | using System;
using CompLib.Mathematics;
using CompLib.Util;
public class Program {
private int N, M;
private ModInt[] F;
public void Solve() {
var sc = new Scanner();
F = new ModInt[10000001];
F[0] = 1;
for (int i = 1; i <= 10000000; i++) {
F[i] = F[i - 1] * i;
}
N = sc.NextInt(... | [["-", 0, 11, 12, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 11, 12, 227, 39, 224, 225, 226, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 1,253 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Numerics;
using System.Threading;
using System.Runtime.CompilerServices;
using System.Diagnostics;
using static System.Math;
using static System.Array;
using static AtCoder.Cout;
using static AtCoder.Tool... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Numerics;
using System.Threading;
using System.Runtime.CompilerServices;
using System.Diagnostics;
using static System.Math;
using static System.Array;
using static AtCoder.Cout;
using static AtCoder.Tool... | [["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 3,307 | 4 |
using System;
using System.Collections.Generic;
public class CSharp {
public static void Main() {
Kyopuro chokudai = new Kyopuro();
chokudai.AtCoder();
}
}
public class Kyopuro {
int n, m;
public void AtCoder() {
string[] input;
input = Console.ReadLine().Split(' ');
n = int.Parse(input[... | using System;
using System.Collections.Generic;
public class CSharp {
public static void Main() {
Kyopuro chokudai = new Kyopuro();
chokudai.AtCoder();
}
}
public class Kyopuro {
int n, m;
public void AtCoder() {
string[] input;
input = Console.ReadLine().Split(' ');
n = int.Parse(input[... | [["-", 0, 212, 0, 230, 3, 4, 0, 28, 0, 203], ["+", 0, 212, 0, 230, 3, 4, 0, 28, 0, 203]] | 8 | 649 | 2 |
using System;
using static System.Console;
class Test {
public static void Main() {
int a = int.Parse(ReadLine());
int s = 3 * a * a;
}
} | using System;
using static System.Console;
class Test {
public static void Main() {
int a = int.Parse(ReadLine());
int s = 3 * a * a;
WriteLine(s);
}
} | [["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 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 | 42 | 5 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC134A {
class Program {
static void Main(string[] args) {
int r = int.Parse(Console.ReadLine());
Console.WriteLine(r * r * r * 3);
Console.ReadKey();
}
}
} | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC134A {
class Program {
static void Main(string[] args) {
int r = int.Parse(Console.ReadLine());
Console.WriteLine(r * r * 3);
Console.ReadKey();
}
}
}
| [["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48]] | 8 | 79 | 2 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace ABC133D {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
r... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace ABC133D {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
r... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]] | 8 | 586 | 4 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long[] A = new long[N];
long[] x = new long[N];
long s = 0;
string[] str = Console.ReadLine().Split();
for (var i = 0; i < N; ++i) {
A[i] = long.Pars... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long[] A = new long[N];
long[] x = new long[N];
long s = 0;
string[] str = Console.ReadLine().Split();
for (var i = 0; i < N; ++i) {
A[i] = long.Pars... | [["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 203], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 31, 241, 0, 33]] | 8 | 206 | 5 |
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 {
class Program {
static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
#if DEBUG
ReadLi... | 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 {
class Program {
static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
#if DEBUG
ReadLi... | [["-", 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, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]] | 8 | 556 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp4 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var q = from a in Console.ReadLine().Split(' ') select int.Parse(a);
var aList = q.ToList();
// X(i) + X(i+1) = 2A(i)
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp4 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var q = from a in Console.ReadLine().Split(' ') select long.Parse(a);
var aList = q.ToList();
// X(i) + X(i+1) = 2A(i)
... | [["-", 0, 242, 0, 244, 0, 213, 63, 214, 205, 199], ["+", 0, 242, 0, 244, 0, 213, 63, 214, 205, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 219 | 6 |
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 A = sc.ArrayInt(N);
var ans = new long[N];
var sum = 0L;
for (int i = 1; i < N; i += 2) {
sum += A[i]... | 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 A = sc.ArrayLong(N);
var ans = new long[N];
var sum = 0L;
for (int i = 1; i < N; i += 2) {
sum += A[i... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199]] | 8 | 544 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class Program {
static void Main() {
var sc = new StreamScanner(OpenStandardOutput());
var N = sc.Integer();
var A = new int[N];
var s = 0L;
for (int i = 0; i < A.Length; i++)... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class Program {
static void Main() {
var sc = new StreamScanner(OpenStandardInput());
var N = sc.Integer();
var A = new int[N];
var s = 0L;
for (int i = 0; i < A.Length; i++) ... | [["-", 0, 230, 3, 4, 0, 28, 0, 213, 63, 22], ["+", 0, 230, 3, 4, 0, 28, 0, 213, 63, 22]] | 8 | 517 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
public class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[] A = Console.ReadLine().Split().Select(p => int.Parse(p)).ToArray();
int[] b = new int[N];
lo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
public class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[] A = Console.ReadLine().Split().Select(p => int.Parse(p)).ToArray();
int[] b = new int[N];
lo... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 12, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 16, 12, 5, 0, 222]] | 8 | 237 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC133D {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
var n = int.Parse(input);
var a = Console.ReadLine().Split(' ').Select(int.Parse).ToArr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC133D {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
var n = int.Parse(input);
var a = Console.ReadLine().Split(' ').Select(long.Parse).ToAr... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]] | 8 | 218 | 4 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.NetworkInformation;
using System.Security.Cryptography;
using System.Threading;
using Extensions;
using static System.Math;
using static Extensions.MathExtension;
using static Extensions.ConsoleInputExtension;
using sta... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.NetworkInformation;
using System.Security.Cryptography;
using System.Threading;
using Extensions;
using static System.Math;
using static Extensions.MathExtension;
using static Extensions.ConsoleInputExtension;
using sta... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]] | 8 | 2,305 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class MainClass : Scanner {
static Graph<int> G;
static int N;
static int K;
static bool[] used;
static void Main() {
(N, K) = ReadTuple<int, int>();
G = new Graph<int>(N);
fo... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class MainClass : Scanner {
static Graph<int> G;
static int N;
static int K;
static bool[] used;
static void Main() {
(N, K) = ReadTuple<int, int>();
G = new Graph<int>(N);
fo... | [["+", 75, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["+", 75, 196, 0, 57, 15, 16, 12, 16, 12, 203]] | 8 | 1,553 | 2 |
using System;
using static System.Console;
using static System.Math;
using System.IO;
using System.Collections.Generic;
namespace I_am_the_green_coder {
class Inonoa {
static long[] fac = new long[100001];
static long[] ifac = new long[100001];
// なんか入力用の関数作ったけどまだテストしてないので使う前に確かめて
static void Main() {
fac[... | using System;
using static System.Console;
using static System.Math;
using System.IO;
using System.Collections.Generic;
namespace I_am_the_green_coder {
class Inonoa {
static long[] fac = new long[100001];
static long[] ifac = new long[100001];
// なんか入力用の関数作ったけどまだテストしてないので使う前に確かめて
static void Main() {
fac[... | [["-", 0, 195, 8, 196, 0, 37, 0, 16, 17, 72], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 17, 109]] | 8 | 975 | 2 |
using CompLib.Util;
using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
int N, Q;
List<Edge>[] E;
int[] X, U, V;
long[] Y;
// LCA[i] ノードiが最近共通祖先になるクエリ
List<int>[] LCAList;
// ノードiがU,Vになるクエリ
List<int>[] UVList;
// 子に向く辺
List<Edge>[] Tree;
// 2^i個上の祖先
Lis... | using CompLib.Util;
using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
int N, Q;
List<Edge>[] E;
int[] X, U, V;
long[] Y;
// LCA[i] ノードiが最近共通祖先になるクエリ
List<int>[] LCAList;
// ノードiがU,Vになるクエリ
List<int>[] UVList;
// 子に向く辺
List<Edge>[] Tree;
// 2^i個上の祖先
Lis... | [["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]] | 8 | 1,728 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
public class AtCoderA {
static void Main() {
Dictionary<string, int> dic = new Dictionary<string, int>();
{
var line = Console.ReadLine();
for (int i = 0; i < 4; i++) {
string str = line.Substring(i, 1);
if (dic.Co... | using System;
using System.Collections.Generic;
using System.Linq;
public class AtCoderA {
static void Main() {
Dictionary<string, int> dic = new Dictionary<string, int>();
{
var line = Console.ReadLine();
for (int i = 0; i < 4; i++) {
string str = line.Substring(i, 1);
if (!dic.C... | [["+", 0, 7, 8, 196, 0, 57, 15, 241, 0, 111]] | 8 | 158 | 1 |
using System;
namespace abc132A {
class MainClass {
public static void Main(string[] args) {
string A = Console.ReadLine();
string[] B = new string[4];
int C = 0;
for (int i = 0; i < 4; i++) {
B[i] = A.Substring(i, 1);
for (int r = 0; r < 4; r++) {
B[r] = A.Substring(r, 1);
... | using System;
namespace abc132A {
class MainClass {
public static void Main(string[] args) {
string A = Console.ReadLine();
string[] B = new string[4];
int C = 0;
for (int i = 0; i < 4; i++) {
B[i] = A.Substring(i, 1);
for (int r = 0; r < 4; r++) {
B[r] = A.Substring(r, 1);
... | [["-", 64, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 159 | 4 |
// A - Fifty-Fifty
// 20190912
using System;
using System.Linq;
using System.Collections.Generic;
namespace A {
class Program {
static void Main(string[] args) {
// string S = Console.ReadLine();
var S = "HELO";
string ans = "Yes";
for (int i = 0; i < 4; i++) {
if (S.Where(s => s == S[i]).Co... | // A - Fifty-Fifty
// 20190912
using System;
using System.Linq;
using System.Collections.Generic;
namespace A {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
string ans = "Yes";
for (int i = 0; i < 4; i++) {
if (S.Where(s => s == S[i]).Count() != 2) {
a... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 62], ["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 222], ["+", 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... | 8 | 104 | 10 |
using System;
class fifty {
public static void Main() {
String str = Console.ReadLine();
checklist c = new checklist();
int kind = 0, count = 0, p = 0;
char[] list = new char[str.Length + 1];
for (int i = 0; i < str.Length; i++) {
if (!c.check(list, str[i])) {
kind++;
list[p]... | using System;
class fifty {
public static void Main() {
String str = Console.ReadLine();
checklist c = new checklist();
int kind = 0, count = 0, p = 0;
char[] list = new char[str.Length + 1];
for (int i = 0; i < str.Length; i++) {
if (!c.check(list, str[i])) {
kind++;
list[p]... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 238 | 4 |
using System;
using System.IO;
public class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
if ((s[0] == s[1]) && (s[0] == s[2]) && (s[0] == s[3]))
Console.WriteLine("Yes");
else if (((s[0] == s[1]) && (s[2] == s[3])) ||
((s[0] == s[2]) && (s[1] == s[3])) ||... | using System;
using System.IO;
public class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
if ((s[0] == s[1]) && (s[0] == s[2]) && (s[0] == s[3]))
Console.WriteLine("No");
else if (((s[0] == s[1]) && (s[2] == s[3])) ||
((s[0] == s[2]) && (s[1] == s[3])) ||
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 180 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
const string ANSUCCESS = "No";
const string SUCCESS = "Yes";
var input = Console.ReadLine();
if (input.Distinct().Count() == 2) {
Console.WriteLine(SUCCESS);... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
const string ANSUCCESS = "No";
const string SUCCESS = "Yes";
var input = Console.ReadLine();
if (input.Distinct().Count() == 2) {
Console.WriteLine(SUCCESS);... | [["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]] | 8 | 89 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
const string ANSUCCESS = "No";
const string SUCCESS = "Yes";
var input = Console.ReadLine();
var first = input.First();
var input2 = input.Replace(first, ' ').... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
const string ANSUCCESS = "No";
const string SUCCESS = "Yes";
var input = Console.ReadLine();
var first = input.First();
var input2 = input.Replace(first, ' ').... | [["-", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22]] | 8 | 165 | 2 |
using System;
class Program {
static void Main(string[] args) {
// 整数の入力
string S = Console.ReadLine();
// スペース区切りの整数の入力
//出力
if (S[0] == S[1] && S[2] == S[3] && S[0] == S[2]) {
Console.WriteLine("no");
} else if (S[0] == S[1] && S[2] == S[3]) {
Console.WriteLine("yes");
} else... | using System;
class Program {
static void Main(string[] args) {
// 整数の入力
string S = Console.ReadLine();
// スペース区切りの整数の入力
//出力
if (S[0] == S[1] && S[2] == S[3] && S[0] == S[2]) {
Console.WriteLine("No");
} else if (S[0] == S[1] && S[2] == S[3]) {
Console.WriteLine("Yes");
} else... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 187 | 10 |
using System;
using System.Linq;
namespace ABC132A {
class Program {
static void Main(string[] args) {
Console.WriteLine(
Console.ReadLine().GroupBy(x => x).Any(x => x.Count() == 2) ? "Yes"
: "No");
}
}
} | using System;
using System.Linq;
namespace ABC132A {
class Program {
static void Main(string[] args) {
Console.WriteLine(
Console.ReadLine().GroupBy(x => x).All(x => x.Count() == 2) ? "Yes"
: "No");
}
}
} | [["-", 0, 28, 0, 41, 15, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 41, 15, 213, 63, 214, 141, 22]] | 8 | 66 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string s;
bool result = false;
s = Console.ReadLine();
Dictionary<char, int> dic = new Dictionary<char, int>();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string s;
bool result = false;
s = Console.ReadLine();
Dictionary<char, int> dic = new Dictionary<char, int>();
... | [["+", 0, 210, 8, 196, 0, 57, 15, 241, 0, 111]] | 8 | 179 | 1 |
using System;
using System.Collections.Generic;
namespace atCoder {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
int dup = 0;
List<char> chars = new List<char>();
foreach (char c in input) {
if (chars.Contains(c) == false)
chars.Add(c);
else
... | using System;
using System.Collections.Generic;
namespace atCoder {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
int dup = 0;
List<char> chars = new List<char>();
foreach (char c in input) {
if (chars.Contains(c) == false)
chars.Add(c);
else
... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 119 | 2 |
using System;
using System.Linq;
namespace A {
class Program {
static void Main(string[] args) {
// 入力の取得
var s = Console.ReadLine().ToCharArray();
var grouped = s.GroupBy(x => x).Select(x => x.Count()).ToArray();
var answer = grouped.Length == 2 && grouped.All(x => x == 2);
// 解答の出力
Consol... | using System;
using System.Linq;
namespace A {
class Program {
static void Main(string[] args) {
// 入力の取得
var s = Console.ReadLine().ToCharArray();
var grouped = s.GroupBy(x => x).Select(x => x.Count()).ToArray();
var answer = grouped.Length == 2 && grouped.All(x => x == 2);
// 解答の出力
Consol... | [["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 104 | 4 |
using System;
using System.Linq;
namespace testing {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
int counter = 0;
for (int i = 0; i < N - 3; i++) {
int[] vs = new int[] { a[i], a[i +... |
using System;
using System.Linq;
namespace testing {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
int counter = 0;
for (int i = 0; i < N - 2; i++) {
int[] vs = new int[] { a[i], a[i +... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 153 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
long n = long.Parse(Console.ReadLine());
long[] pArray =
Console.ReadLin... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
long n = long.Parse(Console.ReadLine());
long[] pArray =
Console.ReadLin... | [["-", 31, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73]] | 8 | 219 | 2 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Program {
static void Main(string[] args) {
Console.ReadLine(); //読み飛ばし
string line = Console.ReadLine();
int[] nums = line.Split(',').Select(c => int.Parse... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Program {
static void Main(string[] args) {
Console.ReadLine(); //読み飛ばし
string line = Console.ReadLine();
int[] nums = line.Split(' ').Select(c => int.Parse... | [["-", 205, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 205, 213, 3, 4, 0, 28, 0, 252, 0, 253]] | 8 | 199 | 2 |
using System;
using System.Linq;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
int[] p = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int count = 0;
for (int i = 1; i <= n - 2; i++) {
if ((p[i - 1] - p[i]) * (p[i + 1] - p[i]) > 0)
coun... | using System;
using System.Linq;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
int[] p = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int count = 0;
for (int i = 1; i <= n - 2; i++) {
if ((p[i - 1] - p[i]) * (p[i] - p[i + 1]) > 0)
coun... | [["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 132 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
Func cin2;
void calc() {
cin = new... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
Func cin2;
void calc() {
cin = new... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 48], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72]] | 8 | 795 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC132 {
class Program {
static void Main(string[] args) {
string Str = Console.ReadLine().Trim();
int n = int.Parse(Str);
Str = Console.ReadLine().Trim();
string[] StrArr =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC132 {
class Program {
static void Main(string[] args) {
string Str = Console.ReadLine().Trim();
int n = int.Parse(Str);
Str = Console.ReadLine().Trim();
string[] StrArr =... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98]] | 8 | 225 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var maxIndex = int.Parse(Console.ReadLine());
var list = Console.ReadLine().Split().Select(x => int.Parse(x)).ToList();
var index = 3;
int cnt = 0;
while (index... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var maxIndex = int.Parse(Console.ReadLine());
var list = Console.ReadLine().Split().Select(x => int.Parse(x)).ToList();
var index = 2;
int cnt = 0;
while (index... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 186 | 6 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace agc030_a {
class Program {
static void Main(string[] args) {
var text = Console.ReadLine();
var list = text.Split(' ').Select(x => int.Parse(x)).ToList();
var n = list[0];
var a = list[1];
var b = list[2];
var taxi... | using System;
using System.Linq;
using System.Collections.Generic;
namespace agc030_a {
class Program {
static void Main(string[] args) {
var text = Console.ReadLine();
var list = text.Split(' ').Select(x => int.Parse(x)).ToList();
var n = list[0];
var a = list[1];
var b = list[2];
var taxi... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22]] | 8 | 135 | 4 |
using System;
namespace Atcoder_program_test_Csharp {
using System;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int N = int.Parse(str[0]);
int A = int.Parse(str[1]);
int B = int.Parse(str[2]);
int A2 = A * N;
if (B >= A) {
Console.Writ... | using System;
namespace Atcoder_program_test_Csharp {
using System;
class Program {
static void Main(string[] args) {
string[] str =
Console.ReadLine().Split(' '); // 2つ以上のスペース区切り入力の取得
int N = int.Parse(str[0]); //数値で受け取りたい場合は変換する
int A = int.Parse(str[1]);
int B = int.Parse(str[2]);
int ... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 118 | 4 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace program {
class Program {
static void Main() {
int[] n = Input.ScanIntArray();
Out(Math.Min(n[0], n[1] * n[2]));
}
static public void Out(object s) { Console.WriteLine(s); }
}
static class Input {
static public int ScanInt(... | using System;
using System.Linq;
using System.Collections.Generic;
namespace program {
class Program {
static void Main() {
int[] n = Input.ScanIntArray();
Out(Math.Min(n[2], n[0] * n[1]));
}
static public void Out(object s) { Console.WriteLine(s); }
}
static class Input {
static public int ScanInt(... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 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 | 594 | 6 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
long[] iArray =
Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToA... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
long[] iArray =
Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToA... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17... | 8 | 323 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
long[] iArray =
Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToA... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
long[] iArray =
Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToA... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 331 | 2 |
using System;
using System.Collections.Generic;
public class AtCoderB {
static void Main() {
int n;
int d;
{
var line = Console.ReadLine();
var words = line.Split(' ');
n = int.Parse(words[0]);
d = int.Parse(words[1]);
}
int[,] map = new int[n, d];
for (int i = 0; i <... | using System;
using System.Collections.Generic;
public class AtCoderB {
static void Main() {
int n;
int d;
{
var line = Console.ReadLine();
var words = line.Split(' ');
n = int.Parse(words[0]);
d = int.Parse(words[1]);
}
int[,] map = new int[n, d];
for (int i = 0; i <... | [["-", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 7, 8, 196, 0, 7, 26, 223, 0, 22]] | 8 | 296 | 2 |
using System;
class a {
public static void Main() {
string[] str = Console.ReadLine().Split(' ');
int n = int.Parse(str[0]);
int d = int.Parse(str[1]);
int[,] x = new int[n, d];
for (int i = 0; i < n; i++) {
string[] str0 = Console.ReadLine().Split(' ');
for (int j = 0; j < d; j++) ... | using System;
class a {
public static void Main() {
string[] str = Console.ReadLine().Split(' ');
int n = int.Parse(str[0]);
int d = int.Parse(str[1]);
int[,] x = new int[n, d];
for (int i = 0; i < n; i++) {
string[] str0 = Console.ReadLine().Split(' ');
for (int j = 0; j < d; j++) ... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 272 | 2 |
using System;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int D = int.Parse(input[1]);
// 入力の格納
int[,] X = new int[N, D];
for (int n = 0; n < N; n++) {
input = Console.ReadLine().Split(' ');
for (int d = 0; d < ... | using System;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int D = int.Parse(input[1]);
// 入力の格納
int[,] X = new int[N, D];
for (int n = 0; n < N; n++) {
input = Console.ReadLine().Split(' ');
for (int d = 0; d < ... | [["+", 31, 213, 3, 4, 0, 28, 0, 74, 0, 24], ["+", 31, 213, 3, 4, 0, 28, 0, 74, 39, 199], ["+", 31, 213, 3, 4, 0, 28, 0, 74, 0, 25]] | 8 | 254 | 3 |
using System;
using System.Collections.Generic; // list用
using System.Text; // StringBuilder用
using System.Collections;
using System.Linq;
class Program {
static decimal result;
static List<int>[] s;
static int N, D;
static void Main() {
// N=int.Parse(Console.ReadLine());
string[] tmp =... | using System;
using System.Collections.Generic; // list用
using System.Text; // StringBuilder用
using System.Collections;
using System.Linq;
class Program {
static decimal result;
static List<int>[] s;
static int N, D;
static void Main() {
// N=int.Parse(Console.ReadLine());
string[] tmp =... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 369 | 2 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace Practice {
class Program {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush(... | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace Practice {
class Program {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush(... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 1,934 | 2 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using static System.Math;
using System.Text;
namespace Program {
public static class ABC133B {
static public void Solve() {
var N = NN;
var D = NN;
var XList = new long[N, D];
fo... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using static System.Math;
using System.Text;
namespace Program {
public static class ABC133B {
static public void Solve() {
var N = NN;
var D = NN;
var XList = new long[N, D];
fo... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203]] | 8 | 5,811 | 2 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using static System.Console;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(ReadLine()); }
public static long[] Reads() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
publ... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using static System.Console;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(ReadLine()); }
public static long[] Reads() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
publ... | [["-", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22]] | 8 | 325 | 2 |
using System;
namespace C {
class Program {
static void Main(string[] args) {
string[] In = Console.ReadLine().Split(' ');
int l = int.Parse(In[0]);
int r = int.Parse(In[1]);
r = (int)Math.Min(r, l + 4038); //これでl~rの範囲が大きくても絞れる
long ans = 2018;
for (long i = l; i <= r; i++) {
for (long j... | using System;
namespace C {
class Program {
static void Main(string[] args) {
string[] In = Console.ReadLine().Split(' ');
int l = int.Parse(In[0]);
int r = int.Parse(In[1]);
r = (int)Math.Min(r, l + 4038); //これでl~rの範囲が大きくても絞れる
long ans = 2018;
for (long i = l; i <= r; i++) {
for (long j... | [["-", 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]] | 8 | 157 | 3 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using stat... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using stat... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 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, 7, 10, 198, 39... | 8 | 1,931 | 10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.