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 = 1000000007;
public static void Main() {
long N = long.Parse(Console.ReadLine());
long ans = (long)(N / 11.0 * 2);
... | using System;
using System.Collections.Generic;
using System.Linq;
using static Atcoder;
using System.Threading.Tasks;
using System.ComponentModel;
public class Hello {
private const int INF = 1000000007;
public static void Main() {
long N = long.Parse(Console.ReadLine());
long n = (long)Math.Floor(N / 11.... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 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, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, ... | 8 | 913 |
using System;
using System.Collections.Generic;
namespace Atcoder {
class Program {
static List<int[]> list = new List<int[]>();
static int[] yMove = new int[] { -1, 1, 0, 0 };
static int[] xMove = new int[] { 0, 0, -1, 1 };
static bool[,] miz;
static void Main(string[] args) {
// var line1 = Array.Co... | using System;
using System.Collections.Generic;
namespace Atcoder {
class Program {
static List<int[]> list = new List<int[]>();
static int[] yMove = new int[] { -1, 1, 0, 0 };
static int[] xMove = new int[] { 0, 0, -1, 1 };
static bool[,] miz;
static void Main(string[] args) {
// var line1 = Array.Co... | [["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 33], ["+", 15, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 31, 203], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 17, 48], ["+", 15, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+... | 8 | 1,413 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace NotFounds {
public class Program {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenSta... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace NotFounds {
public class Program {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenSta... | [["-", 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, 16, 31, 16, 12, 250], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 31, 22], ["+", 12, 23,... | 8 | 547 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using static System.Console;
using static System.Math;
class Simple {
long x;
void Solve() {
// input
x = io.Long;
// cal
var ans ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using static System.Console;
using static System.Math;
class Simple {
long x;
void Solve() {
// input
x = io.Long;
// cal
var ans ... | [["+", 0, 41, 75, 41, 15, 16, 31, 16, 31, 22], ["+", 0, 41, 75, 41, 15, 16, 31, 16, 17, 109], ["+", 0, 41, 75, 41, 15, 16, 31, 16, 12, 203], ["+", 12, 23, 0, 41, 75, 41, 15, 16, 17, 19], ["+", 12, 23, 0, 41, 75, 41, 15, 16, 12, 203], ["+", 75, 16, 12, 23, 0, 41, 75, 41, 0, 101], ["+", 75, 16, 12, 23, 0, 41, 75, 41, 0, ... | 8 | 373 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BeginnerContest053 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
// Console.WriteLine(int.Parse(input) < 1200 ? "ABC" : "ARC");
// var firs... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BeginnerContest053 {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
// Console.WriteLine(int.Parse(input) < 1200 ? "ABC" : "ARC");
// var firs... | [["+", 75, 57, 75, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16... | 8 | 133 |
using System;
namespace AtCoder {
class Program {
static void Main(string[] args)
// static void dummy()
{
// 入力データパース
string szPoint = Console.ReadLine();
long point = long.Parse(szPoint);
// 初回は絶対6だ!!その次は5にする、6、5、…
// 偶数回の計算式から必要な回数を
long retEven = (2L * point) / 11 + 1;
// 奇数回の計... | using System;
namespace AtCoder {
class Program {
static void Main(string[] args)
// static void dummy()
{
// 入力データパース
string szPoint = Console.ReadLine();
long point = long.Parse(szPoint);
// 初回は絶対6だ!!その次は5にする、6、5、…
// 偶数回の計算式から必要な回数を
long retEven = (long)Math.Ceiling((2d * point) / 11... | [["-", 0, 16, 31, 16, 31, 23, 0, 16, 31, 203], ["+", 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 | 141 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class MainClass : Scanner {
static void Main() {
long x = RLong();
long ans = 0;
ans += (x / 11) * 2;
x %= 11;
var s = new List<int>() { 6, 5 };
for (int i = 0; i < 3; i++... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class MainClass : Scanner {
static void Main() {
long x = RLong();
long ans = 0;
ans += (x / 11) * 2;
x %= 11;
var s = new List<int>() { 6, 5 };
for (int i = 0; i < 3; i++... | [["+", 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, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 93, 0, 94], ["+", 0, 7, 8... | 8 | 744 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class219 {
static void Main() {
long x = long.Parse(Console.ReadLine());
long x2 = x / 11 * 2;
long y = x % 11;
if (y > 6)
y = 2;
else
y ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class219 {
static void Main() {
long x = long.Parse(Console.ReadLine());
long x2 = x / 11 * 2;
long y = x % 11;
if (y > 6)
y = 2;
else if (y !=... | [["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 79], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 25], ["+", 0, 57, 75, 57, 64, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 57, 75, 57, 64, 1, 0, 35], ["... | 8 | 96 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using System.Runtime.CompilerServices;
using System.Diagnostics;
using ll=System.Int64;
using static Contest_A.Lib_IO;
using static Contest_A.Lib_Minifunc;
public static class Contest_A
{
public static ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using System.Runtime.CompilerServices;
using System.Diagnostics;
using ll=System.Int64;
using static Contest_A.Lib_IO;
using static Contest_A.Lib_Minifunc;
public static class Contest_A
{
public static ... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 8, 196, 0, 287, 0, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 287, 0, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 287, 0, 196, 0, 57, 0, 24], ["+", 0, 287, 0, 196, 0, 57, 15, 16, 31, 203], ["+", 0, 287, 0, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 287, 0, 196, 0, 57, 15, 16, 12, 22... | 8 | 2,921 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Diagnostics;
using static System.Console;
using static System.Math;
namespace FunProCon {
class FunProConSummer {
static void Main(string[] args) {
long s = long.Parse(ReadLine());
// 65656565.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Diagnostics;
using static System.Console;
using static System.Math;
namespace FunProCon {
class FunProConSummer {
static void Main(string[] args) {
long s = long.Parse(ReadLine());
// 65656565.... | [["+", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 60], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 0, 28, 0, 41, 64, 16, 31, 23, 0, 24], ["+", 64, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 31, 22], ["+", 31, 23... | 8 | 102 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
private const int MODULO = 1000000007;
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
private const int MODULO = 1000000007;
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() ... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 212, 0, 23, 0, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 23, 0, 16, 31, 16, 17, 48], ["-", 0, 16, 31, 23, 0, 16, 31, 16, 12, 203], ["-", 0, 23, 0, 16, 31, 23, 0, 16, 17, 72], ["-", 0, 23, 0, 16, 31, 23, 0, 16, 12, 203],... | 8 | 228 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace AtCoder {
class MainClass {
// C#7.0/////////////////////////////////////////////////////
long X;
void Solve() {
i... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace AtCoder {
class MainClass {
// C#7.0/////////////////////////////////////////////////////
long X;
void Solve() {
i... | [["+", 12, 23, 0, 41, 15, 23, 0, 16, 17, 79], ["+", 12, 23, 0, 41, 15, 23, 0, 16, 12, 203], ["+", 0, 16, 12, 23, 0, 41, 15, 23, 0, 25], ["+", 0, 212, 0, 16, 12, 23, 0, 41, 0, 101], ["+", 0, 16, 12, 23, 0, 41, 64, 23, 0, 24], ["+", 0, 41, 64, 23, 0, 41, 15, 23, 0, 24], ["+", 0, 41, 15, 23, 0, 16, 31, 16, 31, 22], ["+", ... | 8 | 3,880 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var b... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var b... | [["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 33], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 12, 20... | 8 | 160 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace MSL001 {
// public class A
//{
// public static void Main(string[] args)
// {
// var c = new ConsoleInput(Console.In);
// var S = c.Read;
// var A = c.ReadLong;
// var B = c.ReadLong;
// ... | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace MSL001 {
// public class A
//{
// public static void Main(string[] args)
// {
// var c = new ConsoleInput(Console.In);
// var S = c.Read;
// var A = c.ReadLong;
// var B = c.ReadLong;
// ... | [["-", 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 | 588 |
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 = 998244353;
public static void Main() {
// 方針
//
int n = rint();
long[,] li = new long[n, ... | 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 = 998244353;
public static void Main() {
// 方針
//
int n = rint();
long[,] li = new long[n, ... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 116, 0, 117], ["+", 0, 7,... | 8 | 1,428 |
using System;
using System.Collections.Generic;
using System.Text;
namespace AtTest.AGC_Challenge {
class _009_A {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
int n = ReadInt();
var aArray = new long[n];
var bArr... | using System;
using System.Collections.Generic;
using System.Text;
namespace AtTest.AGC_Challenge {
class _009_A {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
int n = ReadInt();
var aArray = new long[n];
var bArr... | [["-", 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, 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, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ... | 8 | 374 |
using System;
using System.Linq;
namespace AGC009_A {
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var A = new long[N];
var B = new long[N];
for (long i = 0; i < N; i++) {
var l = Console.ReadLine().Split().Select(long.Parse).ToArray();
A[i] = ... | using System;
using System.Linq;
namespace AGC009_A {
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var A = new long[N];
var B = new long[N];
for (long i = 0; i < N; i++) {
var l = Console.ReadLine().Split().Select(long.Parse).ToArray();
A[i] = ... | [["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 20], ["+", 64, 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,... | 8 | 167 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AGC009MultipleArray {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long[] A = new long[N];
long[] B = new long[N];
string[] vals;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AGC009MultipleArray {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long[] A = new long[N];
long[] B = new long[N];
string[] vals;
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 7, 8, 196, 0, 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], ["-", 8, 196, 0, 7, 8, 196, 0, 52, 0, 89], ["-", 8, 1... | 8 | 223 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression,
System.Linq.Expressions.ParameterExpression,
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
using System.Diagnostics;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression,
System.Linq.Expressions.ParameterExpression,
... | [["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 31, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["-", 31, 23, 0, 16, 31, 16, 31, 16, 31, 22], ["-", 31, 23, 0, 16, 31, 16, 31, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109]... | 8 | 3,051 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class _Class {
void _() {
var N = _Ns()[0];
var a = new ulong[N];
var b = new ulong[N];
for (int i = 0; i < N; i++) {
var AB = _Ns();
a[i] = (ulong)AB[0];
b[i] = (ulo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class _Class {
void _() {
var N = _Ns()[0];
var a = new ulong[N];
var b = new ulong[N];
for (int i = 0; i < N; i++) {
var AB = _Ns();
a[i] = (ulong)AB[0];
b[i] = (ulo... | [["-", 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, 19], ["-", 8, 196, 0, 57, 15, 16, 12, 204, 205, 22], ["-", 0, 57, 15, 16, 12, 204, 206, 207, 0, 70], ["-", 15, 16, 12, 204, 206, 207, 0, 28, 0, 22], ... | 8 | 390 |
using System;
using System.Collections.Generic;
public class AtCoder {
public static void Main() {
Tree tree = new Tree();
Console.WriteLine(tree.Calc(1));
}
public static void DebugWL(object x) {
System.Diagnostics.Debug.WriteLine(x);
}
}
class Tree {
int n;
int[] a;
List<int>[] list;
... | using System;
using System.Collections.Generic;
public class AtCoder {
public static void Main() {
Tree tree = new Tree();
Console.WriteLine(tree.Calc(1));
}
public static void DebugWL(object x) {
System.Diagnostics.Debug.WriteLine(x);
}
}
class Tree {
int n;
int[] a;
List<int>[] list;
... | [["-", 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, 16, 31, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["-", 0, 28, 0, 16, 31, 16, 12, 5, 0, 62], ["-", 0,... | 8 | 391 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Globalization;
using System.Diagnostics;
using static System.Console;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
class Program {
static void Main() {
SetOut(new StreamWriter(OpenStandardOutput())... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Globalization;
using System.Diagnostics;
using static System.Console;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
class Program {
static void Main() {
SetOut(new StreamWriter(OpenStandardOutput())... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", ... | 8 | 697 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC052A {
class Program {
static void Main(string[] args) {
int s, S, A, B, C, D;
var word = Console.ReadLine().Split(' ');
A = int.Parse(word[0]);
B = int.Parse(word[1]);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC052A {
class Program {
static void Main(string[] args) {
int s, S, A, B, C, D;
var word = Console.ReadLine().Split(' ');
A = int.Parse(word[0]);
B = int.Parse(word[1]);
... | [["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 75, 57, 75, 57, 64, 196, 0, 1, 0, 35]] | 8 | 203 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) { B(); }
static void B() {
var KS = ReadSplitInt();
var ans = 0;
for (var X = 0; X <= KS[0]; X++) {
for (var Y = 0; Y <= KS[0]; Y++) {
var Z = KS[1] ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) { B(); }
static void B() {
var KS = ReadSplitInt();
var ans = 0;
for (var X = 0; X <= KS[0]; X++) {
for (var Y = 0; Y <= KS[0]; Y++) {
var Z = KS[1] ... | [["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 25], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203],... | 8 | 493 |
using static System.Console;
using static System.Convert;
class Program {
static void Main(string[] args) {
var input = ReadLine().Split(' ');
var max = ToInt32(input[0]);
var num = ToInt32(input[1]);
var result = 0;
for (var i = 0; i <= max; i++) {
if (i > num)
break;
for (va... | using static System.Console;
using static System.Convert;
class Program {
static void Main(string[] args) {
var input = ReadLine().Split(' ');
var max = ToInt32(input[0]);
var num = ToInt32(input[1]);
var result = 0;
for (var i = 0; i <= max; i++) {
if (i > num)
break;
for (va... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 93, 0, 94], ["+", 0, 7, 8, 196, 0, 57, 64, 93, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196... | 8 | 185 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main(string[] args) {
int[] inp = ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int K = inp[0];
int S = inp[1];
int res = 0;
for (int x = 0; x <= K; x++) {
... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main(string[] args) {
int[] inp = ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int K = inp[0];
int S = inp[1];
int res = 0;
for (int x = 0; x <= K; x++) {
... | [["-", 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, 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], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+"... | 8 | 143 |
using System;
using System.Linq;
namespace AtCoder_Beginner_Contest_051_B {
class Program {
static void Main(string[] args) {
int[] kj = Console.ReadLine().Split().Select(int.Parse).ToArray();
int K = kj[0], S = kj[1];
int answer = 0;
for (int i = 0; i <= K; i++) {
if (i <= K) {
for (in... | using System;
using System.Linq;
namespace AtCoder_Beginner_Contest_051_B {
class Program {
static void Main(string[] args) {
int[] kj = Console.ReadLine().Split().Select(int.Parse).ToArray();
int K = kj[0], S = kj[1];
int answer = 0;
for (int i = 0; i <= S; i++) {
if (i <= K) {
for (in... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 7, 0, 25], ["+", 0, 57, 64, 196, 0, 7, 8, 196, 0, 45], ["+", 64, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 64, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0,... | 8 | 139 |
using System;
using System.Linq;
namespace abc051_b {
class Program {
static void Main(string[] args) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
int K = x[0];
if (K > x[1]) {
K = x[1];
}
int S = x[1];
int a = 0;
for (int i = 0; i <= K; i++) {
for (int ... | using System;
using System.Linq;
namespace abc051_b {
class Program {
static void Main(string[] args) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
int K = x[0];
if (K > x[1]) {
K = x[1];
}
int S = x[1];
int a = 0;
for (int i = 0; i <= K; i++) {
for (int ... | [["+", 0, 57, 64, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 57, 64, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 60], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["+", 64, 196, 0, 57, 75, 57, 15, 16, 17, 106], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 31, 2... | 8 | 181 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Program {
public void Proc() {
Reader.IsDebug = false;
int[] inpt =
Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
this.ItemMax = inpt[0];
this.Total = inpt[1];
long ans = 0;
... | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Program {
public void Proc() {
Reader.IsDebug = false;
int[] inpt =
Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
this.ItemMax = inpt[0];
this.Total = inpt[1];
long ans = 0;
... | [["+", 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, 33], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+",... | 8 | 285 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush();
}
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush();
}
... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 16, 31, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 16, 3... | 8 | 1,401 |
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... | [["-", 3, 4, 0, 28, 0, 218, 8, 227, 0, 228], ["-", 0, 28, 0, 218, 8, 227, 39, 224, 39, 199], ["-", 0, 218, 8, 227, 39, 224, 225, 226, 0, 70], ["+", 3, 4, 0, 28, 0, 218, 8, 213, 63, 22], ["+", 0, 28, 0, 218, 8, 213, 3, 4, 0, 24], ["-", 0, 218, 8, 227, 39, 224, 225, 226, 0, 73], ["+", 0, 28, 0, 218, 8, 213, 3, 4, 0, 21],... | 8 | 1,795 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using System.Runtime.CompilerServices;
using static MyUtil;
class MyUtil {
public static int[] ReadIntArray() {
return ReadLine().Split().Select(x => int.Parse(x)).ToArray();
}
public static void WarshallFloyd(in... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using System.Runtime.CompilerServices;
using static MyUtil;
class MyUtil {
public static int[] ReadIntArray() {
return ReadLine().Split().Select(x => int.Parse(x)).ToArray();
}
public static void WarshallFloyd(in... | [["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 45], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 25], ["+", 0, 7, 8, 196, 0, 7, 8, 196, 0, 45], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 1... | 8 | 463 |
using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
public static void Main() {
int N = NextInt();
int M = NextInt();
List<int>[] wf = new List<int>[N];
for (int i = 0; i < N; i++)
wf[i] = Enumerable.Re... | using System;
using System.Collections.Generic;
using System.Linq;
using static Input;
public class Prog {
private const int INF = 1000000007;
public static void Main() {
int N = NextInt();
int M = NextInt();
List<int>[] wf = new List<int>[N];
for (int i = 0; i < N; i++)
wf[i] = Enumerable.Re... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 64, 116, 0, 117], ["-", 0, 7, ... | 8 | 1,308 |
using System;
namespace D___Candidates_of_No_Shortest_Paths {
class Program {
static void Main(string[] args) {
var read = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var N = read[0];
var M = read[1];
// 2次元配列に辺と重さを記録
var edges = new int[M, 3];
for (int i = 0; i < M; i++) {
... | using System;
namespace D___Candidates_of_No_Shortest_Paths {
class Program {
static void Main(string[] args) {
var read = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var N = read[0];
var M = read[1];
// 2次元配列に辺と重さを記録
var edges = new int[M, 3];
for (int i = 0; i < M; i++) {
... | [["-", 0, 7, 8, 7, 8, 1, 0, 11, 12, 203], ["+", 0, 7, 8, 7, 8, 1, 0, 11, 12, 203], ["-", 0, 7, 10, 198, 0, 200, 141, 22, 0, 314], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 7, 15, 16, 31, 22, 0, 314], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 8, 196, 0, 7, 26, 223, 0, 22, 0, 314], ["+", 0,... | 8 | 435 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
static long n = long.Parse(input[0]);
static long m = long.Parse(input[1]);
static List<long[]>[... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
static long n = long.Parse(input[0]);
static long m = long.Parse(input[1]);
static List<long[]>[... | [["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 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], ["+", ... | 8 | 1,128 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtTest.Dijkstra {
class ABC_051 {
static Node[] nodes;
static Dictionary<int, bool> usedDict;
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtTest.Dijkstra {
class ABC_051 {
static Node[] nodes;
static Dictionary<int, bool> usedDict;
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
... | [["+", 15, 16, 31, 16, 12, 204, 205, 214, 141, 22], ["+", 15, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 16, 12, 204, 206, 207, 0, 73], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 15, 16, 12, 16, 31, 204, 205, 214, 205, 22], ["+", 15, 16, 12, 16, 31, 2... | 8 | 823 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;
class Magatro {
static int N, M;
const int INF = 100000000;
static void Main() {
string[] s = Console.ReadLine().Split(' ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;
class Magatro {
static int N, M;
const int INF = 100000000;
static void Main() {
string[] s = Console.ReadLine().Split(' ... | [["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["+", 0, 195, 8, 196, 0, 7, 26, 223, 0, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["... | 8 | 681 |
using System;
using System.Linq;
using System.Collections.Generic;
using Debug = System.Diagnostics.Debug;
using StringBuilder = System.Text.StringBuilder;
using System.Numerics;
// using Point = System.Numerics.Complex;
using Number = System.Int64;
namespace Program {
public class Solver {
public void Solve() {
... | using System;
using System.Linq;
using System.Collections.Generic;
using Debug = System.Diagnostics.Debug;
using StringBuilder = System.Text.StringBuilder;
using System.Numerics;
// using Point = System.Numerics.Complex;
using Number = System.Int64;
namespace Program {
public class Solver {
public void Solve() {
... | [["+", 0, 11, 12, 11, 31, 204, 205, 204, 205, 22], ["+", 12, 11, 31, 204, 205, 204, 206, 207, 0, 70], ["+", 31, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 11, 31, 204, 205, 204, 206, 207, 0, 73], ["+", 0, 11, 12, 11, 31, 204, 206, 207, 0, 70], ["+", 12, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 11, 12, 11, ... | 8 | 2,636 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
static void Main... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
static void Main... | [["-", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["-", 64, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 64, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 205, 22], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["-", 0, 57, 15, 16, 31, 213, 3, 4... | 8 | 324 |
using System;
namespace kekW {
internal static class Program {
private static void Main() {
var nbrs = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var x = nbrs[0];
var y = nbrs[1];
int res = 0;
while (x != y) {
if (x < y) {
if (-x - y > x - y && -x <= y) {
x ... | using System;
namespace kekW {
internal static class Program {
private static void Main() {
var nbrs = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var x = nbrs[0];
var y = nbrs[1];
int res = 0;
while (x != y) {
if (x < y) {
if (-x - y > x - y && -x <= y) {
x ... | [["+", 31, 16, 31, 16, 31, 16, 31, 241, 0, 33], ["+", 31, 16, 31, 16, 31, 16, 31, 241, 0, 22], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["+", 15, 16, 31, 16, 31, 16, 12, 16, ... | 8 | 212 |
using System;
namespace kekW {
internal static class Program {
private static void Main() {
var nbrs = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var x = nbrs[0];
var y = nbrs[1];
int res = 0;
while (x != y) {
if (x < y) {
if (-x - y > x - y && -x <= y) {
x ... | using System;
namespace kekW {
internal static class Program {
private static void Main() {
var nbrs = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var x = nbrs[0];
var y = nbrs[1];
int res = 0;
while (x != y) {
if (x < y) {
if (-x - y > x - y && -x <= y) {
x ... | [["+", 0, 57, 64, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 57, 64, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 18], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 12, 203], ["+", 64, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 31, 2... | 8 | 207 |
using System;
using CompLib.Util;
public class Program {
private int N;
private int[] A;
public void Solve() {
var sc = new Scanner();
int x = sc.NextInt();
int y = sc.NextInt();
int ans = int.MaxValue;
if (x < y)
ans = Math.Min(ans, y - x);
if (x < -y)
ans = Math.Min(ans, -... | using System;
using CompLib.Util;
public class Program {
private int N;
private int[] A;
public void Solve() {
var sc = new Scanner();
int x = sc.NextInt();
int y = sc.NextInt();
int ans = int.MaxValue;
if (x <= y)
ans = Math.Min(ans, y - x);
if (x <= (-y))
ans = Math.Min(an... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 28, 0, 16, 31, 16, 31, 23, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+"... | 8 | 532 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace AtCoder {
class Practice {
static void Main() => CustomMain();
static void Solve() {
long x, y;
ReadMulti(out x, out y);
long dif = Math.Abs(Math.Abs(x) - Math.Abs(y));
if (x < ... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace AtCoder {
class Practice {
static void Main() => CustomMain();
static void Solve() {
long x, y;
ReadMulti(out x, out y);
long dif = Math.Abs(Math.Abs(x) - Math.Abs(y));
if (x < ... | [["+", 0, 57, 75, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 57, 75, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 31, 203], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 18], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["+", 75, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 31, 2... | 8 | 793 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
long x = long.Parse(input[0]);
long y = long.Parse(input[1]);
long ans... | using System;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
long x = long.Parse(input[0]);
long y = long.Parse(input[1]);
long a = Math.Abs(Math.Abs(x) - Math.Abs(y));
if (x < y && y <= 0 || 0 <= x && x < y)
a += 0;
else if (y < x && x < 0 || 0 < y... | [["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["-", 0, 208, 0, 231, 141... | 8 | 158 |
using System.Linq;
using System;
public class Hello {
public const long INF = 99999999999999;
public static void Main() {
var ret = new long[4];
for (int i = 0; i < 4; i++)
ret[i] = INF;
string[] line = Console.ReadLine().Trim().Split(' ');
var x = long.Parse(line[0]);
var y = long.Parse(... | using System.Linq;
using System;
public class Hello {
public const long INF = 99999999999;
public static void Main() {
var ret = new long[4];
string[] line = Console.ReadLine().Trim().Split(' ');
var x = long.Parse(line[0]);
var y = long.Parse(line[1]);
ret[0] = getAns(x, y);
ret[1] = getAn... | [["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 124, 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, 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... | 8 | 199 |
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("10 20");
// 10
} else if (InputPattern == "In... | 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("10 20");
// 10
} else if (InputPattern == "In... | [["-", 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], ["-", 0, 208, 0, 235, 8, 20... | 8 | 461 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
new Program().SolveA();
Console.ReadKey();
}
Scanner sc = new Scanner();
void SolveA() {
int x = sc.NextInt();
int y = sc.NextInt();
int res = 0;
if (x <= y) {
res = Math.Abs(x - y);
... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
new Program().SolveA();
Console.ReadKey();
}
Scanner sc = new Scanner();
void SolveA() {
int x = sc.NextInt();
int y = sc.NextInt();
int res = 0;
if (x <= y) {
res = Min(Math.Abs(x - ... | [["+", 64, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 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, 241, 0, 33], ["-", 64, 196, 0, 57, 15, 16, 31, 241, 0, 22], ["... | 8 | 426 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
class Prog {
public Prog() {}
public static int Main() {
new Prog().calc();
return 0;
}
Scanner cin;
public void calc() {
cin = new Scanner();
int x = cin.nextInt... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
class Prog {
public Prog() {}
public static int Main() {
new Prog().calc();
return 0;
}
Scanner cin;
public void calc() {
cin = new Scanner();
int x = cin.nextInt... | [["+", 0, 28, 0, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 28, 0, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 28, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+... | 8 | 514 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
// using System.Numerics; //comment out if AOJ
using System.Text;
using Problem = Tmp.Problem;
using MyIO;
#pragma warning disable // for AOJ
namespace Tmp {
class Problem : IDispo... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
// using System.Numerics; //comment out if AOJ
using System.Text;
using Problem = Tmp.Problem;
using MyIO;
#pragma warning disable // for AOJ
namespace Tmp {
class Problem : IDispo... | [["+", 0, 57, 75, 57, 75, 57, 75, 57, 0, 121], ["+", 0, 57, 75, 57, 75, 57, 75, 57, 0, 24], ["+", 75, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["+", 75, 57, 75, 57, 15, 16, 31, 16, 17, 60], ["+", 75, 57, 75, 57, 15, 16, 31, 16, 12, 203], ["+", 75, 57, 75, 57, 75, 57, 15, 16, 17, 98], ["+", 75, 57, 75, 57, 15, 16, 12, 16, 3... | 8 | 1,275 |
using System;
using System.Text;
using System.Collections.Generic;
class Solve {
public Solve() {}
StringBuilder sb;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
Calc();
Console.Write(sb.ToString());
}
void Calc() {
string[] str =... | using System;
using System.Text;
using System.Collections.Generic;
class Solve {
public Solve() {}
StringBuilder sb;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
Calc();
Console.Write(sb.ToString());
}
void Calc() {
string[] str =... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ... | 8 | 191 |
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, 28, 0, 16, 31, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 16, 31, 204, 205, 22], ["-", 31, 16, 12, 23, 0, 16, 31, 204, 205, 22], ["+", 31, 16, 12, 23, 0, 16, 31, 204, 205, 22], ["-", 31, 16, 12, 23, 0, 16, 12, 204, 205, 22], ["+", 31, 16, 12, 23, 0, 16, 12, 204, 205, 22], ["-", 0, 16, 12, 23, 0, 16, 31, 2... | 8 | 647 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { AGC008.C(); }
class AGC008 {
public static void A() {
var X = Read.Int();
var Y = Read.Int();
var AX = Math.Abs(X);
var AY = Math.Abs(Y);
if (A... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { AGC008.C(); }
class AGC008 {
public static void A() {
var X = Read.Int();
var Y = Read.Int();
var AX = Math.Abs(X);
var AY = Math.Abs(Y);
if (A... | [["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 12, 204, 206, 207, 0, 28, 0, 16, 12, 22], ["-", 0, 200, 0, 212, 0, 41, 64, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 41, 64... | 8 | 1,540 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Test {
class Program {
static void Main(string[] args) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
long ret = 0;
ret += x[1];
int[] a = new int[] { x[0], x[3], x[4] };
long aret = 0;
aret += a... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Test {
class Program {
static void Main(string[] args) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
long ret = 0;
ret += x[1];
int[] a = new int[] { x[0], x[3], x[4] };
long aret = 0;
aret += a... | [["+", 0, 41, 15, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 41, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 41, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 41, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 41, 15, 16, 31, 213, 3, 4, 0, 25], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203]... | 8 | 224 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
static void Main(string[] args) { Solve(); }
private const long MOD = 1000000007;
static void Solve() {
var o = ReadAndParseIntArr();
int a = o[0];
char op = (char)o[1];
int... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
static void Main(string[] args) { Solve(); }
private const long MOD = 1000000007;
static void Solve() {
var o = Console.ReadLine();
var arr = o.Split(' ');
int a = int.Parse(arr... | [["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 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, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 197, ... | 8 | 429 |
using System;
public class Aprob {
public static void Main() {
string[] read = new string[3];
read = Console.ReadLine().Split(' ');
int A = int.Parse(read[0]);
// int B = int.Parse(read[1]);
int C = int.Parse(read[2]);
if (read[1] == "+") {
Console.WriteLine(A + C);
} else {
Co... | using System;
public class Aprob {
public static void Main() {
string[] read = new string[3];
read = Console.ReadLine().Split(' ');
int A = int.Parse(read[0]);
// int B = int.Parse(read[1]);
int C = int.Parse(read[2]);
if (read[1] == "+") {
Console.WriteLine(A + C);
} else {
Co... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 28, 0, 16, 31, 16, 31, 5, 0, 62], ["-", 0, 28, 0, 16, 31, 16, 31, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["-", 3... | 8 | 128 |
using System;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string[] t1 = Console.ReadLine().Split();
int[] t = new int[t1.Length];
for (int i = 0; i < t1.Length; i++) {
t[i] = int.Parse(t1[i]);
}
int m = int.Parse(Console.ReadLine());
int[]... | using System;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
string[] t1 = Console.ReadLine().Split(' ');
int[] t = new int[t1.Length];
for (int i = 0; i < t1.Length; i++) {
t[i] = int.Parse(t1[i]);
}
int m = int.Parse(Console.ReadLine());
in... | [["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 104], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 0, 1, 0, 11, 31, 204, 205, 204, 205, 22], ["+", 0, 11, 31, 204, 205, 204, 206, 207, 0, 70], ["+"... | 8 | 262 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using static System.Console;
using static System.Math;
class Simple {
int N;
int[] A;
const int mod = (int)1e9 + 7;
void Solve() {
// inpu... | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using static System.Console;
using static System.Math;
class Simple {
int N;
int[] A;
const int mod = (int)1e9 + 7;
void Solve() {
// inpu... | [["+", 0, 200, 0, 212, 0, 41, 64, 16, 17, 98], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 205, 213, 3, ... | 8 | 535 |
using System;
using System.Collections.Generic;
namespace ConsoleApp_CS {
class Program {
static void Main(string[] args) {
var n = CIn.ReadLong();
var a = CIn.ReadLongArray(n);
var ans = (long)1;
Array.Sort(a);
if (a.Length > 1) {
var tmp = a[1] - 2;
for (var i = a.Length % 2; i < n... | using System;
using System.Collections.Generic;
namespace ConsoleApp_CS {
class Program {
static void Main(string[] args) {
var n = CIn.ReadLong();
var a = CIn.ReadLongArray(n);
var ans = (long)1;
var mod = (long)1000000007;
Array.Sort(a);
if (a.Length > 1) {
var tmp = a[1] - 2;
... | [["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 51,... | 8 | 470 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Program {
public void Proc() {
Reader.IsDebug = false;
int count = int.Parse(Reader.ReadLine());
int[] list =
Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
Dictionary<int, int> dic ... | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Program {
public void Proc() {
Reader.IsDebug = false;
int count = int.Parse(Reader.ReadLine());
int[] list =
Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
Dictionary<int, int> dic ... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 75, 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, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 6... | 8 | 495 |
using System;
using System.Collections.Generic;
namespace cswork {
class Program {
static void Main(string[] args) {
string s = ReadStr();
if (s.Equals("a") || s.Equals("b") || s.Equals("c") || s.Equals("d") ||
s.Equals("e")) {
Write("vowel");
} else {
Write("consonant");
}
Ex... | using System;
using System.Collections.Generic;
namespace cswork {
class Program {
static void Main(string[] args) {
string s = ReadStr();
if (s.Equals("a") || s.Equals("i") || s.Equals("u") || s.Equals("e") ||
s.Equals("o")) {
Write("vowel");
} else {
Write("consonant");
}
Ex... | [["-", 12, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 12, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 326 |
using System;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var x = ReadLine();
if (x == "a" || x == "b" || x == "c" || x == "d" || x == "e") {
WriteLine("vowel");
} else {
WriteLine("con... | using System;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var x = ReadLine();
if (x == "a" || x == "i" || x == "u" || x == "o" || x == "e") {
WriteLine("vowel");
} else {
WriteLine("con... | [["-", 31, 16, 31, 16, 12, 16, 12, 5, 0, 222], ["+", 31, 16, 31, 16, 12, 16, 12, 5, 0, 222], ["-", 15, 16, 31, 16, 12, 16, 12, 5, 0, 222], ["+", 15, 16, 31, 16, 12, 16, 12, 5, 0, 222]] | 8 | 148 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ziyuutyou {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
if (str == "a" || str == "b" || str == "c" || str == "d" || str == "e") {
Console.WriteLine("vowel");
} else {
Console.Writ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ziyuutyou {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
if (str == "a" || str == "i" || str == "u" || str == "o" || str == "e") {
Console.WriteLine("vowel");
} else {
Console.Writ... | [["-", 31, 16, 31, 16, 12, 16, 12, 5, 0, 222], ["+", 31, 16, 31, 16, 12, 16, 12, 5, 0, 222], ["-", 15, 16, 31, 16, 12, 16, 12, 5, 0, 222], ["+", 15, 16, 31, 16, 12, 16, 12, 5, 0, 222]] | 8 | 98 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
//入力
// int n = 100;
/*
long n = long.Parse(Console.ReadLine());
long[] input = new long[5];
for(int a = 0; a < 5; a++)
{
i... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
//入力
// int n = 100;
/*
long n = long.Parse(Console.ReadLine());
long[] input = new long[5];
for(int a = 0; a < 5; a++)
{
i... | [["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 77 |
using System;
using System.Linq;
namespace ABC049_B {
class Program {
static void Main(string[] args) {
var sss = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var H = sss[0];
var W = sss[1];
var C = new string[H].Select(x => Console.ReadLine()).ToArray();
for (var i = 0; i < 2 * (H... | using System;
using System.Linq;
namespace ABC049_B {
class Program {
static void Main(string[] args) {
var sss = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
var H = sss[0];
var W = sss[1];
var C = new string[H].Select(x => Console.ReadLine()).ToArray();
for (var i = 0; i <= 2 * H... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 15, 16, 12, 16, 12, 23, 0, 24], ["-", 0, 7, 15, 16, 12, 16, 12, 23, 0, 25], ["-", 206, 207, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 17, 72], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203], ["-", ... | 8 | 155 |
using System;
class Program {
static void Main(string[] args) {
string str = Console.ReadLine();
int h = int.Parse(str[0].ToString());
int w = int.Parse(str[1].ToString());
string[] c = new string[h];
for (int i = 0; i < h; i++) {
c[i] = Console.ReadLine();
}
for (int i = 0; i < h; i... | using System;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int h = int.Parse(str[0].ToString());
int w = int.Parse(str[1].ToString());
string[] c = new string[h];
for (int i = 0; i < h; i++) {
c[i] = Console.ReadLine();
}
for (int i ... | [["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 252... | 8 | 135 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
int[] Cnt = new int[M];
int[] Same = new int[M];
Dictionary<int, int>... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
int[] Cnt = new int[M];
int[] Same = new int[M];
Dictionary<int, int>... | [["-", 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, 213, 3, 4, 0, 28, 0, 16, 17, 85], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21]... | 8 | 591 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
// var s = Console.ReadLine();
// var n = int.Parse(Console.ReadLine());
int[] hw = Console.ReadLine().Split().Select(int.Parse).ToAr... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
// var s = Console.ReadLine();
// var n = int.Parse(Console.ReadLine());
int[] hw = Console.ReadLine().Split().Select(int.Parse).ToAr... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 492 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AGC007A {
class Program {
public static void Solve(Input input) {
var h = input.NextInt();
var w = input.NextInt();
var map = new string[h];... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AGC007A {
class Program {
public static void Solve(Input input) {
var h = input.NextInt();
var w = input.NextInt();
var map = new string[h];... | [["+", 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, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 37, 0, 38], ["+", 8, 196,... | 8 | 1,986 |
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 ... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 205, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 205, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["-", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 161], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 21... | 8 | 2,896 |
using System;
namespace abc047A {
class MainClass {
public static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int c = int.Parse(str[2]);
int d = (a + b + c) / 2;
if (a == d || b == d || c == d)
Console.Write... | using System;
namespace abc047A {
class MainClass {
public static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int c = int.Parse(str[2]);
int d = (a + b + c) / 2;
int e = (a + b + c) % 2;
if ((a == d || b == d ... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 16, 31, 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... | 8 | 123 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC037A {
class Program {
static void Main(string[] args) {
string[] n = Console.ReadLine().Split(' ');
int a = int.Parse(n[0]);
int b = int.Parse(n[1]);
int c = int.Parse(n[1... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC037A {
class Program {
static void Main(string[] args) {
int a, b, c;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
c = int.... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 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, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 195, 8, 196, 0, 197... | 8 | 172 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC047A___キャンディーと2人の子供 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
string[] candyPacks = input.Split(' ');
List<int> candyPackList = Pa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC047A___キャンディーと2人の子供 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
string[] candyPacks = input.Split(' ');
List<int> candyPackList = Pa... | [["-", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 47], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 0, 213, 63, 214, 2... | 8 | 222 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
//入力
// int n = 100;
/*
long n = long.Parse(Console.ReadLine());
long[] input = new long[5];
for(int a = 0; a < 5; a++)
{
i... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
//入力
// int n = 100;
/*
long n = long.Parse(Console.ReadLine());
long[] input = new long[5];
for(int a = 0; a < 5; a++)
{
i... | [["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 119 |
using System;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
string[] num = ReadLine().Split(' ');
int n = int.Parse(num[0]);
int k = int.Parse(num[1]);
int m = int.Parse(num[2]);
int a = (n + k + m) / 2;
if (a == n || a == m || a == k)... | using System;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
string[] num = ReadLine().Split(' ');
int n = int.Parse(num[0]);
int k = int.Parse(num[1]);
int m = int.Parse(num[2]);
int d = n + m + k;
int a = (n + k + m) / 2;
if ((a =... | [["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 72], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, ... | 8 | 129 |
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() {
Console.WriteLine(A.Contains(A.Sum() / 2) ? "Yes" : "No");
}
int[] A;
pu... | 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() {
Console.WriteLine(A.Contains(A.Sum() / 2) && A.Sum() % 2 == 0 ? "Yes"
... | [["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 98], ["+", 12, 16, 31, 16, 31, 213, 63, 214, 205, 22], ["+", 12, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 12, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 12, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 12, 16, 31, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 41, 15, 16, 12, 16, 31, 16, ... | 8 | 325 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string[] line = Console.ReadLine().Trim().Split(' ');
Array.Sort(line);
int a = int.Parse(line[0]);
int... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string[] line = Console.ReadLine().Trim().Split(' ');
int a = int.Parse(line[0]);
int b = int.Parse(line[1]... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 1... | 8 | 145 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
int c = int.Parse(input[2]);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
int c = int.Parse(input[2]);
... | [["+", 15, 16, 31, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 106], ["+", 15, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 1... | 8 | 156 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace abc047 {
public class Program {
public static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
List<int> list = new List<int>();
list.Add(Convert.ToInt32(str[0]));
list.Add(Convert.ToInt32(str[1]));
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace abc047 {
public class Program {
public static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
List<int> list = new List<int>();
list.Add(Convert.ToInt32(str[0]));
list.Add(Convert.ToInt32(str[1]));
... | [["+", 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, 16, 31, 213, 63, 214, 205, 23, 0, 24], ["+", 63, 214, 205, 23, 0, 242, 0, 257, 0, 314], ["+", 63, 214, 205, 23, 0, 242, 0, 257, 141, 22], ["+", 63, 214, 205, 23, 0, 242... | 8 | 208 |
using LIB;
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
class Program {
public static IO IO = new IO();
static void Main(string[] args) {
int[] m = IO.INT(' ');
if (m[0] == m[1] + m[2] || m[0] + m[1] == m[2]) {
IO.WRITE("Yes");
} else {
IO.WRITE("No"... | using LIB;
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
class Program {
public static IO IO = new IO();
static void Main(string[] args) {
int[] m = IO.INT(' ');
if (m[0] == m[1] + m[2] || m[0] + m[1] == m[2] || m[0] + m[2] == m[1]) {
IO.WRITE("Yes");
} els... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 15, 16, 12, 16, 31, 16, 31, 204, 205, 22], ["+", 12, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 72], ["+", 15, 16, 12, 16, 31, 16, ... | 8 | 807 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
namespace AtCoder {
class Program {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
static public List<long> S... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
namespace AtCoder {
class Program {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
static public List<long> S... | [["+", 0, 57, 64, 1, 0, 11, 12, 213, 63, 22], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 75, 57, 64, 1, 0, 11, 12, 213, 63, 22]] | 8 | 317 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Contest.B {
static class Program {
public static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = ... | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Contest.B {
static class Program {
public static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = ... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22]] | 8 | 639 |
using System;
namespace ABC047 {
class B {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
int W = int.Parse(input[0]);
int H = int.Parse(input[1]);
int N = int.Parse(input[2]);
int x0 = 0;
int y0 = 0;
int x1 = W;
int y1 = H;
for (int i = 0; i < N;... | using System;
namespace ABC047 {
class B {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
int W = int.Parse(input[0]);
int H = int.Parse(input[1]);
int N = int.Parse(input[2]);
int x0 = 0;
int y0 = 0;
int x1 = W;
int y1 = H;
for (int i = 0; i < N;... | [["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8, 1... | 8 | 254 |
using System;
using System.Linq;
namespace A {
class Program {
static void Main(string[] args) {
var WHN = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var W = WHN[0];
var H = WHN[1];
var N = WHN[2];
var xyaList = Enumerable.Range(0, N).Select(
_ => Console.ReadLine().Split(... | using System;
using System.Linq;
namespace A {
class Program {
static void Main(string[] args) {
var WHN = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var W = WHN[0];
var H = WHN[1];
var N = WHN[2];
var xyaList = Enumerable.Range(0, N).Select(
_ => Console.ReadLine().Split(... | [["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25]] | 8 | 285 |
using System;
using System.Linq;
class P {
static void Main() {
int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray();
int W = n[0];
int H = n[1];
int N = n[2];
int[] x = new int[N];
int[] y = new int[N];
int[] a = new int[N];
for (int i = 0; i < N; i++) {
int[] m = ... | using System;
using System.Linq;
class P {
static void Main() {
int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray();
int W = n[0];
int H = n[1];
int N = n[2];
int[] x = new int[N];
int[] y = new int[N];
int[] a = new int[N];
for (int i = 0; i < N; i++) {
int[] m = ... | [["+", 64, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 64, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 64, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+"... | 8 | 297 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2 {
class Program {
static void Main(string[] args) {
int minX = 0;
int minY = 0;
int maxX = 0;
int maxY = 0;
int startX = 0;
int st... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2 {
class Program {
static void Main(string[] args) {
int minX = 0;
int minY = 0;
int maxX = 0;
int maxY = 0;
int startX = 0;
int st... | [["+", 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, 31, 22], ["+", 8, 254, 0, 239, 0, 57, 15, 16, 17, 18], ["+", 8, 254, 0, 239, 0, 57, 15, 16, 12, 22], ["+", 0, 99, 8, 254, 0, 239, 0, 57, 0, 25], ["+", 8, 254, 0, 239, 0, 57, 64, 196, 0, 45], ["... | 8 | 340 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Globalization;
using static System.Console;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
class Program {
static void Main() {
var sw = new StreamWriter(OpenStandardOutput()) { Au... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Globalization;
using static System.Console;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
class Program {
static void Main() {
var sw = new StreamWriter(OpenStandardOutput()) { Au... | [["+", 64, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 64, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 64, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 25]] | 8 | 542 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
static void Main(... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(Console.ReadLine()); }
public static long[] Reads() {
return Console.ReadLine().Split().Select(long.Parse).ToArray();
}
static void Main(... | [["-", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 12, 22], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["... | 8 | 187 |
using System;
namespace ABC046B_PaintingBallswithAtCoDeer {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int k = int.Parse(input[1]);
int result = k * (k - 1) ^ (n - 1);
Console.WriteLine(result);
}
}
}
| using System;
namespace ABC046B_PaintingBallswithAtCoDeer {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int k = int.Parse(input[1]);
double result = k * Math.Pow(k - 1, n - 1);
Console.WriteLine(result);
}
}
}... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 212, 0, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 212, 0, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 212, 0, 16, 12, 213, 63, 214, 141, 22], ["-", 0, 212, 0, 16, 31, 16, 12, 23, 0, 25], ["-", 0, 198, 0, 200, 0, 212, 0,... | 8 | 90 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace ABC046_B {
class Program {
static void Main(string[] args) {
long ans = 1;
var t = scan;
long N = t[0];
long K = t[1];
ans = K;
for (int i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace ABC046_B {
class Program {
static void Main(string[] args) {
long ans = 1;
var t = scan;
long N = t[0];
long K = t[1];
ans = K;
for (int i... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 136 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using ll = System.Int64;
public class Contest {
static void Swap1<T>(ref T a, ref T b) {
T t = a;
a = b;
b = t;
}
static void Swap2<T>(ref T a, ref T b)
where T : ICompa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using ll = System.Int64;
public class Contest {
static void Swap1<T>(ref T a, ref T b) {
T t = a;
a = b;
b = t;
}
static void Swap2<T>(ref T a, ref T b)
where T : ICompa... | [["+", 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, 23, 0, 24], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 57, 15, 16, 31, 23, 0, 16, 12, 203], ["+", 64, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 19],... | 8 | 2,598 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
class Program {
public static void Main() {
int N = int.Parse(Console.ReadLine());
ulong m, n, a, b;
var s = Console.ReadLine().Split(' ');
a = 1;
b = 1;
for (int i = 0; i < N; i++) {
s = Conso... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
class Program {
public static void Main() {
int N = int.Parse(Console.ReadLine());
ulong m, n, a, b;
string[] s;
a = 1;
b = 1;
for (int i = 0; i < N; i++) {
s = Console.ReadLine().Split(' ');
... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 0, 213, 63, 214, 205... | 8 | 229 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
public class ABC {
// long[] sp = Console.ReadLine().Split().Select(long
// .Parse).ToArray(); int[] sp =
// Console.ReadLine().Spli... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
public class ABC {
// long[] sp = Console.ReadLine().Split().Select(long
// .Parse).ToArray(); int[] sp =
// Console.ReadLine().Spli... | [["+", 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 | 3,434 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Hello {
public static void Main() {
var s = Console.ReadLine();
var correct = "C0DEFESTIVAL2O16";
var count = 0;
for (var i = 0; i < correct.Length; i++) {
if (s[i] != correct[i]) {
count++;
}
}
... | using System;
using System.Linq;
using System.Collections.Generic;
public class Hello {
public static void Main() {
var s = Console.ReadLine();
var t = "CODEFESTIVAL2016";
var count = 0;
for (var i = 0; i < s.Length; i++) {
if (s[i] != t[i]) {
count++;
}
}
Console.WriteLin... | [["-", 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, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["-", 8, 196, 0... | 8 | 91 |
using System;
namespace Sample {
class Sample {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int N = int.Parse(str[0]);
int A = int.Parse(str[1]);
int B = int.Parse(str[2]);
string S = Console.ReadLine();
int count = 0;
int fCount = 0;
for (int i = 0... | using System;
namespace Sample {
class Sample {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int N = int.Parse(str[0]);
int A = int.Parse(str[1]);
int B = int.Parse(str[2]);
string S = Console.ReadLine();
int count = 0;
int fCount = 0;
for (int i = 0... | [["+", 64, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 64, 196, 0, 57, 15, 16, 12, 23, 0, 25], ["+", 15, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 15, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 75, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 75, 57, 75, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 57, 75, 57, 75, 196, 0, 57, 0, 95], ... | 8 | 230 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Runtime.ExceptionServices;
using System.Security;
using System.Threading;
using System.Xml.Serialization;
namespace AtCoderCs {
class Program {
const int mod = 1000000007;
static... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Runtime.ExceptionServices;
using System.Security;
using System.Threading;
using System.Xml.Serialization;
namespace AtCoderCs {
class Program {
const int mod = 1000000007;
static... | [["+", 0, 195, 8, 196, 0, 7, 10, 198, 0, 21], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 254, 0, 239, 0, 57, 15, 16, 31, 22], ["+", 8, 254, 0, 239, 0, 57, 15, 16, 31, 22], ["+", 8, 254, 0, 239, 0, 57, 64, 196, 0, 45]... | 8 | 256 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
// using Debug;
// using static System.Globalization.CultureInfo;
using System.Text;
class Program {
static void Main(string[] args) {
Solve();
// WriteLine(So... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
// using Debug;
// using static System.Globalization.CultureInfo;
using System.Text;
class Program {
static void Main(string[] args) {
Solve();
// WriteLine(So... | [["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 57, 75, 57, 75, 57, 15, 16, 31, 22], ["-", 8, 57, 75, 57, 75, 57, 15, 16, 1... | 8 | 575 |
using System;
class Program {
static void Main(string[] args) {
string[] str1 = Console.ReadLine().Split(' ');
int n = int.Parse(str1[0]);
int a = int.Parse(str1[1]);
int b = int.Parse(str1[2]);
string str = Console.ReadLine();
int i;
int u = 0;
int v = 0;
for (i = 0; i < n; i++) ... | using System;
class Program {
static void Main(string[] args) {
string[] str1 = Console.ReadLine().Split(' ');
int n = int.Parse(str1[0]);
int a = int.Parse(str1[1]);
int b = int.Parse(str1[2]);
string str = Console.ReadLine();
int i;
int u = 0;
int v = 0;
for (i = 0; i < n; i++) ... | [["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+"... | 8 | 220 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
var nab = Console.ReadLine().Split(' ');
var n = nab[0].ToInt();
var a = nab[1].ToInt();
var b = nab[2]... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
var nab = Console.ReadLine().Split(' ');
var n = nab[0].ToInt();
var a = nab[1].ToInt();
var b = nab[2]... | [["-", 0, 57, 64, 196, 0, 1, 0, 241, 0, 29], ["-", 0, 57, 64, 196, 0, 1, 0, 241, 0, 22], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 241, 0, 29], ["+",... | 8 | 277 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CF2016B_D {
class Program {
static int N;
static long ans;
static void Main(string[] args) {
N = scan;
var G = new SortedSet<int>();
var nowjust = 1;
// var first = scan... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CF2016B_D {
class Program {
static int N;
static long ans;
static void Main(string[] args) {
N = scan;
var G = new SortedSet<int>();
var nowjust = 2;
var first = scan;
... | [["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31,... | 8 | 191 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
partial class Program {
static long mod = 1000000007;
static void Main() {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
partial class Program {
static long mod = 1000000007;
static void Main() {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush ... | [["-", 12, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 28, 0, 16, 31, 204, 206, 207,... | 8 | 1,211 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.