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;
using static Atcoder;
using System.Threading.Tasks;
using System.ComponentModel;
public class Hello {
private const int INF = 1000000000;
public static void Main() {
string S = Console.ReadLine();
int Mbit = (int)Math.Pow(2, S.Length - 1) -... | using System;
using System.Collections.Generic;
using System.Linq;
using static Atcoder;
using System.Threading.Tasks;
using System.ComponentModel;
public class Hello {
private const int INF = 1000000000;
public static void Main() {
string S = Console.ReadLine();
if (S.Length == 1) {
Console.WriteLin... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12... | 8 | 489 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static void Main() {
string s = Console.ReadLine();
long answer = 0;
long answerPlus = 0;
long multiplyMemo = 1;
for (long i = 0; i < (1 << s.Length - 1); i++) // bit全探索
{
answerPlus = s[(int)(s.... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static void Main() {
string s = Console.ReadLine();
long answer = 0;
long answerPlus = 0;
long multiplyMemo = 1;
for (long i = 0; i < (1 << s.Length - 1); i++) // bit全探索
{
answerPlus = s[(int)(s.... | [["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["-", 8, 196, 0, 7, 8... | 8 | 192 |
using System;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。
int digit = whatDigit(n);
int answer = 0;
int multypleNum = 1; //+がないとき左の数は10倍
for (int i = 0; i < (Math.Pow(2, digit - 1)); i++) //2進数で全通り試す
{
int ii = i;
int nn = n... | using System;
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine()); // long.Parseは文字列を整数に変換。
long digit = whatDigit(n);
long answer = 0;
long multypleNum = 1; //+がないとき左の数は10倍
for (long i = 0; i < (Math.Pow(2, digit - 1)); i++) //2進数で全通り試す
{
long ii = i;
lo... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 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 | 191 |
using System;
using System.Linq;
using System.Collections;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static System.Console;
using static System.Math;
using static NotFounds.MyMath;
using static NotFounds.MyUtility;
namespace NotFounds {
public class Pro... | using System;
using System.Linq;
using System.Collections;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static System.Console;
using static System.Math;
using static NotFounds.MyMath;
using static NotFounds.MyUtility;
namespace NotFounds {
public class Pro... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, ... | 8 | 4,391 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) { A(); }
static void A() {
var ABC = ReadSplitLong();
var A = ABC[0];
var B = ABC[1];
var C = ABC[2];
if (ABC.Any(x => x % 2 == ... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) { A(); }
static void A() {
var ABC = ReadSplitLong();
var A = ABC[0];
var B = ABC[1];
var C = ABC[2];
if (ABC.Any(x => x % 2 == ... | [["+", 0, 213, 3, 4, 0, 28, 0, 213, 63, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]] | 8 | 732 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Practice {
class Program {
static void Main(string[] args) { Solve(); }
private const int MOD = 1000000007;
static void Solve() {
var abc = ReadAndParseIntArr();
int a = abc[0];
int b = abc[1];
int c = abc[2];
int an... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Practice {
class Program {
static void Main(string[] args) { Solve(); }
private const int MOD = 1000000007;
static void Solve() {
var abc = ReadAndParseIntArr();
long a = abc[0];
long b = abc[1];
long c = abc[2];
lon... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["-", 31, 16, 31, 23, 0, 16, 31, 16, 17, 48], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16,... | 8 | 741 |
#pragma warning disable
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using System.Collections;
static class MainClass {
public static void Main() {
// ... | #pragma warning disable
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using System.Collections;
static class MainClass {
public static void Main() {
// ... | [["+", 0, 213, 3, 4, 0, 28, 0, 23, 0, 24], ["+", 0, 28, 0, 23, 0, 16, 31, 74, 0, 24], ["+", 0, 28, 0, 23, 0, 16, 31, 74, 39, 199], ["+", 0, 28, 0, 23, 0, 16, 31, 74, 0, 25], ["+", 0, 28, 0, 23, 0, 16, 12, 74, 0, 24], ["+", 0, 28, 0, 23, 0, 16, 12, 74, 39, 199], ["+", 0, 28, 0, 23, 0, 16, 12, 74, 0, 25], ["+", 0, 213, 3... | 8 | 1,293 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using static System.Console;
using static AtCoder.Util;
using static AtCoder.Cin;
using static System.Math;
using static AtCoder.MyMath;
namespace AtCoder {
class Program {
static void ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using static System.Console;
using static AtCoder.Util;
using static AtCoder.Cin;
using static System.Math;
using static AtCoder.MyMath;
namespace AtCoder {
class Program {
static void ... | [["+", 0, 41, 15, 213, 63, 214, 205, 213, 63, 22], ["+", 15, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 22], ["+", 15, 213, 63, 214, 205, 213, 3, 4, 0, 21], ["+", 15, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 0, 28, 0, 41, 15, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 41, 15, 213, 63... | 8 | 2,804 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var a = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
Array.Sort(a);
Console.WriteLine(
a[0] % 2 != 0 && a[1] % 2 != 0 && a[2] % 2 != 0 ? a[0] * a[1] : 0);
}
} | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var a = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
Array.Sort(a);
Console.WriteLine(a[0] * a[1] * a[2] % 2 * a[0] * a[1]);
}
} | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 41, 15, 16, 31, 16, 31, 16, 17, 79], ["-", 0, 41, 15, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 28, 0, 41, 15, 16, 31, ... | 8 | 106 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var a = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
Array.Sort(a);
Console.WriteLine(
a[0] % 2 != 0 && a[1] % 2 != 0 && a[2] % 2 != 0 ? a[0] * a[1] : 0);
}
} | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
var a = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
Array.Sort(a);
Console.WriteLine(
a[0] % 2 != 0 && a[1] % 2 != 0 && a[2] % 2 != 0 ? a... | [["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, ... | 8 | 106 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static string InputPattern = "InputX";
static List<string> GetInputList() {
var WillReturn = new List<string>();
if (InputPattern == "Input1") {
WillReturn.Add("3 3 3");
// 9
} else if (InputPattern == "Inp... | using System;
using System.Collections.Generic;
using System.Linq;
// AGC004-A-Divide a Cuboid
// http://agc004.contest.atcoder.jp/tasks/agc004_a
class Program {
static string InputPattern = "InputX";
static List<string> GetInputList() {
var WillReturn = new List<string>();
if (InputPattern == "Input1") ... | [["-", 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, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 300 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class Program {
public static void Main() {
// int n = int.Parse(Console.ReadLine());
int[] arr = Console.ReadLine().Split().Select(e => int.Parse(e)).ToArray();
List<int> l = arr.ToList();
l.Sort();
... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class Program {
public static void Main() {
// int n = int.Parse(Console.ReadLine());
long[] arr =
Console.ReadLine().Split().Select(e => long.Parse(e)).ToArray();
List<long> l = arr.ToList();
... | [["-", 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 | 163 |
using System;
using System.IO;
#region Program
namespace Program {
#region Solver
public class Solver {
static IO.StreamScanner sc =
new IO.StreamScanner(Console.OpenStandardInput());
double A;
double B;
double C;
int SIDE;
double BIGLNG;
double BIG_ONE;
double SMALL_ONE;
#region Solver
pub... | using System;
using System.IO;
#region Program
namespace Program {
#region Solver
public class Solver {
static IO.StreamScanner sc =
new IO.StreamScanner(Console.OpenStandardInput());
decimal A;
decimal B;
decimal C;
int SIDE;
decimal BIGLNG;
decimal BIG_ONE;
decimal SMALL_ONE;
#region Solver... | [["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, ... | 8 | 1,103 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class _C {
void _() {
var A_B_C = _Ns();
var x = new List<int>();
x.Add(A_B_C[0]);
x.Add(A_B_C[1]);
x.Add(A_B_C[2]);
x.Sort();
x.Reverse();
long a = 0;
if (x[2] % ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class _C {
void _() {
var A_B_C = _Ns();
var x = new List<int>();
x.Add(A_B_C[0]);
x.Add(A_B_C[1]);
x.Add(A_B_C[2]);
x.Sort();
x.Reverse();
long a = 0;
if ((x[0] *... | [["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 16, 31, 204, 205, 22], ["+", 0, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 17, 48], ["+", 31, 23, 0, 16, 31, 16, 12, 20... | 8 | 317 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
private 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... | using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
private 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... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, ... | 8 | 568 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AGC004_B3 {
class Program {
static int N, x;
static void Main(string[] args) {
var t = scan;
N = t[0];
x = t[1];
var a = scan;
var b = new int[N];
for (int i = 0; i ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AGC004_B3 {
class Program {
static long N, x;
static void Main(string[] args) {
var t = scan;
N = t[0];
x = t[1];
var a = scan;
var b = new long[N];
for (long i = 0... | [["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 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, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 16, 31... | 8 | 258 |
using System;
using System.Collections.Generic;
class Solve {
public int n;
public long x;
public long[] a;
public Solve() {}
public static int Main() {
new Solve().Calc();
return 0;
}
void Calc() {
getinput();
long[] bonus = new long[n - 1];
long ans = 0;
long temp;
for (int i... | using System;
using System.Collections.Generic;
class Solve {
public int n;
public long x;
public long[] a;
public Solve() {}
public static int Main() {
new Solve().Calc();
return 0;
}
void Calc() {
getinput();
long[] bonus = new long[n - 1];
long ans = 0;
long temp;
for (int i... | [["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12,... | 8 | 411 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC {
class MainClass {
public static void Main(string[] args) {
var a = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
int N = a[0];
int X = a[1];
var b = Console.ReadLine().Split().Select(x => int.Parse(x)... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC {
class MainClass {
public static void Main(string[] args) {
var a = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
int N = a[0];
int X = a[1];
var b = Console.ReadLine().Split().Select(x => int.Parse(x)... | [["-", 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, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 16, 12, 7... | 8 | 248 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using CS = System.Runtime.CompilerServices;
// using System.Diagnostics;
using static System.Math;
using ll = System.Int64;
using static Contest_F.Lib_IO;
using static Contest_F.Lib_Minifunc;
namespace Cont... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using CS = System.Runtime.CompilerServices;
// using System.Diagnostics;
using static System.Math;
using ll = System.Int64;
using static Contest_F.Lib_IO;
using static Contest_F.Lib_Minifunc;
namespace Cont... | [["-", 0, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 0, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["-", 0, 57, 15, 16, 31, 214, 205, 204, 205, 22], ["-", 15, 16, 31, 214, 205, 204, 206, 207, 0, 70], ["-", 31, 214, 205, 204, 206, 207, 0, 28, 0, 203], ["-", 15, 16, 31, 214, 205, 204, 206, 207, 0, 73], ["-", 64, 196, 0, 57, 15,... | 8 | 5,624 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC044A {
class Program {
static void Main(string[] args) {
int a, b, c, d, e, f;
a = int.Parse(Console.ReadLine());
b = int.Parse(Console.ReadLine());
c = int.Parse(Console.R... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC044A {
class Program {
static void Main(string[] args) {
int a, b, c, d, e, f;
a = int.Parse(Console.ReadLine());
b = int.Parse(Console.ReadLine());
c = int.Parse(Console.R... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],... | 8 | 142 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC044A___高橋君とホテルイージー {
class Program {
static void Main(string[] args) {
string input1 = Console.ReadLine();
string input2 = Console.ReadLine();
string input3 = Console.ReadLine(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC044A___高橋君とホテルイージー {
class Program {
static void Main(string[] args) {
string input1 = Console.ReadLine();
string input2 = Console.ReadLine();
string input3 = Console.ReadLine(... | [["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 23, 0, 24], ["+", 0, 212, 0, 23, 0, 16, 31, 16, 31,... | 8 | 150 |
using System;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int K = int.Parse(Console.ReadLine());
int X = int.Parse(Console.ReadLine());
int Y = int.Parse(Console.ReadLine());
Console.WriteLine(X * K + Y * (N - K));
}
}
| using System;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int K = int.Parse(Console.ReadLine());
int X = int.Parse(Console.ReadLine());
int Y = int.Parse(Console.ReadLine());
Console.WriteLine(N > K ? X * K + Y * (N - K) : X * N);
}
}
| [["+", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 41, 75, 16, 17, 48], ["+", 3, 4, 0, 28,... | 8 | 91 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ziyuutyou {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var k = int.Parse(Console.ReadLine());
var x = int.Parse(Console.ReadLine());
var y = int.Parse(Console.ReadLine());
C... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ziyuutyou {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var k = int.Parse(Console.ReadLine());
var x = int.Parse(Console.ReadLine());
var y = int.Parse(Console.ReadLine());
i... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],... | 8 | 107 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int K = int.Parse(Console.ReadLine());
int X = int.Parse(Console.ReadLine())... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int K = int.Parse(Console.ReadLine());
int X = int.Parse(Console.ReadLine())... | [["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 0, 213, 63, 214, 205, 214, 205, 214, 205, 22], ["+", 0, 213, 63, 214, 205, 214, 205, 214, 0, 131], ["+", 0, 213, 63, 214, 205, 214, 205, 214, 141, 22], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["+", 0, 1, 0, 213, 63, 214... | 8 | 139 |
using System;
public class Hell {
public static void Main() {
int N = int.Parse(Console.ReadLine());
int K = int.Parse(Console.ReadLine());
int X = int.Parse(Console.ReadLine());
int Y = int.Parse(Console.ReadLine());
int ans = (K * X) + (N - K) * Y;
Console.WriteLine(ans);
}
}
| using System;
public class Hell {
public static void Main() {
int N = int.Parse(Console.ReadLine());
int K = int.Parse(Console.ReadLine());
int X = int.Parse(Console.ReadLine());
int Y = int.Parse(Console.ReadLine());
int ans = 0;
if (N < K)
ans = (N * X);
else
ans = (K * X) + ... | [["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25... | 8 | 96 |
using System;
namespace AtCoder20170211 {
class Program {
static void Main(string[] args) {
decimal n = Convert.ToDecimal(Console.ReadLine());
decimal k = Convert.ToDecimal(Console.ReadLine());
decimal x = Convert.ToDecimal(Console.ReadLine());
decimal y = Convert.ToDecimal(Console.ReadLine());
... | using System;
namespace AtCoder20170211 {
class Program {
static void Main(string[] args) {
decimal n = Convert.ToDecimal(Console.ReadLine());
decimal k = Convert.ToDecimal(Console.ReadLine());
decimal x = Convert.ToDecimal(Console.ReadLine());
decimal y = Convert.ToDecimal(Console.ReadLine());
... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22], [... | 8 | 113 |
using System;
namespace ABC044_TakAndHotels {
public class MainApp {
public static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int K = int.Parse(Console.ReadLine());
int X = int.Parse(Console.ReadLine());
int Y = int.Parse(Console.ReadLine());
int total = K * X + (N - K) * ... | using System;
namespace ABC044_TakAndHotels {
public class MainApp {
public static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int K = int.Parse(Console.ReadLine());
int X = int.Parse(Console.ReadLine());
int Y = int.Parse(Console.ReadLine());
int total;
if (K < N) {
... | [["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25],... | 8 | 102 |
using System;
using System.Linq;
namespace ABC {
class MainClass {
public static void Main(string[] args) {
// var a = Console.ReadLine ().Split().Select(x=>int.Parse(x)).ToArray();
int sum = 0;
int N = int.Parse(Console.ReadLine());
int K = int.Parse(Console.ReadLine());
int X = int.Parse(Consol... | using System;
using System.Linq;
namespace ABC {
class MainClass {
public static void Main(string[] args) {
// var a = Console.ReadLine ().Split().Select(x=>int.Parse(x)).ToArray();
int sum = 0;
int N = int.Parse(Console.ReadLine());
int K = int.Parse(Console.ReadLine());
int X = int.Parse(Consol... | [["+", 0, 11, 12, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 11, 12, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 11, 12, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 11, 12, 16, 12, 213, 3, 4, 0, 24], ["+", 12, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 11, 12, 16, 12, 213, 3, 4, 0, 21], ["+", 0, 11, 12, 16, 12, 213, 3, 4, 0, 25... | 8 | 126 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
Console.WriteLine(input[0]);
Console.WriteLine(input[1]);
int N = input[0];
int A = input[1];
int[] x =... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int N = input[0];
int A = input[1];
int[] x = new int[] { 0 };
x = x.Concat(Console.ReadLine().Split(' ').S... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ... | 8 | 352 |
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() {
List<long> L = new List<long>();
if (N == S) {
L.Add(N + 1);
}
... | 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() {
List<long> L = new List<long>();
if (N == S) {
L.Add(N + 1);
}
... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 48], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17... | 8 | 503 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
// (づ°ω°)づミe★゜・。。・゜゜・。。・゜☆゜・。。・゜゜・。。・゜
public class Solver {
const int LIMIT = 1000000;
public void Solve() {
long n = ReadLong();
long m = ReadLong();... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
// (づ°ω°)づミe★゜・。。・゜゜・。。・゜☆゜・。。・゜゜・。。・゜
public class Solver {
const int LIMIT = 1000000;
public void Solve() {
long n = ReadLong();
long m = ReadLong();... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 85], ["-", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["-", 0, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["-", 0, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33], ["-",... | 8 | 1,044 |
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, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["-", 3, 4, 0, 28, 0, 218, 8, 213, 63, 22], ["-", 0, 28, 0, 218, 8, 213, 3, 4, 0, 24], ["-", 0, 218, 8, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 28, 0, 218, 8, 213, 3, 4, 0, 21], ["-", 3, 4, 0, 28, 0, 218, 54, 55, 0, 24], ["-", 3, 4, 0, ... | 8 | 1,824 |
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Diagnostics;
using System.Numerics;
using Enu = System.Linq.Enumerable;
public class Program {
public void Solve() {
int N = Reader.Int();
var X = Reader.I... | using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Diagnostics;
using System.Numerics;
using Enu = System.Linq.Enumerable;
public class Program {
public void Solve() {
int N = Reader.Int();
var X = Reader.I... | [["+", 15, 16, 31, 23, 0, 16, 12, 16, 17, 72], ["+", 15, 16, 31, 23, 0, 16, 12, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0,... | 8 | 1,020 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace arc_058_A {
class Program {
static void Main(string[] args) {
int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] s = Console.ReadLine().Split().Select(int.Parse).... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace arc_058_A {
class Program {
static void Main(string[] args) {
int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray();
int[] s = Console.ReadLine().Split().Select(int.Parse).... | [["+", 0, 212, 0, 213, 63, 214, 205, 204, 205, 22], ["+", 0, 213, 63, 214, 205, 204, 206, 207, 0, 70], ["+", 0, 213, 63, 214, 205, 204, 206, 207, 0, 73], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0... | 8 | 192 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ConsoleApp1 {
public class Program {
public static void Main() {
// string s1 = Console.ReadLine();
string s1 = "1000 8";
string[] array1 = s1.Split(' ');
int nowMoney = int.Parse(array1[0]);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ConsoleApp1 {
public class Program {
public static void Main() {
string s1 = Console.ReadLine();
// string s1 = "1000 8";
string[] array1 = s1.Split(' ');
int nowMoney = int.Parse(array1[0]);
... | [["-", 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, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 2... | 8 | 372 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static long n = 210000;
static long[] factorials = new long[n + 1]; // i!(mod p)を先にメモ
static long[] factorialRs = new long[n + 1]; // i!^-1(mod p), pは素数
static void Main() {
string... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static long n = 210000;
static long[] factorials = new long[n + 1]; // i!(mod p)を先にメモ
static long[] factorialRs = new long[n + 1]; // i!^-1(mod p), pは素数
static void Main() {
string... | [["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17,... | 8 | 568 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest._700problems {
class ARC_058 {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest._700problems {
class ARC_058 {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | [["-", 225, 226, 0, 16, 31, 16, 31, 16, 31, 22], ["-", 225, 226, 0, 16, 31, 16, 31, 16, 17, 72], ["-", 225, 226, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 39, 224, 225, 226, 0, 16, 31, 16, 17, 72], ["-", 39, 224, 225, 226, 0, 16, 31, 16, 12, 22], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["-", 0, 227, 39, 224, 225, ... | 8 | 688 |
using System;
using static System.Console;
using static System.Math;
//重複を含まないようにする
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
var s = ReadLine().Split(' ');
string[] Input;
string ans = "NO";
int count_5 = 0;
int count_7 = 0;
for (int i = 0; i < 3; ... | using System;
using static System.Console;
using static System.Math;
//重複を含まないようにする
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
var s = ReadLine().Split(' ');
string[] Input;
string ans = "NO";
int count_5 = 0;
int count_7 = 0;
for (int i = 0; i < 3; ... | [["+", 0, 57, 15, 16, 31, 213, 63, 214, 205, 199], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["-", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 3, ... | 8 | 372 |
using System;
using System.Collections.Generic;
namespace cswork {
class Program {
static void Main(string[] args) {
string a = ReadStr();
string b = ReadStr();
string c = ReadStr();
string x = a + b + c;
if (x.Equals("755") || x.Equals("575") || x.Equals("557")) {
Write("YES");
} els... | using System;
using System.Collections.Generic;
namespace cswork {
class Program {
static void Main(string[] args) {
List<string> ss = ReadListStr();
string a = ss[0];
string b = ss[1];
string c = ss[2];
string x = a + b + c;
if (x.Equals("755") || x.Equals("575") || x.Equals("557")) {
... | [["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 47], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212,... | 8 | 331 |
using System;
using System.Collections.Generic;
using System.Linq;
// using System.Linq;
namespace easy_Atcoder {
class Program {
static void Main(string[] args) {
// float[] ABN = Array.ConvertAll(Console.ReadLine().Split(),float.Parse);
// int[] nx = Array.ConvertAll(Console.ReadLine().Split(),int.Parse);
... | using System;
using System.Collections.Generic;
using System.Linq;
// using System.Linq;
namespace easy_Atcoder {
class Program {
static void Main(string[] args) {
// float[] ABN = Array.ConvertAll(Console.ReadLine().Split(),float.Parse);
// int[] nx = Array.ConvertAll(Console.ReadLine().Split(),int.Parse);
... | [["-", 31, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 31, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 15, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 15, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219... | 8 | 179 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Happy {
class Program {
static void exc(ref int a, ref int b) {
int t = a;
a = b;
b = t;
}
static void Main(string[] args) {
string[] uinp;
uinp = Console.ReadLine().Split(new char[] { ' ' });
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Happy {
class Program {
static void exc(ref int a, ref int b) {
int t = a;
a = b;
b = t;
}
static void Main(string[] args) {
string[] uinp;
uinp = Console.ReadLine().Split(new char[] { ' ' });
... | [["-", 15, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 57, 75, 1, 0, 213, 3, 4, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 75, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22],... | 8 | 222 |
using System;
public class Test {
public static void Main() {
string[] str = Console.ReadLine().Split(' ');
int a = Array.IndexOf(str, "7");
Console.WriteLine(a);
if (a == -1) {
Console.WriteLine("NO");
} else if (a == 0 && str[1].Equals("5") && str[2].Equals("5")) {
Console.WriteLine... | using System;
public class Test {
public static void Main() {
string[] str = Console.ReadLine().Split(' ');
int a = Array.IndexOf(str, "7");
if (a == -1) {
Console.WriteLine("NO");
} else if (a == 0 && str[1].Equals("5") && str[2].Equals("5")) {
Console.WriteLine("YES");
} else if (a ... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 211 |
using System;
using System.Collections.Generic;
namespace StudyCsharp {
static class Program {
/// <summary>
/// アプリケーションのメイン エントリ ポイントです。
/// </summary>
[STAThread]
static void Main() {
string[] s = Console.ReadLine().Split(' ');
if (s[0] != "5") {
Console.WriteLine("NO");
return;
}... | using System;
namespace StudyCsharp {
static class Program {
/// <summary>
/// アプリケーションのメイン エントリ ポイントです。
/// </summary>
[STAThread]
static void Main() {
string[] s = Console.ReadLine().Split(' ');
Array.Sort(s);
if (s[0] != "5") {
Console.WriteLine("NO");
return;
}
if (s[1] !... | [["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, ... | 8 | 131 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace b {
class Program {
static void Main(string[] args) {
var x = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray();
var n = x[0];
var l = x[1];
var s = new List<char[]>();
for (var i = 0; i < n; i++) {
v... | using System;
using System.Linq;
using System.Collections.Generic;
namespace b {
class Program {
static void Main(string[] args) {
var x = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray();
var n = x[0];
var l = x[1];
var s = new List<string>();
for (var i = 0; i < n; i++) {
v... | [["-", 0, 230, 39, 236, 237, 238, 0, 224, 39, 199], ["-", 39, 236, 237, 238, 0, 224, 225, 226, 0, 70], ["-", 39, 236, 237, 238, 0, 224, 225, 226, 0, 73], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 0, 200, 0, 212, ... | 8 | 186 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Console;
using static System.Math;
namespace CP {
class Atria {
static void Main(string[] args) {
int[] nl = ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = nl[0];
int l =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Console;
using static System.Math;
namespace CP {
class Atria {
static void Main(string[] args) {
int[] nl = ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = nl[0];
int l =... | [["-", 0, 213, 3, 4, 0, 28, 0, 213, 63, 22], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 235, 8, 201, 0, 195, 8, 196, 0, 46], ["-", 0, 235, 8, 201, 0, 195, 0, 251, 0, 115], ["-", 8, 201, ... | 8 | 199 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
// List<int> values = new List<int>(Console.ReadLine().Split(' ').Select(s
// => int.Parse(s))); List<int> values = new List<int>();
string input = Console.ReadLine();... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
static void Main(string[] args) {
// List<int> values = new List<int>(Console.ReadLine().Split(' ').Select(s
// => int.Parse(s))); List<int> values = new List<int>();
string input = Console.ReadLine();... | [["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["... | 8 | 160 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoderBC042 {
class AtCoderBC042 {
static void Main(string[] args) { new AtCoderBC042().solve2(); }
private void solve2() {
string[] input = Console.ReadLine().Split();
int n = int.Parse(input[0]);
int l =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoderBC042 {
class AtCoderBC042 {
static void Main(string[] args) { new AtCoderBC042().solve2(); }
private void solve2() {
string[] input = Console.ReadLine().Split();
int n = int.Parse(input[0]);
int l =... | [["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 212, 0, 227, 39, 224, ... | 8 | 225 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
const int MAX = 10000; // 最大値
var input = Console.ReadLine();
int total = int.Parse(input.Split(' ')[0]); // 支払い金額
int numCnt = int.Parse(input.Split(' ')[1]); // 嫌いな数カウント
input = Console.ReadLine();
// 嫌い... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
int total = int.Parse(input.Split(' ')[0]); // 支払い金額
int numCnt = int.Parse(input.Split(' ')[1]); // 嫌いな数カウント
input = Console.ReadLine();
// 嫌いな数リスト
var hatelist = input.Repl... | [["-", 0, 195, 8, 196, 0, 197, 0, 251, 0, 154], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0... | 8 | 171 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace AGC003A {
class Program {
static void Solve() {
var s = Input.Next();
// 東西、南北は一方があったらもう一方も必要
bool possible = true;
if (s.Contains('E'))
possible ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace AGC003A {
class Program {
static void Solve() {
var s = Input.Next();
// 東西、南北は一方があったらもう一方も必要
bool impossible = false;
if (s.Contains('E'))
imposs... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["-", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 31, 22... | 8 | 808 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoder {
class MainClass {
// C#7.0
string S;
void Solve() {
io.i(out S);
var aa = new AssociativeArray<char>();
aa.init(S.ToCharArray(... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoder {
class MainClass {
// C#7.0
string S;
void Solve() {
io.i(out S);
var aa = new AssociativeArray<char>();
aa.init(S.ToCharArray(... | [["-", 31, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 31, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["-", 12, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 12, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 0, 235, 8, 201, 0, 195, 8, 196, 0, 46], ["+", 0, 235, 8, 201, 0, 195, 0, 251, 0, 259], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199]... | 8 | 2,734 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.Contracts;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Xml.Schema;
using System.Threading;
using System.Diagnostics.CodeAnalysis;
namespace AtCoder {
public static class Ex {
public stati... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.Contracts;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Xml.Schema;
using System.Threading;
using System.Diagnostics.CodeAnalysis;
namespace AtCoder {
public static class Ex {
public stati... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], [... | 8 | 1,934 |
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, 57, 75, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-"... | 8 | 2,447 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
private const long INFINITY = 9223372036854775807;
public static void Main() {
int N = NextInt();
long ans = 0;
int[] A = new int[N];
for (int i = 0; i < ... | using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
private const long INFINITY = 9223372036854775807;
public static void Main() {
int N = NextInt();
long ans = 0;
int[] A = new int[N];
for (int i = 0; i < ... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 12, 16, 31, 204, 205, 22], ["+", 0, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 17, 85], ["+", 3, 4, 0, 28, 0, 16, 12, 16, 12, 203... | 8 | 460 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
// using static System.Globalization.CultureInfo;
class Program {
static void Main(string[] args) {
var num = Add.num;
var ar = new int[num];
for (var i =... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
// using static System.Globalization.CultureInfo;
class Program {
static void Main(string[] args) {
var num = Add.num;
var ar = new int[num];
for (var i =... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 1, 0, 11, 12, 16, 31, 204, 205, 22], ["+", 0, 11, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22... | 8 | 271 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine()); // long.Parseはstringをlongに変換。
long[] nums = new long[n];
long answer = 0;
for (int i = 0; i < n; i++) {
nums... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine()); // long.Parseはstringをlongに変換。
long[] nums = new long[n];
long answer = 0;
for (int i = 0; i < n; i++)
nums[i... | [["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 7, 8, 1, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", ... | 8 | 168 |
using System;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
long ans = 0;
long[] a = new long[n];
a[0] = int.Parse(Console.ReadLine());
for (int i = 1; i < n; i++) {
a[i] = int.Parse(Console.ReadLine());
ans += (a[i - 1] + a[i]) / 2;
a[i] = a[i] > 0 ... | using System;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
long[] a = new long[n];
a[0] = int.Parse(Console.ReadLine());
long ans = a[0] / 2;
a[0] %= 2;
for (int i = 1; i < n; i++) {
a[i] = int.Parse(Console.ReadLine());
ans += (a[i - 1] + a[i]) / 2;
... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 3... | 8 | 153 |
using System;
class A {
static void Main() {
var n = int.Parse(Console.ReadLine());
long ans = 0;
int cnt = 0;
for (int i = 0; i < n; i++) {
var a = int.Parse(Console.ReadLine());
ans += a / 2;
if (a % 2 == 1) {
cnt++;
} else {
ans += cnt / 2;
cnt = 0;
... | using System;
class A {
static void Main() {
var n = int.Parse(Console.ReadLine());
long ans = 0, cnt = 0;
for (int i = 0; i < n; i++) {
var a = int.Parse(Console.ReadLine());
if (a != 0) {
cnt += a;
} else {
ans += cnt / 2;
cnt = 0;
}
}
ans += cnt ... | [["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-",... | 8 | 113 |
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplOptions = System.Runtime.Compile... | using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplOptions = System.Runtime.Compile... | [["-", 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, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, ... | 8 | 274 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class contest {
static void Main(string[] args) {
var num = int.Parse(Console.ReadLine());
var input = new List<int>();
var clone = new List<int>();
var dicSorted = new Dictionary<int, ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class contest {
static void Main(string[] args) {
var num = int.Parse(Console.ReadLine());
var input = new List<int>();
var dicSorted = new Dictionary<int, int>();
var dicOriginal = ne... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 18], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 39, 236,... | 8 | 251 |
using System;
using System.Text.RegularExpressions;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using System.Numerics;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput... | using System;
using System.Text.RegularExpressions;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using System.Numerics;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput... | [["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 18], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 47], ["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 25], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 70], ["+", 0, 212, 0, 227, 39, 224, 225,... | 8 | 292 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
class Program {
const int M = 1000000007;
const double eps = 1e-9;
static int[] dd = { 0, 1, 0, -1, 0 };
static void Main() {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
var sc... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
class Program {
const int M = 1000000007;
const double eps = 1e-9;
static int[] dd = { 0, 1, 0, -1, 0 };
static void Main() {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
var sc... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 250], ["+", 8, 201, 0, 195, 8, 196, 0, 197,... | 8 | 2,354 |
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Collections.Generic;
using Debug = System.Diagnostics.Debug;
using StringBuilder = System.Text.StringBuilder;
using System.Numerics;
using Number = System.Int64;
namespace Program {
public class Solver {
public void Solve() {
var n = sc.... | using System;
using System.Linq;
using System.Linq.Expressions;
using System.Collections.Generic;
using Debug = System.Diagnostics.Debug;
using StringBuilder = System.Text.StringBuilder;
using System.Numerics;
using Number = System.Int64;
namespace Program {
public class Solver {
public void Solve() {
var n = sc.... | [["-", 8, 196, 0, 210, 8, 7, 8, 57, 0, 121], ["+", 8, 196, 0, 210, 8, 7, 8, 52, 0, 89], ["+", 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], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+"... | 8 | 1,821 |
using System;
using System.Linq;
class Program {
static void Main() {
Console.ReadLine();
var a = Console.ReadLine().Split().Select(int.Parse);
var b = Enumerable.Range(a.Min(), a.Max());
var c = b.Min(x => a.Sum(y => (y - x) * (y - x)));
Console.WriteLine(c);
}
} | using System;
using System.Linq;
class Program {
static void Main() {
Console.ReadLine();
var a = Console.ReadLine().Split().Select(int.Parse);
var b = Enumerable.Range(a.Min(), a.Max() - a.Min() + 1);
var c = b.Min(x => a.Sum(y => (y - x) * (y - x)));
Console.WriteLine(c);
}
} | [["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 33], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203],... | 8 | 101 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStan... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
#if !DEBUG
using System.IO;
#endif
public class Program {
public static void Main() {
#region SetAutoFlushIsFalse
#if !DEBUG
var sw =
new StreamWriter(Console.OpenStan... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203... | 8 | 3,241 |
using System;
using System.Linq;
class A {
static void Main() {
double s = int.Parse(Console.ReadLine());
double[] a = Console.ReadLine().Split().Select(double.Parse).ToArray();
double z = 0;
for (int i = 0; i < (int)a.Length; i++) {
z += a[i];
}
double ret = Math.Round((double)z / s, Mi... | using System;
using System.Linq;
class A {
static void Main() {
double s = int.Parse(Console.ReadLine());
double[] a = Console.ReadLine().Split().Select(double.Parse).ToArray();
double z = 0;
for (int i = 0; i < (int)s; i++) {
z += a[i];
}
double ret = Math.Round((double)z / s, MidpointR... | [["-", 0, 7, 15, 16, 12, 74, 51, 214, 205, 22], ["-", 0, 7, 15, 16, 12, 74, 51, 214, 0, 131], ["-", 0, 7, 15, 16, 12, 74, 51, 214, 141, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 74, 51, 22], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0,... | 8 | 180 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
// using static System.Globalization.CultureInfo;
class Program {
static void Main(string[] args) {
var s = ReadLine();
for (var k = 0; k < 2; k++) {
fo... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
// using static System.Globalization.CultureInfo;
class Program {
static void Main(string[] args) {
var s = ReadLine();
for (var k = 0; k < 2; k++) {
fo... | [["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 31, 16, 12, 16, 12, 204, 206, 207, 0, 73], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 0, 57, 15, 16, 12, 16, 31, 204, 205, 22], ["-", 15, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["-", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 15, 16, 12, 16, 31, 204, 2... | 8 | 207 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
var cin = new Scanner2();
string s = cin.Next();
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
var cin = new Scanner2();
string s = cin.Next();
... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+",... | 8 | 591 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC043A {
class Program {
static void Main(string[] args) {
int S, N;
N = int.Parse(Console.ReadLine());
S = 0;
for (int i = 1; i <= 100; i++) {
Console.WriteLine(i);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC043A {
class Program {
static void Main(string[] args) {
int S, N, i;
N = int.Parse(Console.ReadLine());
S = 0;
for (i = 1; i <= N; i++) {
S = S + i;
}
Con... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, ... | 8 | 110 |
using System;
class p {
static void Main() {
int N = int.Parse(Console.ReadLine());
Console.WriteLine((1 / 2) * N * (N + 1));
}
} | using System;
class p {
static void Main() {
int N = int.Parse(Console.ReadLine());
Console.WriteLine((N * (N + 1)) / 2);
}
}
| [["-", 0, 16, 31, 16, 31, 23, 0, 16, 31, 203], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 17, 85], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["-", 0, 28, 0, 16, 31, 16, 31, 23, 0, 25], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["+", 0, 2... | 8 | 47 |
using System;
namespace helloVS {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int ans = n * (n + 1) * (2 * n + 1) / 6;
Console.WriteLine("{0}\n", ans);
}
}
}
| using System;
namespace helloVS {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int ans = n * (n + 1) / 2;
Console.WriteLine("{0}\n", ans);
}
}
}
| [["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 48], ["-", 0, 212, 0, 16, 31, 16, 12, 23, 0, 24], ["-", 31, 16, 12, 23, 0, 16, 31, 16, 31, 203], ["-", 31, 16, 12, 23, 0, 16, 31, 16, 17, 48], ["-", 31, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 12, 203]... | 8 | 69 |
using System;
class S {
static void Main() {
int a = int.Parse(Console.ReadLine());
for (int i = 1; i < a; i++) {
a += i;
}
Console.WriteLine(a);
}
} | using System;
class S {
static void Main() {
int a = int.Parse(Console.ReadLine());
int s = 0;
for (int i = 1; i <= a; i++) {
s += i;
}
Console.WriteLine(s);
}
} | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17,... | 8 | 55 |
using System;
using System.Collections.Generic;
namespace ABCS1 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
int H, W, A, B;
H = int.Parse(input[0]);
W = int.Parse(input[1]);
A = int.Parse(input[2]);
B = int.Parse(input[3]);
Console.WriteL... | using System;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
int H, W, A, B;
H = int.Parse(input[0]);
W = int.Parse(input[1]);
A = int.Parse(input[2]);
B = int.Parse(input[3]);
Console.WriteLine(Solve(H, W, A, B));
}
static int Solve(int ... | [["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, ... | 8 | 585 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
class Program {
public Program() {}
static void Main(string[] args) { new Program().prog(); }
Scanner cin;
const int MOD = 1000000007;
const... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
class Program {
public Program() {}
static void Main(string[] args) { new Program().prog(); }
Scanner cin;
const int MOD = 1000000007;
const... | [["-", 31, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 33], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 72], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 28, 0, 16, 31, 16, 31, 16, 17, 33], ["-", 0, 28, 0, 16, 31, 16, 31, 16, 12, ... | 8 | 913 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
void calc() {
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
void calc() {
... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["-", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["... | 8 | 521 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Hello {
static public int mod = 1000000007;
public static void Main() {
// 方針
//
long[] num = longa();
long a = num[1];
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Hello {
static public int mod = 1000000007;
public static void Main() {
// 方針
//
long[] num = longa();
long a = num[1];
... | [["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196... | 8 | 919 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var l = Console.ReadLine().Split(' ').Select(y => long.Parse(y)).ToArray();
var n = l[0];
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var l = Console.ReadLine().Split(' ').Select(y => long.Parse(y)).ToArray();
var n = l[0];
... | [["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 241, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 79], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0,... | 8 | 199 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine().Split();
var n = Int32.Parse(str[0]);
var x = Int32.Par... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine().Split();
var n = UInt64.Parse(str[0]);
var x = UInt64.P... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 22], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 22]] | 8 | 292 |
using System;
using System.Collections.Generic;
using CompLib.Util;
public class Program {
private int N, K;
private List<int>[] E;
private int[,] Dist;
public void Solve() {
var sc = new Scanner();
N = sc.NextInt();
K = sc.NextInt();
E = new List<int>[N];
for (int i = 0; i < N; i++) {
... | using System;
using System.Collections.Generic;
using CompLib.Util;
public class Program {
private int N, K;
private List<int>[] E;
private int[,] Dist;
public void Solve() {
var sc = new Scanner();
N = sc.NextInt();
K = sc.NextInt();
E = new List<int>[N];
for (int i = 0; i < N; i++) {
... | [["-", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["-", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 57, 75, 196, 0, 197, 0, 35], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200,... | 8 | 878 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.AGC_C {
class _001 {
static void Main(string[] args) {
Method(args);
ReadLine();
}
static void Method(string[] args) {
int[] nk ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.AGC_C {
class _001 {
static void Main(string[] args) {
Method(args);
ReadLine();
}
static void Method(string[] args) {
int[] nk ... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 0, 52, 8, 196, 0, 57, 15, 204, 205, 22], ["+", 8, 196, 0, 57, 15, 204, 206, 207, 0, 70], ["+", 15, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["+", 206, 207, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 204, 206, 207, 0, 28... | 8 | 842 |
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplOptions = System.Runtime.Compile... | using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplOptions = System.Runtime.Compile... | [["-", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 31, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 31, 16, 31, 204, 205, 22], ["+", 0, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0... | 8 | 745 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
const int mod = 1000000007;
const long o = 1;
static List<int>[] li;
static int[] s;
static int[][] h;
static int ans = 0;
static void Main() {
Sc sc = new Sc();
s = sc.Ia;
li = new List<int>[s[0] + 1];
int[... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
const int mod = 1000000007;
const long o = 1;
static List<int>[] li;
static int[] s;
static int[][] h;
static int ans = 0;
static void Main() {
Sc sc = new Sc();
s = sc.Ia;
li = new List<int>[s[0] + 1];
int[... | [["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 204, 205, 22], ["+", 75, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 75, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 75, 57, 15, ... | 8 | 872 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
class Program {
const int M = 1000000007;
const double eps = 1e-9;
static int[] dd = { 0, 1, 0, -1, 0 };
static void Main() {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
var sc... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
class Program {
const int M = 1000000007;
const double eps = 1e-9;
static int[] dd = { 0, 1, 0, -1, 0 };
static void Main() {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
var sc... | [["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], [... | 8 | 2,805 |
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Diagnostics;
using System.Numerics;
using Enu = System.Linq.Enumerable;
public class Program {
static readonly int Mod = (int)1e9 + 7;
static void Add(ref int a,... | using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Diagnostics;
using System.Numerics;
using Enu = System.Linq.Enumerable;
public class Program {
static readonly int Mod = (int)1e9 + 7;
static void Add(ref int a,... | [["-", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 25], ["-", 0, 1, 0, 11, 12, 74, 51, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22]] | 8 | 1,309 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var S = sc.ReadStr();
var stack = new Stack<char>();
foreach (var c in S) {
if (c == 'B') {
if (stack.Count > 0)
stack.Pop();
} else {
stack.Push(c);... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var S = sc.ReadStr();
var s = new Stack<char>();
foreach (var c in S) {
if (c == 'B') {
if (s.Count > 0)
s.Pop();
} else {
s.Push(c);
}
}
... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 64, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["-", 0, 57, 64, 1, 0, 213, 63, 214, 205, 22], ["+", 0, 57, 64, 1, 0, 213, 63, 214, 205, 22], ["-", 75, 196, 0, 1, 0, 213, 63... | 8 | 1,084 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
using static System.Array;
using static Read;
class Program {
public static void Main() {
var n = String().ToCharArray();
string s = "";
foreach (var c in n) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
using static System.Array;
using static Read;
class Program {
public static void Main() {
var n = String().ToCharArray();
string s = "";
foreach (char c in n) {
... | [["-", 0, 195, 8, 196, 0, 210, 39, 216, 0, 217], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 39, 199], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 79], ["-", 64, 196, 0, 57, 15, 16, 12, 5, 0, 62], ["+", 64, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 64, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16... | 8 | 445 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class GFG {
static public void Main() {
try {
var n = Console.ReadLine();
// var input1 = Console.ReadLine().Split(' ');
// var n = int.Parse(input1[0]);
// var L = int.Parse(input1[1]);
//... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class GFG {
static public void Main() {
try {
var n = Console.ReadLine();
// var input1 = Console.ReadLine().Split(' ');
// var n = int.Parse(input1[0]);
// var L = int.Parse(input1[1]);
//... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 64, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 64, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 57, 64, 196, 0, 57, 15, 16,... | 8 | 161 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class QuestionB {
public static void Main(string[] args) {
// 文字列の入力
string s = Console.ReadLine();
// 整数の入力
// long n = long.Parse(Console.ReadLine... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class QuestionB {
public static void Main(string[] args) {
// 文字列の入力
string s = Console.ReadLine();
// 整数の入力
// long n = long.Parse(Console.ReadLine... | [["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 253], ["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 104], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 35], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], [... | 8 | 190 |
using System;
class Program {
static void Main(string[] args) {
string a, b, c;
a = Console.ReadLine(); //標準入力
// string[] str = Console.ReadLine().Split('
// ');//2つ以上のスペース区切り入力の取得 b = int.Parse(str[0]);
// //数値で受け取りたい場合は変換する c = int.Parse(str[1]);
// Console.Write("改行なし a = {0} b = {1} c ... | using System;
class Program {
static void Main(string[] args) {
string a, b, c;
a = Console.ReadLine(); //標準入力
// string[] str = Console.ReadLine().Split('
// ');//2つ以上のスペース区切り入力の取得 b = int.Parse(str[0]);
// //数値で受け取りたい場合は変換する c = int.Parse(str[1]);
// Console.Write("改行なし a = {0} b = {1} c =... | [["-", 0, 208, 0, 235, 8, 201, 0, 195, 8, 196], ["-", 0, 235, 8, 201, 0, 195, 8, 196, 0, 197], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 198], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 199, 0, 200], ["-", 0, 197, 0, 198, 39, 199, 0, 200, 0, 200], ["-", 0, 198, 39, 199, 0, 200, 0, ... | 8 | 132 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCode {
class Class1 {
static void Main(string[] args) {
string Input = Console.ReadLine();
char Command;
string Output = null;
for (int i = 0; i < Input.Length; i++) {
Command = Input[i];
if... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCode {
class Class1 {
static void Main(string[] args) {
string Input = Console.ReadLine();
char Command;
string Output = null;
int cnt = 0;
for (int i = 0; i < Input.Length; i++) {
Command = In... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 2... | 8 | 155 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace contest {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
string result = "";
foreach (var s ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace contest {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
string result = "";
foreach (var s ... | [["+", 0, 99, 8, 254, 0, 239, 0, 57, 0, 121], ["+", 0, 99, 8, 254, 0, 239, 0, 57, 0, 24], ["+", 8, 254, 0, 239, 0, 57, 15, 16, 17, 79], ["+", 0, 239, 0, 57, 15, 16, 12, 5, 0, 62], ["+", 0, 99, 8, 254, 0, 239, 0, 57, 0, 25], ["+", 8, 254, 0, 239, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", ... | 8 | 147 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace atcoder {
public class problem {
public static void Main(string[] args) {
string s = Console.ReadLine();
string output = "";
int slength = 0;
for (int i = 0; i < s.Length; i++) {
if (s[i] == '0')
output += "0";... | using System;
using System.Collections.Generic;
using System.Linq;
namespace atcoder {
public class problem {
public static void Main(string[] args) {
string s = Console.ReadLine();
string output = "";
int slength = 0;
for (int i = 0; i < s.Length; i++) {
if (s[i] == '0')
output += "0";... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 149 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
Stack<string> s = new Stack<string>();
foreach (var i in input) {
if (i == '1') {
s.Push(i.ToString());
}
if (i == '0') {
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
Stack<string> s = new Stack<string>();
foreach (var i in input) {
if (i == '1') {
s.Push(i.ToString());
}
if (i == '0') {
... | [["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4,... | 8 | 181 |
using System;
using System.Collections.Generic;
public class Hello {
public static void Main() {
string s = Console.ReadLine();
string ans = "";
for (int i = 0; i < s.Length; i++) {
if (s[i] == 'B') {
ans = ans.Substring(0, ans.Length - 1);
} else {
ans += s[i].ToString();
... | using System;
using System.Collections.Generic;
public class Hello {
public static void Main() {
string s = Console.ReadLine();
string ans = "";
for (int i = 0; i < s.Length; i++) {
if (s[i] == 'B') {
if (ans.Length > 0) {
ans = ans.Substring(0, ans.Length - 1);
}
} e... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 64, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 64, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 57, 64, 196, 0, 57, 15, 16,... | 8 | 105 |
using System;
using System.Text;
class MainClass {
public static void Main(string[] args) {
string str = Console.ReadLine();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < str.Length; i++) {
if (str[i] == '0' || str[i] == '1')
sb.Append(str[i]);
else
sb.Remove(sb.L... | using System;
using System.Text;
class MainClass {
public static void Main(string[] args) {
string str = Console.ReadLine();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < str.Length; i++) {
if (str[i] == '0' || str[i] == '1')
sb.Append(str[i]);
else if (sb.ToString() != "... | [["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 75, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 75, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 75, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 75, 57, 15, 16, 31, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 79... | 8 | 114 |
using System;
using System.IO;
namespace Atcoder {
class abc043b {
public static void Main() {
string s = Console.ReadLine();
string ans = "";
for (int i = 0; i < s.Length; i++) {
if (s[i] == 'B') {
ans = ans.Substring(0, ans.Length - 1);
} else {
ans += s[i];
}
}
... | using System;
using System.IO;
namespace Atcoder {
class abc043b {
public static void Main() {
string s = Console.ReadLine();
string ans = "";
for (int i = 0; i < s.Length; i++) {
if (s[i] == 'B') {
if (ans != "") {
ans = ans.Substring(0, ans.Length - 1);
}
} else {... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 79], ["+", 64, 196, 0, 57, 15, 16, 12, 5, 0, 62], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["... | 8 | 102 |
using System;
using System.Collections.Generic;
using System.IO;
#region Program
namespace Program {
#region Solver
public class Solver {
static IO.StreamScanner sc =
new IO.StreamScanner(Console.OpenStandardInput());
string S;
static readonly char B = 'B';
#region Solver
public Solver() { S = sc.Scan(... | using System;
using System.Collections.Generic;
using System.IO;
#region Program
namespace Program {
#region Solver
public class Solver {
static IO.StreamScanner sc =
new IO.StreamScanner(Console.OpenStandardInput());
string S;
static readonly char B = 'B';
#region Solver
public Solver() { S = sc.Scan(... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ... | 8 | 931 |
using System;
using System.Text.RegularExpressions;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using System.Numerics;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput... | using System;
using System.Text.RegularExpressions;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using System.Numerics;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput... | [["+", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["+", 0, 1, 0, 213, 63, 214, 205, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 2... | 8 | 182 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class QuestionC {
public static void Main(string[] args) {
// 文字列の入力
// string s = Console.ReadLine();
// 整数の入力
long n = long.Parse(Console.ReadLine... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class QuestionC {
public static void Main(string[] args) {
// 文字列の入力
// string s = Console.ReadLine();
// 整数の入力
long n = long.Parse(Console.ReadLine... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 21... | 8 | 185 |
using System;
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
var sa = s.Split(' ');
int[] ia = new int[n];
for (int i = 0; i < ia.Length; i++) {
ia[i] = int.Parse(sa[i]);
}
int total = 0;
for (int i = 0; ... | using System;
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
var sa = s.Split(' ');
int[] ia = new int[n];
for (int i = 0; i < ia.Length; i++) {
ia[i] = int.Parse(sa[i]);
}
int total = 0;
for (int i = 0; ... | [["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["+", 0, 212, 0, 74, 51, 213, 63, 214, 205, 22], ["+", 0, 212, 0, 74, 51, 213, 63, 214, 0, 131], ["+", 0, 212, 0, 74, 51, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 74, 51, 213, 3, 4, ... | 8 | 188 |
using System;
namespace Unbalanced {
class MainClass {
public static void Main(string[] args) {
var chars = Console.ReadLine().ToCharArray();
for (int i = 0; i < chars.Length; i++) {
// AAのとき
if (chars[i] == chars[i + 1]) {
Console.WriteLine(string.Format("{0} {1}", i + 1, i + 2));
... | using System;
namespace Unbalanced {
class MainClass {
public static void Main(string[] args) {
var chars = Console.ReadLine().ToCharArray();
for (int i = 0; i < chars.Length; i++) {
// AAのとき
if (chars.Length <= i + 1) {
break;
}
if (chars[i] == chars[i + 1]) {
Consol... | [["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25]... | 8 | 145 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.